blitz-0.10/0000755002370500237050000000000011774705030007573 500000000000000blitz-0.10/LEGAL0000644002370500237050000000073711774667331010304 00000000000000The Blitz++ library is licensed under the Lesser GPL version 3 license, the BSD license, and the more permissive Perl Artistic License version 2.0. Please use Blitz++ under the license that best suits the needs of your project. The licenses are detailed in COPYING and COPYING.LESSER (LGPLv3), COPYRIGHT (BSD), and LICENSE (PAL 2.0), respectively. The Perl Artistic License is probably more appropriate for commercial use, since it lacks the "viral" properties of the LGPL. blitz-0.10/COPYING0000644002370500237050000010451311753271141010550 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 . blitz-0.10/configure0000755002370500237050000370511011774704755011446 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for blitz 0.10. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 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" 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 : # 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 export CONFIG_SHELL 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+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: blitz-support@lists.sourceforge.net 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_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; } # 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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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='blitz' PACKAGE_TARNAME='blitz' PACKAGE_VERSION='0.10' PACKAGE_STRING='blitz 0.10' PACKAGE_BUGREPORT='blitz-support@lists.sourceforge.net' PACKAGE_URL='' ac_unique_file="blitz/blitz.h" # 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 pkgconfig_libfile pkgconfig_libdir HAVE_VALGRIND_FALSE HAVE_VALGRIND_TRUE valgrind DATE OS BOOST_SERIALIZATION_LIB BOOST_LDFLAGS BOOST_CPPFLAGS BLASLIB CXXCPP CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL ac_ct_AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC LIBTOOL enable_latex_docs enable_html_docs enable_dot DOXYGEN_DOC_FALSE DOXYGEN_DOC_TRUE DOT DOXYGEN TEXI2HTML_DOC_FALSE TEXI2HTML_DOC_TRUE TEXI2HTML MAKEINFO_DOC_FALSE MAKEINFO_DOC_TRUE COMPILER_SPECIFIC_HEADER F90_COMPILER_FALSE F90_COMPILER_TRUE FCFLAGS_f90 FCLIBS FLIBS FC_OPTIMIZE_FLAGS F77_OPTIMIZE_FLAGS CXXFCFLAG CXXFFLAGS ac_ct_FC FCFLAGS FC ac_ct_F77 FFLAGS F77 FORTRAN_ENABLED_FALSE FORTRAN_ENABLED_TRUE RANLIB AR_FLAGS AR CXX_LIBS CXX_PROFIL_FLAGS CXX_DEBUG_FLAGS CXX_OPTIMIZE_FLAGS am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode enable_dependency_tracking enable_cxx_flags_preset enable_fortran enable_fortran_flags_preset enable_doxygen enable_dot enable_html_docs enable_latex_docs enable_64bit enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_blas enable_optimize enable_debug enable_threadsafe with_tbb enable_simd_width enable_array_length_padding enable_64_bit_dimensions enable_serialization with_boost with_boost_libdir with_boost_serialization ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC F77 FFLAGS FC FCFLAGS CXXFFLAGS CXXFCFLAG F77_OPTIMIZE_FLAGS FC_OPTIMIZE_FLAGS COMPILER_SPECIFIC_HEADER CC CFLAGS CPP CXXCPP CXX_OPTIMIZE_FLAGS CXX_DEBUG_FLAGS' # 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' 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 ;; -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 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 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 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 blitz 0.10 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] --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/blitz] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of blitz 0.10:";; 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-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-cxx-flags-preset Enable C++ compiler flags preset [default yes] --enable-fortran Enable Fortran compilation --enable-fortran-flags-preset Enable Fortran compiler flags preset [default yes] --enable-doxygen enable documentation generation with doxygen (no) --enable-dot use 'dot' to generate graphs in doxygen (no) --enable-html-docs enable HTML generation with doxygen (no) --enable-latex-docs enable LaTeX documentation generation with doxygen (no) --enable-64bit enable C++/Fortran 64-bit compilation flags --enable-shared[=PKGS] build shared libraries [default=no] --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) --enable-optimize Enable compiler optimization flags --enable-debug Enable compiler debugging flags --enable-threadsafe Enable thread-safety features --enable-simd-width=n Facilitate compiler vectorization optimizations for SIMD instruction width of n bytes. --enable-array-length-padding Sets the default array padding policy to pad all lowest-rank lengths to nearest larger SIMD width. Caution: This means that arrays will in general be non-contiguous. --enable-64-bit-dimensions Enable dimensions with > 2^31 elements (not yet implemented) --enable-serialization Enable serialization support using Boost::Serialization Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-blas[=DIR] set the path for the blas library --with-tbb Use Intel Threading Building Blocks atomic types --with-boost[=ARG] use Boost library from a standard location (ARG=yes), from the specified location (ARG=), or disable it (ARG=no) [ARG=yes] --with-boost-libdir=LIB_DIR Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located. --with-boost-serialization[=special-lib] use the Serialization library from boost - it is possible to specify a certain library for the linker e.g. --with-boost-serialization=boost_serialization-gcc-mt-d-1_33_1 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 F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags FC Fortran compiler command FCFLAGS Fortran compiler flags CXXFFLAGS C++ compiler flags to link Fortran 77 subroutines CXXFCFLAG C++ compiler flags to link Fortran 90 subroutines F77_OPTIMIZE_FLAGS Fortran 77 optimization flags FC_OPTIMIZE_FLAGS Fortran 90 optimization flags COMPILER_SPECIFIC_HEADER automatically set if supported compiler, otherwise should be set to /bzconfig.h. See also file blitz/bzconfig.h CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor CXX_OPTIMIZE_FLAGS C++ compiler optimization flags CXX_DEBUG_FLAGS C++ compiler debugging flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF blitz configure 0.10 generated by GNU Autoconf 2.68 Copyright (C) 2010 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_f77_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_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_f77_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_f77_try_compile # ac_fn_fc_try_compile LINENO # --------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_fc_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_fc_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_fc_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 || $as_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 || $as_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_f77_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_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_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_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_f77_try_link # ac_fn_fc_try_link LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_fc_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_fc_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_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_fc_try_link # 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 # ac_fn_cxx_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_cxx_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_cxx_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_cxx_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_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------------------------- ## ## Report this to blitz-support@lists.sourceforge.net ## ## -------------------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel 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 blitz $as_me 0.10, which was generated by GNU Autoconf 2.68. 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 ac_aux_dir= for ac_dir in config "$srcdir"/config; 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 config \"$srcdir\"/config" "$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. ac_config_headers="$ac_config_headers blitz/config.h" # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.11' # 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } # Just in case sleep 1 echo timestamp > conftest.file # 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 ( 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 rm -f conftest.file 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 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; } 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 --run true"; then am_missing_run="$MISSING --run " 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}" != 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 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='blitz' VERSION='0.10' 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"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Avoid generating makefile rules to rebuild maintainer-only files by # default. Maintainers may override this default and generate these # makefile rules using the `--enable-maintainer-mode' configure option. { $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 # Blitz++ configure utility, generated by autoconf. # # If you want to modify this file, make sure you are editing # configure.ac, and not configure. { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring $PACKAGE_STRING for $target " >&5 $as_echo "$as_me: Configuring $PACKAGE_STRING for $target " >&6;} # C++ compiler 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 xlc++ xlC icpc pathCC pgCC cxx aCC c++ CC g++ clang++ KCC FCC 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 xlc++ xlC icpc pathCC pgCC cxx aCC c++ CC g++ clang++ KCC FCC 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' 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'. 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 8's {/usr,}/bin/sh. touch 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 ;; 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 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 AR_FLAGS="-cru" LDFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using $CXX preset flags" >&5 $as_echo_n "checking whether using $CXX preset flags... " >&6; } # Check whether --enable-cxx-flags-preset was given. if test "${enable_cxx_flags_preset+set}" = set; then : enableval=$enable_cxx_flags_preset; else enableval='yes' fi if test "$enableval" = yes ; then ac_cxx_flags_preset=yes case "$CXX" in *xlc++*) CXX_VENDOR="IBM" CXXFLAGS="-qrtti" CXX_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qmaxmem=8192 -qansialias -qhot -qunroll=yes" CXX_DEBUG_FLAGS="-g -qcheck=all -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" ;; *xlC*) CXX_VENDOR="IBM" CXXFLAGS="-qrtti=all" CXX_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qmaxmem=8192 -qansialias -qhot -qunroll=yes" CXX_DEBUG_FLAGS="-g -qcheck=all -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" ;; *clang++) CXX_VENDOR="LLVM" CXXFLAGS="-ansi" CXX_OPTIMIZE_FLAGS="-O3" CXX_DEBUG_FLAGS="-g -O0 -C -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" ;; *icpc*|*icc*) CXX_VENDOR="Intel" CXXFLAGS="-ansi" CXX_OPTIMIZE_FLAGS="-O3 -Zp16 -ip -ansi_alias" CXX_DEBUG_FLAGS="-g -O0 -C -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" ;; *cxx*) CXX_VENDOR="Compaq" CXX_V=`cxx -V` cxx_version=`expr "$CXX_V" : '.*\([0-9]\)\..*'` cxx_release=`expr "$CXX_V" : '.*[0-9]\.\([0-9]\).*'` if test $cxx_version -eq "6" -a $cxx_release -lt "3" ; then CXXFLAGS="-std ansi -D__USE_STD_IOSTREAM -DBZ_ENABLE_XOPEN_SOURCE -ieee -model ansi -accept restrict_keyword -nousing_std" else CXXFLAGS="-std ansi -D__USE_STD_IOSTREAM -DBZ_ENABLE_XOPEN_SOURCE -D_OSF_SOURCE -ieee -model ansi -accept restrict_keyword -nousing_std" fi CXX_OPTIMIZE_FLAGS="-fast -inline speed -nocleanup" CXX_DEBUG_FLAGS="-g -msg_display_tag -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg -g1" AR="ar" AR_FLAGS="-rv" RANLIB="ar ts" ;; *g++*|*c++*) CXX_VENDOR="GNU" GCC_V=`$CXX --version` gcc_version=`expr "$GCC_V" : '.* \([0-9]\)\..*'` gcc_release=`expr "$GCC_V" : '.* [0-9]\.\([0-9]\).*'` if test $gcc_version -lt "3" ; then CXXFLAGS="-ftemplate-depth-40" CXX_OPTIMIZE_FLAGS="-O2 -funroll-loops -fstrict-aliasing -fno-gcse" else CXXFLAGS="" CXX_OPTIMIZE_FLAGS="-O3 -funroll-loops -fstrict-aliasing -fomit-frame-pointer -ffast-math" fi CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" ;; *KCC*) CXX_VENDOR="KAI" CXXFLAGS="--restrict" CXX_OPTIMIZE_FLAGS="+K3" CXX_DEBUG_FLAGS="+K0 -g -DBZ_DEBUG" AR="$CXX" AR_FLAGS="-o" case "$target" in *sgi*) CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS --backend -Ofast" ;; *ibm*) CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -O5 --backend -qstrict --backend -qstrict_induction" ;; *) CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -O" ;; esac ;; *aCC*) CXX_VENDOR="HP" CXXFLAGS="-AA" CXX_OPTIMIZE_FLAGS="+O2" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" CXX_PROFIL_FLAGS="+pal" ;; *FCC*) CXX_VENDOR="Fujitsu" CXXFLAGS="-D__FUJITSU" CXX_OPTIMIZE_FLAGS="-K fast" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" ;; *pgCC*) CXX_VENDOR="PGI" CXXFLAGS="" CXX_OPTIMIZE_FLAGS="-O4 -Mnoframe -Mnodepchk -Minline=levels:25" CXX_DEBUG_FLAGS="-g -O0 -DBZ_DEBUG" ;; *pathCC*) CXX_VENDOR="pathCC" CXXFLAGS="-ansi" CXX_OPTIMIZE_FLAGS="-O3 -fstrict-aliasing -finline-functions" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" CXX_PROFIL_FLAGS="-pg" AR="$CXX" AR_FLAGS="-ar -o" ;; *CC*) case "$target" in *sgi*) CXX_VENDOR="SGI" CXXFLAGS="-LANG:std -LANG:restrict -no_auto_include" CXX_OPTIMIZE_FLAGS="-O3 -IPA -OPT:Olimit=0:alias=typed:swp=ON" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" AR="$CXX" AR_FLAGS="-ar -o" ;; *solaris*) CXX_VENDOR="SUN" CXXFLAGS="-features=tmplife -library=stlport4" CXX_OPTIMIZE_FLAGS="-O3" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" ;; *cray*) CXX_VENDOR="Cray" CXXFLAGS="-h conform" CXX_OPTIMIZE_FLAGS="-O3 -h unroll,aggress,scalar2" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" ;; *fujitsu*) CXX_VENDOR="Fujitsu" CXXFLAGS="-D__FUJITSU --stdlib" CXX_OPTIMIZE_FLAGS="-K3" CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" ;; esac ;; *) ac_cxx_flags_preset=no ;; esac { $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 if test "$ac_cxx_flags_preset" = yes ; then if test "$CXX_VENDOR" = GNU ; then { $as_echo "$as_me:${as_lineno-$LINENO}: Setting compiler flags for $CXX_VENDOR $CXX (wahoo!)" >&5 $as_echo "$as_me: Setting compiler flags for $CXX_VENDOR $CXX (wahoo!)" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: Setting compiler flags for $CXX_VENDOR $CXX" >&5 $as_echo "$as_me: Setting compiler flags for $CXX_VENDOR $CXX" >&6;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: No flags preset found for $CXX" >&5 $as_echo "$as_me: No flags preset found for $CXX" >&6;} fi # Option to disable Fortran (benchmarks will not compile) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Fortran compilation for benchmark codes" >&5 $as_echo_n "checking whether to enable Fortran compilation for benchmark codes... " >&6; } # Check whether --enable-fortran was given. if test "${enable_fortran+set}" = set; then : enableval=$enable_fortran; else enable_fortran="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fortran" >&5 $as_echo "$enable_fortran" >&6; } if test $enable_fortran = yes; then FORTRAN_ENABLED_TRUE= FORTRAN_ENABLED_FALSE='#' else FORTRAN_ENABLED_TRUE='#' FORTRAN_ENABLED_FALSE= fi # Fortran compiler if test $enable_fortran = yes; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in xlf ifort pathf90 pgf77 ftn frt gfortran f77 g77 g95 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_F77+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$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 F77=$ac_cv_prog_F77 if test -n "$F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 $as_echo "$F77" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in xlf ifort pathf90 pgf77 ftn frt gfortran f77 g77 g95 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_F77+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$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_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 $as_echo "$ac_ct_F77" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" 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 F77=$ac_ct_F77 fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 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 rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } if ${ac_cv_f77_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF if ac_fn_f77_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_f77_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 $as_echo_n "checking whether $F77 accepts -g... " >&6; } if ${ac_cv_prog_f77_g+:} false; then : $as_echo_n "(cached) " >&6 else FFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_g=yes else ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 $as_echo "$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi if test $ac_compiler_gnu = yes; then G77=yes else G77= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in xlf90 ifort pathf90 pgf90 ftn frt f90 gfortran g95 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FC"; then ac_cv_prog_FC="$FC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_FC="$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 FC=$ac_cv_prog_FC if test -n "$FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 $as_echo "$FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$FC" && break done fi if test -z "$FC"; then ac_ct_FC=$FC for ac_prog in xlf90 ifort pathf90 pgf90 ftn frt f90 gfortran g95 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_FC="$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_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 $as_echo "$ac_ct_FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_FC" && break done if test "x$ac_ct_FC" = x; then FC="" 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 FC=$ac_ct_FC fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 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 rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } if ${ac_cv_fc_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF if ac_fn_fc_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_fc_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FCFLAGS=${FCFLAGS+set} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 $as_echo_n "checking whether $FC accepts -g... " >&6; } if ${ac_cv_prog_fc_g+:} false; then : $as_echo_n "(cached) " >&6 else FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_g=yes else ac_cv_prog_fc_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 $as_echo "$ac_cv_prog_fc_g" >&6; } if test "$ac_test_FCFLAGS" = set; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-g -O2" else FCFLAGS="-g" fi else if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-O2" else FCFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Fortran preset flags" >&5 $as_echo_n "checking whether using Fortran preset flags... " >&6; } # Check whether --enable-fortran-flags-preset was given. if test "${enable_fortran_flags_preset+set}" = set; then : enableval=$enable_fortran_flags_preset; else enableval='yes' fi if test "$enableval" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } case "$target" in *aix*) case "$F77" in *xlf*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qnosave -qmaxmem=8192 -qhot -qunroll=yes" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *irix*) case "$F77" in *f77*) FFLAGS="" F77_OPTIMIZE_FLAGS="-Ofast" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *linux*) case "$F77" in *g95*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *gfortran*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *ifc*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3 -Zp16 -ip -pad -unroll -fno-alias -safe_cray_ptr" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *ifort*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3 -Zp16 -ip -pad -unroll -fno-alias -safe_cray_ptr" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *pgf*) FFLAGS="" F77_OPTIMIZE_FLAGS="-fastsse -O3 -Minline -Minfo" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *pathf*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *f77*) if test ".$G77" == .yes; then FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" else FFLAGS="-B108 -f" F77_OPTIMIZE_FLAGS="-O2" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" fi ;; esac ;; *darwin*) case "$F77" in *xlf*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qnosave -qmaxmem=8192 -qhot -qunroll=yes" ;; *g95*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *solaris*) case "$F77" in *f77*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *hp-hpux*) case "$F77" in *f90*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *osf*) case "$F77" in *f77*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O4 -tune host" ;; *g77*) FFLAGS="-fno-second-underscore" F77_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *cray*) case "$F77" in *ftn*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O 3 -O aggress,unroll2" ;; esac ;; *fujitsu*) case "$F77" in *frt*) FFLAGS="" F77_OPTIMIZE_FLAGS="-O3" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES -Wg,-f" ;; esac ;; *) ac_fortran_flags_preset=no ;; esac if test -n "$FC"; then case "$target" in *aix*) case "$FC" in *xlf90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qnosave -qmaxmem=8192 -qhot -qunroll=yes" ;; esac ;; *irix*) case "$FC" in *f90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-Ofast" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *linux*) case "$FC" in *gfortran*) FCFLAGS="-fno-second-underscore" FC_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *g95*) FCFLAGS="-fno-second-underscore" FC_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *ifc*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3 -Zp16 -ip -pad -unroll -fno-alias -safe_cray_ptr" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *ifort*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3 -Zp16 -ip -pad -unroll -fno-alias -safe_cray_ptr" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *pgf9*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-fastsse -O3 -Minline -Minfo" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *pathf9*) FCFLAGS="-fno-second-underscore" FC_OPTIMIZE_FLAGS="-O3" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; *f90*) FCFLAGS="-B108 -YEXT_NAMES=LCS" FC_OPTIMIZE_FLAGS="-O3" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *darwin*) case "$FC" in *xlf90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3 -qstrict -qstrict_induction -qinline -qnosave -qmaxmem=8192 -qhot -qunroll=yes" ;; *g95*) FCFLAGS="-fno-second-underscore" FC_OPTIMIZE_FLAGS="-O3 -funroll-loops" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *solaris*) case "$FC" in *f90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3" ;; esac ;; *hp-hpux*) case "$FC" in *f90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3" ;; esac ;; *osf*) case "$FC" in *f90*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O4 -tune host" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" ;; esac ;; *cray*) case "$FC" in *ftn*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O 3 -O aggress,unroll2" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_CAPS" ;; esac ;; *fujitsu*) case "$FC" in *frt*) FCFLAGS="" FC_OPTIMIZE_FLAGS="-O3" CXXFCFLAG="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES -Wg,-f" ;; esac ;; *) ac_fortran_flags_preset=no ;; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$ac_fortran_flags_preset" = no ; then { $as_echo "$as_me:${as_lineno-$LINENO}: Blitz++ has not been tuned for this platform. You may have trouble building fortran benchmarks, and performance may be unexciting. " >&5 $as_echo "$as_me: Blitz++ has not been tuned for this platform. You may have trouble building fortran benchmarks, and performance may be unexciting. " >&6;} fi if test -n "$FC"; then CXXFCFLAG="-DFORTRAN_90 $CXXFCFLAG" fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } if ${ac_cv_prog_f77_v+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_verb" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_f77_v_output="`echo $ac_f77_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_f77_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_f77_v_output=`echo $ac_f77_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; esac # look for -l* and *.a constructs in the output for ac_arg in $ac_f77_v_output; do case $ac_arg in [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ac_cv_prog_f77_v=$ac_verb break 2 ;; esac done done if test -z "$ac_cv_prog_f77_v"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 $as_echo "$as_me: WARNING: compilation failed" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 $as_echo "$ac_cv_prog_f77_v" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } if ${ac_cv_f77_libs+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$FLIBS" != "x"; then ac_cv_f77_libs="$FLIBS" # Let the user override the test. else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_cv_prog_f77_v" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_f77_v_output="`echo $ac_f77_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_f77_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_f77_v_output=`echo $ac_f77_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; esac ac_cv_f77_libs= # Save positional arguments (if any) ac_save_positional="$@" set X $ac_f77_v_output while test $# != 1; do shift ac_arg=$1 case $ac_arg in [\\/]*.a | ?:[\\/]*.a) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -bI:*) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi fi ;; # Ignore these flags. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; -[LRuYz]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $2 in "" | -*);; *) ac_arg="$ac_arg$2" shift; shift set X $ac_arg "$@" ;; esac ;; -YP,*) for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_j" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_arg="$ac_arg $ac_j" ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" fi done ;; -[lLR]*) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; # Ignore everything else. esac done # restore positional arguments set X $ac_save_positional; shift # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, # then we insist that the "run path" must be an absolute path (i.e. it # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`$as_echo "$ac_f77_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_ld_run_path; do ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done else ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" fi ;; esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 $as_echo "$ac_cv_f77_libs" >&6; } FLIBS="$ac_cv_f77_libs" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; } if ${ac_cv_prog_fc_v+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac # look for -l* and *.a constructs in the output for ac_arg in $ac_fc_v_output; do case $ac_arg in [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ac_cv_prog_fc_v=$ac_verb break 2 ;; esac done done if test -z "$ac_cv_prog_fc_v"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 $as_echo "$as_me: WARNING: compilation failed" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 $as_echo "$ac_cv_prog_fc_v" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 $as_echo_n "checking for Fortran libraries of $FC... " >&6; } if ${ac_cv_fc_libs+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac ac_cv_fc_libs= # Save positional arguments (if any) ac_save_positional="$@" set X $ac_fc_v_output while test $# != 1; do shift ac_arg=$1 case $ac_arg in [\\/]*.a | ?:[\\/]*.a) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -bI:*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi fi ;; # Ignore these flags. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; -[LRuYz]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $2 in "" | -*);; *) ac_arg="$ac_arg$2" shift; shift set X $ac_arg "$@" ;; esac ;; -YP,*) for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi done ;; -[lLR]*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; # Ignore everything else. esac done # restore positional arguments set X $ac_save_positional; shift # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, # then we insist that the "run path" must be an absolute path (i.e. it # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`$as_echo "$ac_fc_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_ld_run_path; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" fi ;; esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 $as_echo "$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_libs" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -n "$FC"; then ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5 $as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; } if ${ac_cv_fc_freeform+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_fc_freeform=unknown ac_fc_freeform_FCFLAGS_save=$FCFLAGS for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \ -freeform "-f free" +source=free -nfix do test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag" cat > conftest.$ac_ext <<_ACEOF program freeform ! FIXME: how to best confuse non-freeform compilers? print *, 'Hello ', & 'world.' end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_freeform=$ac_flag; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest.err conftest.$ac_objext conftest.$ac_ext FCFLAGS=$ac_fc_freeform_FCFLAGS_save fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 $as_echo "$ac_cv_fc_freeform" >&6; } if test "x$ac_cv_fc_freeform" = xunknown; then FC= else if test "x$ac_cv_fc_freeform" != xnone; then FCFLAGS="$FCFLAGS $ac_cv_fc_freeform" fi fi ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi if test -n "$FC"; then ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 $as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } if ${ac_cv_fc_srcext_f90+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= ac_cv_fc_srcext_f90=unknown for ac_flag in none -qsuffix=f=f90 -Tf; do test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f90=$ac_flag; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 $as_echo "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then FC= else ac_fc_srcext=f90 if test "x$ac_cv_fc_srcext_f90" = xnone; then ac_fcflags_srcext="" FCFLAGS_f90="" else ac_fcflags_srcext=$ac_cv_fc_srcext_f90 FCFLAGS_f90=$ac_cv_fc_srcext_f90 fi fi ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 fi if test -n "$FC"; then F90_COMPILER_TRUE= F90_COMPILER_FALSE='#' else F90_COMPILER_TRUE='#' F90_COMPILER_FALSE= fi # Prefix config macros with BZ_ and create compiler-specific bzconfig.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler specific header" >&5 $as_echo_n "checking compiler specific header... " >&6; } case "$CXX" in *xlc++*) ac_config_commands="$ac_config_commands blitz/apple/bzconfig.h" COMPILER_SPECIFIC_HEADER="apple/bzconfig.h" ;; *icpc*|*icc*) ac_config_commands="$ac_config_commands blitz/intel/bzconfig.h" COMPILER_SPECIFIC_HEADER="intel/bzconfig.h" ;; *xlC*) ac_config_commands="$ac_config_commands blitz/ibm/bzconfig.h" COMPILER_SPECIFIC_HEADER="ibm/bzconfig.h" ;; *cxx*) ac_config_commands="$ac_config_commands blitz/compaq/bzconfig.h" COMPILER_SPECIFIC_HEADER="compaq/bzconfig.h" ;; *aCC*) ac_config_commands="$ac_config_commands blitz/hp/bzconfig.h" COMPILER_SPECIFIC_HEADER="hp/bzconfig.h" ;; *g++*|*c++*) ac_config_commands="$ac_config_commands blitz/gnu/bzconfig.h" COMPILER_SPECIFIC_HEADER="gnu/bzconfig.h" ;; *KCC*) ac_config_commands="$ac_config_commands blitz/kai/bzconfig.h" COMPILER_SPECIFIC_HEADER="kai/bzconfig.h" ;; *pgCC*) ac_config_commands="$ac_config_commands blitz/pgi/bzconfig.h" COMPILER_SPECIFIC_HEADER="pgi/bzconfig.h" ;; *pathCC*) ac_config_commands="$ac_config_commands blitz/pathscale/bzconfig.h" COMPILER_SPECIFIC_HEADER="pathscale/bzconfig.h" ;; *CC*) case "$target" in *sgi*) ac_config_commands="$ac_config_commands blitz/sgi/bzconfig.h" COMPILER_SPECIFIC_HEADER="sgi/bzconfig.h" ;; *solaris*) ac_config_commands="$ac_config_commands blitz/sun/bzconfig.h" COMPILER_SPECIFIC_HEADER="sun/bzconfig.h" ;; *cray*) ac_config_commands="$ac_config_commands blitz/cray/bzconfig.h" COMPILER_SPECIFIC_HEADER="cray/bzconfig.h" ;; *fujitsu*) ac_config_commands="$ac_config_commands blitz/fujitsu/bzconfig.h" COMPILER_SPECIFIC_HEADER="fujitsu/bzconfig.h" ;; esac ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILER_SPECIFIC_HEADER" >&5 $as_echo "$COMPILER_SPECIFIC_HEADER" >&6; } COMPILER_SPECIFIC_HEADER=$COMPILER_SPECIFIC_HEADER # makeinfo documentation # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; 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_MAKEINFO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MAKEINFO"; then ac_cv_prog_MAKEINFO="$MAKEINFO" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MAKEINFO="makeinfo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="""" fi fi MAKEINFO=$ac_cv_prog_MAKEINFO if test -n "$MAKEINFO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 $as_echo "$MAKEINFO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -n "$MAKEINFO"; then MAKEINFO_DOC_TRUE= MAKEINFO_DOC_FALSE='#' else MAKEINFO_DOC_TRUE='#' MAKEINFO_DOC_FALSE= fi # texinfo documentation # Extract the first word of "texi2html", so it can be a program name with args. set dummy texi2html; 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_TEXI2HTML+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TEXI2HTML"; then ac_cv_prog_TEXI2HTML="$TEXI2HTML" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_TEXI2HTML="texi2html" $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 TEXI2HTML=$ac_cv_prog_TEXI2HTML if test -n "$TEXI2HTML"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5 $as_echo "$TEXI2HTML" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -n "$TEXI2HTML"; then TEXI2HTML_DOC_TRUE= TEXI2HTML_DOC_FALSE='#' else TEXI2HTML_DOC_TRUE='#' TEXI2HTML_DOC_FALSE= fi # Doxygen documentation # Check whether --enable-doxygen was given. if test "${enable_doxygen+set}" = set; then : enableval=$enable_doxygen; else enable_doxygen=no fi # Check whether --enable-dot was given. if test "${enable_dot+set}" = set; then : enableval=$enable_dot; else enable_dot=no fi # Check whether --enable-html-docs was given. if test "${enable_html_docs+set}" = set; then : enableval=$enable_html_docs; else enable_html_docs=no fi # Check whether --enable-latex-docs was given. if test "${enable_latex_docs+set}" = set; then : enableval=$enable_latex_docs; else enable_latex_docs=no fi if test "x$enable_doxygen" = xno; then enable_doc=no else # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; 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_DOXYGEN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DOXYGEN"; then ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DOXYGEN="doxygen" $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 DOXYGEN=$ac_cv_prog_DOXYGEN if test -n "$DOXYGEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 $as_echo "$DOXYGEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x$DOXYGEN = x; then if test "x$enable_doxygen" = xyes; then as_fn_error $? "could not find doxygen" "$LINENO" 5 fi enable_doc=no else doxy_ver=`doxygen --version` doxy_major=`expr "$doxy_ver" : '\([0-9]\)\..*'` doxy_minor=`expr "$doxy_ver" : '[0-9]\.\([0-9]\).*'` if test $doxy_major -eq "1" -a $doxy_minor -ge "5" ; then enable_doc=yes # Extract the first word of "dot", so it can be a program name with args. set dummy dot; 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_DOT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DOT"; then ac_cv_prog_DOT="$DOT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DOT="dot" $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 DOT=$ac_cv_prog_DOT if test -n "$DOT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 $as_echo "$DOT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxy_ver too old, doxygen will not be used." >&5 $as_echo "$as_me: WARNING: doxygen version $doxy_ver too old, doxygen will not be used." >&2;} enable_doc=no fi fi fi if test x$enable_doc = xyes; then DOXYGEN_DOC_TRUE= DOXYGEN_DOC_FALSE='#' else DOXYGEN_DOC_TRUE='#' DOXYGEN_DOC_FALSE= fi if test x$DOT = x; then if test "x$enable_dot" = xyes; then as_fn_error $? "could not find dot" "$LINENO" 5 fi enable_dot=no else enable_dot=yes fi # Check if the script was called with --enable-64bit # and if so modify the compilation flags. bz_64bit=false { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++/Fortran 64-bit compilation flags" >&5 $as_echo_n "checking whether to enable C++/Fortran 64-bit compilation flags... " >&6; } # Check whether --enable-64bit was given. if test "${enable_64bit+set}" = set; then : enableval=$enable_64bit; if test "$enableval" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } bz_64bit=true fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$bz_64bit" = true; then case "$target" in *aix*) case "$CXX" in *xlC*) CXXFLAGS="-q64 $CXXFLAGS" AR_FLAGS="-cruX64" LDFLAGS="-b64 $LDFLAGS" ;; *KCC) CXXFLAGS="-q64 $CXXFLAGS" AR_FLAGS="-q64 $AR_FLAGS" LDFLAGS="-b64 $LDFLAGS" ;; *g++) CXXFLAGS="-maix64 $CXXFLAGS" AR_FLAGS="-cruX64" LDFLAGS="-Wl,-b64 $LDFLAGS" ;; esac case "$F77" in *xlf*) FFLAGS="-q64 $FFLAGS" ;; esac case "$FC" in *xlf90*) FCFLAGS="-q64 $FCFLAGS" ;; esac ;; *irix*) case "$CXX" in *KCC) CXXFLAGS="-64 $CXXFLAGS" LDFLAGS="-64 $LDFLAGS" AR_FLAGS="-64 $AR_FLAGS" ;; *CC*) CXXFLAGS="-64 $CXXFLAGS" LDFLAGS="-64 $LDFLAGS" AR_FLAGS="-64 $AR_FLAGS" ;; *g++) CXXFLAGS="-mabi=64 $CXXFLAGS" LDFLAGS="-Wl,-64 $LDFLAGS" ;; esac case "$F77" in *f77*) FFLAGS="-64 $FFLAGS" ;; esac case "$FC" in *f90*) FCFLAGS="-64 $FCFLAGS" ;; esac ;; esac fi # Disable shared library building by default (use --enable-shared to enable) # 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=no 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' macro_revision='1.3293' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 #include #include /* 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=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CC" am_compiler_list= { $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'. 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 8's {/usr,}/bin/sh. touch 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 ;; 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 { $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" { test -f "$ac_path_SED" && $as_test_x "$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" { test -f "$ac_path_GREP" && $as_test_x "$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" { test -f "$ac_path_EGREP" && $as_test_x "$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" { test -f "$ac_path_FGREP" && $as_test_x "$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 "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $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 "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${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 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) 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 "$lt_cv_path_NM" != "no"; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) 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; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # 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 ;; 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"; 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"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 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"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } 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 "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 # which 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. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && 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 ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; 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 Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-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*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 ;; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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_cxx_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; 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 "$ac_status" -ne 0; 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 "x$lt_cv_ar_at_file" = xno; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$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 "$host_cpu" = ia64; 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 # 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 -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$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 -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/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 # and D for any global 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};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con'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* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$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 "$pipe_works" = yes; 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 "$GCC" = yes; 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; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && 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 which ABI we are using. 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 which ABI we are using. 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 "$lt_cv_prog_gnu_ld" = yes; 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* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. 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*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|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" ;; ppc*-*linux*|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 x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. 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*) LD="${LD-ld} -m elf64_sparc" ;; *) 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 "x$lt_cv_path_mainfest_tool" != xyes; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; 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 -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; 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 "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; 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 "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; 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-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; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # 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 # 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 "X${COLLECT_NAMES+set}" != Xset; 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 for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; 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" # 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 x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; 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 "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; 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' ;; 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 ' lt_prog_compiler_pic='-Xcompiler -fPIC' ;; 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 "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; 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' ;; 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) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; 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\ F* | *Sun*Fortran*) # 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\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; 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 which 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" # 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 x"$lt_cv_prog_compiler_pic_works" = xyes; 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 x"$lt_cv_prog_compiler_static_works" = xyes; 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 "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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_flag_spec_ld= 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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; 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 "$with_gnu_ld" = yes; 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 "$lt_use_gnu_ld_interface" = yes; 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 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 "$host_cpu" != ia64; 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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 ;; 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 "$host_os" = linux-dietlibc; 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 "$tmp_diet" = no 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' ;; 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 "x$supports_anon_versioning" = xyes; 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 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= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; 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 can not *** 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 "$ld_shlibs" = no; 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 "$GCC" = yes && 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 "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no 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 AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". 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) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | 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 # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac 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,' if test "$GCC" = yes; 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 "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi 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_use_runtimelinking" = yes; 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 "${lt_cv_aix_libpath+set}" = 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 "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; 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 "${lt_cv_aix_libpath+set}" = 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 "$with_gnu_ld" = yes; 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 # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 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~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $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 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 "$lt_cv_ld_force_load" = "yes"; 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*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; 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 ;; freebsd1*) ld_shlibs=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 "$GCC" = yes; 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 $output_objdir/$soname = $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 $output_objdir/$soname = $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 "$GCC" = yes && test "$with_gnu_ld" = no; 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 "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $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 "$GCC" = yes && test "$with_gnu_ld" = no; 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 x"$lt_cv_prog_compiler__b" = xyes; 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 "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_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 "$GCC" = yes; 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 "$lt_cv_irix_exported_symbol" = yes; 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 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 ;; 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*) 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__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; 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 "$GCC" = yes; 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 "$GCC" = yes; 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 "$GCC" = yes; 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 "x$host_vendor" = xsequent; 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 "$GCC" = yes; 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 can NOT 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 "$GCC" = yes; 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 x$host_vendor = xsni; 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 "$ld_shlibs" = no && 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 "$enable_shared" = yes && test "$GCC" = yes; 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 "$GCC" = yes; 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` 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" else 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi 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%'\''`; test $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 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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} $libname${shared_ext}' 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 ;; 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 ;; haiku*) version_type=linux 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=yes 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-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' 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 # Append ld.so.conf contents 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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $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 "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; 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 "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; 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 ;; *) 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 "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && 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 "$cross_compiling" = yes; 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 -fvisbility=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 "x$lt_cv_dlopen_self" = xyes; 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 "$cross_compiling" = yes; 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 -fvisbility=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 which 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 "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CC="$lt_save_CC" if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; 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=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_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 "$_lt_caught_CXX_error" != yes; 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 for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; 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 "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $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 "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${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 "$with_gnu_ld" = yes; 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 "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no 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 # need to do runtime linking. 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 ;; 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,' if test "$GXX" = yes; 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 "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi 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_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty # executable. if test "${lt_cv_aix_libpath+set}" = 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 "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; 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 "${lt_cv_aix_libpath+set}" = 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 "$with_gnu_ld" = yes; 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 # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 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~linknames=' archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 "$lt_cv_ld_force_load" = "yes"; 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*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; 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 "$lt_cv_apple_cc_single_mod" != "yes"; 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 ;; 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 ;; freebsd[12]*) # 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 ;; gnu*) ;; 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 $output_objdir/$soname = $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 "$GXX" = yes; 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; 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 "$GXX" = yes; then if test $with_gnu_ld = no; 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 "$GXX" = yes; then if test "$with_gnu_ld" = no; 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) 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 "x$supports_anon_versioning" = xyes; 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 ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) 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__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 "$GXX" = yes && test "$with_gnu_ld" = no; 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 "$GXX" = yes && test "$with_gnu_ld" = no; 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 $LDFLAGS $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 -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 $LDFLAGS $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 -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 can NOT 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 "$ld_shlibs_CXX" = no && 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" ;; 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 $p = "-L" || test $p = "-R"; 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 "$pre_test_object_deps_done" = no; 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 "$pre_test_object_deps_done" = no; 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= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; 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 "$GXX" = yes; 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 "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; 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' ;; 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 "$host_cpu" = ia64; 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 "$host_cpu" != ia64; 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) 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 which 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" # 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 x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; 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 x"$lt_cv_prog_compiler_static_works_CXX" = xyes; 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 "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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 AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". 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) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) ;; *) 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 "$ld_shlibs_CXX" = no && 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 "$enable_shared" = yes && test "$GCC" = yes; 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi 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%'\''`; test $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 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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} $libname${shared_ext}' 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 ;; 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 ;; haiku*) version_type=linux 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=yes 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-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' 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 # Append ld.so.conf contents 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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $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 "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; 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 "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; 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 "$_lt_caught_CXX_error" != yes ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_direct_absolute_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no inherit_rpath_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds reload_flag_F77=$reload_flag reload_cmds_F77=$reload_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$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 "$_lt_disable_F77" != yes; 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. # 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_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` GCC=$G77 if test -n "$compiler"; then { $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 "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_F77="$G77" LD_F77="$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_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_F77='-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_F77='-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_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_F77= ;; 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_F77='-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_F77=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_F77='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl_F77='-Xlinker ' lt_prog_compiler_pic_F77='-Xcompiler -fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; 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_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-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_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fPIC' lt_prog_compiler_static_F77='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='--shared' lt_prog_compiler_static_F77='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_F77='-Wl,-Wl,,' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-qpic' lt_prog_compiler_static_F77='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_F77='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; 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_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # 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_F77=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { $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_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_F77=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_F77=yes fi else lt_cv_prog_compiler_static_works_F77=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= 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_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_F77=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_F77=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_F77" >&5 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&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_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_F77=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_F77=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_F77" >&5 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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_F77= always_export_symbols_F77=no archive_cmds_F77= archive_expsym_cmds_F77= compiler_needs_object_F77=no enable_shared_with_static_runtimes_F77=no export_dynamic_flag_spec_F77= export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic_F77=no hardcode_direct_F77=no hardcode_direct_absolute_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported inherit_rpath_F77=no link_all_deplibs_F77=unknown module_cmds_F77= module_expsym_cmds_F77= old_archive_from_new_cmds_F77= old_archive_from_expsyms_cmds_F77= thread_safe_flag_spec_F77= whole_archive_flag_spec_F77= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # 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_F77='_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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_F77=no ;; esac ld_shlibs_F77=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 "$with_gnu_ld" = yes; 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 "$lt_use_gnu_ld_interface" = yes; 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_F77='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${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_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 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 "$host_cpu" != ia64; then ld_shlibs_F77=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_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='' ;; m68k) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' export_dynamic_flag_spec_F77='${wl}--export-all-symbols' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$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_F77='[_]+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_F77='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_F77=no fi ;; haiku*) archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs_F77=yes ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${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_F77='$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_F77='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 "$host_os" = linux-dietlibc; 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 "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${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_F77='${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_F77= tmp_sharedflag='--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_F77='${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_F77=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${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_F77=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_F77='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 xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_F77='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_F77=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$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_F77=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_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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_F77='${wl}-rpath ${wl}$libdir' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$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_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no 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 AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | 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 # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac 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_F77='' hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes file_list_spec_F77='${wl}-f,' if test "$GCC" = yes; 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_F77=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_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs_F77=no else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec_F77='${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_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__F77+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__F77=`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__F77"; then lt_cv_aix_libpath__F77=`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__F77"; then lt_cv_aix_libpath__F77="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__F77 fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$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 "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__F77+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__F77=`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__F77"; then lt_cv_aix_libpath__F77=`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__F77"; then lt_cv_aix_libpath__F77="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__F77 fi hardcode_libdir_flag_spec_F77='${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_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' fi archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='' ;; m68k) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec_F77=-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_F77=' ' allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes file_list_spec_F77='@' # 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_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $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, F77)='true' enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$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_F77='chmod 644 $oldlib' postlink_cmds_F77='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_F77=' ' allow_undefined_flag_F77=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_F77='$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_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes_F77=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec_F77='`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_F77='' fi link_all_deplibs_F77=yes allow_undefined_flag_F77="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_F77="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_F77="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_F77=no fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=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_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$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_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$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 > conftest.$ac_ext <<_ACEOF subroutine foo end _ACEOF if ac_fn_f77_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 "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds_F77='$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 else archive_cmds_F77='$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_F77='$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_F77='no' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: inherit_rpath_F77=yes link_all_deplibs_F77=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no hardcode_direct_absolute_F77=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$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_F77=' -expect_unresolved \*' archive_cmds_F77='$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_F77='no' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$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_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$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_F77='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_F77='-rpath $libdir' fi archive_cmds_need_lc_F77='no' hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='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_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='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_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='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_F77='-R$libdir' hardcode_shlibpath_var_F77=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 "$GCC" = yes; then whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec_F77='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 $as_echo "$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no with_gnu_ld_F77=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 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_F77+:} 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_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_F77 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_F77=no else lt_cv_archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$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_F77" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 ;; 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi 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%'\''`; test $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 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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} $libname${shared_ext}' 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 ;; 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 ;; haiku*) version_type=linux 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=yes 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-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' 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_F77\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_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 # Append ld.so.conf contents 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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $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_F77= if test -n "$hardcode_libdir_flag_spec_F77" || test -n "$runpath_var_F77" || test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_F77" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 $as_echo "$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink || test "$inherit_rpath_F77" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi archive_cmds_need_lc_FC=no allow_undefined_flag_FC= always_export_symbols_FC=no archive_expsym_cmds_FC= export_dynamic_flag_spec_FC= hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_flag_spec_ld_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_automatic_FC=no inherit_rpath_FC=no module_cmds_FC= module_expsym_cmds_FC= link_all_deplibs_FC=unknown old_archive_cmds_FC=$old_archive_cmds reload_flag_FC=$reload_flag reload_cmds_FC=$reload_cmds no_undefined_flag_FC= whole_archive_flag_spec_FC= enable_shared_with_static_runtimes_FC=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o objext_FC=$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 "$_lt_disable_FC" != yes; 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. # 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_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu compiler_FC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` if test -n "$compiler"; then { $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 "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_FC="$ac_cv_fc_compiler_gnu" LD_FC="$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_FC= postdep_objects_FC= predeps_FC= postdeps_FC= compiler_lib_search_path_FC= cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 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 $p = "-L" || test $p = "-R"; 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 "$pre_test_object_deps_done" = no; 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_FC"; then compiler_lib_search_path_FC="${prev}${p}" else compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${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_FC"; then postdeps_FC="${prev}${p}" else postdeps_FC="${postdeps_FC} ${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 "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_FC"; then predep_objects_FC="$p" else predep_objects_FC="$predep_objects_FC $p" fi else if test -z "$postdep_objects_FC"; then postdep_objects_FC="$p" else postdep_objects_FC="$postdep_objects_FC $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling FC test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case " $postdeps_FC " in *" -lc "*) archive_cmds_need_lc_FC=no ;; esac compiler_lib_search_dirs_FC= if test -n "${compiler_lib_search_path_FC}"; then compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_FC= lt_prog_compiler_pic_FC= lt_prog_compiler_static_FC= if test "$GCC" = yes; then lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_static_FC='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_FC='-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_FC='-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_FC='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_FC='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_FC= ;; 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_FC='-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_FC=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_FC='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_FC=-Kconform_pic fi ;; *) lt_prog_compiler_pic_FC='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl_FC='-Xlinker ' lt_prog_compiler_pic_FC='-Xcompiler -fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_FC='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' else lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' fi ;; 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_FC='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_FC='-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_FC='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_FC='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_FC='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_FC='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='--shared' lt_prog_compiler_static_FC='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_FC='-Wl,-Wl,,' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fpic' lt_prog_compiler_static_FC='-Bstatic' ;; ccc*) lt_prog_compiler_wl_FC='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-qpic' lt_prog_compiler_static_FC='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Wl,' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_FC='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_FC='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; rdos*) lt_prog_compiler_static_FC='-non_shared' ;; solaris*) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl_FC='-Qoption ld ';; *) lt_prog_compiler_wl_FC='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_FC='-Qoption ld ' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_FC='-Kconform_pic' lt_prog_compiler_static_FC='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; unicos*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_can_build_shared_FC=no ;; uts4*) lt_prog_compiler_pic_FC='-pic' lt_prog_compiler_static_FC='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_FC=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_FC= ;; *) lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" ;; 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_FC=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_FC" # 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_FC=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then case $lt_prog_compiler_pic_FC in "" | " "*) ;; *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; esac else lt_prog_compiler_pic_FC= lt_prog_compiler_can_build_shared_FC=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" { $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_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_FC=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_FC=yes fi else lt_cv_prog_compiler_static_works_FC=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then : else lt_prog_compiler_static_FC= 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=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_FC=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_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&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_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=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_FC=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_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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_FC= always_export_symbols_FC=no archive_cmds_FC= archive_expsym_cmds_FC= compiler_needs_object_FC=no enable_shared_with_static_runtimes_FC=no export_dynamic_flag_spec_FC= export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic_FC=no hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_flag_spec_ld_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_shlibpath_var_FC=unsupported inherit_rpath_FC=no link_all_deplibs_FC=unknown module_cmds_FC= module_expsym_cmds_FC= old_archive_from_new_cmds_FC= old_archive_from_expsyms_cmds_FC= thread_safe_flag_spec_FC= whole_archive_flag_spec_FC= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_FC= # 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_FC='_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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_FC=no ;; esac ld_shlibs_FC=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 "$with_gnu_ld" = yes; 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 "$lt_use_gnu_ld_interface" = yes; 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_FC='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_FC='${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_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_FC= fi supports_anon_versioning=no case `$LD -v 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 "$host_cpu" != ia64; then ld_shlibs_FC=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_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$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_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_FC=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_FC=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_FC='-L$libdir' export_dynamic_flag_spec_FC='${wl}--export-all-symbols' allow_undefined_flag_FC=unsupported always_export_symbols_FC=no enable_shared_with_static_runtimes_FC=yes export_symbols_cmds_FC='$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_FC='[_]+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_FC='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_FC=no fi ;; haiku*) archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs_FC=yes ;; interix[3-9]*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' export_dynamic_flag_spec_FC='${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_FC='$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_FC='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 "$host_os" = linux-dietlibc; 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 "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_FC='${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_FC='${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_FC= tmp_sharedflag='--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_FC='${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_FC=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_FC='${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_FC=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_FC='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 xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec_FC= hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_FC='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_FC=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$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_FC=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_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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_FC='${wl}-rpath ${wl}$libdir' archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac ;; sunos4*) archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac if test "$ld_shlibs_FC" = no; then runpath_var= hardcode_libdir_flag_spec_FC= export_dynamic_flag_spec_FC= whole_archive_flag_spec_FC= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes archive_expsym_cmds_FC='$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_FC=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_FC=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no 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 AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | 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 # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac 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_FC='' hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes file_list_spec_FC='${wl}-f,' if test "$GCC" = yes; 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_FC=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_FC=yes hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_libdir_separator_FC= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs_FC=no else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec_FC='${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_FC=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_FC='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`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__FC"; then lt_cv_aix_libpath__FC=`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__FC"; then lt_cv_aix_libpath__FC="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_FC="-z nodefs" archive_expsym_cmds_FC="\$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 "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`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__FC"; then lt_cv_aix_libpath__FC=`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__FC"; then lt_cv_aix_libpath__FC="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='${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_FC=' ${wl}-bernotok' allow_undefined_flag_FC=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_FC='$convenience' fi archive_cmds_need_lc_FC=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$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_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec_FC=-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_FC=' ' allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes file_list_spec_FC='@' # 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_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $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, FC)='true' enable_shared_with_static_runtimes_FC=yes export_symbols_cmds_FC='$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_FC='chmod 644 $oldlib' postlink_cmds_FC='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_FC=' ' allow_undefined_flag_FC=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_FC='$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_FC='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes_FC=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_FC=no hardcode_direct_FC=no hardcode_automatic_FC=yes hardcode_shlibpath_var_FC=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec_FC='`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_FC='' fi link_all_deplibs_FC=yes allow_undefined_flag_FC="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_FC="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_FC="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_FC=no fi ;; dgux*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; freebsd1*) ld_shlibs_FC=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_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes export_dynamic_flag_spec_FC='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_FC='+b $libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$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_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' hardcode_libdir_separator_FC=: case $host_cpu in hppa*64*|ia64*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no ;; *) hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_FC='$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 > conftest.$ac_ext <<_ACEOF subroutine foo end _ACEOF if ac_fn_fc_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 "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds_FC='$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 else archive_cmds_FC='$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_FC='$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_FC='no' hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_FC=: inherit_rpath_FC=yes link_all_deplibs_FC=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; newsos6) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_FC=: hardcode_shlibpath_var_FC=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no hardcode_direct_absolute_FC=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' export_dynamic_flag_spec_FC='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-R$libdir' ;; *) archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_FC=no fi ;; os2*) hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes allow_undefined_flag_FC=unsupported archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_FC='$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_FC=' -expect_unresolved \*' archive_cmds_FC='$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_FC='no' hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_FC=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_FC='$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_FC='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_FC=' -expect_unresolved \*' archive_cmds_FC='$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_FC='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_FC='-rpath $libdir' fi archive_cmds_need_lc_FC='no' hardcode_libdir_separator_FC=: ;; solaris*) no_undefined_flag_FC=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='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_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_FC='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_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='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_FC='-R$libdir' hardcode_shlibpath_var_FC=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 "$GCC" = yes; then whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_FC=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; sysv4) case $host_vendor in sni) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_FC='$CC -r -o $output$reload_objs' hardcode_direct_FC=no ;; motorola) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_FC=no ;; sysv4.3*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no export_dynamic_flag_spec_FC='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_FC=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_FC='${wl}-z,text' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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_FC='${wl}-z,text' allow_undefined_flag_FC='${wl}-z,nodefs' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes export_dynamic_flag_spec_FC='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; *) ld_shlibs_FC=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec_FC='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 $as_echo "$ld_shlibs_FC" >&6; } test "$ld_shlibs_FC" = no && can_build_shared=no with_gnu_ld_FC=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_FC" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_FC=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_FC 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_FC+:} 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_FC pic_flag=$lt_prog_compiler_pic_FC compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_FC allow_undefined_flag_FC= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_FC 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_FC=no else lt_cv_archive_cmds_need_lc_FC=yes fi allow_undefined_flag_FC=$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_FC" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC ;; 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi 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%'\''`; test $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 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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} $libname${shared_ext}' 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 ;; 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 ;; haiku*) version_type=linux 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=yes 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-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' 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_FC\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_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 # Append ld.so.conf contents 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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $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_FC= if test -n "$hardcode_libdir_flag_spec_FC" || test -n "$runpath_var_FC" || test "X$hardcode_automatic_FC" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_FC" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && test "$hardcode_minus_L_FC" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_FC=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_FC=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_FC=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 $as_echo "$hardcode_action_FC" >&6; } if test "$hardcode_action_FC" = relink || test "$inherit_rpath_FC" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: ac_fn_cxx_check_func "$LINENO" "sin" "ac_cv_func_sin" if test "x$ac_cv_func_sin" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 $as_echo_n "checking for sin in -lm... " >&6; } if ${ac_cv_lib_m_sin+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sin (); int main () { return sin (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_m_sin=yes else ac_cv_lib_m_sin=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 $as_echo "$ac_cv_lib_m_sin" >&6; } if test "x$ac_cv_lib_m_sin" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi fi # Check whether --with-blas was given. if test "${with_blas+set}" = set; then : withval=$with_blas; BLASPATH=-L"$withval" else BLASPATH="" fi { $as_echo "$as_me:${as_lineno-$LINENO}: Checking to see if there is a usable BLAS library kicking around... (If so, Blitz++ will use BLAS library to run benchmarks against if you build the benchmarks. Blitz++ itself does NOT use BLAS). " >&5 $as_echo "$as_me: Checking to see if there is a usable BLAS library kicking around... (If so, Blitz++ will use BLAS library to run benchmarks against if you build the benchmarks. Blitz++ itself does NOT use BLAS). " >&6;} LDFLAGSsave=$LDFLAGS LDFLAGS="$BLASPATH $LDFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daxpy_ in -lblas" >&5 $as_echo_n "checking for daxpy_ in -lblas... " >&6; } if ${ac_cv_lib_blas_daxpy_+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $FLIBS $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 daxpy_ (); int main () { return daxpy_ (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_blas_daxpy_=yes else ac_cv_lib_blas_daxpy_=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_blas_daxpy_" >&5 $as_echo "$ac_cv_lib_blas_daxpy_" >&6; } if test "x$ac_cv_lib_blas_daxpy_" = xyes; then : CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -DUSE_LIBBLAS" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" if test -z "$BLASPATH" ; then BLASLIB="-lblas" else BLASLIB="$BLASPATH -lblas" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daxpy in -lblas" >&5 $as_echo_n "checking for daxpy in -lblas... " >&6; } if ${ac_cv_lib_blas_daxpy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $FLIBS $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 daxpy (); int main () { return daxpy (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_blas_daxpy=yes else ac_cv_lib_blas_daxpy=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_blas_daxpy" >&5 $as_echo "$ac_cv_lib_blas_daxpy" >&6; } if test "x$ac_cv_lib_blas_daxpy" = xyes; then : CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -DUSE_LIBBLAS" CXXFFLAGS="" if test -z "$BLASPATH" ; then BLASLIB="-lblas" else BLASLIB="$BLASPATH -lblas" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAXPY in -lblas" >&5 $as_echo_n "checking for DAXPY in -lblas... " >&6; } if ${ac_cv_lib_blas_DAXPY+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $FLIBS $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 DAXPY (); int main () { return DAXPY (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_blas_DAXPY=yes else ac_cv_lib_blas_DAXPY=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_blas_DAXPY" >&5 $as_echo "$ac_cv_lib_blas_DAXPY" >&6; } if test "x$ac_cv_lib_blas_DAXPY" = xyes; then : CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -DUSE_LIBBLAS" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_CAPS" if test -z "$BLASPATH" ; then BLASLIB="-lblas" else BLASLIB="$BLASPATH -lblas" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daxpy__ in -lblas" >&5 $as_echo_n "checking for daxpy__ in -lblas... " >&6; } if ${ac_cv_lib_blas_daxpy__+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $FLIBS $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 daxpy__ (); int main () { return daxpy__ (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_blas_daxpy__=yes else ac_cv_lib_blas_daxpy__=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_blas_daxpy__" >&5 $as_echo "$ac_cv_lib_blas_daxpy__" >&6; } if test "x$ac_cv_lib_blas_daxpy__" = xyes; then : CXX_OPTIMIZE_FLAGS="$CXX_OPTIMIZE_FLAGS -DUSE_LIBBLAS" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES" if test -z "$BLASPATH" ; then BLASLIB="-lblas" else BLASLIB="$BLASPATH -lblas" fi fi LDFLAGS=$LDFLAGSsave # Check if the script was called with --enable-optimize or # --enable-debug, and if so modify the compilation flags. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable $CXX optimization flags" >&5 $as_echo_n "checking whether to enable $CXX optimization flags... " >&6; } # Check whether --enable-optimize was given. if test "${enable_optimize+set}" = set; then : enableval=$enable_optimize; if test "$enableval" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CXXFLAGS="$CXXFLAGS $CXX_OPTIMIZE_FLAGS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable $CXX debug flags" >&5 $as_echo_n "checking whether to enable $CXX debug flags... " >&6; } # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; if test "$enableval" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CXXFLAGS="$CXXFLAGS $CXX_DEBUG_FLAGS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Option to enable thread-safety (requires thread support or OpenMP) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Blitz thread-safety features" >&5 $as_echo_n "checking whether to enable Blitz thread-safety features... " >&6; } # Check whether --enable-threadsafe was given. if test "${enable_threadsafe+set}" = set; then : enableval=$enable_threadsafe; else enable_threadsafe="no" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_threadsafe" >&5 $as_echo "$enable_threadsafe" >&6; } if test "$enable_threadsafe" = yes; then $as_echo "#define THREADSAFE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using Intel Threading Building Blocks" >&5 $as_echo_n "checking if we are using Intel Threading Building Blocks... " >&6; } # Check whether --with-tbb was given. if test "${with_tbb+set}" = set; then : withval=$with_tbb; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } for ac_header in tbb/atomic.h do : ac_fn_cxx_check_header_mongrel "$LINENO" "tbb/atomic.h" "ac_cv_header_tbb_atomic_h" "$ac_includes_default" if test "x$ac_cv_header_tbb_atomic_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TBB_ATOMIC_H 1 _ACEOF else as_fn_error $? "tbb/atomic.h not found" "$LINENO" 5 fi done $as_echo "#define THREADSAFE_USE_TBB 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIMD instruction width" >&5 $as_echo_n "checking for SIMD instruction width... " >&6; } # Check whether --enable-simd-width was given. if test "${enable_simd_width+set}" = set; then : enableval=$enable_simd_width; { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports structure alignment hints" >&5 $as_echo_n "checking whether the compiler supports structure alignment hints... " >&6; } if ${ac_cv_alignment_directive+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { __declspec(align(16)) int var; var=0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_alignment_directive="__declspec(align(alignment)) vartype varname;" else ac_cv_alignment_directive="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #echo intel test got $ac_cv_alignment_directive if test "$ac_cv_alignment_directive" == "no"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int __attribute__ ((aligned (16))) var;var=0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_alignment_directive="vartype __attribute__ ((aligned (alignment))) varname;" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #echo gcc test got $ac_cv_alignment_directive 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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignment_directive" >&5 $as_echo "$ac_cv_alignment_directive" >&6; } if test "$ac_cv_alignment_directive" == "no"; then align_variable_macro="vartype varname;" else align_variable_macro="$ac_cv_alignment_directive" fi cat >>confdefs.h <<_ACEOF #define ALIGN_VARIABLE(vartype,varname,alignment) $align_variable_macro _ACEOF $as_echo "#define USE_ALIGNMENT_PRAGMAS 1" >>confdefs.h else enable_simd_width=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_simd_width" >&5 $as_echo "$enable_simd_width" >&6; } if test "$enable_simd_width" == no ; then enable_simd_width=1 # if not set, also define ALIGN_VARIABLE to just declare a variable $as_echo "#define ALIGN_VARIABLE(vartype,varname,alignment) vartype varname;" >>confdefs.h fi cat >>confdefs.h <<_ACEOF #define SIMD_WIDTH $enable_simd_width _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to pad array lengths to SIMD instruction width" >&5 $as_echo_n "checking whether to pad array lengths to SIMD instruction width... " >&6; } # Check whether --enable-array-length-padding was given. if test "${enable_array_length_padding+set}" = set; then : enableval=$enable_array_length_padding; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$enable_simd_width" == 1 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This option is useless without a SIMD width >1." >&5 $as_echo "$as_me: WARNING: This option is useless without a SIMD width >1." >&2;} fi $as_echo "#define PAD_ARRAYS 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Blitz 64-bit dimensions" >&5 $as_echo_n "checking whether to enable Blitz 64-bit dimensions... " >&6; } # Check whether --enable-64-bit-dimensions was given. if test "${enable_64_bit_dimensions+set}" = set; then : enableval=$enable_64_bit_dimensions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dimensions with > 2^31 elements are not yet implemented" >&5 $as_echo "$as_me: WARNING: Dimensions with > 2^31 elements are not yet implemented" >&2;} $as_echo "#define FULLY64BIT 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable serialization support" >&5 $as_echo_n "checking whether to enable serialization support... " >&6; } # Check whether --enable-serialization was given. if test "${enable_serialization+set}" = set; then : enableval=$enable_serialization; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # Check whether --with-boost was given. if test "${with_boost+set}" = set; then : withval=$with_boost; if test "$withval" = "no"; then want_boost="no" elif test "$withval" = "yes"; then want_boost="yes" ac_boost_path="" else want_boost="yes" ac_boost_path="$withval" fi else want_boost="yes" fi # Check whether --with-boost-libdir was given. if test "${with_boost_libdir+set}" = set; then : withval=$with_boost_libdir; if test -d "$withval" then ac_boost_lib_path="$withval" else as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5 fi else ac_boost_lib_path="" fi if test "x$want_boost" = "xyes"; then boost_lib_version_req=1.40.0 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'` boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'` boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'` boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` if test "x$boost_lib_version_req_sub_minor" = "x" ; then boost_lib_version_req_sub_minor="0" fi WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; } succeeded=no libsubdirs="lib" ax_arch=`uname -m` if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then libsubdirs="lib64 lib lib64" fi if test "$ac_boost_path" != ""; then BOOST_CPPFLAGS="-I$ac_boost_path/include" for ac_boost_path_tmp in $libsubdirs; do if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" break fi done elif test "$cross_compiling" != yes; then for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then for libsubdir in $libsubdirs ; do if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi done BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" break; fi done fi if test "$ac_boost_lib_path" != ""; then BOOST_LDFLAGS="-L$ac_boost_lib_path" fi CPPFLAGS_SAVED="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" export CPPFLAGS LDFLAGS_SAVED="$LDFLAGS" LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" export LDFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if BOOST_VERSION >= $WANT_BOOST_VERSION // Everything is okay #else # error Boost version is too old #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } succeeded=yes found_system=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "x$succeeded" != "xyes"; then _version=0 if test "$ac_boost_path" != ""; then if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` V_CHECK=`expr $_version_tmp \> $_version` if test "$V_CHECK" = "1" ; then _version=$_version_tmp fi VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" done fi else if test "$cross_compiling" != yes; then for ac_boost_path in /usr /usr/local /opt /opt/local ; do if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` V_CHECK=`expr $_version_tmp \> $_version` if test "$V_CHECK" = "1" ; then _version=$_version_tmp best_path=$ac_boost_path fi done fi done VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" if test "$ac_boost_lib_path" = ""; then for libsubdir in $libsubdirs ; do if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi done BOOST_LDFLAGS="-L$best_path/$libsubdir" fi fi if test "x$BOOST_ROOT" != "x"; then for libsubdir in $libsubdirs ; do if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi done if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` V_CHECK=`expr $stage_version_shorten \>\= $_version` if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;} BOOST_CPPFLAGS="-I$BOOST_ROOT" BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" fi fi fi fi CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" export CPPFLAGS LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" export LDFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if BOOST_VERSION >= $WANT_BOOST_VERSION // Everything is okay #else # error Boost version is too old #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } succeeded=yes found_system=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "$succeeded" != "yes" ; then if test "$_version" = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation." >&5 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation." >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;} fi # execute ACTION-IF-NOT-FOUND (if present): : else $as_echo "#define HAVE_BOOST /**/" >>confdefs.h # execute ACTION-IF-FOUND (if present): : fi CPPFLAGS="$CPPFLAGS_SAVED" LDFLAGS="$LDFLAGS_SAVED" fi # Check whether --with-boost-serialization was given. if test "${with_boost_serialization+set}" = set; then : withval=$with_boost_serialization; if test "$withval" = "no"; then want_boost="no" elif test "$withval" = "yes"; then want_boost="yes" ax_boost_user_serialization_lib="" else want_boost="yes" ax_boost_user_serialization_lib="$withval" fi else want_boost="yes" fi if test "x$want_boost" = "xyes"; then CPPFLAGS_SAVED="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BOOST_CPPFLAGS $BOOST_CPPFLAGS" >&5 $as_echo "$as_me: WARNING: BOOST_CPPFLAGS $BOOST_CPPFLAGS" >&2;} export CPPFLAGS LDFLAGS_SAVED="$LDFLAGS" LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" export LDFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Serialization library is available" >&5 $as_echo_n "checking whether the Boost::Serialization library is available... " >&6; } if ${ax_cv_boost_serialization+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { std::ofstream ofs("filename"); boost::archive::text_oarchive oa(ofs); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ax_cv_boost_serialization=yes else ax_cv_boost_serialization=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_serialization" >&5 $as_echo "$ax_cv_boost_serialization" >&6; } if test "x$ax_cv_boost_serialization" = "xyes"; then $as_echo "#define HAVE_BOOST_SERIALIZATION /**/" >>confdefs.h BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` if test "x$ax_boost_user_serialization_lib" = "x"; then for libextension in `ls $BOOSTLIBDIR/libboost_serialization*.so* $BOOSTLIBDIR/libboost_serialization*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_serialization.*\)\.so.*$;\1;' -e 's;^lib\(boost_serialization.*\)\.a*$;\1;'` ; do ax_lib=${libextension} as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 $as_echo_n "checking for main in -l$ax_lib... " >&6; } if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-l$ax_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" else eval "$as_ac_Lib=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break else link_serialization="no" fi done if test "x$link_serialization" != "xyes"; then for libextension in `ls $BOOSTLIBDIR/boost_serialization*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_serialization.*\)\.dll.*$;\1;' -e 's;^\(boost_serialization.*\)\.a*$;\1;'` ; do ax_lib=${libextension} as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 $as_echo_n "checking for main in -l$ax_lib... " >&6; } if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-l$ax_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" else eval "$as_ac_Lib=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break else link_serialization="no" fi done fi else for ax_lib in $ax_boost_user_serialization_lib boost_serialization-$ax_boost_user_serialization_lib; do as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 $as_echo_n "checking for main in -l$ax_lib... " >&6; } if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-l$ax_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" else eval "$as_ac_Lib=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : BOOST_SERIALIZATION_LIB="-l$ax_lib"; link_serialization="yes"; break else link_serialization="no" fi done fi if test "x$ax_lib" = "x"; then as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 fi if test "x$link_serialization" != "xyes"; then as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 fi fi CPPFLAGS="$CPPFLAGS_SAVED" LDFLAGS="$LDFLAGS_SAVED" fi for ac_header in boost/mpi.hpp do : ac_fn_cxx_check_header_mongrel "$LINENO" "boost/mpi.hpp" "ac_cv_header_boost_mpi_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_mpi_hpp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BOOST_MPI_HPP 1 _ACEOF fi done else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # check for PAPI library { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpapi" >&5 $as_echo_n "checking for main in -lpapi... " >&6; } if ${ac_cv_lib_papi_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_papi_main=yes else ac_cv_lib_papi_main=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_papi_main" >&5 $as_echo "$ac_cv_lib_papi_main" >&6; } if test "x$ac_cv_lib_papi_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPAPI 1 _ACEOF LIBS="-lpapi $LIBS" fi # autoconf replacement of bzconfig { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler ($CXX $CXXFLAGS $LDFLAGS) characteristics " >&5 $as_echo "$as_me: C++ compiler ($CXX $CXXFLAGS $LDFLAGS) characteristics " >&6;} OS=`uname -a` DATE=`date` cat >>confdefs.h <<_ACEOF #define _compiler_name "$CXX" _ACEOF cat >>confdefs.h <<_ACEOF #define _compiler_options "$CXXFLAGS" _ACEOF cat >>confdefs.h <<_ACEOF #define _os_name "$OS" _ACEOF cat >>confdefs.h <<_ACEOF #define _config_date "$DATE" _ACEOF cat >>confdefs.h <<_ACEOF #define _platform "$target" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: Checking major C++ language features " >&5 $as_echo "$as_me: Checking major C++ language features " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 $as_echo_n "checking whether the compiler implements namespaces... " >&6; } if ${ac_cv_cxx_namespaces+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace Outer { namespace Inner { int i = 0; }} int main () { using namespace Outer::Inner; return i; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_namespaces=yes else ac_cv_cxx_namespaces=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 $as_echo "$ac_cv_cxx_namespaces" >&6; } if test "$ac_cv_cxx_namespaces" = yes; then $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5 $as_echo_n "checking whether the compiler supports exceptions... " >&6; } if ${ac_cv_cxx_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { try { throw 1; } catch (int i) { return i; } ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_exceptions=yes else ac_cv_cxx_exceptions=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5 $as_echo "$ac_cv_cxx_exceptions" >&6; } if test "$ac_cv_cxx_exceptions" = yes; then $as_echo "#define HAVE_EXCEPTIONS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Run-Time Type Identification" >&5 $as_echo_n "checking whether the compiler supports Run-Time Type Identification... " >&6; } if ${ac_cv_cxx_rtti+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include class Base { public : Base () {} virtual int f () { return 0; } }; class Derived : public Base { public : Derived () {} virtual int f () { return 1; } }; int main () { Derived d; Base *ptr = &d; return typeid (*ptr) == typeid (Derived); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_rtti=yes else ac_cv_cxx_rtti=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_rtti" >&5 $as_echo "$ac_cv_cxx_rtti" >&6; } if test "$ac_cv_cxx_rtti" = yes; then $as_echo "#define HAVE_RTTI /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports member constants" >&5 $as_echo_n "checking whether the compiler supports member constants... " >&6; } if ${ac_cv_cxx_member_constants+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class C {public: static const int i = 0;}; const int C::i; int main () { return C::i; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_member_constants=yes else ac_cv_cxx_member_constants=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_member_constants" >&5 $as_echo "$ac_cv_cxx_member_constants" >&6; } if test "$ac_cv_cxx_member_constants" = yes; then $as_echo "#define HAVE_MEMBER_CONSTANTS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts the old for scoping rules" >&5 $as_echo_n "checking whether the compiler accepts the old for scoping rules... " >&6; } if ${ac_cv_cxx_old_for_scoping+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int z;for (int i=0; i < 10; ++i)z=z+i;z=i;return z; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_old_for_scoping=yes else ac_cv_cxx_old_for_scoping=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_old_for_scoping" >&5 $as_echo "$ac_cv_cxx_old_for_scoping" >&6; } if test "$ac_cv_cxx_old_for_scoping" = yes; then $as_echo "#define HAVE_OLD_FOR_SCOPING /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: Now for some of the new keywords " >&5 $as_echo "$as_me: Now for some of the new keywords " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the explicit keyword" >&5 $as_echo_n "checking whether the compiler supports the explicit keyword... " >&6; } if ${ac_cv_cxx_explicit+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class A{public:explicit A(double){}}; int main () { double c = 5.0;A x(c);return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_explicit=yes else ac_cv_cxx_explicit=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_explicit" >&5 $as_echo "$ac_cv_cxx_explicit" >&6; } if test "$ac_cv_cxx_explicit" = yes; then $as_echo "#define HAVE_EXPLICIT /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the mutable keyword" >&5 $as_echo_n "checking whether the compiler supports the mutable keyword... " >&6; } if ${ac_cv_cxx_mutable+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class A { mutable int i; public: int f (int n) const { i = n; return i; } }; int main () { A a; return a.f (1); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_mutable=yes else ac_cv_cxx_mutable=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_mutable" >&5 $as_echo "$ac_cv_cxx_mutable" >&6; } if test "$ac_cv_cxx_mutable" = yes; then $as_echo "#define HAVE_MUTABLE /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes typename" >&5 $as_echo_n "checking whether the compiler recognizes typename... " >&6; } if ${ac_cv_cxx_typename+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ templateclass X {public:X(){}}; int main () { X z; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_typename=yes else ac_cv_cxx_typename=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_typename" >&5 $as_echo "$ac_cv_cxx_typename" >&6; } if test "$ac_cv_cxx_typename" = yes; then $as_echo "#define HAVE_TYPENAME /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the Numerical C Extensions Group restrict keyword" >&5 $as_echo_n "checking whether the compiler supports the Numerical C Extensions Group restrict keyword... " >&6; } if ${ac_cv_cxx_nceg_restrict+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void add(int length, double * restrict a, const double * restrict b, const double * restrict c) { for (int i=0; i < length; ++i) a[i] = b[i] + c[i]; } int main () { double a[10], b[10], c[10]; for (int i=0; i < 10; ++i) { a[i] = 0.0; b[i] = 0.0; c[i] = 0.0; } add(10,a,b,c); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_nceg_restrict=yes else ac_cv_cxx_nceg_restrict=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_nceg_restrict" >&5 $as_echo "$ac_cv_cxx_nceg_restrict" >&6; } if test "$ac_cv_cxx_nceg_restrict" = yes; then $as_echo "#define HAVE_NCEG_RESTRICT /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes the '__restrict__' keyword" >&5 $as_echo_n "checking whether the compiler recognizes the '__restrict__' keyword... " >&6; } if ${ac_cv_cxx_nceg_restrict_egcs+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void add(int length, double * __restrict__ a, const double * __restrict__ b, const double * __restrict__ c) { for (int i=0; i < length; ++i) a[i] = b[i] + c[i]; } int main () { double a[10], b[10], c[10]; for (int i=0; i < 10; ++i) { a[i] = 0.0; b[i] = 0.0; c[i] = 0.0; } add(10,a,b,c); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_nceg_restrict_egcs=yes else ac_cv_cxx_nceg_restrict_egcs=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_nceg_restrict_egcs" >&5 $as_echo "$ac_cv_cxx_nceg_restrict_egcs" >&6; } if test "$ac_cv_cxx_nceg_restrict_egcs" = yes; then $as_echo "#define HAVE_NCEG_RESTRICT_EGCS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } if ${ac_cv_cxx_bool+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int x){return 1;} int f(char x){return 1;} int f(bool x){return 1;} int main () { bool b = true; return f(b); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_bool=yes else ac_cv_cxx_bool=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5 $as_echo "$ac_cv_cxx_bool" >&6; } if test "$ac_cv_cxx_bool" = yes; then $as_echo "#define HAVE_BOOL /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: Does your compiler understand the newfangled casting syntax? " >&5 $as_echo "$as_me: Does your compiler understand the newfangled casting syntax? " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports const_cast<>" >&5 $as_echo_n "checking whether the compiler supports const_cast<>... " >&6; } if ${ac_cv_cxx_const_cast+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int x = 0;const int& y = x;int& z = const_cast(y);return z; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_const_cast=yes else ac_cv_cxx_const_cast=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_const_cast" >&5 $as_echo "$ac_cv_cxx_const_cast" >&6; } if test "$ac_cv_cxx_const_cast" = yes; then $as_echo "#define HAVE_CONST_CAST /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_cast<>" >&5 $as_echo_n "checking whether the compiler supports static_cast<>... " >&6; } if ${ac_cv_cxx_static_cast+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include class Base { public : Base () {} virtual void f () = 0; }; class Derived : public Base { public : Derived () {} virtual void f () {} }; int g (Derived&) { return 0; } int main () { Derived d; Base& b = d; Derived& s = static_cast (b); return g (s); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_static_cast=yes else ac_cv_cxx_static_cast=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_cast" >&5 $as_echo "$ac_cv_cxx_static_cast" >&6; } if test "$ac_cv_cxx_static_cast" = yes; then $as_echo "#define HAVE_STATIC_CAST /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports reinterpret_cast<>" >&5 $as_echo_n "checking whether the compiler supports reinterpret_cast<>... " >&6; } if ${ac_cv_cxx_reinterpret_cast+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include class Base { public : Base () {} virtual void f () = 0;}; class Derived : public Base { public : Derived () {} virtual void f () {} }; class Unrelated { public : Unrelated () {} }; int g (Unrelated&) { return 0; } int main () { Derived d;Base& b=d;Unrelated& e=reinterpret_cast(b);return g(e); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_reinterpret_cast=yes else ac_cv_cxx_reinterpret_cast=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_reinterpret_cast" >&5 $as_echo "$ac_cv_cxx_reinterpret_cast" >&6; } if test "$ac_cv_cxx_reinterpret_cast" = yes; then $as_echo "#define HAVE_REINTERPRET_CAST /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports dynamic_cast<>" >&5 $as_echo_n "checking whether the compiler supports dynamic_cast<>... " >&6; } if ${ac_cv_cxx_dynamic_cast+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include class Base { public : Base () {} virtual void f () = 0;}; class Derived : public Base { public : Derived () {} virtual void f () {} }; int main () { Derived d; Base& b=d; return dynamic_cast(&b) ? 0 : 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_dynamic_cast=yes else ac_cv_cxx_dynamic_cast=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_dynamic_cast" >&5 $as_echo "$ac_cv_cxx_dynamic_cast" >&6; } if test "$ac_cv_cxx_dynamic_cast" = yes; then $as_echo "#define HAVE_DYNAMIC_CAST /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: Okay, now the important stuff -- templates " >&5 $as_echo "$as_me: Okay, now the important stuff -- templates " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports basic templates" >&5 $as_echo_n "checking whether the compiler supports basic templates... " >&6; } if ${ac_cv_cxx_templates+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A {public:A(){}}; template void f(const A& ){} int main () { A d; A i; f(d); f(i); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_templates=yes else ac_cv_cxx_templates=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_templates" >&5 $as_echo "$ac_cv_cxx_templates" >&6; } if test "$ac_cv_cxx_templates" = yes; then $as_echo "#define HAVE_TEMPLATES /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports partial specialization" >&5 $as_echo_n "checking whether the compiler supports partial specialization... " >&6; } if ${ac_cv_cxx_partial_specialization+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A { public : enum e { z = 0 }; }; template class A { public : enum e { z = 1 }; }; template class A { public : enum e { z = 2 }; }; int main () { return (A::z == 0) && (A::z == 1) && (A::z == 2); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_partial_specialization=yes else ac_cv_cxx_partial_specialization=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_partial_specialization" >&5 $as_echo "$ac_cv_cxx_partial_specialization" >&6; } if test "$ac_cv_cxx_partial_specialization" = yes; then $as_echo "#define HAVE_PARTIAL_SPECIALIZATION /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports partial ordering" >&5 $as_echo_n "checking whether the compiler supports partial ordering... " >&6; } if ${ac_cv_cxx_partial_ordering+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct I {}; template struct A { int r; template int operator() (T1, T2) { r = 0; return r; } template int operator() (I, I) { r = 1; return r; } }; int main () { A x, y; I<0> a; I<1> b; return x (a,b) + y (float(), double()); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_partial_ordering=yes else ac_cv_cxx_partial_ordering=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_partial_ordering" >&5 $as_echo "$ac_cv_cxx_partial_ordering" >&6; } if test "$ac_cv_cxx_partial_ordering" = yes; then $as_echo "#define HAVE_PARTIAL_ORDERING /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports default template parameters" >&5 $as_echo_n "checking whether the compiler supports default template parameters... " >&6; } if ${ac_cv_cxx_default_template_parameters+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A {public: int f() {return 0;}}; int main () { A a; return a.f(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_default_template_parameters=yes else ac_cv_cxx_default_template_parameters=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_default_template_parameters" >&5 $as_echo "$ac_cv_cxx_default_template_parameters" >&6; } if test "$ac_cv_cxx_default_template_parameters" = yes; then $as_echo "#define HAVE_DEFAULT_TEMPLATE_PARAMETERS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports member templates" >&5 $as_echo_n "checking whether the compiler supports member templates... " >&6; } if ${ac_cv_cxx_member_templates+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A { public: template A operator=(const A& z) { return A(); } }; int main () { A x; A y; x = y; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_member_templates=yes else ac_cv_cxx_member_templates=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_member_templates" >&5 $as_echo "$ac_cv_cxx_member_templates" >&6; } if test "$ac_cv_cxx_member_templates" = yes; then $as_echo "#define HAVE_MEMBER_TEMPLATES /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports member templates outside the class declaration" >&5 $as_echo_n "checking whether the compiler supports member templates outside the class declaration... " >&6; } if ${ac_cv_cxx_member_templates_outside_class+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A { public : template A operator=(const A& z); }; template template A A::operator=(const A& z){ return A(); } int main () { A x; A y; x = y; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_member_templates_outside_class=yes else ac_cv_cxx_member_templates_outside_class=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_member_templates_outside_class" >&5 $as_echo "$ac_cv_cxx_member_templates_outside_class" >&6; } if test "$ac_cv_cxx_member_templates_outside_class" = yes; then $as_echo "#define HAVE_MEMBER_TEMPLATES_OUTSIDE_CLASS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes the full specialization syntax" >&5 $as_echo_n "checking whether the compiler recognizes the full specialization syntax... " >&6; } if ${ac_cv_cxx_full_specialization_syntax+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A { public : int f () const { return 1; } }; template<> class A { public: int f () const { return 0; } }; int main () { A a; return a.f(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_full_specialization_syntax=yes else ac_cv_cxx_full_specialization_syntax=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_full_specialization_syntax" >&5 $as_echo "$ac_cv_cxx_full_specialization_syntax" >&6; } if test "$ac_cv_cxx_full_specialization_syntax" = yes; then $as_echo "#define HAVE_FULL_SPECIALIZATION_SYNTAX /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function templates with non-type parameters" >&5 $as_echo_n "checking whether the compiler supports function templates with non-type parameters... " >&6; } if ${ac_cv_cxx_function_nontype_parameters+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A {}; template int f(const A& x) { return 0; } int main () { A z; return f(z); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_function_nontype_parameters=yes else ac_cv_cxx_function_nontype_parameters=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_function_nontype_parameters" >&5 $as_echo "$ac_cv_cxx_function_nontype_parameters" >&6; } if test "$ac_cv_cxx_function_nontype_parameters" = yes; then $as_echo "#define HAVE_FUNCTION_NONTYPE_PARAMETERS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports template-qualified base class specifiers" >&5 $as_echo_n "checking whether the compiler supports template-qualified base class specifiers... " >&6; } if ${ac_cv_cxx_template_qualified_base_class+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_TYPENAME #define typename #endif class Base1 { public : int f () const { return 1; } }; class Base2 { public : int f () const { return 0; } }; template struct base_trait { typedef Base1 base; }; #ifdef HAVE_FULL_SPECIALIZATION_SYNTAX template<> struct base_trait { typedef Base2 base; }; #else struct base_trait { typedef Base2 base; }; #endif template class Weird : public base_trait::base { public : typedef typename base_trait::base base; int g () const { return base::f (); } }; int main () { Weird z; return z.g (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_template_qualified_base_class=yes else ac_cv_cxx_template_qualified_base_class=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_qualified_base_class" >&5 $as_echo "$ac_cv_cxx_template_qualified_base_class" >&6; } if test "$ac_cv_cxx_template_qualified_base_class" = yes; then $as_echo "#define HAVE_TEMPLATE_QUALIFIED_BASE_CLASS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports template-qualified return types" >&5 $as_echo_n "checking whether the compiler supports template-qualified return types... " >&6; } if ${ac_cv_cxx_template_qualified_return_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_TYPENAME #define typename #endif template struct promote_trait { typedef X T; }; template<> struct promote_trait { typedef float T; }; template class A { public : A () {} }; template A::T> operator+ (const A&, const A&) { return A::T>(); } int main () { A x; A y; A z = x + y; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_template_qualified_return_type=yes else ac_cv_cxx_template_qualified_return_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_qualified_return_type" >&5 $as_echo "$ac_cv_cxx_template_qualified_return_type" >&6; } if test "$ac_cv_cxx_template_qualified_return_type" = yes; then $as_echo "#define HAVE_TEMPLATE_QUALIFIED_RETURN_TYPE /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports explicit template function qualification" >&5 $as_echo_n "checking whether the compiler supports explicit template function qualification... " >&6; } if ${ac_cv_cxx_explicit_template_function_qualification+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class A { public : A() {} }; template A to (const A&) { return A(); } int main () { A x; A y = to(x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_explicit_template_function_qualification=yes else ac_cv_cxx_explicit_template_function_qualification=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_explicit_template_function_qualification" >&5 $as_echo "$ac_cv_cxx_explicit_template_function_qualification" >&6; } if test "$ac_cv_cxx_explicit_template_function_qualification" = yes; then $as_echo "#define HAVE_EXPLICIT_TEMPLATE_FUNCTION_QUALIFICATION /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports templates as template arguments" >&5 $as_echo_n "checking whether the compiler supports templates as template arguments... " >&6; } if ${ac_cv_cxx_templates_as_template_arguments+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template class allocator { public : allocator() {}; }; template class T_alloc> class A { public : A() {} private : T_alloc alloc_; }; int main () { A x; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_templates_as_template_arguments=yes else ac_cv_cxx_templates_as_template_arguments=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_templates_as_template_arguments" >&5 $as_echo "$ac_cv_cxx_templates_as_template_arguments" >&6; } if test "$ac_cv_cxx_templates_as_template_arguments" = yes; then $as_echo "#define HAVE_TEMPLATES_AS_TEMPLATE_ARGUMENTS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports use of the template keyword as a qualifier" >&5 $as_echo_n "checking whether the compiler supports use of the template keyword as a qualifier... " >&6; } if ${ac_cv_cxx_template_keyword_qualifier+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class X { public: template void member() {} template static void static_member() {} }; template void f(T* p) { p->template member<200>(); // OK: < starts template argument T::template static_member<100>(); // OK: < starts explicit qualification } int main () { X x; f(&x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_template_keyword_qualifier=yes else ac_cv_cxx_template_keyword_qualifier=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_keyword_qualifier" >&5 $as_echo "$ac_cv_cxx_template_keyword_qualifier" >&6; } if test "$ac_cv_cxx_template_keyword_qualifier" = yes; then $as_echo "#define HAVE_TEMPLATE_KEYWORD_QUALIFIER /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function matching with argument types which are template scope-qualified" >&5 $as_echo_n "checking whether the compiler supports function matching with argument types which are template scope-qualified... " >&6; } if ${ac_cv_cxx_template_scoped_argument_matching+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_TYPENAME #define typename #endif template class A { public : typedef X W; }; template class B {}; template void operator+(B d1, typename Y::W d2) {} int main () { B > z; z + 0.5f; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_template_scoped_argument_matching=yes else ac_cv_cxx_template_scoped_argument_matching=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_template_scoped_argument_matching" >&5 $as_echo "$ac_cv_cxx_template_scoped_argument_matching" >&6; } if test "$ac_cv_cxx_template_scoped_argument_matching" = yes; then $as_echo "#define HAVE_TEMPLATE_SCOPED_ARGUMENT_MATCHING /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler will support the vector type promotion mechanism" >&5 $as_echo_n "checking whether the compiler will support the vector type promotion mechanism... " >&6; } if ${ac_cv_cxx_type_promotion+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_TYPENAME #define typename #endif template struct vec3 { T data_[3]; }; template struct promote_trait { typedef T1 T_promote; }; template <> struct promote_trait { typedef double T_promote; }; template vec3::T_promote> operator+(const vec3& a, const vec3& b) { vec3::T_promote> c; c.data_[0] = a.data_[0] + b.data_[0]; c.data_[1] = a.data_[1] + b.data_[1]; c.data_[2] = a.data_[2] + b.data_[2]; return c; } int main () { vec3 a,b; vec3 c,d,e; b=a+a; d=c+c; e=b+d; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_type_promotion=yes else ac_cv_cxx_type_promotion=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_type_promotion" >&5 $as_echo "$ac_cv_cxx_type_promotion" >&6; } if test "$ac_cv_cxx_type_promotion" = yes; then $as_echo "#define HAVE_TYPE_PROMOTION /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports numeric traits promotions" >&5 $as_echo_n "checking whether the compiler supports numeric traits promotions... " >&6; } if ${ac_cv_cxx_use_numtrait+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_TYPENAME #define typename #endif template class SumType { public : typedef T_numtype T_sumtype; }; template<> class SumType { public : typedef int T_sumtype; }; template class A {}; template A::T_sumtype> sum(A) { return A::T_sumtype>(); } int main () { A x; sum(x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_use_numtrait=yes else ac_cv_cxx_use_numtrait=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_use_numtrait" >&5 $as_echo "$ac_cv_cxx_use_numtrait" >&6; } if test "$ac_cv_cxx_use_numtrait" = yes; then $as_echo "#define HAVE_USE_NUMTRAIT /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler handle computations inside an enum" >&5 $as_echo_n "checking whether the compiler handle computations inside an enum... " >&6; } if ${ac_cv_cxx_enum_computations+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct A { enum { a = 5, b = 7, c = 2 }; }; struct B { enum { a = 1, b = 6, c = 9 }; }; template struct Z { enum { a = (T1::a > T2::a) ? T1::a : T2::b, b = T1::b + T2::b, c = (T1::c * T2::c + T2::a + T1::a) }; }; int main () { return (((int)Z::a == 5) && ((int)Z::b == 13) && ((int)Z::c == 24)) ? 0 : 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_enum_computations=yes else ac_cv_cxx_enum_computations=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_enum_computations" >&5 $as_echo "$ac_cv_cxx_enum_computations" >&6; } if test "$ac_cv_cxx_enum_computations" = yes; then $as_echo "#define HAVE_ENUM_COMPUTATIONS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler handles (int) casts in enum computations" >&5 $as_echo_n "checking whether the compiler handles (int) casts in enum computations... " >&6; } if ${ac_cv_cxx_enum_computations_with_cast+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct A { enum { a = 5, b = 7, c = 2 }; }; struct B { enum { a = 1, b = 6, c = 9 }; }; template struct Z { enum { a = ((int)T1::a > (int)T2::a) ? (int)T1::a : (int)T2::b, b = (int)T1::b + (int)T2::b, c = ((int)T1::c * (int)T2::c + (int)T2::a + (int)T1::a) }; }; int main () { return (((int)Z::a == 5) && ((int)Z::b == 13) && ((int)Z::c == 24)) ? 0 : 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_enum_computations_with_cast=yes else ac_cv_cxx_enum_computations_with_cast=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_enum_computations_with_cast" >&5 $as_echo "$ac_cv_cxx_enum_computations_with_cast" >&6; } if test "$ac_cv_cxx_enum_computations_with_cast" = yes; then $as_echo "#define HAVE_ENUM_COMPUTATIONS_WITH_CAST /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: Which library features does your compiler provide? " >&5 $as_echo "$as_me: Which library features does your compiler provide? " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has complex" >&5 $as_echo_n "checking whether the compiler has complex... " >&6; } if ${ac_cv_cxx_have_complex+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { complex a; complex b; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_complex=yes else ac_cv_cxx_have_complex=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_complex" >&5 $as_echo "$ac_cv_cxx_have_complex" >&6; } if test "$ac_cv_cxx_have_complex" = yes; then $as_echo "#define HAVE_COMPLEX /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has standard complex functions" >&5 $as_echo_n "checking whether the compiler has standard complex functions... " >&6; } if ${ac_cv_cxx_have_complex_fcns+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { complex x(1.0, 1.0); real(x); imag(x); abs(x); arg(x); norm(x); conj(x); polar(1.0,1.0); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_complex_fcns=yes else ac_cv_cxx_have_complex_fcns=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_complex_fcns" >&5 $as_echo "$ac_cv_cxx_have_complex_fcns" >&6; } if test "$ac_cv_cxx_have_complex_fcns" = yes; then $as_echo "#define HAVE_COMPLEX_FCNS /**/" >>confdefs.h 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 for ac_header in cstring do : ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default" if test "x$ac_cv_header_cstring" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CSTRING 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has numeric_limits" >&5 $as_echo_n "checking whether the compiler has numeric_limits... " >&6; } if ${ac_cv_cxx_have_numeric_limits+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { double e = numeric_limits::epsilon(); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_numeric_limits=yes else ac_cv_cxx_have_numeric_limits=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_numeric_limits" >&5 $as_echo "$ac_cv_cxx_have_numeric_limits" >&6; } if test "$ac_cv_cxx_have_numeric_limits" = yes; then $as_echo "#define HAVE_NUMERIC_LIMITS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has header" >&5 $as_echo_n "checking whether the compiler has header... " >&6; } if ${ac_cv_cxx_have_climits+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int i = INT_MIN; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_climits=yes else ac_cv_cxx_have_climits=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_climits" >&5 $as_echo "$ac_cv_cxx_have_climits" >&6; } if test "$ac_cv_cxx_have_climits" = yes; then $as_echo "#define HAVE_CLIMITS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has valarray" >&5 $as_echo_n "checking whether the compiler has valarray... " >&6; } if ${ac_cv_cxx_have_valarray+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { valarray x(100); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_valarray=yes else ac_cv_cxx_have_valarray=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_valarray" >&5 $as_echo "$ac_cv_cxx_have_valarray" >&6; } if test "$ac_cv_cxx_have_valarray" = yes; then $as_echo "#define HAVE_VALARRAY /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has complex math functions" >&5 $as_echo_n "checking whether the compiler has complex math functions... " >&6; } if ${ac_cv_cxx_have_complex_math1+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_save_LIBS="$LIBS" LIBS="$LIBS -lm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { complex x(1.0, 1.0), y(1.0, 1.0); cos(x); cosh(x); exp(x); log(x); pow(x,1); pow(x,double(2.0)); pow(x, y); pow(double(2.0), x); sin(x); sinh(x); sqrt(x); tan(x); tanh(x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_cxx_have_complex_math1=yes else ac_cv_cxx_have_complex_math1=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_complex_math1" >&5 $as_echo "$ac_cv_cxx_have_complex_math1" >&6; } if test "$ac_cv_cxx_have_complex_math1" = yes; then $as_echo "#define HAVE_COMPLEX_MATH1 /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has more complex math functions" >&5 $as_echo_n "checking whether the compiler has more complex math functions... " >&6; } if ${ac_cv_cxx_have_complex_math2+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_save_LIBS="$LIBS" LIBS="$LIBS -lm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { complex x(1.0, 1.0), y(1.0, 1.0); acos(x); asin(x); atan(x); atan2(x,y); atan2(x, double(3.0)); atan2(double(3.0), x); log10(x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_cxx_have_complex_math2=yes else ac_cv_cxx_have_complex_math2=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_complex_math2" >&5 $as_echo "$ac_cv_cxx_have_complex_math2" >&6; } if test "$ac_cv_cxx_have_complex_math2" = yes; then $as_echo "#define HAVE_COMPLEX_MATH2 /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports IEEE math library" >&5 $as_echo_n "checking whether the compiler supports IEEE math library... " >&6; } if ${ac_cv_cxx_have_ieee_math+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_save_LIBS="$LIBS" LIBS="$LIBS -lm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _ALL_SOURCE #define _ALL_SOURCE #endif #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE #endif #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 #endif #include int main () { double x = 1.0; double y = 1.0; int i = 1; acosh(x); asinh(x); atanh(x); cbrt(x); expm1(x); erf(x); erfc(x); isnan(x); j0(x); j1(x); jn(i,x); ilogb(x); logb(x); log1p(x); rint(x); y0(x); y1(x); yn(i,x); #ifdef _THREAD_SAFE gamma_r(x,&i); lgamma_r(x,&i); #else gamma(x); lgamma(x); #endif hypot(x,y); nextafter(x,y); remainder(x,y); scalb(x,y); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_cxx_have_ieee_math=yes else ac_cv_cxx_have_ieee_math=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_ieee_math" >&5 $as_echo "$ac_cv_cxx_have_ieee_math" >&6; } if test "$ac_cv_cxx_have_ieee_math" = yes; then $as_echo "#define HAVE_IEEE_MATH /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports System V math library" >&5 $as_echo_n "checking whether the compiler supports System V math library... " >&6; } if ${ac_cv_cxx_have_system_v_math+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_save_LIBS="$LIBS" LIBS="$LIBS -lm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _ALL_SOURCE #define _ALL_SOURCE #endif #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE #endif #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 #endif #include int main () { double x = 1.0; double y = 1.0; _class(x); trunc(x); finite(x); itrunc(x); nearest(x); rsqrt(x); uitrunc(x); copysign(x,y); drem(x,y); unordered(x,y); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_cxx_have_system_v_math=yes else ac_cv_cxx_have_system_v_math=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_system_v_math" >&5 $as_echo "$ac_cv_cxx_have_system_v_math" >&6; } if test "$ac_cv_cxx_have_system_v_math" = yes; then $as_echo "#define HAVE_SYSTEM_V_MATH /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has C math functions in namespace std" >&5 $as_echo_n "checking whether the compiler has C math functions in namespace std... " >&6; } if ${ac_cv_cxx_mathfn_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include namespace blitz { double pow(double x, double y){ return std::pow(x,y); } }; int main () { using namespace blitz; double x = 1.0, y = 1.0; blitz::pow(x,y); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_mathfn_std=yes else ac_cv_cxx_mathfn_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_mathfn_std" >&5 $as_echo "$ac_cv_cxx_mathfn_std" >&6; } if test "$ac_cv_cxx_mathfn_std" = yes; then $as_echo "#define MATH_FN_IN_NAMESPACE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has C math abs(integer type) in namespace std" >&5 $as_echo_n "checking whether the compiler has C math abs(integer type) in namespace std... " >&6; } if ${ac_cv_cxx_mathabsint_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int i = std::abs(1); long j = std::labs(1L); long k = std::abs(1L); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_mathabsint_std=yes else ac_cv_cxx_mathabsint_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_mathabsint_std" >&5 $as_echo "$ac_cv_cxx_mathabsint_std" >&6; } if test "$ac_cv_cxx_mathabsint_std" = yes; then $as_echo "#define MATH_ABSINT_IN_NAMESPACE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether complex math functions are in namespace std" >&5 $as_echo_n "checking whether complex math functions are in namespace std... " >&6; } if ${ac_cv_cxx_complex_math_in_namespace_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include namespace S { using namespace std; complex pow(complex x, complex y) { return std::pow(x,y); } }; int main () { using namespace S; complex x = 1.0, y = 1.0; S::pow(x,y); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_complex_math_in_namespace_std=yes else ac_cv_cxx_complex_math_in_namespace_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_complex_math_in_namespace_std" >&5 $as_echo "$ac_cv_cxx_complex_math_in_namespace_std" >&6; } if test "$ac_cv_cxx_complex_math_in_namespace_std" = yes; then $as_echo "#define HAVE_COMPLEX_MATH_IN_NAMESPACE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has isnan function in namespace std" >&5 $as_echo_n "checking whether the compiler has isnan function in namespace std... " >&6; } if ${ac_cv_cxx_isnan_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include namespace blitz { int isnan(float x){ return std::isnan(x); } }; int main () { using namespace blitz; float x = 1.0; blitz::isnan(x); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_isnan_std=yes else ac_cv_cxx_isnan_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_isnan_std" >&5 $as_echo "$ac_cv_cxx_isnan_std" >&6; } if test "$ac_cv_cxx_isnan_std" = yes; then $as_echo "#define ISNAN_IN_NAMESPACE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } if ${ac_cv_cxx_have_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_std=yes else ac_cv_cxx_have_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std" >&5 $as_echo "$ac_cv_cxx_have_std" >&6; } if test "$ac_cv_cxx_have_std" = yes; then $as_echo "#define HAVE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; } if ${ac_cv_cxx_have_stl+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { list x; x.push_back(5); list::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_stl=yes else ac_cv_cxx_have_stl=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5 $as_echo "$ac_cv_cxx_have_stl" >&6; } if test "$ac_cv_cxx_have_stl" = yes; then $as_echo "#define HAVE_STL /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has getrusage() function" >&5 $as_echo_n "checking whether the compiler has getrusage() function... " >&6; } if ${ac_cv_cxx_have_rusage+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct rusage resUsage; getrusage(RUSAGE_SELF, &resUsage); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_have_rusage=yes else ac_cv_cxx_have_rusage=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_rusage" >&5 $as_echo "$ac_cv_cxx_have_rusage" >&6; } if test "$ac_cv_cxx_have_rusage" = yes; then $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h fi # Summarize variables { $as_echo "$as_me:${as_lineno-$LINENO}: CXX = $CXX CXXFLAGS = $CXXFLAGS CXX_OPTIMIZE_FLAGS = $CXX_OPTIMIZE_FLAGS CXX_DEBUG_FLAGS = $CXX_DEBUG_FLAGS CXXFFLAGS = $CXXFFLAGS F77 = $F77 FFLAGS = $FFLAGS F77_OPTIMIZE_FLAGS = $F77_OPTIMIZE_FLAGS FLIBS = $FLIBS FC = $FC FCFLAGS = $FCFLAGS FC_OPTIMIZE_FLAGS = $FC_OPTIMIZE_FLAGS FCLIBS = $FCLIBS BLASLIB = $BLASLIB " >&5 $as_echo "$as_me: CXX = $CXX CXXFLAGS = $CXXFLAGS CXX_OPTIMIZE_FLAGS = $CXX_OPTIMIZE_FLAGS CXX_DEBUG_FLAGS = $CXX_DEBUG_FLAGS CXXFFLAGS = $CXXFFLAGS F77 = $F77 FFLAGS = $FFLAGS F77_OPTIMIZE_FLAGS = $F77_OPTIMIZE_FLAGS FLIBS = $FLIBS FC = $FC FCFLAGS = $FCFLAGS FC_OPTIMIZE_FLAGS = $FC_OPTIMIZE_FLAGS FCLIBS = $FCLIBS BLASLIB = $BLASLIB " >&6;} # Process the Makefile.in's ac_config_files="$ac_config_files Makefile bin/Makefile blitz/Makefile blitz/array/Makefile blitz/generate/Makefile blitz/meta/Makefile random/Makefile lib/Makefile testsuite/Makefile examples/Makefile doc/Makefile doc/examples/Makefile doc/stencils/Makefile doc/doxygen/Makefile doc/doxygen/Doxyfile" # Benchmarks require Fortran compiler if test $enable_fortran = yes; then ac_config_files="$ac_config_files benchmarks/Makefile benchmarks/plot_benchmarks.m" fi # check for valgrind for extra tests # Extract the first word of "valgrind", so it can be a program name with args. set dummy valgrind; 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_valgrind+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$valgrind"; then ac_cv_prog_valgrind="$valgrind" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_valgrind="yes" $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 valgrind=$ac_cv_prog_valgrind if test -n "$valgrind"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind" >&5 $as_echo "$valgrind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x$valgrind = xyes; then HAVE_VALGRIND_TRUE= HAVE_VALGRIND_FALSE='#' else HAVE_VALGRIND_TRUE='#' HAVE_VALGRIND_FALSE= fi # Obsolete makefiles # # demos/Makefile # compiler/Makefile # manual/Makefile # manual/examples/Makefile # manual/stencils/Makefile # src/Makefile # we need the expanded forms... test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 $as_echo_n "checking our pkgconfig libname... " >&6; } test ".$ax_create_pkgconfig_libname" != "." || \ ax_create_pkgconfig_libname="${PACKAGE_NAME}" test ".$ax_create_pkgconfig_libname" != "." || \ ax_create_pkgconfig_libname="$PACKAGE" ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 $as_echo "$ax_create_pkgconfig_libname" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 $as_echo_n "checking our pkgconfig version... " >&6; } test ".$ax_create_pkgconfig_version" != "." || \ ax_create_pkgconfig_version="${PACKAGE_VERSION}" test ".$ax_create_pkgconfig_version" != "." || \ ax_create_pkgconfig_version="$VERSION" ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 $as_echo "$ax_create_pkgconfig_version" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 $as_echo_n "checking our pkgconfig_libdir... " >&6; } test ".$pkgconfig_libdir" = "." && \ pkgconfig_libdir='${libdir}/pkgconfig' ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 $as_echo "$pkgconfig_libdir" >&6; } test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 $as_echo_n "checking our pkgconfig_libfile... " >&6; } test ".$pkgconfig_libfile" != "." || \ pkgconfig_libfile="$ax_create_pkgconfig_libname.pc" ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 $as_echo "$pkgconfig_libfile" >&6; } test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 $as_echo_n "checking our pkgconfig description... " >&6; } ax_create_pkgconfig_description="$PACKAGE_SUMMARY" test ".$ax_create_pkgconfig_description" != "." || \ ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 $as_echo "$ax_create_pkgconfig_description" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 $as_echo_n "checking our pkgconfig requires... " >&6; } ax_create_pkgconfig_requires="$PACKAGE_REQUIRES" ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 $as_echo "$ax_create_pkgconfig_requires" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 $as_echo_n "checking our pkgconfig ext libs... " >&6; } ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS" ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 $as_echo "$ax_create_pkgconfig_libs" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 $as_echo_n "checking our pkgconfig cppflags... " >&6; } ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS" ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 $as_echo "$ax_create_pkgconfig_cppflags" >&6; } test ".$ax_create_pkgconfig_generate" != "." || \ ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc" ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) if test ".$ax_create_pkgconfig_src_libdir" = "." ; then ax_create_pkgconfig_src_libdir=`pwd` ax_create_pkgconfig_src_libdir=`echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | sed 's/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` test ! -d $ax_create_pkgconfig_src_libdir/src || \ ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" case ".$objdir" in *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } fi if test ".$ax_create_pkgconfig_src_headers" = "." ; then ax_create_pkgconfig_src_headers=`pwd` v="$ac_top_srcdir" ; test ".$v" != "." || v="$ax_spec_dir" test ".$v" != "." || v="$srcdir" case "$v" in /*) PKG_CONFIG_src_headers="" ;; esac ax_create_pkgconfig_src_headers=`echo X"$ax_create_pkgconfig_src_headers/$v/x" | sed 's/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g s/\/[^\/:][^\/:]*\/..\//\//g /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` test ! -d $ax_create_pkgconfig_src_headers/include || \ ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } fi ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs 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 "${FORTRAN_ENABLED_TRUE}" && test -z "${FORTRAN_ENABLED_FALSE}"; then as_fn_error $? "conditional \"FORTRAN_ENABLED\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${F90_COMPILER_TRUE}" && test -z "${F90_COMPILER_FALSE}"; then as_fn_error $? "conditional \"F90_COMPILER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAKEINFO_DOC_TRUE}" && test -z "${MAKEINFO_DOC_FALSE}"; then as_fn_error $? "conditional \"MAKEINFO_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TEXI2HTML_DOC_TRUE}" && test -z "${TEXI2HTML_DOC_FALSE}"; then as_fn_error $? "conditional \"TEXI2HTML_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DOXYGEN_DOC_TRUE}" && test -z "${DOXYGEN_DOC_FALSE}"; then as_fn_error $? "conditional \"DOXYGEN_DOC\" 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 "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then as_fn_error $? "conditional \"HAVE_VALGRIND\" 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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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 blitz $as_me 0.10, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ blitz config.status 0.10 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" PACKAGE="$PACKAGE" # 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' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_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"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $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_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"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $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_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $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"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $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"`' LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' GCC_FC='`$ECHO "$GCC_FC" | $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_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $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"`' lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $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_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_F77='`$ECHO "$hardcode_libdir_flag_spec_ld_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $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 \ 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_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ 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_flag_spec_ld \ 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 \ LD_F77 \ LD_FC \ reload_flag_CXX \ reload_flag_F77 \ reload_flag_FC \ compiler_CXX \ compiler_F77 \ compiler_FC \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_F77 \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_pic_FC \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_wl_FC \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_F77 \ lt_prog_compiler_static_FC \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_F77 \ lt_cv_prog_compiler_c_o_FC \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_F77 \ export_dynamic_flag_spec_FC \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_F77 \ whole_archive_flag_spec_FC \ compiler_needs_object_CXX \ compiler_needs_object_F77 \ compiler_needs_object_FC \ with_gnu_ld_CXX \ with_gnu_ld_F77 \ with_gnu_ld_FC \ allow_undefined_flag_CXX \ allow_undefined_flag_F77 \ allow_undefined_flag_FC \ no_undefined_flag_CXX \ no_undefined_flag_F77 \ no_undefined_flag_FC \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_flag_spec_ld_FC \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_F77 \ hardcode_libdir_separator_FC \ exclude_expsyms_CXX \ exclude_expsyms_F77 \ exclude_expsyms_FC \ include_expsyms_CXX \ include_expsyms_F77 \ include_expsyms_FC \ file_list_spec_CXX \ file_list_spec_F77 \ file_list_spec_FC \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_F77 \ compiler_lib_search_dirs_FC \ predep_objects_CXX \ predep_objects_F77 \ predep_objects_FC \ postdep_objects_CXX \ postdep_objects_F77 \ postdep_objects_FC \ predeps_CXX \ predeps_F77 \ predeps_FC \ postdeps_CXX \ postdeps_F77 \ postdeps_FC \ compiler_lib_search_path_CXX \ compiler_lib_search_path_F77 \ compiler_lib_search_path_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) 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 \ sys_lib_dlsearch_path_spec \ reload_cmds_CXX \ reload_cmds_F77 \ reload_cmds_FC \ old_archive_cmds_CXX \ old_archive_cmds_F77 \ old_archive_cmds_FC \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_F77 \ old_archive_from_new_cmds_FC \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_F77 \ old_archive_from_expsyms_cmds_FC \ archive_cmds_CXX \ archive_cmds_F77 \ archive_cmds_FC \ archive_expsym_cmds_CXX \ archive_expsym_cmds_F77 \ archive_expsym_cmds_FC \ module_cmds_CXX \ module_cmds_F77 \ module_cmds_FC \ module_expsym_cmds_CXX \ module_expsym_cmds_F77 \ module_expsym_cmds_FC \ export_symbols_cmds_CXX \ export_symbols_cmds_F77 \ export_symbols_cmds_FC \ prelink_cmds_CXX \ prelink_cmds_F77 \ prelink_cmds_FC \ postlink_cmds_CXX \ postlink_cmds_F77 \ postlink_cmds_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which 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' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" pkgconfig_prefix='$prefix' pkgconfig_execprefix='$exec_prefix' pkgconfig_libdir='$libdir' pkgconfig_includedir='$includedir' pkgconfig_libname='$ax_create_pkgconfig_libname' pkgconfig_description='$ax_create_pkgconfig_description' pkgconfig_version='$ax_create_pkgconfig_version' pkgconfig_requires='$ax_create_pkgconfig_requires' pkgconfig_libs='$ax_create_pkgconfig_libs' pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' _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 "blitz/config.h") CONFIG_HEADERS="$CONFIG_HEADERS blitz/config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "blitz/apple/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/apple/bzconfig.h" ;; "blitz/intel/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/intel/bzconfig.h" ;; "blitz/ibm/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/ibm/bzconfig.h" ;; "blitz/compaq/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/compaq/bzconfig.h" ;; "blitz/hp/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/hp/bzconfig.h" ;; "blitz/gnu/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/gnu/bzconfig.h" ;; "blitz/kai/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/kai/bzconfig.h" ;; "blitz/pgi/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/pgi/bzconfig.h" ;; "blitz/pathscale/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/pathscale/bzconfig.h" ;; "blitz/sgi/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/sgi/bzconfig.h" ;; "blitz/sun/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/sun/bzconfig.h" ;; "blitz/cray/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/cray/bzconfig.h" ;; "blitz/fujitsu/bzconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS blitz/fujitsu/bzconfig.h" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; "blitz/Makefile") CONFIG_FILES="$CONFIG_FILES blitz/Makefile" ;; "blitz/array/Makefile") CONFIG_FILES="$CONFIG_FILES blitz/array/Makefile" ;; "blitz/generate/Makefile") CONFIG_FILES="$CONFIG_FILES blitz/generate/Makefile" ;; "blitz/meta/Makefile") CONFIG_FILES="$CONFIG_FILES blitz/meta/Makefile" ;; "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; "doc/stencils/Makefile") CONFIG_FILES="$CONFIG_FILES doc/stencils/Makefile" ;; "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; "benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/Makefile" ;; "benchmarks/plot_benchmarks.m") CONFIG_FILES="$CONFIG_FILES benchmarks/plot_benchmarks.m" ;; "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; *) 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"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "blitz/apple/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/apple/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/intel/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/intel/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/ibm/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/ibm/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/compaq/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/compaq/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/hp/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/hp/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/gnu/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/gnu/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/kai/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/kai/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/pgi/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/pgi/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/pathscale/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/pathscale/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/sgi/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/sgi/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/sun/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/sun/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/cray/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/cray/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "blitz/fujitsu/bzconfig.h":C) ac_prefix_conf_OUT=`echo blitz/fujitsu/bzconfig.h` ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` ac_prefix_conf_PKG=`echo BZ` ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` if test ".$ac_prefix_conf_INP" = "."; then for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue case "$ac_file" in *.h) ac_prefix_conf_INP=$ac_file ;; *) esac test ".$ac_prefix_conf_INP" != "." && break done fi if test ".$ac_prefix_conf_INP" = "."; then case "$ac_prefix_conf_OUT" in */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` ;; *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` ;; *) ac_prefix_conf_INP=config.h ;; esac fi if test -z "$ac_prefix_conf_PKG" ; then as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 else if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} if test -f $ac_prefix_conf_INP ; then echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix # the substition of upper-case macros echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_UPP""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >>conftest.prefix # the substition of lower-case macros echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix echo "#define $ac_prefix_conf_LOW""_\\1\\2 \\" >> conftest.prefix echo "#endif/" >> conftest.prefix # now executing _script on _DEF input to create _OUT output file echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h echo ' ' >>$tmp/pconfig.h echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h echo "#endif" >>$tmp/pconfig.h if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} else ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_conf_OUT" | 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 rm -f "$ac_prefix_conf_OUT" mv $tmp/pconfig.h "$ac_prefix_conf_OUT" fi else as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 fi rm -f conftest.* fi ;; "libtool":C) # See if we are running on zsh, and set the options which 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 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, # Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="CXX F77 FC " # ### BEGIN LIBTOOL CONFIG # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # 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 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 # 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 in which our libraries should be installed. lt_sysroot=$lt_sysroot # 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 # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # 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 # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # 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 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 "X${COLLECT_NAMES+set}" != Xset; 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) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi 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 # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_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 cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: F77 # The linker used to build libraries. LD=$lt_LD_F77 # How to create reloadable object files. reload_flag=$lt_reload_flag_F77 reload_cmds=$lt_reload_cmds_F77 # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_F77 # A language specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU compiler? with_gcc=$GCC_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_F77 # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_F77 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # 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_F77 # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_F77 # 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_F77 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # 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_F77 # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_F77 # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_F77 # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_F77 # Specify filename containing input files. file_list_spec=$lt_file_list_spec_F77 # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_F77 postdep_objects=$lt_postdep_objects_F77 predeps=$lt_predeps_F77 postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # ### END LIBTOOL TAG CONFIG: F77 _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: FC # The linker used to build libraries. LD=$lt_LD_FC # How to create reloadable object files. reload_flag=$lt_reload_flag_FC reload_cmds=$lt_reload_cmds_FC # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_FC # A language specific compiler. CC=$lt_compiler_FC # Is the compiler the GNU compiler? with_gcc=$GCC_FC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_FC # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_FC # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_FC # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_FC # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_FC # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_FC archive_expsym_cmds=$lt_archive_expsym_cmds_FC # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_FC module_expsym_cmds=$lt_module_expsym_cmds_FC # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_FC # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_FC # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_FC # 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_FC # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_FC # 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_FC # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_FC # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC # 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_FC # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_FC # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_FC # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_FC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_FC # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_FC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_FC # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_FC # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_FC # Specify filename containing input files. file_list_spec=$lt_file_list_spec_FC # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_FC # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_FC postdep_objects=$lt_postdep_objects_FC predeps=$lt_predeps_FC postdeps=$lt_postdeps_FC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_FC # ### END LIBTOOL TAG CONFIG: FC _LT_EOF ;; "$ax_create_pkgconfig_generate":C) pkgconfig_generate="$ax_create_pkgconfig_generate" if test ! -f "$pkgconfig_generate.in" then generate="true" elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null then generate="true" else generate="false"; fi if $generate ; then { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;} cat > $pkgconfig_generate.in <<_EOF # generated by configure / remove this line to disable regeneration prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: @PACKAGE_DESCRIPTION@ Version: @PACKAGE_VERSION@ Requires: @PACKAGE_REQUIRES@ Libs: -L\${libdir} @LIBS@ Cflags: -I\${includedir} @CPPFLAGS@ _EOF fi # DONE generate $pkgconfig_generate.in { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 $as_echo "$as_me: creating $pkgconfig_generate" >&6;} sed -e "s|@prefix@|${pkgconfig_prefix}|" \ -e "s|@exec_prefix@|${pkgconfig_execprefix}|" \ -e "s|@libdir@|${pkgconfig_libdir}|" \ -e "s|@includedir@|${pkgconfig_includedir}|" \ -e "s|@PACKAGE_NAME@|${pkgconfig_libname}|" \ -e "s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|" \ -e "s|@PACKAGE_VERSION@|${pkgconfig_version}|" \ -e "s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|" \ -e "s|@LIBS@|${pkgconfig_libs}|" \ -e "s|@CPPFLAGS@|${pkgconfig_cppflags}|" \ $pkgconfig_generate.in > $pkgconfig_generate if test ! -s $pkgconfig_generate ; then as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 fi # DONE generate $pkgconfig_generate pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} sed -e "s|@prefix@|${pkgconfig_prefix}|" \ -e "s|@exec_prefix@|${pkgconfig_execprefix}|" \ -e "s|@libdir@|${pkgconfig_src_libdir}|" \ -e "s|@includedir@|${pkgconfig_src_headers}|" \ -e "s|@PACKAGE_NAME@|${pkgconfig_libname}|" \ -e "s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|" \ -e "s|@PACKAGE_VERSION@|${pkgconfig_version}|" \ -e "s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|" \ -e "s|@LIBS@|${pkgconfig_libs}|" \ -e "s|@CPPFLAGS@|${pkgconfig_cppflags}|" \ $pkgconfig_generate.in > $pkgconfig_uninstalled if test ! -s $pkgconfig_uninstalled ; then as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 fi # DONE generate $pkgconfig_uninstalled ;; 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 # At some point in the future it would be nice to collect # information about machines, OSes and compilers which # people are using. Obviously this has to be handled in # a sensitive way. Current idea: send the output # of uname -a, $(target) and $(bz_compiler) via an # anonymous remailer. Prompt the user and give them # a chance to override this behaviour. # AC_SEND_CONFIG { $as_echo "$as_me:${as_lineno-$LINENO}: The configure script has generated makefiles for your platform. You have several options now: make lib Check the compiler and create libblitz.a make check-testsuite Build and check the testsuite make check-examples Build and check the examples make check-benchmarks Build and check the benchmarks (takes a long time) make install Install Blitz++ make info Build Blitz++ texinfo documentation make ps Build Blitz++ ps documentation make pdf Build Blitz++ pdf documentation make html Build Blitz++ html documentation make install-info Install Blitz++ texinfo documentation make install-ps Install Blitz++ ps documentation make install-pdf Install Blitz++ pdf documentation make install-html Install Blitz++ html documentation " >&5 $as_echo "$as_me: The configure script has generated makefiles for your platform. You have several options now: make lib Check the compiler and create libblitz.a make check-testsuite Build and check the testsuite make check-examples Build and check the examples make check-benchmarks Build and check the benchmarks (takes a long time) make install Install Blitz++ make info Build Blitz++ texinfo documentation make ps Build Blitz++ ps documentation make pdf Build Blitz++ pdf documentation make html Build Blitz++ html documentation make install-info Install Blitz++ texinfo documentation make install-ps Install Blitz++ ps documentation make install-pdf Install Blitz++ pdf documentation make install-html Install Blitz++ html documentation " >&6;} blitz-0.10/bin/0000755002370500237050000000000011774705030010343 500000000000000blitz-0.10/bin/autotest0000755002370500237050000000412711753271141012063 00000000000000# This script automatically downloads, installs and checks a # Blitz++ release. It is used to automatically verify a # development release on many platforms before a general # release is made. INSTALL_PATH=/tmp COMPILER=egcs FTP_SERVER=monet.uwaterloo.ca FTP_DIR=pub/blitz/snapshots TMPDIR=/tmp TEST_COMMAND="cd $INSTALL_PATH/blitz-$1; echo \"Test results for $1 on \`hostname\` \(\`./config.guess\`\):\"; nice make check; cd examples; nice make examples; cd $INSTALL_PATH; rm -rf $INSTALL_PATH/blitz-$1" FILENAME=blitz-$1.tar.gz # Time at which the build and check should occur. # On a heavily used system, specify sometime during the night, e.g. "3 am" # Otherwise you can just say "now" RUNTIME="now" # If the test and build will be done on another machine, put # "rsh machinename" here. Otherwise, leave blank. # NB: The directory $INSTALL_PATH must be shared between # the two machines. REMOTE_INVOKE= echo `hostname`: Downloading Blitz++ release: blitz-$1.tar.gz echo Will be installed at $INSTALL_PATH/blitz-$1 FTPSCRIPT=$TMPDIR/blitzftp if test -f $INSTALL_PATH/$FILENAME || test -d $INSTALL_PATH/blitz-$1; then echo $INSTALL_PATH/$FILENAME already exists, skipping download else rm -f $FTPSCRIPT echo debug >>$FTPSCRIPT echo open $FTP_SERVER >>$FTPSCRIPT echo user ftp blitz-autotest@seurat.uwaterloo.ca >>$FTPSCRIPT echo cd $FTP_DIR >>$FTPSCRIPT echo binary >>$FTPSCRIPT echo get $FILENAME $INSTALL_PATH/$FILENAME >>$FTPSCRIPT echo quit >>$FTPSCRIPT ftp -v -n <$FTPSCRIPT rm -f $FTPSCRIPT fi # Now we have hopefully downloaded the file if test -d $INSTALL_PATH/blitz-$1; then echo Version has already been unpacked and \(hopefully\) configured. else if test -f $INSTALL_PATH/$FILENAME; then rm -f $FTPSCRIPT cd $INSTALL_PATH gunzip $FILENAME tar xvf blitz-$1.tar rm blitz-$1.tar cd blitz-$1 ./configure --with-cxx=$COMPILER nice make lib else echo Error occurred during download of ftp://$FTP_SERVER/$FTP_DIR/$FILENAME exit 1 fi fi echo "$TEST_COMMAND" | $REMOTE_INVOKE at $RUNTIME echo Build and check of $FILENAME will be done at $RUNTIME. blitz-0.10/bin/Makefile.am0000644002370500237050000000013111753271141012310 00000000000000# # Written by Patrick Guio # EXTRA_DIST = autotest includes blitz-0.10/bin/Makefile.in0000644002370500237050000003351311774704757012354 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ # # Written by Patrick Guio # VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = bin DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_check_cxx_features.m4 \ $(top_srcdir)/m4/ac_compiler_specific_header.m4 \ $(top_srcdir)/m4/ac_compilers_64bits.m4 \ $(top_srcdir)/m4/ac_cxx_alignment_directive.m4 \ $(top_srcdir)/m4/ac_cxx_bool.m4 \ $(top_srcdir)/m4/ac_cxx_complex_math_in_namespace_std.m4 \ $(top_srcdir)/m4/ac_cxx_const_cast.m4 \ $(top_srcdir)/m4/ac_cxx_default_template_parameters.m4 \ $(top_srcdir)/m4/ac_cxx_dynamic_cast.m4 \ $(top_srcdir)/m4/ac_cxx_enable_debug.m4 \ $(top_srcdir)/m4/ac_cxx_enable_optimize.m4 \ $(top_srcdir)/m4/ac_cxx_enum_computations.m4 \ $(top_srcdir)/m4/ac_cxx_enum_computations_with_cast.m4 \ $(top_srcdir)/m4/ac_cxx_exceptions.m4 \ $(top_srcdir)/m4/ac_cxx_explicit.m4 \ $(top_srcdir)/m4/ac_cxx_explicit_template_function_qualification.m4 \ $(top_srcdir)/m4/ac_cxx_flags_preset.m4 \ $(top_srcdir)/m4/ac_cxx_full_specialization_syntax.m4 \ $(top_srcdir)/m4/ac_cxx_function_nontype_parameters.m4 \ $(top_srcdir)/m4/ac_cxx_general.m4 \ $(top_srcdir)/m4/ac_cxx_have_climits.m4 \ $(top_srcdir)/m4/ac_cxx_have_complex.m4 \ $(top_srcdir)/m4/ac_cxx_have_complex_fcns.m4 \ $(top_srcdir)/m4/ac_cxx_have_complex_math1.m4 \ $(top_srcdir)/m4/ac_cxx_have_complex_math2.m4 \ $(top_srcdir)/m4/ac_cxx_have_cstring.m4 \ $(top_srcdir)/m4/ac_cxx_have_ieee_math.m4 \ $(top_srcdir)/m4/ac_cxx_have_numeric_limits.m4 \ $(top_srcdir)/m4/ac_cxx_have_rusage.m4 \ $(top_srcdir)/m4/ac_cxx_have_std.m4 \ $(top_srcdir)/m4/ac_cxx_have_stl.m4 \ $(top_srcdir)/m4/ac_cxx_have_system_v_math.m4 \ $(top_srcdir)/m4/ac_cxx_have_valarray.m4 \ $(top_srcdir)/m4/ac_cxx_isnan_in_namespace_std.m4 \ $(top_srcdir)/m4/ac_cxx_keywords.m4 \ $(top_srcdir)/m4/ac_cxx_math_absint_in_namespace_std.m4 \ $(top_srcdir)/m4/ac_cxx_math_fn_in_namespace_std.m4 \ $(top_srcdir)/m4/ac_cxx_member_constants.m4 \ $(top_srcdir)/m4/ac_cxx_member_templates.m4 \ $(top_srcdir)/m4/ac_cxx_member_templates_outside_class.m4 \ $(top_srcdir)/m4/ac_cxx_mutable.m4 \ $(top_srcdir)/m4/ac_cxx_namespaces.m4 \ $(top_srcdir)/m4/ac_cxx_nceg_restrict.m4 \ $(top_srcdir)/m4/ac_cxx_nceg_restrict_egcs.m4 \ $(top_srcdir)/m4/ac_cxx_old_for_scoping.m4 \ $(top_srcdir)/m4/ac_cxx_partial_ordering.m4 \ $(top_srcdir)/m4/ac_cxx_partial_specialization.m4 \ $(top_srcdir)/m4/ac_cxx_reinterpret_cast.m4 \ $(top_srcdir)/m4/ac_cxx_rtti.m4 \ $(top_srcdir)/m4/ac_cxx_standard_library.m4 \ $(top_srcdir)/m4/ac_cxx_static_cast.m4 \ $(top_srcdir)/m4/ac_cxx_template_keyword_qualifier.m4 \ $(top_srcdir)/m4/ac_cxx_template_qualified_base_class.m4 \ $(top_srcdir)/m4/ac_cxx_template_qualified_return_type.m4 \ $(top_srcdir)/m4/ac_cxx_template_scoped_argument_matching.m4 \ $(top_srcdir)/m4/ac_cxx_templates.m4 \ $(top_srcdir)/m4/ac_cxx_templates_as_template_arguments.m4 \ $(top_srcdir)/m4/ac_cxx_templates_features.m4 \ $(top_srcdir)/m4/ac_cxx_type_casts.m4 \ $(top_srcdir)/m4/ac_cxx_type_promotion.m4 \ $(top_srcdir)/m4/ac_cxx_typename.m4 \ $(top_srcdir)/m4/ac_cxx_use_numtrait.m4 \ $(top_srcdir)/m4/ac_env.m4 \ $(top_srcdir)/m4/ac_fortran_flags_preset.m4 \ $(top_srcdir)/m4/ac_info.m4 $(top_srcdir)/m4/ac_lib_blas.m4 \ $(top_srcdir)/m4/ac_prog_doxygen.m4 \ $(top_srcdir)/m4/ax_boost_base.m4 \ $(top_srcdir)/m4/ax_boost_serialization.m4 \ $(top_srcdir)/m4/ax_create_pkgconfig_info.m4 \ $(top_srcdir)/m4/ax_dirname.m4 \ $(top_srcdir)/m4/ax_prefix_config_h.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/blitz/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AR_FLAGS = @AR_FLAGS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BLASLIB = @BLASLIB@ BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ BOOST_LDFLAGS = @BOOST_LDFLAGS@ BOOST_SERIALIZATION_LIB = @BOOST_SERIALIZATION_LIB@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COMPILER_SPECIFIC_HEADER = @COMPILER_SPECIFIC_HEADER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFCFLAG = @CXXFCFLAG@ CXXFFLAGS = @CXXFFLAGS@ CXXFLAGS = @CXXFLAGS@ CXX_DEBUG_FLAGS = @CXX_DEBUG_FLAGS@ CXX_LIBS = @CXX_LIBS@ CXX_OPTIMIZE_FLAGS = @CXX_OPTIMIZE_FLAGS@ CXX_PROFIL_FLAGS = @CXX_PROFIL_FLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT = @DOT@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ F77_OPTIMIZE_FLAGS = @F77_OPTIMIZE_FLAGS@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCFLAGS_f90 = @FCFLAGS_f90@ FCLIBS = @FCLIBS@ FC_OPTIMIZE_FLAGS = @FC_OPTIMIZE_FLAGS@ FFLAGS = @FFLAGS@ FGREP = @FGREP@ FLIBS = @FLIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS = @OS@ 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@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TEXI2HTML = @TEXI2HTML@ 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@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ 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@ enable_dot = @enable_dot@ enable_html_docs = @enable_html_docs@ enable_latex_docs = @enable_latex_docs@ 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@ pkgconfig_libdir = @pkgconfig_libdir@ pkgconfig_libfile = @pkgconfig_libfile@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ valgrind = @valgrind@ EXTRA_DIST = autotest includes 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) --foreign bin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign bin/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 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-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-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # 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: blitz-0.10/bin/includes0000755002370500237050000000047111753271141012017 00000000000000#!/bin/bash if test -z $1; then echo Use: includes [usual g++ command line] echo e.g. includes foo.cpp -I /usr/src/Blitz++ echo This shows bytes included from all header files. exit 1 fi wc -c `g++ -E -c $* | grep "^#" | grep -v pragma | awk '{ print $3 }' | sort | uniq | tr -s "\"" " "` | sort -nr | more blitz-0.10/ChangeLog0000644002370500237050000026720411774703123011301 00000000000000changeset: 1917:77c9002404a7 tag: tip user: Julian Cummings date: Tue Jul 03 16:30:09 2012 -0700 files: COPYRIGHT LEGAL LICENSE README description: Updated legal information in README and LEGAL files. Updated LICENSE file to use version 2.0 of the Perl Artistic License as required for use with Fedora. Updated language in COPYRIGHT file for BSD license. changeset: 1916:7c6844d1a805 user: Julian Cummings date: Wed Jun 27 18:36:46 2012 -0700 files: NEWS description: A brief note on the new 0.10 snapshot release. changeset: 1915:a8ea119bc0dc user: Julian Cummings date: Wed Jun 27 18:27:21 2012 -0700 files: doc/stamp-vti doc/version.texi description: Update datestamp and version number for documentation. changeset: 1914:fc43218c3b7e user: Julian Cummings date: Wed Jun 27 18:23:08 2012 -0700 files: Makefile.am description: Added Blitz-VS2010.zip to the list of files included in the blitz package. changeset: 1913:4014cbb0ff08 user: Julian Cummings date: Wed Jun 27 18:19:24 2012 -0700 files: Blitz-VS2010.zip description: New version of support files for compiling blitz with Microsoft Visual Studio 2010. changeset: 1912:927504bb5536 user: Julian Cummings date: Tue Jun 26 17:33:54 2012 -0700 files: blitz/array/expr.h blitz/array/functorExpr.h blitz/array/stencil-et-macros.h blitz/array/where.h description: Patch from Sylwester Arabas for blitz compatibility with clang 3.1 compiler. Changes seem fine with g++ compiler. changeset: 1911:e1a8ec015bde user: Julian Cummings date: Tue Jun 26 17:15:12 2012 -0700 files: benchmarks/daxpy.cpp benchmarks/daxpy2.cpp benchmarks/loop4.cpp benchmarks/makeloops.cpp benchmarks/stencil.cpp description: Corrected typo in BenchmarkExt class member name that was discovered in several of the benchmark test codes. changeset: 1910:8f8423701853 user: Julian Cummings date: Tue Jun 26 16:47:42 2012 -0700 files: blitz/globeval.cc blitz/memblock.h blitz/tmevaluate.h blitz/tvevaluate.h description: Patch from Matt Bingen to eliminate compiler warnings about using pragmas within macros and to use ptrdiff_t instead of int in a few more places for 64-bit safety. changeset: 1909:11a167db8e5f user: Julian Cummings date: Tue Jun 26 16:44:55 2012 -0700 files: blitz/array-impl.h description: Patch from Matt Bingen to allow the default storage type for Array to be configurable. changeset: 1908:a46cacb46e8f user: Julian Cummings date: Tue Jun 26 16:38:50 2012 -0700 files: testsuite/initialize.cpp description: Workarounds for testsuite code that attempts to use list initialization on Vectors that reference data stored non-consecutively in another Vector. Such code no longer works because the current stand-in Vector class is just a wrapper for the 1D Array class. changeset: 1907:ac2b17fed6c4 user: Julian Cummings date: Tue Jun 26 14:28:43 2012 -0700 files: examples/Makefile.am description: Commented out several example programs which rely on the Vector classes and are therefore not currently functional. The Vector classes need to be updated to use the new style expression template machinery in blitz. The old style ET machinery has been removed to reduce the overall amount of blitz code. changeset: 1906:f88ef337efee user: Julian Cummings date: Tue Jun 26 14:25:30 2012 -0700 files: examples/where.cpp description: Modified example code to use 1D Array instead of Vector class, which is currently non-functional. changeset: 1905:2fa73f1ae57a user: Julian Cummings date: Tue Jun 26 14:24:22 2012 -0700 files: examples/tiny.cpp description: Updated include file list to eliminate , which is obsolete. changeset: 1904:ef381c095e49 user: Julian Cummings date: Tue Jun 26 14:13:11 2012 -0700 files: blitz/array-impl.h description: Revert ListInitializationSwitch back to using a T_numtype* rather than a T_iterator to traverse Array memory for list initialization. By definition, a comma-delimited list will initialize an Array in memory storage order, so a standard pointer is adequate as long as the memory storage is contiguous. This change fixes an error that was occurring in the storage testsuite code. changeset: 1903:d1291bffbb19 user: Julian Cummings date: Tue Jun 26 14:07:16 2012 -0700 files: testsuite/reduce.cpp description: Removed sum expression that was not used in any test and was triggering an error. changeset: 1902:56a36918ccf1 user: Patrik Jonsson date: Tue Apr 24 16:04:24 2012 -0400 files: configure.ac description: Removed check for boost::mpi library since we only need the include file. changeset: 1901:20ebbb315dd7 user: Patrik Jonsson date: Tue Apr 24 11:56:15 2012 -0700 files: blitz/array/storage.h blitz/tinyvec2.h configure.ac description: Added a separate check for the Boost::MPI library when serialization is enabled, since one can imagine wanting serialization without MPI. changeset: 1900:2663e207d21f user: Patrik Jonsson date: Tue Apr 17 13:14:16 2012 -0400 files: blitz/array-impl.h blitz/array/ops.cc testsuite/Makefile.am testsuite/update.cpp description: Fixed Array update operators for scalars, which the previous change broke. Added testcase update to exercise the Array update operators for scalars, Arrays, and expressions. changeset: 1899:5e7778d680d6 user: Patrik Jonsson date: Tue Apr 17 12:49:59 2012 -0400 files: blitz/array-impl.h blitz/array/ops.cc testsuite/multicomponent.cpp description: The Array update operators (like +=) are now defined exactly like the assignment operator, which was not the case before, so some expressions that worked as assignments didn't work as updates. Updated multicomponent test case to exercise this. changeset: 1898:3acfc76c2df9 user: Patrik Jonsson date: Tue Mar 06 13:12:04 2012 -0500 files: blitz/array/ops.h testsuite/Makefile.am testsuite/bitwise.cpp description: Restored left and right shift operators, which were commented out, and added scalar versions of them as well. Added a test case for the bitwise operators (currently only for TinyVector). There appears to be no ambiguity to me, the operators take ETBase arguments and should not conflict with the I/O operators. At least, all tests pass and my code compiles fine. changeset: 1897:262deb840568 user: Patrik Jonsson date: Wed Jan 25 10:48:31 2012 -0500 files: blitz/tinyvec2.h description: Added extent() member to TinyVector in analogy with Array and TinyMatrix. changeset: 1896:d4a8862b671a user: Patrik Jonsson date: Mon Dec 12 17:11:18 2011 -0500 files: blitz/tinymat2.cc description: One more warning fix. changeset: 1895:4d8789826636 user: Patrik Jonsson date: Mon Dec 12 17:00:20 2011 -0500 files: blitz/array/reduce.h blitz/array/storage.h blitz/globeval.cc blitz/indexexpr.h blitz/memblock.cc blitz/shapecheck.h description: Fixed some warnings with gcc -Wall. changeset: 1894:90c2f00d236e user: Patrik Jonsson date: Tue Dec 06 18:55:54 2011 -0500 files: blitz/array/newet-macros.h blitz/funcs.h testsuite/Makefile.am testsuite/int-math-func.cpp description: Changed the BZ_DEFINE_UNARY_FUNC macro so the functors now have the option of using a double return type for integer types. This avoids bug 3381318 where doing sin(intarray) returns ints even if the results go into a floating array. Turned off this option for functions like abs() that can sensibly be called with integer types. Added testcase int-math-func to test this. changeset: 1893:e29277a6148b user: Patrik Jonsson date: Tue Dec 06 16:27:08 2011 -0500 files: blitz/array/funcs.h blitz/funcs.h description: Removed the special definitions of abs() in array/funcs.h. Since all types are overloaded as abs() in current cmath, this should no longer be necessary. This also fixes bug 3427014. changeset: 1892:a8f6391064b0 user: Patrik Jonsson date: Tue Dec 06 16:24:18 2011 -0500 files: testsuite/Makefile.am description: Fixed a bug in the testsuite Makefile.am. changeset: 1891:2b8b3ea5cd97 user: Patrik Jonsson date: Tue Dec 06 15:45:36 2011 -0500 files: testsuite/Makefile.am description: Changed the testsuite Makefile so all tests are run even if one fails. changeset: 1890:4f7d8ef18b48 user: Patrik Jonsson date: Mon Dec 05 15:14:49 2011 -0500 files: blitz/blitz.h random/mt.h testsuite/serialize.cpp description: Added ability to serialize the Mersenne Twister state, and a test of this to the serialize test case. Also, blitz.h now includes bzconfig.h. changeset: 1889:d4ea469afaa0 user: Patrik Jonsson date: Tue Nov 29 22:07:47 2011 -0500 files: blitz/globeval.cc testsuite/Makefile.am testsuite/indexexpr-base.cpp description: Fixed a bug in the 1D index traversal evaluation that caused results for arrays with nonzero base to be written out of bounds. Fixes issue 3441913. Added indexexpr_base to the testsuite to check this. changeset: 1888:9a7e4e6adaa2 user: Patrik Jonsson date: Wed Nov 23 09:42:33 2011 -0500 files: blitz/array-impl.h blitz/array/storage.h blitz/tinymat2.h blitz/tinyvec2.h description: Moved declaration of boost::mpi::is_mpi_datatype out of the blitz namespace. changeset: 1887:c3f9ffd1a3d3 user: Patrik Jonsson date: Tue Nov 22 15:39:45 2011 -0500 files: blitz/array-impl.h blitz/array/storage.h blitz/memblock.cc blitz/memblock.h blitz/tinymat2.h blitz/tinyvec2.h description: Improved the Boost::Serialization support so that it works with the skeleton/content functionality in boost::MPI. Declared boost::mpi::is_mpi_datatype appropriate data types. changeset: 1886:9527b95a58b5 user: Patrik Jonsson date: Thu Oct 27 14:07:17 2011 -0400 files: blitz/memblock.h description: Fixed a segfault when serializing MemoryBlockReferences without a block. changeset: 1885:41b58087d239 user: Patrik Jonsson date: Wed Oct 26 17:15:35 2011 -0400 files: configure.ac description: Added --enable-serialization configure option. changeset: 1884:d05049b205e5 user: Patrik Jonsson date: Wed Oct 26 16:35:20 2011 -0400 files: benchmarks/Makefile.am examples/Makefile.am description: Fixed makefiles for benchmarks and examples dirs. changeset: 1883:daba8c883045 user: Patrik Jonsson date: Wed Oct 26 16:24:41 2011 -0400 files: blitz/array-impl.h blitz/array/storage.h blitz/memblock.h blitz/tinymat2.h blitz/tinyvec2.h lib/Makefile.am testsuite/Makefile.am testsuite/serialize.cpp description: Updated flags for serialization support, tweaked Makefiles. changeset: 1882:68f7fb7d191e user: Patrik Jonsson date: Wed Oct 26 16:02:13 2011 -0400 files: blitz/array-impl.h blitz/array/storage.h blitz/memblock.cc blitz/memblock.h blitz/tinymat2.h blitz/tinyvec2.h configure.ac m4/ax_boost_base.m4 m4/ax_boost_serialization.m4 testsuite/Makefile.am testsuite/serialize.cpp description: Added Boost::Serialization support for Array, TinyVector and TinyMatrix. Added --with-boost and --with-boost-serialization configure options. changeset: 1881:4de0b8fd18cd user: Patrik Jonsson date: Thu Sep 29 15:35:03 2011 -0400 files: blitz/tmevaluate.h blitz/tvevaluate.h configure.ac testsuite/alignment.cpp description: Added macro BZ_USE_ALIGNMENT_PRAGMAS, which is only set to true if a SIMD width is specified. If this is not defined, the alignment pragmas are not used. This fixes bug 3415448. changeset: 1880:f360eaedb125 user: Patrik Jonsson date: Wed Sep 28 08:47:19 2011 -0400 files: testsuite/64bit.cpp description: Updated 64bit test case to also test that fastRead for the expression classes also works with large arguments. changeset: 1879:54b961d29fc0 user: Patrik Jonsson date: Tue Sep 27 16:12:21 2011 -0400 files: blitz/array/expr.h blitz/array/fastiter.h blitz/array/functorExpr.h blitz/array/where.h blitz/generate/genstencils.py blitz/indexexpr.h blitz/levicivita.h blitz/range.h blitz/tinymat2.h blitz/tinyvec2.h blitz/tm2fastiter.h blitz/tv2fastiter.h description: Changed argument of the fastRead() functions from int to diffType, which is also needed for 64-bit offsets to work. changeset: 1878:ed2dfe67697b parent: 1877:da484a923d69 parent: 1875:eb2f78ddf0b4 user: Patrik Jonsson date: Tue Sep 27 15:43:22 2011 -0400 files: testsuite/Makefile.am description: Merge. changeset: 1877:da484a923d69 user: Patrik Jonsson date: Tue Sep 27 15:29:55 2011 -0400 files: blitz/globeval.cc testsuite/64bit.cpp testsuite/Makefile.am description: Further 64-bit fixes. Changed the 64bit test case to catch these problems, which unfortunately precludes only evaluating over a subrange. Therefore, I've enabled optimization for the 64bit test only so it doesn't take forever to run. changeset: 1876:84f0b039f76d parent: 1874:450f9b1ee2d0 user: Patrik Jonsson date: Tue Sep 27 14:31:34 2011 -0400 files: blitz/globeval.cc description: Changed offset type in evaluation from int to diffType, because otherwise evaluations with offsets > 1<<31 fails. changeset: 1875:eb2f78ddf0b4 user: Patrik Jonsson date: Mon Sep 26 19:11:43 2011 -0700 files: blitz/array/expr.h testsuite/Makefile.am testsuite/cast.cpp description: Fixed broken cast float->double by removing a ArrayExprUnaryOp constructor that caused ambiguous resolution and apparently isn't actually used. Added test case cast. changeset: 1874:450f9b1ee2d0 parent: 1873:1e77ae68003b parent: 1871:4223fee30010 user: Patrik Jonsson date: Mon Sep 26 21:07:37 2011 -0400 description: Merged. changeset: 1873:1e77ae68003b user: Patrik Jonsson date: Mon Sep 26 21:07:13 2011 -0400 files: testsuite/reduce.cpp description: Added test for bug 2058441. changeset: 1872:760e2d93d633 parent: 1862:691355238c25 user: Patrik Jonsson date: Tue Jul 26 17:01:08 2011 -0400 files: blitz/array/reduce.h description: Added comment to reduce.h documenting bug 2058441. changeset: 1871:4223fee30010 user: Patrik Jonsson date: Thu Aug 11 14:42:04 2011 -0700 files: blitz/tinyvec2.h description: Removed spurious inline declarations. changeset: 1870:3448111f885d user: Patrik Jonsson date: Thu Aug 11 11:40:38 2011 -0700 files: blitz/tmevaluate.h blitz/tvevaluate.h description: Fixed clobbering of template parameter. changeset: 1869:fa21544fdcbd user: Patrik Jonsson date: Thu Aug 11 09:49:15 2011 -0700 files: blitz/globeval.cc description: Fixed gcc complaining about rank() not being a constant-expression. changeset: 1868:a6f80db77b94 user: patricg date: Thu Jul 28 22:38:01 2011 +0100 files: doc/stamp-vti doc/version.texi description: Updated. changeset: 1867:c73aba3b07e9 user: patricg date: Thu Jul 28 22:23:42 2011 +0100 files: blitz/generate/Makefile.am description: Added python script to EXTRA_DIST in order to pass checkdist. changeset: 1866:c243451132a6 user: patricg date: Thu Jul 28 22:21:30 2011 +0100 files: doc/stencils/Makefile.am description: Renamed the preprocessorp macro "stenciltoapply" to the new name corresponding to the new internal stencil operator (that take iterators as opposed to the stencil ET expression operators that take arrays), i.e. appended '_stencilop' to the operator name. changeset: 1865:06bd97b19920 user: patricg date: Thu Jul 28 21:21:48 2011 +0100 files: configure.ac description: Added clang++ in the list of C++ compilers to check. changeset: 1864:fa98fbc6bd4d user: patricg date: Thu Jul 28 21:19:58 2011 +0100 files: m4/ac_cxx_flags_preset.m4 description: Added an entry for the clang++ compiler (http://clang.llvm.org/). changeset: 1863:d68ac0a95712 user: patricg date: Thu Jul 28 21:16:18 2011 +0100 files: m4/ac_prog_doxygen.m4 description: Changed default behaviour to doxygen disabled. changeset: 1862:691355238c25 user: Patrik Jonsson date: Fri Jul 22 12:18:54 2011 -0400 files: blitz/array/ops.cc description: Added _bz_forceinline to array assignment operators. changeset: 1861:85ea8a3b7b34 user: Patrik Jonsson date: Fri Jul 22 12:07:53 2011 -0400 files: blitz/globeval.cc description: Commented out '#pragma forceinline recursive' in the evaluation functions, since it seems to increase compilation time catastrophically. changeset: 1860:e89dadf02f56 user: Patrik Jonsson date: Fri Jul 22 11:36:25 2011 -0400 files: blitz/Makefile.am description: Added tmevaluate.h to blitz_HEADERS. changeset: 1859:ec1d33eba15b user: Patrik Jonsson date: Fri Jul 22 11:24:21 2011 -0400 files: blitz/Makefile.am blitz/tinymat2.cc blitz/tinymat2.h blitz/tinyvec2.h blitz/tm2ops.cc blitz/tmevaluate.h blitz/tv2ops.cc blitz/tvevaluate.h description: Added compile-time selection of TinyVector-only expressions so the full evaluator is not instantiated in these cases. Ported the TinyVector-only evaluation machinery also for TinyMatrix, so TM expressions use the lightweight evaluation. (With some thinking, these two could probably be merged into one code.) With these changes, icpc v12 is now able to compile the multicomponent testcase. changeset: 1858:c7413cdd3fac user: Patrik Jonsson date: Thu Jul 21 16:26:31 2011 -0400 files: blitz/funcs.h description: pow2-8 now works also for complex scalars. changeset: 1857:9a8d54c82f39 user: Patrik Jonsson date: Thu Jul 21 15:38:33 2011 -0400 files: blitz/funcs.h description: Restored pow2-8 functionality for builtin types. changeset: 1856:d0150e83962d user: Patrik Jonsson date: Thu Jul 21 13:38:50 2011 -0400 files: configure.ac description: Configure now defines BZ_ALIGN_VARIABLE to just a standard declaration if a simd width is not specified, rather than use alignment 1 as that gives warnings. changeset: 1855:494a2ee3abf9 user: Patrik Jonsson date: Wed Jul 20 14:27:13 2011 -0700 files: blitz/globeval.cc description: Fixed compilation error with gcc, which apparently insists that fastRead_tv be explicitly template qualified. changeset: 1854:f21b1f853e06 user: Patrik Jonsson date: Wed Jul 20 14:26:08 2011 -0700 files: blitz/generate/genstencils.py description: Fixed a typo in the generated stencil ET code. changeset: 1853:75e5322949b6 user: Patrik Jonsson date: Wed Jul 20 14:25:26 2011 -0700 files: blitz/simdtypes.h description: Added inclusion of stdint.h to find uintptr_t. changeset: 1852:1642b5d3f4df user: Patrik Jonsson date: Wed Jul 20 17:15:28 2011 -0400 files: blitz/array/expr.cc blitz/indexexpr.h blitz/timer.h description: Fixed some compilation errors with gcc. changeset: 1851:2cccdb4ade84 user: Patrik Jonsson date: Wed Jul 20 11:21:13 2011 -0400 files: blitz/array/asexpr.h description: Renamed template parameter T_result in the results traits classes. changeset: 1850:e61bfbb651fb user: Patrik Jonsson date: Tue Jul 19 15:25:27 2011 -0400 files: blitz/array-impl.h description: Removed 'restrict' from the getInitializationIterator return type since it doesn't make sense. changeset: 1849:dc958e1d2c5b user: Patrik Jonsson date: Tue Jul 19 15:24:29 2011 -0400 files: blitz/Makefile.am description: Added tvevaluate.h to blitz_HEADERS. changeset: 1848:fbe66ccb53ee user: Patrik Jonsson date: Tue Jul 19 15:23:36 2011 -0400 files: blitz/simdtypes.h description: Fixed an error where some compilers complain about the '>1>' construct. changeset: 1847:6e8b33f8b407 user: Patrik Jonsson date: Thu Jun 30 20:54:52 2011 -0700 files: blitz/memblock.cc blitz/memblock.h blitz/simdtypes.h description: Fixed a bug in the shift-to-cache-line during memoryBlock allocation that would cause badness when T_numtype didn't fit evenly into a cache line (like for multicomponent Arrays.) changeset: 1846:4d4602e6c605 user: Patrik Jonsson date: Thu Jun 30 22:16:33 2011 -0400 files: blitz/tvevaluate.h description: Added tvevaluate.h which was forgotten in r1845. changeset: 1845:d2b487a42b58 user: Patrik Jonsson date: Thu Jun 30 18:46:06 2011 -0400 files: blitz/globeval.cc blitz/tinyvec2.cc blitz/tuning.h description: Moved the _tv_evalute_(un)aligned functions into a class _tv_evaluator for the purpose of avoiding meta-unrolling very long TinyVector expressions. It is advantageous to binary-unroll short array expressions and then use wider vector widths than the simd width itself during evaluation. Added defines BZ_MAX_BITS_FOR_BINARY_UNROLL and BZ_VECTORIZED_LOOP_WIDTH to tuning.h to control this. changeset: 1844:4db0fbbcc036 user: Patrik Jonsson date: Thu Jun 30 14:18:23 2011 -0400 files: blitz/memblock.cc description: Fixed typo in memblock.cc. changeset: 1843:6049c40c2237 user: Patrik Jonsson date: Thu Jun 30 10:35:05 2011 -0700 files: blitz/array-impl.h blitz/levicivita.h blitz/range.h description: Fixed a few more warnings. changeset: 1842:981ac7763b8d user: Patrik Jonsson date: Thu Jun 30 10:16:39 2011 -0700 files: blitz/tuning.h description: Fixed warning about redefined macros in tuning.h changeset: 1841:2adbcdadf146 user: Patrik Jonsson date: Thu Jun 30 10:15:18 2011 -0700 files: blitz/tuning.h description: Fixed warning about redefined macros in tuning.h changeset: 1840:6e1433edffa5 user: Patrik Jonsson date: Thu Jun 30 09:50:15 2011 -0700 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop11.cpp benchmarks/floop12.cpp benchmarks/floop13.cpp benchmarks/floop14.cpp benchmarks/floop15.cpp benchmarks/floop16.cpp benchmarks/floop17.cpp benchmarks/floop18.cpp benchmarks/floop19.cpp benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop22.cpp benchmarks/floop23.cpp benchmarks/floop24.cpp benchmarks/floop25.cpp benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop5.cpp benchmarks/floop6.cpp benchmarks/floop8.cpp benchmarks/floop9.cpp benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop11.cpp benchmarks/loop12.cpp benchmarks/loop13.cpp benchmarks/loop14.cpp benchmarks/loop15.cpp benchmarks/loop16.cpp benchmarks/loop17.cpp benchmarks/loop18.cpp benchmarks/loop19.cpp benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop22.cpp benchmarks/loop23.cpp benchmarks/loop24.cpp benchmarks/loop25.cpp benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop5.cpp benchmarks/loop6.cpp benchmarks/loop8.cpp benchmarks/loop9.cpp blitz/generate/makeloops.py description: Removed the TinyVector version in the benchmark loops. Since we can't measure it reliably anyway, it seems more useful to run a denser set of array sizes. changeset: 1839:d79f66a7f6e7 user: Patrik Jonsson date: Thu Jun 30 09:38:51 2011 -0700 files: blitz/memblock.cc blitz/simdtypes.h blitz/tuning.h description: Turned on the align blocks on cache line option, as it makes a substantial difference at least on my machine. Moved the definitions of the L1 cache line size and critical memory block size for aligning to tuning.h. changeset: 1838:06aa6f2889f6 user: Patrik Jonsson date: Wed Jun 29 12:27:50 2011 -0700 files: blitz/array/ops.cc blitz/globeval.cc blitz/tinyvec2.cc blitz/tuning.h description: Added macro _bz_forceinline, which expands to __forceinline for icpc, and used that for the evaluation functions. Unfortunately, the directive doesn't actually do what it promises, leaving intermediate function calls. Asked Intel about this. changeset: 1837:6c2b4079cfe6 user: Patrik Jonsson date: Wed Jun 29 10:39:20 2011 -0700 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop10f90.f90 benchmarks/floop11.cpp benchmarks/floop11f90.f90 benchmarks/floop12.cpp benchmarks/floop12f90.f90 benchmarks/floop13.cpp benchmarks/floop13f90.f90 benchmarks/floop14.cpp benchmarks/floop14f90.f90 benchmarks/floop15.cpp benchmarks/floop15f90.f90 benchmarks/floop16.cpp benchmarks/floop16f90.f90 benchmarks/floop17.cpp benchmarks/floop17f90.f90 benchmarks/floop18.cpp benchmarks/floop18f90.f90 benchmarks/floop19.cpp benchmarks/floop19f90.f90 benchmarks/floop1f90.f90 benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop21f90.f90 benchmarks/floop22.cpp benchmarks/floop22f90.f90 benchmarks/floop23.cpp benchmarks/floop23f90.f90 benchmarks/floop24.cpp benchmarks/floop24f90.f90 benchmarks/floop25.cpp benchmarks/floop25f90.f90 benchmarks/floop2f90.f90 benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop36f90.f90 benchmarks/floop5.cpp benchmarks/floop5f90.f90 benchmarks/floop6.cpp benchmarks/floop6f90.f90 benchmarks/floop8.cpp benchmarks/floop8f90.f90 benchmarks/floop9.cpp benchmarks/floop9f90.f90 benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop100f90.f90 benchmarks/loop10f90.f90 benchmarks/loop11.cpp benchmarks/loop11f90.f90 benchmarks/loop12.cpp benchmarks/loop12f90.f90 benchmarks/loop13.cpp benchmarks/loop13f90.f90 benchmarks/loop14.cpp benchmarks/loop14f90.f90 benchmarks/loop15.cpp benchmarks/loop15f90.f90 benchmarks/loop16.cpp benchmarks/loop16f90.f90 benchmarks/loop17.cpp benchmarks/loop17f90.f90 benchmarks/loop18.cpp benchmarks/loop18f90.f90 benchmarks/loop19.cpp benchmarks/loop19f90.f90 benchmarks/loop1f90.f90 benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop21f90.f90 benchmarks/loop22.cpp benchmarks/loop22f90.f90 benchmarks/loop23.cpp benchmarks/loop23f90.f90 benchmarks/loop24.cpp benchmarks/loop24f90.f90 benchmarks/loop25.cpp benchmarks/loop25f90.f90 benchmarks/loop2f90.f90 benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop36f90.f90 benchmarks/loop5.cpp benchmarks/loop5f90.f90 benchmarks/loop6.cpp benchmarks/loop6f90.f90 benchmarks/loop8.cpp benchmarks/loop8f90.f90 benchmarks/loop9.cpp benchmarks/loop9f90.f90 blitz/generate/makeloops.py description: Fixed yet another bug in makeloops. changeset: 1836:52fb01a72be8 user: Patrik Jonsson date: Wed Jun 29 10:11:57 2011 -0700 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop10f.f benchmarks/floop11.cpp benchmarks/floop11f.f benchmarks/floop12.cpp benchmarks/floop12f.f benchmarks/floop13.cpp benchmarks/floop13f.f benchmarks/floop14.cpp benchmarks/floop14f.f benchmarks/floop15.cpp benchmarks/floop15f.f benchmarks/floop16.cpp benchmarks/floop16f.f benchmarks/floop17.cpp benchmarks/floop17f.f benchmarks/floop18.cpp benchmarks/floop18f.f benchmarks/floop19.cpp benchmarks/floop19f.f benchmarks/floop1f.f benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop21f.f benchmarks/floop22.cpp benchmarks/floop22f.f benchmarks/floop23.cpp benchmarks/floop23f.f benchmarks/floop24.cpp benchmarks/floop24f.f benchmarks/floop25.cpp benchmarks/floop25f.f benchmarks/floop2f.f benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop36f.f benchmarks/floop3f.f benchmarks/floop5.cpp benchmarks/floop5f.f benchmarks/floop6.cpp benchmarks/floop6f.f benchmarks/floop8.cpp benchmarks/floop8f.f benchmarks/floop9.cpp benchmarks/floop9f.f benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop100f.f benchmarks/loop10f.f benchmarks/loop11.cpp benchmarks/loop11f.f benchmarks/loop12.cpp benchmarks/loop12f.f benchmarks/loop13.cpp benchmarks/loop13f.f benchmarks/loop14.cpp benchmarks/loop14f.f benchmarks/loop15.cpp benchmarks/loop15f.f benchmarks/loop16.cpp benchmarks/loop16f.f benchmarks/loop17.cpp benchmarks/loop17f.f benchmarks/loop18.cpp benchmarks/loop18f.f benchmarks/loop19.cpp benchmarks/loop19f.f benchmarks/loop1f.f benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop21f.f benchmarks/loop22.cpp benchmarks/loop22f.f benchmarks/loop23.cpp benchmarks/loop23f.f benchmarks/loop24.cpp benchmarks/loop24f.f benchmarks/loop25.cpp benchmarks/loop25f.f benchmarks/loop2f.f benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop36f.f benchmarks/loop3f.f benchmarks/loop5.cpp benchmarks/loop5f.f benchmarks/loop6.cpp benchmarks/loop6f.f benchmarks/loop8.cpp benchmarks/loop8f.f benchmarks/loop9.cpp benchmarks/loop9f.f blitz/generate/makeloops.py description: Fixed a bug in makeloops for loop expressions containing several statements. changeset: 1835:3b5d96bde968 user: Patrik Jonsson date: Tue Jun 28 15:08:12 2011 -0700 files: benchmarks/Makefile.am benchmarks/arrdaxpy.cpp benchmarks/arrdaxpy.m benchmarks/arrdaxpy2.m benchmarks/arrdaxpyf.f description: Made the arrdaxpy benchmark actually be included in the bench targets and compile. changeset: 1834:c31ec13b787a user: Patrik Jonsson date: Tue Jun 28 14:34:11 2011 -0700 files: benchmarks/acoustic.cpp description: Fixed flops parameter and some warnings in acoustic benchmark. changeset: 1833:0825284cb582 user: Patrik Jonsson date: Tue Jun 28 13:41:12 2011 -0700 files: blitz/array/expr.h blitz/array/stencil-et-macros.h blitz/array/stencil-et.h blitz/generate/genstencils.py blitz/globeval.cc description: Operations that can not use the vectorized fastRead_tv can now indicate this by setting minWidth=0. This will bypass the vectorized operations in _bz_evaluateWithUnitStride and go directly to the scalar path. Used this mechanism to turn of vectorization for stencils. Finished updating stencil classes with fastRead_tv. Tests with stencils now work again. changeset: 1832:8ad1428d6b8d user: Patrik Jonsson date: Tue Jun 28 12:36:50 2011 -0700 files: blitz/array/expr.h blitz/array/functorExpr.h blitz/array/map.h blitz/array/reduce.h blitz/array/stencil-et.h blitz/array/where.h blitz/generate/genstencils.py blitz/indexexpr.h blitz/levicivita.h blitz/range.h blitz/tv2fastiter.h description: Further cleanup of the now-unused tvtypeprop typedefs in the ET classes. Added fastRead_tv() and the tvresult classes to the stencil ET classes. Stencils are now attempted to be vectorized, but it's not clear how this functionality should work so at this point we get a precondition failure. Need to either work out how to do it or how to not vectorize them. changeset: 1831:8e406dc4dd1c user: Patrik Jonsson date: Tue Jun 28 12:34:05 2011 -0700 files: blitz/globeval.cc description: Rank>1 stack traversals now also use the evaluateWithUnitStride and evaluateWithCommonStride functions for the inner loop, if appropriate. This should enable vectorization for the inner loops of higher-rank expressions as long as they are unit stride. changeset: 1830:f3114d86ba95 user: Patrik Jonsson date: Tue Jun 28 09:14:08 2011 -0700 files: blitz/array/expr.h blitz/array/functorExpr.h blitz/array/where.h description: Cleaned up old fastRead_tv from readHelper classes. changeset: 1829:469fb9bd9755 user: Patrik Jonsson date: Tue Jun 28 09:13:51 2011 -0700 files: testsuite/loop1.cpp description: Updated loop1 test case to use new benchext interface. changeset: 1828:7e076a476614 user: Patrik Jonsson date: Tue Jun 28 08:59:41 2011 -0700 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop11.cpp benchmarks/floop12.cpp benchmarks/floop13.cpp benchmarks/floop14.cpp benchmarks/floop15.cpp benchmarks/floop16.cpp benchmarks/floop17.cpp benchmarks/floop18.cpp benchmarks/floop19.cpp benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop22.cpp benchmarks/floop23.cpp benchmarks/floop24.cpp benchmarks/floop25.cpp benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop5.cpp benchmarks/floop6.cpp benchmarks/floop8.cpp benchmarks/floop9.cpp benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop11.cpp benchmarks/loop12.cpp benchmarks/loop13.cpp benchmarks/loop14.cpp benchmarks/loop15.cpp benchmarks/loop16.cpp benchmarks/loop17.cpp benchmarks/loop18.cpp benchmarks/loop19.cpp benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop22.cpp benchmarks/loop23.cpp benchmarks/loop24.cpp benchmarks/loop25.cpp benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop5.cpp benchmarks/loop6.cpp benchmarks/loop8.cpp benchmarks/loop9.cpp blitz/benchext.cc blitz/benchext.h blitz/generate/makeloops.py blitz/timer.h description: Benchext functionality with dependent variable now works correctly. Updated makeloops so loop benchmarks make use of this, and also added array tensor notation to the benchmarks. changeset: 1827:85b6c418c275 user: Patrik Jonsson date: Mon Jun 27 15:32:51 2011 -0700 files: benchmarks/acoustic.cpp description: Updated acoustic benchmark to use the benchext and run on several sizes. Not working right yet, though. changeset: 1826:46a96a0bc719 user: Patrik Jonsson date: Mon Jun 27 15:32:28 2011 -0700 files: blitz/benchext.cc blitz/benchext.h description: Changed the "rate decription" in benchext to explicitly setting the dependent variable. Depending on whether the timer is reporting seconds or cycles, it will then create the proper output quantity. Also added method currentImplementation() that returns the implementation currently being benchmarked, so it can easily be printed. changeset: 1825:870827755b84 user: Patrik Jonsson date: Mon Jun 27 14:22:10 2011 -0700 files: blitz/globeval.cc description: Fixed typo in globeval.cc. changeset: 1824:729fe7dab4b8 user: Patrik Jonsson date: Mon Jun 27 14:21:58 2011 -0700 files: benchmarks/daxpy.cpp benchmarks/tinydaxpy.cpp description: Updated daxpy and tinydaxpy tests to run with new ET classes. changeset: 1823:979407299a71 user: Patrik Jonsson date: Mon Jun 27 14:21:06 2011 -0700 files: blitz/timer.h src/globals.cpp description: Made timer ivar_ member a string instead of const char*. changeset: 1822:6e69cd6bf77c user: Patrik Jonsson date: Mon Jun 27 14:15:01 2011 -0700 files: benchmarks/acou3d.cpp benchmarks/acou3db4.cpp benchmarks/acoustic.cpp description: Updated acoustic benchmarks to work with new stencil operator names. changeset: 1821:bf4d2dbfde7e user: Patrik Jonsson date: Mon Jun 27 14:13:50 2011 -0700 files: blitz/timer.h src/globals.cpp description: Reverted timer to report seconds instead of us. changeset: 1820:becc65b42c96 user: Patrik Jonsson date: Mon Jun 27 14:13:11 2011 -0700 files: blitz/traversal.cc description: Fixed typo in traversal.cc changeset: 1819:062688a03ef3 user: Patrik Jonsson date: Mon Jun 27 13:18:50 2011 -0700 files: blitz/array/stencils.h testsuite/Makefile.am testsuite/stencil-extent.cpp description: Made stencilExtent member functions const so the automatic stencil extent detection works, and added testcase stencil-extent to test this. changeset: 1818:513fd16d68d8 user: Patrik Jonsson date: Mon Jun 27 12:01:12 2011 -0700 files: blitz/traversal.cc blitz/traversal.h blitz/vector2.h description: Added Vector default constructor and updated traversal functions to use new Vector instead of old. changeset: 1817:18a93bbfc6e5 user: Patrik Jonsson date: Fri Jun 24 12:08:25 2011 -0700 files: blitz/array-impl.h blitz/array/methods.cc blitz/memblock.h description: Added method blockLength() to MemoryBlockReference and made Array::storageSize() use that. Converted some comments to doxygen strings. changeset: 1816:3268cc91465c user: Patrik Jonsson date: Thu Jun 23 17:30:24 2011 -0700 files: blitz/array-impl.h blitz/array/funcs.h blitz/array/interlace.cc blitz/array/methods.cc blitz/array/resize.cc blitz/array/storage.h blitz/blitz.h blitz/memblock.h blitz/tinyvec2.h testsuite/chris-jeffery-2.cpp testsuite/contiguous.cpp testsuite/peter-bienstman-3.cpp testsuite/preexisting.cpp testsuite/transpose.cpp testsuite/troyer-genilloud.cpp description: Moved the specification of padded/unpadded storage to the GeneralArrayStorage object, and created shortcuts paddedArray and contiguousArray shortcuts. Preexisting memory constructors will now throw an exception if the specified array is noncontiguous. Tests were updated to specify contiguous arrays if they rely on knowing the strides. changeset: 1815:25e0fde6666c user: Patrik Jonsson date: Thu Jun 23 17:30:02 2011 -0700 files: blitz/simdtypes.h description: Removed specialization of simdTypes for bools as we can't adjust alignment anyway. changeset: 1814:9ba706d744f5 user: Patrik Jonsson date: Thu Jun 23 14:42:32 2011 -0700 files: blitz/array-impl.h blitz/array/interlace.cc blitz/array/methods.cc blitz/array/resize.cc blitz/array/storage.h blitz/blitz.h blitz/simdtypes.h blitz/tinyvec2.h configure.ac testsuite/contiguous.cpp testsuite/peter-bienstman-3.cpp testsuite/preexisting.cpp testsuite/transpose.cpp description: Added argument paddingPolicy to Array constructors and resize methods. The default value is set by the --enable-array-length-padding argument to configure. Reduced duplicated code in constructors. Restored tests that test storage to just specify unpadded storage. changeset: 1813:a672a5056a2d user: Patrik Jonsson date: Thu Jun 23 13:42:24 2011 -0700 files: testsuite/alignment.cpp description: Updated alignment test to check paddedLength, offsetToAlignment and _bz_meta_bitwidth. changeset: 1812:2c9dd168eb7c parent: 1808:7f1cd86bf252 user: Patrik Jonsson date: Thu Jun 23 13:36:16 2011 -0700 files: blitz/simdtypes.h description: Added paddedLength() function to simdTypes, and rewrite offsetToAlignment to not do a modulo. Added _bz_meta_bitwidth metaprogram to calculate the number of bits needed to fit a number. changeset: 1811:e8364831590c branch: vectorization parent: 1605:1a3d913c4c80 user: Patrik Jonsson date: Wed Jun 22 08:33:02 2011 -0700 description: Closed vectorization branch, this was only a proof-of-concept. changeset: 1810:7e7b743d45dc branch: compat-64bit parent: 1662:243a3797fdec user: Patrik Jonsson date: Wed Jun 22 08:30:27 2011 -0700 description: Closed compat-64bit branch, as this has was merged in CVS. changeset: 1809:115f8f0c4aa3 branch: stencil-et parent: 1684:f42d3e515fbd user: Patrik Jonsson date: Wed Jun 22 08:27:58 2011 -0700 description: Closed stencil-et branch, as this has was merged in CVS. changeset: 1808:7f1cd86bf252 parent: 1807:67c9701bd14b parent: 1796:695e799bdc3f user: Patrik Jonsson date: Wed Jun 22 08:09:58 2011 -0700 description: Merge. changeset: 1807:67c9701bd14b user: Patrik Jonsson date: Wed Jun 22 08:08:57 2011 -0700 files: blitz/array-impl.h blitz/array/methods.cc configure.ac testsuite/contiguous.cpp testsuite/ctors.cpp testsuite/peter-bienstman-3.cpp testsuite/preexisting.cpp testsuite/transpose.cpp description: Added configure option --enable-array-length-padding as a switch for padding the minor rank of arrays to even SIMD widths. Added back test of uneven array sizes in contiguous test, and removed the warning printout from the tests that assumed they knew what the strides should be unless this option is enabled. changeset: 1806:2be82135f511 user: Patrik Jonsson date: Wed Jun 22 07:58:17 2011 -0700 files: testsuite/expression-slicing.cpp testsuite/safeToReturn.cpp description: Fixed safeToReturn and expression-slicing tests to not compare floating-point expressions for equality. changeset: 1805:76b227678361 parent: 1804:c5164c57d20b parent: 1799:51e03b388db3 user: Patrik Jonsson date: Wed Jun 22 09:54:42 2011 -0400 description: Merged from governator. changeset: 1804:c5164c57d20b parent: 1803:0759f0ead3b9 parent: 1798:f6f34b144649 user: Patrik Jonsson date: Wed Jun 22 09:50:55 2011 -0400 files: blitz/applics.h blitz/array-old.h blitz/array/eval.cc blitz/benchext.cc blitz/extremum.h blitz/matdiag.h blitz/matexpr.h blitz/matgen.h blitz/mathf2.h blitz/matltri.h blitz/matref.h blitz/matrix.cc blitz/matrix.h blitz/matsymm.h blitz/mattoep.h blitz/matutri.h blitz/mstruct.h blitz/rand-dunif.h blitz/rand-mt.h blitz/rand-normal.h blitz/rand-tt800.h blitz/rand-uniform.h blitz/random.h blitz/randref.h blitz/tiny.h blitz/tinymat.h blitz/tinymatexpr.h blitz/tinymatio.cc blitz/tinyvec-et.h blitz/tinyvec.h blitz/tinyvecio.cc blitz/tinyveciter.h blitz/vecaccum.cc blitz/vecall.cc blitz/vecany.cc blitz/veccount.cc blitz/vecdelta.cc blitz/vecdot.cc blitz/vecexpr.h blitz/vecexprwrap.h blitz/vecglobs.cc blitz/vecglobs.h blitz/vecio.cc blitz/veciter.h blitz/vecmax.cc blitz/vecmin.cc blitz/vecnorm.cc blitz/vecnorm1.cc blitz/vecpick.cc blitz/vecpick.h blitz/vecpickio.cc blitz/vecpickiter.h blitz/vecproduct.cc blitz/vecsum.cc blitz/vector-et.h blitz/vector.cc blitz/vector.h blitz/vecwhere.h blitz/zero.cc blitz/zero.h test.cc description: Merged from governator. changeset: 1803:0759f0ead3b9 user: Patrik Jonsson date: Wed Jun 22 09:50:16 2011 -0400 files: blitz/benchext.cc blitz/benchext.h description: Benchext now uses long long integers to measure cycles instead of doubles. changeset: 1802:dd0c79809d3c parent: 1801:41a98caf5177 parent: 1763:0532e5ff7ab5 user: Patrik Jonsson date: Wed Jun 15 13:08:51 2011 -0400 description: Merged makeloops. changeset: 1801:41a98caf5177 user: Patrik Jonsson date: Wed Jun 15 13:08:15 2011 -0400 files: blitz/benchext.cc description: Removed some debugging output from benchext. changeset: 1800:1934801ac8af parent: 1762:33cf8f76121c user: Patrik Jonsson date: Wed Jun 15 12:55:55 2011 -0400 files: blitz/benchext.cc blitz/benchext.h blitz/timer.h description: Changed PAPI timer to use PAPI_read_counters, because stopping and starting them is very expensive. Also changed so benchext only uses one timer class, since they never run concurrently and it complicates PAPI use. changeset: 1799:51e03b388db3 user: Patrik Jonsson date: Wed Jun 22 06:54:14 2011 -0700 files: blitz/globeval.cc description: Fixed a typo in globeval. changeset: 1798:f6f34b144649 user: Patrik Jonsson date: Tue Jun 21 20:59:58 2011 -0700 files: blitz/benchext.cc description: Tweaked pylab graph. changeset: 1797:1521c60b11a6 parent: 1795:924b46cce6ab user: Patrik Jonsson date: Tue Jun 21 20:59:24 2011 -0700 files: blitz/globeval.cc description: Tweaked unit stride evaluation after looking at float outputs. changeset: 1796:695e799bdc3f user: Paul P. Hilscher date: Wed Jun 22 01:38:27 2011 -0400 files: blitz/types.h description: Added types.h with typedefs for most famous array types (later also vectors) e.g. typedef Array Array3d; thus instead of writing void Func(Array A) { Array, 4> B; ... } we can also write void Func(Array3d A) { Array4z B; .... } changeset: 1795:924b46cce6ab user: Patrik Jonsson date: Tue Jun 21 18:01:43 2011 -0700 files: blitz/generate/makeloops.py description: Fixed bug in makeloops. changeset: 1794:3da65fac47c5 user: Patrik Jonsson date: Tue Jun 21 17:45:14 2011 -0700 files: blitz/generate/makeloops.py description: makeloops.py now generates loops for unaligned/misaligned array expressions. changeset: 1793:ded58a3c9ac3 user: Patrik Jonsson date: Tue Jun 21 15:21:43 2011 -0700 files: blitz/array/expr.h blitz/array/fastiter.h blitz/array/functorExpr.h blitz/array/map.h blitz/array/reduce.h blitz/array/stencil-et.h blitz/array/where.h blitz/globeval.cc blitz/tm2fastiter.h blitz/tv2fastiter.h description: Updated remaining expressions classes with minWidth/maxWidth members and new fastRead_tv template. Tests are now back to normal. changeset: 1792:4042693d9d96 user: Patrik Jonsson date: Tue Jun 21 14:33:06 2011 -0700 files: blitz/globeval.cc blitz/meta/vecassign.h blitz/tinyvec2.cc blitz/tinyvec2.h description: Major tweak to unit stride evaluation. Lowered overhead by meta-unrolling assignments for small arrays and sticking with unaligned accesses if the extra overhead in aligning isn't worth it. Also changed the chunked_updater to call _tv_evaluate directly instead of going through the assignment operator. This has increased performance for <10-element arrays significantly. However, there is now something going on with aligned arrays > 256 elements, where the performance drops by a factor of 2. changeset: 1791:cc6a1aabe044 user: Patrik Jonsson date: Tue Jun 21 10:54:42 2011 -0700 files: blitz/array/expr.h blitz/array/fastiter.h blitz/globeval.cc blitz/indexexpr.h blitz/levicivita.h blitz/range.h blitz/tv2fastiter.h testsuite/complex-test.cpp description: Changed fastRead_tv() to be a template so expressions can return vectorization units of different widths, chosen at evaluation, and make the expression classes return both the min and max simd width of their operands. Updated the unit stride evaluation to decide whether to do aligned or unaligned vectorization (though the actual aligned/unaligned routines remain to be written). changeset: 1790:b74fb32f5843 user: Patrik Jonsson date: Tue Jun 21 10:52:03 2011 -0700 files: testsuite/vectorization.cpp description: Added a test case vectorization to test that the vectorization routines do sensible things with weird expressions. changeset: 1789:6a999035167c user: Patrik Jonsson date: Tue Jun 21 08:33:24 2011 -0700 files: blitz/array/expr.h blitz/array/fastiter.h blitz/globeval.cc blitz/indexexpr.h blitz/levicivita.h blitz/range.h blitz/tv2fastiter.h description: Added simdWidth member to major expression classes. changeset: 1788:88184b5be7f8 user: Patrik Jonsson date: Mon Jun 20 16:47:05 2011 -0700 files: blitz/array/fastiter.h blitz/globeval.cc blitz/simdtypes.h blitz/tinymat2.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tm2fastiter.h blitz/tv2fastiter.h description: Debugged the evaluation loop for unaligned elements. Improved traverse debug messages. Fixed bug in simdTypes::offsetToAlignment and in other alignment checks. This has now broken complex-test, as it tries to vectorize it but doesn't get the type right. changeset: 1787:8f8e91ae2bb2 user: Patrik Jonsson date: Mon Jun 20 14:32:22 2011 -0700 files: testsuite/alignment.cpp description: Updated alignment test case to test the offsetToAlignment function. changeset: 1786:e52d98b0127e user: Patrik Jonsson date: Mon Jun 20 14:31:11 2011 -0700 files: blitz/array-impl.h blitz/array/expr.h blitz/array/fastiter.h blitz/array/functorExpr.h blitz/array/map.h blitz/array/reduce.h blitz/array/stencil-et.h blitz/array/where.h blitz/globeval.cc blitz/indexexpr.h blitz/simdtypes.h blitz/tv2fastiter.h description: Added vectorization of unaligned expressions by completing the initial scalar operations. This works as long as source and dest have identical misalignment. changeset: 1785:b3bc1e1098e7 user: Patrik Jonsson date: Mon Jun 20 13:21:09 2011 -0700 files: blitz/array-impl.h blitz/tinyvec2.h description: Added TinyVector constructor taking an expression. changeset: 1784:c85903971cb4 user: Patrik Jonsson date: Mon Jun 20 13:20:32 2011 -0700 files: blitz/array/asexpr.h description: Added BzReductionResult, BzIndexmapResult, BzStencilResult, and BzBinaryStencilResult traits classes. changeset: 1783:ee4cd02aec30 user: Patrik Jonsson date: Sat Jun 18 18:45:25 2011 -0700 files: blitz/tinyvec2.h description: Made TinyVector expression constructor explicit to avoid implicit conversion ambiguities. changeset: 1782:d59002128cfb user: Patrik Jonsson date: Sat Jun 18 18:19:08 2011 -0700 files: blitz/array/Makefile.am description: Added stencil-et-macros.h to installed files. changeset: 1781:22c668d76b8c user: Patrik Jonsson date: Sat Jun 18 18:12:36 2011 -0700 files: blitz/Makefile.am blitz/array/Makefile.am description: Fixed Makefile so all new files are installed. changeset: 1780:c44f496f5545 user: Patrik Jonsson date: Sat Jun 18 18:12:11 2011 -0700 files: blitz/tinyvec2.h testsuite/tinyvec.cpp description: Added tinyvec expression constructor. changeset: 1779:46e8a4374790 user: Patrik Jonsson date: Sat Jun 18 12:54:57 2011 -0700 files: blitz/array/functorExpr.h testsuite/Makefile.am testsuite/member_function.cpp description: Fixed a bug in the functorExpr macros that caused member function functors to use out-of-scope temporary copies of their parent objects if expressions were passed by value. changeset: 1778:493d32bb7166 user: Patrik Jonsson date: Fri Jun 17 15:27:01 2011 -0700 files: blitz/array-impl.h blitz/array/expr.h blitz/array/fastiter.h blitz/array/functorExpr.h blitz/array/map.h blitz/array/ops.cc blitz/array/reduce.h blitz/array/stencil-et.h blitz/array/where.h blitz/globeval.cc blitz/indexexpr.h blitz/memblock.h blitz/range.h blitz/simdtypes.h blitz/tinyvec2.cc blitz/tm2fastiter.h blitz/tv2fastiter.h description: Tweaks to lower the evaluation overhead. Evaluation functions are now members of a helper class _bz_evaluator that is templated based on rank. Extracted 1-d unit stride and common stride functions into separate functions. Simplified alignment and unit stride checks. Removed the non-USE_FAST_READ_EXPR code. This has increased the performance for small arrays by ~50%. changeset: 1777:78209d59637b user: Patrik Jonsson date: Fri Jun 17 10:50:18 2011 -0700 files: blitz/array-impl.h description: Removed declarations of the now-unused evaluation functions in Array. changeset: 1776:173191ec4caf user: Patrik Jonsson date: Fri Jun 17 10:46:55 2011 -0700 files: blitz/globeval.cc testsuite/alignment.cpp description: EvaluateWithStackTraversal1 now correctly deals with the ends of uneven-length arrays by using the non-vectorized update for those elements. The alignment test now checks that arrays report their alignment correctly and that the update doesn't overrun the end of the array. changeset: 1775:e1600266eb9d user: Patrik Jonsson date: Fri Jun 17 09:37:49 2011 -0700 files: blitz/array.cc description: array.cc now includes tinymat2.cc changeset: 1774:3f8e4553b7b2 user: Patrik Jonsson date: Fri Jun 17 09:37:26 2011 -0700 files: testsuite/qcd.cpp description: Updated qcd test to use ranlib. changeset: 1773:57282f9614de user: Patrik Jonsson date: Fri Jun 17 09:29:46 2011 -0700 files: test.cc description: Removed test.cc changeset: 1772:f0858eb48bde user: Patrik Jonsson date: Fri Jun 17 11:36:56 2011 -0400 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop11.cpp benchmarks/floop12.cpp benchmarks/floop13.cpp benchmarks/floop14.cpp benchmarks/floop15.cpp benchmarks/floop16.cpp benchmarks/floop17.cpp benchmarks/floop18.cpp benchmarks/floop19.cpp benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop22.cpp benchmarks/floop23.cpp benchmarks/floop24.cpp benchmarks/floop25.cpp benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop5.cpp benchmarks/floop6.cpp benchmarks/floop8.cpp benchmarks/floop9.cpp benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop11.cpp benchmarks/loop12.cpp benchmarks/loop13.cpp benchmarks/loop14.cpp benchmarks/loop15.cpp benchmarks/loop16.cpp benchmarks/loop17.cpp benchmarks/loop18.cpp benchmarks/loop19.cpp benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop22.cpp benchmarks/loop23.cpp benchmarks/loop24.cpp benchmarks/loop25.cpp benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop5.cpp benchmarks/loop6.cpp benchmarks/loop8.cpp benchmarks/loop9.cpp blitz/Makefile.am blitz/generate/makeloops.py blitz/rand-dunif.h blitz/rand-mt.h blitz/rand-normal.h blitz/rand-tt800.h blitz/rand-uniform.h blitz/random.h blitz/randref.h testsuite/loop1.cpp description: More housecleaning. Removed the RNGs in blitz/ and redirected the loop benchmarks to use the ones in ranlib::. changeset: 1771:49f4a83346b6 user: Patrik Jonsson date: Fri Jun 17 11:16:52 2011 -0400 files: blitz/Makefile.am blitz/applics.h blitz/array-impl.h blitz/array-old.h blitz/array/Makefile.am blitz/array/eval.cc blitz/extremum.h blitz/generate/Makefile.am blitz/matdiag.h blitz/matexpr.h blitz/matgen.h blitz/mathf2.h blitz/matltri.h blitz/matref.h blitz/matrix.cc blitz/matrix.h blitz/matsymm.h blitz/mattoep.h blitz/matutri.h blitz/memblock.h blitz/mstruct.h blitz/tiny.h blitz/tinymat.h blitz/tinymatexpr.h blitz/tinymatio.cc blitz/tinyvec-et.h blitz/tinyvec.h blitz/tinyvecio.cc blitz/tinyveciter.h blitz/vecaccum.cc blitz/vecall.cc blitz/vecany.cc blitz/veccount.cc blitz/vecdelta.cc blitz/vecdot.cc blitz/vecexpr.h blitz/vecexprwrap.h blitz/vecglobs.cc blitz/vecglobs.h blitz/vecio.cc blitz/veciter.h blitz/vecmax.cc blitz/vecmin.cc blitz/vecnorm.cc blitz/vecnorm1.cc blitz/vecpick.cc blitz/vecpick.h blitz/vecpickio.cc blitz/vecpickiter.h blitz/vecproduct.cc blitz/vecsum.cc blitz/vector-et.h blitz/vector.cc blitz/vector.h blitz/vecwhere.h blitz/zero.cc blitz/zero.h src/globals.cpp description: HOUSE CLEANING. Removed most old files for the old ET machinery that are no longer needed. changeset: 1770:292be3be8b3c user: Patrik Jonsson date: Thu Jun 16 20:31:23 2011 -0700 files: blitz/array-impl.h testsuite/Makefile.am testsuite/preexisting.cpp description: Added a warning if an Array is constructed from preexisting data but the array is not contiguous. Added a testcase that exercises this. changeset: 1769:3d1d9b901f0a user: Patrik Jonsson date: Thu Jun 16 20:03:20 2011 -0700 files: testsuite/Makefile.am testsuite/alignment.cpp description: Created a test case checking that TinyVector and TinyMatrix are aligned properly. changeset: 1768:727ee54426f5 user: Patrik Jonsson date: Thu Jun 16 19:43:34 2011 -0700 files: blitz/array-impl.h blitz/array/methods.cc testsuite/contiguous.cpp testsuite/ctors.cpp testsuite/peter-bienstman-3.cpp testsuite/peter-nordlund-1.cpp testsuite/pthread.cpp testsuite/transpose.cpp description: Padded array minor rank to an even simd width. This changes strides and whether the array is contiguous, so necessitated changing some tests that assume they know what the stride should be. Also added array method storageSize() which returs the size of the memoryblock, since numElements is no longer a measure of how large that block is. changeset: 1767:9d70f0a558d2 user: Patrik Jonsson date: Thu Jun 16 15:02:19 2011 -0700 files: benchmarks/loop100f.f benchmarks/loop100f90.f90 description: Added loop100 fortran files. changeset: 1766:5c64913a62cc user: Patrik Jonsson date: Thu Jun 16 15:01:43 2011 -0700 files: benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop11.cpp benchmarks/floop12.cpp benchmarks/floop13.cpp benchmarks/floop14.cpp benchmarks/floop15.cpp benchmarks/floop16.cpp benchmarks/floop17.cpp benchmarks/floop18.cpp benchmarks/floop19.cpp benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop22.cpp benchmarks/floop23.cpp benchmarks/floop24.cpp benchmarks/floop25.cpp benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop5.cpp benchmarks/floop6.cpp benchmarks/floop8.cpp benchmarks/floop9.cpp benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop100.cpp benchmarks/loop11.cpp benchmarks/loop12.cpp benchmarks/loop13.cpp benchmarks/loop14.cpp benchmarks/loop15.cpp benchmarks/loop16.cpp benchmarks/loop17.cpp benchmarks/loop18.cpp benchmarks/loop19.cpp benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop22.cpp benchmarks/loop23.cpp benchmarks/loop24.cpp benchmarks/loop25.cpp benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop5.cpp benchmarks/loop6.cpp benchmarks/loop8.cpp benchmarks/loop9.cpp description: Regenerated loops. changeset: 1765:0a1639f34c04 user: Patrik Jonsson date: Thu Jun 16 14:58:42 2011 -0700 files: blitz/array/stencil-et.h description: Added numTV/TMoperands to _bz_StencilExpr2. changeset: 1764:322758b11aca user: Patrik Jonsson date: Thu Jun 16 14:58:11 2011 -0700 files: testsuite/tinyvec.cpp description: Fixed typo in tinyvec test. changeset: 1763:0532e5ff7ab5 user: Patrik Jonsson date: Wed Jun 15 10:06:49 2011 -0700 files: blitz/generate/makeloops.py description: Conditionally re-added the Vector benchmark in makeloops. changeset: 1762:33cf8f76121c user: Patrik Jonsson date: Wed Jun 15 09:47:45 2011 -0700 files: blitz/benchext.cc description: Fixed typo in pylab output. changeset: 1761:9feccebd61cc user: Patrik Jonsson date: Tue Jun 14 09:36:23 2011 -0700 files: blitz/benchext.cc description: Tweaked python graph in benchext. changeset: 1760:8a7be5be87d2 user: Patrik Jonsson date: Mon Jun 13 11:59:02 2011 -0700 files: benchmarks/Makefile.am description: Added loop100 target. changeset: 1759:ff330fda93ec user: Patrik Jonsson date: Mon Jun 13 11:58:35 2011 -0700 files: blitz/benchext.cc description: Benchext now sets negative results to zero. changeset: 1758:9bb759a31af3 user: Patrik Jonsson date: Mon Jun 13 11:57:51 2011 -0700 files: blitz/generate/makeloops.py description: Updated makeloops to generate loop100 and to generate F77 continuation lines if the expression is too long. changeset: 1757:9586d37e6fda user: Patrik Jonsson date: Mon Jun 13 08:20:15 2011 -0700 files: blitz/tinymat2.h blitz/tm2fastiter.h blitz/tv2fastiter.h description: Re-enabled fastRead_tv() for Tiny containers, since these are needed for mixed Array/tiny expressions. The chunked_updater prevents recursive instantiation loops now. changeset: 1756:67fe2f750fb4 user: Patrik Jonsson date: Sun Jun 12 14:30:24 2011 -0700 files: blitz/array/expr.h blitz/array/functorExpr.h blitz/array/map.h blitz/array/reduce.h blitz/array/stencil-et.h blitz/array/where.h blitz/benchext.cc blitz/globeval.cc blitz/indexexpr.h blitz/timer.h blitz/tinymat2.h blitz/tm2fastiter.h blitz/tuning.h blitz/tv2fastiter.h test.cc testsuite/loop1.cpp testsuite/qcd.cpp description: Added tvresult return type functionality to remaining expression classes. All tests now compile, and those that don't pass do so for different reasons. changeset: 1755:34ffda55e5ce parent: 1754:ed427d5babca parent: 1750:b47f69881d33 user: Patrik Jonsson date: Sun Jun 12 16:57:23 2011 -0400 description: Merged from governator. changeset: 1754:ed427d5babca user: Patrik Jonsson date: Sun Jun 12 16:56:27 2011 -0400 files: blitz/generate/makeloops.py description: Removed nops from loops, increased iters for low numbers, and fixed declaration of sink(). changeset: 1753:d17056f4b08b user: Patrik Jonsson date: Sun Jun 12 16:53:49 2011 -0400 files: configure.ac description: Added check for PAPI library. changeset: 1752:f73e13fa07f2 user: Patrik Jonsson date: Sun Jun 12 16:52:58 2011 -0400 files: blitz/benchext.cc blitz/benchext.h description: Added reporting of instructions per cycle and total flops per cycle to benchmark if PAPI is used. changeset: 1751:440bd8b86ed0 parent: 1748:248ae0986c24 user: Patrik Jonsson date: Sun Jun 12 16:51:40 2011 -0400 files: blitz/timer.h src/globals.cpp description: Fixed timer class to work with PAPI. changeset: 1750:b47f69881d33 user: Patrik Jonsson date: Sun Jun 12 07:35:52 2011 -0700 files: blitz/array/expr.h description: Fixed typo in UnaryExprOp. changeset: 1749:4e0a0cf8b488 user: Patrik Jonsson date: Sun Jun 12 10:10:23 2011 -0400 files: blitz/array-impl.h blitz/array/expr.h blitz/array/fastiter.h blitz/globeval.cc blitz/indexexpr.h blitz/levicivita.h blitz/range.h blitz/tinyvec2.h blitz/tv2fastiter.h blitz/update.h test.cc description: Added fastRead_tv() function to main expression classes and routed aligned Array expressions through it. Basically functional, but many things don't compile. changeset: 1748:248ae0986c24 user: Patrik Jonsson date: Sat Jun 11 15:32:46 2011 -0700 files: benchmarks/Makefile.am benchmarks/floop1.cpp benchmarks/floop10.cpp benchmarks/floop10f.f benchmarks/floop10f90.f90 benchmarks/floop11.cpp benchmarks/floop11f.f benchmarks/floop11f90.f90 benchmarks/floop12.cpp benchmarks/floop12f.f benchmarks/floop12f90.f90 benchmarks/floop13.cpp benchmarks/floop13f.f benchmarks/floop13f90.f90 benchmarks/floop14.cpp benchmarks/floop14f.f benchmarks/floop14f90.f90 benchmarks/floop15.cpp benchmarks/floop15f.f benchmarks/floop15f90.f90 benchmarks/floop16.cpp benchmarks/floop16f.f benchmarks/floop16f90.f90 benchmarks/floop17.cpp benchmarks/floop17f.f benchmarks/floop17f90.f90 benchmarks/floop18.cpp benchmarks/floop18f.f benchmarks/floop18f90.f90 benchmarks/floop19.cpp benchmarks/floop19f.f benchmarks/floop19f90.f90 benchmarks/floop1f.f benchmarks/floop1f90.f90 benchmarks/floop2.cpp benchmarks/floop21.cpp benchmarks/floop21f.f benchmarks/floop21f90.f90 benchmarks/floop22.cpp benchmarks/floop22f.f benchmarks/floop22f90.f90 benchmarks/floop23.cpp benchmarks/floop23f.f benchmarks/floop23f90.f90 benchmarks/floop24.cpp benchmarks/floop24f.f benchmarks/floop24f90.f90 benchmarks/floop25.cpp benchmarks/floop25f.f benchmarks/floop25f90.f90 benchmarks/floop2f.f benchmarks/floop2f90.f90 benchmarks/floop3.cpp benchmarks/floop36.cpp benchmarks/floop36f.f benchmarks/floop36f90.f90 benchmarks/floop3f.f benchmarks/floop3f90.f90 benchmarks/floop5.cpp benchmarks/floop5f.f benchmarks/floop5f90.f90 benchmarks/floop6.cpp benchmarks/floop6f.f benchmarks/floop6f90.f90 benchmarks/floop8.cpp benchmarks/floop8f.f benchmarks/floop8f90.f90 benchmarks/floop9.cpp benchmarks/floop9f.f benchmarks/floop9f90.f90 benchmarks/loop1.cpp benchmarks/loop10.cpp benchmarks/loop10f.f benchmarks/loop10f90.f90 benchmarks/loop11.cpp benchmarks/loop11f.f benchmarks/loop11f90.f90 benchmarks/loop12.cpp benchmarks/loop12f.f benchmarks/loop12f90.f90 benchmarks/loop13.cpp benchmarks/loop13f.f benchmarks/loop13f90.f90 benchmarks/loop14.cpp benchmarks/loop14f.f benchmarks/loop14f90.f90 benchmarks/loop15.cpp benchmarks/loop15f.f benchmarks/loop15f90.f90 benchmarks/loop16.cpp benchmarks/loop16f.f benchmarks/loop16f90.f90 benchmarks/loop17.cpp benchmarks/loop17f.f benchmarks/loop17f90.f90 benchmarks/loop18.cpp benchmarks/loop18f.f benchmarks/loop18f90.f90 benchmarks/loop19.cpp benchmarks/loop19f.f benchmarks/loop19f90.f90 benchmarks/loop1f.f benchmarks/loop1f90.f90 benchmarks/loop2.cpp benchmarks/loop21.cpp benchmarks/loop21f.f benchmarks/loop21f90.f90 benchmarks/loop22.cpp benchmarks/loop22f.f benchmarks/loop22f90.f90 benchmarks/loop23.cpp benchmarks/loop23f.f benchmarks/loop23f90.f90 benchmarks/loop24.cpp benchmarks/loop24f.f benchmarks/loop24f90.f90 benchmarks/loop25.cpp benchmarks/loop25f.f benchmarks/loop25f90.f90 benchmarks/loop2f.f benchmarks/loop2f90.f90 benchmarks/loop3.cpp benchmarks/loop36.cpp benchmarks/loop36f.f benchmarks/loop36f90.f90 benchmarks/loop3f.f benchmarks/loop3f90.f90 benchmarks/loop5.cpp benchmarks/loop5f.f benchmarks/loop5f90.f90 benchmarks/loop6.cpp benchmarks/loop6f.f benchmarks/loop6f90.f90 benchmarks/loop8.cpp benchmarks/loop8f.f benchmarks/loop8f90.f90 benchmarks/loop9.cpp benchmarks/loop9f.f benchmarks/loop9f90.f90 test.cc description: Committed updated loop benchmarks and added versions using float. changeset: 1747:144bf0c077b7 user: Patrik Jonsson date: Sat Jun 11 15:31:33 2011 -0700 files: blitz/benchext.cc blitz/benchext.h blitz/generate/makeloops.py blitz/timer.h description: Added an untested implementation for the timer class to use PAPI if available, and for the benchmark class to accept time info in cycles or seconds. changeset: 1746:b5406bbb53ae user: Patrik Jonsson date: Sat Jun 11 14:23:36 2011 -0700 files: blitz/generate/makeloops.py description: Now generates correct loop benchmarks. Added float benchmarks, too. changeset: 1745:ce5438656557 user: Patrik Jonsson date: Sat Jun 11 11:57:58 2011 -0700 files: blitz/generate/makeloops.py description: Now writes all loops in loops.data. changeset: 1744:5a4a4105c96f user: Patrik Jonsson date: Sat Jun 11 10:54:42 2011 -0700 files: blitz/generate/makeloops.py description: Started a makeloops.py to replace the hard-to-edit makeloops.cpp. Now writes the .cpp file. changeset: 1743:9de2c44d1b0e user: Patrik Jonsson date: Fri Jun 10 13:22:09 2011 -0700 files: blitz/array-impl.h blitz/listinit.h description: Changed Array ListInitializer to use the array iterator, which fixes the problems in the initialize test case but breaks the storage one since the iterators are buggy. changeset: 1742:b1be75056cc8 user: Patrik Jonsson date: Fri Jun 10 13:21:38 2011 -0700 files: blitz/globeval.cc description: Fixed an erroneously commented out line. changeset: 1741:a6d2118de27a user: Patrik Jonsson date: Fri Jun 10 10:44:04 2011 -0700 files: blitz/array/functorExpr.h blitz/array/methods.cc blitz/array/reduce.h blitz/array/stencil-et.h blitz/globeval.cc blitz/memblock.cc blitz/memblock.h blitz/simdtypes.h blitz/tinymat2.h testsuite/loop1.cpp testsuite/troyer-genilloud.cpp description: Fixed some test failures introduced by the TinyVector alignment. changeset: 1740:b1e1f01fe282 user: Patrik Jonsson date: Thu Jun 09 19:19:18 2011 -0700 files: blitz/tuning.h test.cc description: Changed tuning for icpc to not unroll. It makes no diff to the performance. changeset: 1739:26ee3e7ea757 user: Patrik Jonsson date: Thu Jun 09 18:35:15 2011 -0700 files: benchmarks/loop3.cpp blitz/tinyvec2.cc blitz/tuning.h src/globals.cpp description: Improved the prevention of loop elimination in loop3 by making the sink() function extern. Added macro BZ_TV_EVALUATE_UNROLL_LENGTH to be defined if TinyVectors below some length should be unrolled, and set this option for icpc in tuning.h. icpc now has very good TV performance, but gcc kinda sucks. changeset: 1738:e286af827d8e user: Patrik Jonsson date: Thu Jun 09 16:10:29 2011 -0700 files: benchmarks/loop3.cpp blitz/benchext.cc blitz/benchext.h blitz/memblock.cc blitz/memblock.h blitz/simdtypes.h blitz/tinyvec.h blitz/tinyvec2.cc blitz/tinyvec2.h configure.ac m4/ac_cxx_alignment_directive.m4 m4/ax_prefix_config_h.m4 description: Merged the alignment changes from the cvs repo. (Grr...) changeset: 1737:8226fb873368 user: Patrik Jonsson date: Thu Jun 09 16:04:44 2011 -0700 files: blitz/globeval.cc description: Added shortcut evaluation for 1-element expressions of any rank. changeset: 1736:d6062dec88de user: Patrik Jonsson date: Thu Jun 09 16:01:47 2011 -0700 files: benchmarks/loop3.cpp description: Upped the number of iterations for small sizes to decrease noise. changeset: 1735:31ad3c728214 user: Patrik Jonsson date: Thu Jun 09 15:00:13 2011 -0700 files: blitz/meta/vecassign.h blitz/tinyvec2.cc description: Added an alternative to meta-unroll the TV evaluation. changeset: 1734:cdaa0193fc68 user: Patrik Jonsson date: Thu Jun 09 14:59:11 2011 -0700 files: blitz/range.h description: Added numTVoperands to Range. changeset: 1733:908a72324c41 user: Patrik Jonsson date: Thu Jun 09 13:56:17 2011 -0700 files: test.cc description: Changed test to a simple TV test. changeset: 1732:deab9d6bea53 user: Patrik Jonsson date: Wed Jun 08 22:36:34 2011 -0400 files: blitz/levicivita.h description: Added numTV/TMoperands to Levicivita object. changeset: 1731:487b90783e8d user: Patrik Jonsson date: Wed Jun 08 22:33:54 2011 -0400 files: blitz/array/asexpr.h blitz/array/expr.h blitz/array/fastiter.h blitz/array/map.h blitz/array/where.h blitz/indexexpr.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tm2fastiter.h blitz/tv2fastiter.h description: Added a TinyVector-specific evaluation function that kicks in for TV-only expressions and is much simpler. changeset: 1730:89cf0320a448 user: Patrik Jonsson date: Wed Jun 08 14:05:07 2011 -0700 files: benchmarks/loop3.cpp description: Tweaked loop3 test to include TinyVector. changeset: 1729:bd0975bd5d2a user: Patrik Jonsson date: Wed Jun 08 13:21:26 2011 -0700 files: blitz/array/functorExpr.h blitz/array/map.h blitz/array/reduce.h blitz/array/where.h blitz/indexexpr.h description: Updated shift functions for multicomponent functionality for functors, index expressions and mappings, reductions and where statements. changeset: 1728:44b0d155ac28 user: Patrik Jonsson date: Wed Jun 08 12:21:22 2011 -0700 files: blitz/array/expr.h blitz/indexpar.h description: Undid _bz_Indexpar stuff because it doesn't work and I don't know what's going on. changeset: 1727:ed46b21750b4 user: Patrik Jonsson date: Wed Jun 08 11:55:58 2011 -0700 files: blitz/array/expr.h blitz/indexpar.h description: Started converting use of BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE to the _bz_Indexpar class, but something's wrong. changeset: 1726:7214fcf29e45 user: Patrik Jonsson date: Wed Jun 08 11:53:13 2011 -0700 files: blitz/array/stencil-et.h description: Added comment. changeset: 1725:c5319e4b1eea user: Patrik Jonsson date: Wed Jun 08 11:05:12 2011 -0700 files: benchmarks/loop2.cpp benchmarks/loop3.cpp blitz/array-impl.h blitz/array/funcs.h blitz/array/map.h blitz/tinymat2.cc blitz/tinymat2.h blitz/tinyvec2.cc blitz/tinyvec2.h testsuite/levicivita.cpp testsuite/shape.cpp description: Levicivita object now works again. Container operator() and index mappings were updated to work with all containers. All tests except 'initialize' now pass. changeset: 1724:d3dc59c5adb6 user: Patrik Jonsson date: Tue Jun 07 23:17:53 2011 -0400 files: benchmarks/loop1.cpp blitz/benchext.cc blitz/vector2.h testsuite/initialize.cpp testsuite/loop1.cpp description: Added file vector2.h which declares Vector by deriving from Array. It doesn't have the same syntax as the old vector, though. changeset: 1723:bedb9b347ded user: Patrik Jonsson date: Tue Jun 07 22:54:43 2011 -0400 files: blitz/benchext.cc blitz/benchext.h testsuite/qcd.cpp description: Changed qcd benchmark to use rank-1 Arrays instead of Vectors. This also required changes to benchext. changeset: 1722:e38757c62997 user: Patrik Jonsson date: Tue Jun 07 18:16:32 2011 -0400 files: blitz/array/stencil-et-macros.h blitz/generate/genstencils.py testsuite/stencil-et.cpp description: Updated stencil-et-macros.h to not have C++-style comments in the macros. changeset: 1721:fe724f8ca2d3 user: Patrik Jonsson date: Tue Jun 07 17:08:18 2011 -0400 files: blitz/array/asexpr.cc blitz/array/expr.h blitz/array/fastiter.h blitz/array/multi.h blitz/array/stencil-et-macros.h blitz/array/stencilops.h blitz/generate/genstencils.py blitz/tinymat2.cc blitz/tinymat2.h blitz/tm2fastiter.h blitz/tv2fastiter.h test.cc testsuite/stencil-et.cpp description: Stencils now work, at least to the point that the tests using predefined stencils pass. This required adding the shift() methods to the type selection machinery, which remains to be done for the specialized ET classes, and changing the signatures of some stencil operators. Added TinyMatrix to multicomponent_traits. Also found a bug in the tv and tm copy iterators that caused iterators initialized from temporaries to be bad. changeset: 1720:c0f10b956e41 user: Patrik Jonsson date: Mon Jun 06 17:41:41 2011 -0400 files: blitz/generate/genstencils.py description: Added boilerplate multicomponent typedefs to stencil classes, but this is in many cases incorrect. The stencils that aren't simple element-wise operations need more thought. changeset: 1719:45a26e6719a9 user: Patrik Jonsson date: Mon Jun 06 14:51:09 2011 -0400 files: blitz/array.cc description: Fixed bad path to range.cc file in previous commit. changeset: 1718:483f43690120 user: Patrik Jonsson date: Mon Jun 06 14:48:31 2011 -0400 files: blitz/array.cc blitz/range.cc blitz/range.h test.cc testsuite/tvinitialize.cpp description: Added tvinitialize test case, and range.cc to the files included by array.cc. changeset: 1717:d1aacd22a60d user: Patrik Jonsson date: Mon Jun 06 11:30:46 2011 -0700 files: testsuite/tvinitialize.cpp description: Added test for TinyVector list initializer changeset: 1716:fdb226333e76 user: Patrik Jonsson date: Mon Jun 06 14:28:36 2011 -0400 files: blitz/array/expr.h blitz/array/functorExpr.h blitz/update.h testsuite/Makefile.am testsuite/multicomponent-2.cpp testsuite/patrik-jonsson-1.cpp testsuite/reduce.cpp description: Added multicomponent support to functors, and added testcase multicomponent-2 to test it. Added test of reductions of expressions (these were broken even before). Fixed dereferencing operators on ternary and quaternary expressions. changeset: 1715:84d238c675e7 user: Patrik Jonsson date: Mon Jun 06 11:17:10 2011 -0400 files: testsuite/safeToReturn.cpp description: Fixed safeToReturn testcase. changeset: 1714:4be3fc66da39 user: Patrik Jonsson date: Mon Jun 06 11:05:13 2011 -0400 files: blitz/array/expr.h blitz/array/map.h blitz/array/where.h testsuite/reduce.cpp description: Added reductions of expressions to reduce testcase and added first_value functions to expression classes. Unclear how to implement for index mapping. changeset: 1713:49d1756cefcb user: Patrik Jonsson date: Sun Jun 05 22:52:08 2011 -0400 files: blitz/array/asexpr.h blitz/array/expr.h blitz/array/reduce.h description: Expressions now respect returntype imposed by operator. changeset: 1712:0fb16673a558 user: Patrik Jonsson date: Sun Jun 05 22:24:06 2011 -0400 files: blitz/array-impl.h blitz/array/expr.h blitz/array/map.h blitz/array/ops.cc blitz/array/reduce.h blitz/array/where.h blitz/globeval.cc blitz/indexexpr.h testsuite/peter-nordlund-1.cpp description: Added multicomponent types for reductions, mappings and where. All tests that compile pass. changeset: 1711:27726264ee65 user: Patrik Jonsson date: Sun Jun 05 18:37:28 2011 -0700 files: testsuite/arrayinitialize.cpp description: Added test that list initializer is working. changeset: 1710:f91aea787e4b user: Patrik Jonsson date: Sun Jun 05 17:40:24 2011 -0400 files: blitz/array.cc blitz/array/expr.cc blitz/array/ops.cc blitz/tinymat2.cc blitz/tinymat2.h blitz/tinyvec2.cc blitz/tm2ops.cc testsuite/multicomponent.cpp description: Further tweaks to multicomponent: return types, updater types. Fleshed out multicomponent test case, which now passes. changeset: 1709:d9fb47fca6aa parent: 1708:ad4ee52d4118 parent: 1701:0a7d38f46c73 user: Patrik Jonsson date: Sun Jun 05 16:00:56 2011 -0400 description: Merged changes from governator. changeset: 1708:ad4ee52d4118 user: Patrik Jonsson date: Sun Jun 05 16:00:30 2011 -0400 files: blitz/array/asexpr.h blitz/array/expr.h blitz/tinymat2.h blitz/tm2fastiter.h testsuite/multicomponent.cpp description: Added multicomponent machinery for ternary and quaternary expressions, and for TinyMatrix. changeset: 1707:3eb872d83f25 user: Patrik Jonsson date: Sun Jun 05 15:19:33 2011 -0400 files: blitz/array/ops.cc blitz/globeval.cc blitz/indexexpr.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tv2fastiter.h testsuite/multicomponent.cpp description: Now multi-multicomponent containers also work, at least as far as basic unary and binary expressions. changeset: 1706:ac56148d2e28 user: Patrik Jonsson date: Sun Jun 05 13:00:54 2011 -0400 files: blitz/array/asexpr.h blitz/array/expr.h testsuite/multicomponent.cpp description: Scalar expressions now appear to work, both POD scalars and scalar()-wrapped components. changeset: 1705:5f2e985727da user: Patrik Jonsson date: Sun Jun 05 12:20:47 2011 -0400 files: blitz/array/asexpr.h blitz/array/expr.h blitz/array/fastiter.h blitz/ops.h blitz/tinyvec2.h blitz/tv2fastiter.h testsuite/multicomponent.cpp description: Binary multicomponent expressions now also work. Scalars don't. changeset: 1704:b2c4fbbcf808 user: Patrik Jonsson date: Sat Jun 04 22:41:41 2011 -0400 files: blitz/array/asexpr.cc blitz/array/asexpr.h blitz/array/expr.h blitz/array/fastiter.h blitz/array/newet-macros.h blitz/array/ops.cc blitz/etbase.h blitz/globeval.cc blitz/levicivita.h blitz/ops.h blitz/range.h blitz/tv2fastiter.h blitz/update.h testsuite/multicomponent.cpp description: A lot of type fiddling to get operations on multicomponent arrays to work. Evaluating an expression on a container whose T_numtype is another container now returns a new expression with iterators that point to the subcomponents data. Introduced new types in expression classes and traits classes to get this to work. Only UnaryMinus is implemented currently. changeset: 1703:fe2cef578df4 parent: 1702:deaeeb8ae3cc parent: 1700:f7c16a642396 user: Patrik Jonsson date: Fri Jun 03 22:55:51 2011 -0400 description: Merged in multicomponent test. changeset: 1702:deaeeb8ae3cc parent: 1699:532db168738e user: Patrik Jonsson date: Fri Jun 03 22:50:18 2011 -0400 files: blitz/array-impl.h blitz/array.cc blitz/array/asexpr.cc blitz/array/asexpr.h blitz/array/expr.h blitz/array/stencilops.h blitz/array/where.h blitz/bounds.h blitz/et-forward.h blitz/range.cc blitz/range.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tv2fastiter.h blitz/tv2ops.cc blitz/tvecglobs.h test.cc description: More header file work. Range now fulfills the ET specifications. changeset: 1701:0a7d38f46c73 user: Patrik Jonsson date: Sun Jun 05 12:58:42 2011 -0700 files: blitz/tinymat2.cc description: Forgot to commit TinyMatrix implementation file before. changeset: 1700:f7c16a642396 user: Patrik Jonsson date: Fri Jun 03 19:54:34 2011 -0700 files: testsuite/multicomponent.cpp description: Started working on a test that multicomponent expressions work. changeset: 1699:532db168738e user: Patrik Jonsson date: Fri Jun 03 17:22:24 2011 -0700 files: blitz/array/asexpr.cc blitz/array/asexpr.h blitz/array/domain.h blitz/array/expr.cc blitz/array/expr.h blitz/array/fastiter.h blitz/array/funcs.h blitz/array/map.h blitz/array/ops.h blitz/array/reduce.h blitz/array/stencil-et.h blitz/et-forward.h blitz/indexmap-forward.h blitz/meta/vecassign.h blitz/prettyprint.h blitz/reduce.h blitz/shapecheck.h blitz/tinyvec2.h test.cc testsuite/Makefile.am testsuite/stencil-et.cpp description: Worked on making the header files include cleanly using forward declarations to avoid the messy include dependencies. changeset: 1698:586e114347ea user: Patrik Jonsson date: Fri Jun 03 08:45:47 2011 -0700 files: testsuite/tinyvec.cpp description: Updated tinyvec test to test correct application of functions. changeset: 1697:42f97230ee60 user: Patrik Jonsson date: Thu Jun 02 22:25:32 2011 -0700 files: blitz/array/ops.cc blitz/array/stencil-et-macros.h blitz/array/stencilops.h testsuite/extract.cpp testsuite/matthias-troyer-1.cpp testsuite/matthias-troyer-2.cpp description: Fixed typos in array/stencilops.h and restored the stencil ET macros in stencil-et-macros.h so users can define their own. 3 more tests now run, but there is a problem with expressions in multicomponent arrays that will take some thinking. changeset: 1696:4889434a766b user: Patrik Jonsson date: Thu Jun 02 19:58:08 2011 -0700 files: blitz/array/asexpr.h blitz/array/funcs.h blitz/globeval.cc blitz/levicivita.h blitz/tv2ops.cc testsuite/Makefile.am testsuite/levicivita.cpp testsuite/tinyvec.cpp testsuite/where.cpp description: Added global functions dot() and cross() to funcs.h. These work on all types of expressions. The cross product is done with an expression object LeviCivita which represents the Levi-Civita symbol in 3d. Added a test case for the cross product and augmented tinyvec test. changeset: 1695:26cab2b56941 user: Patrik Jonsson date: Thu Jun 02 13:17:33 2011 -0700 files: blitz/array-impl.h blitz/array/fastiter.h blitz/array/stencil-et.h blitz/array/stencilops.h blitz/generate/Makefile.am blitz/generate/genstencils.py blitz/tinymat2.h testsuite/tinymat.cpp description: Restored stencil functionality. Removed the long stencil macros in stencil-et.h, since they make the generated code impossible to debug, and instead made a python script getstencils.py that generates the file stencil-classes.cc. changeset: 1694:c89e0d6018aa user: Patrik Jonsson date: Wed Jun 01 20:58:09 2011 -0700 files: blitz/array/asexpr.h blitz/tinymat2.h blitz/tinymat2io.cc blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tinyvec2io.cc blitz/tm2fastiter.h blitz/tm2ops.cc blitz/tv2fastiter.h description: Cranked out an implementation of TinyMatrix that at least works internally. Need to sort out header dependencies. changeset: 1693:d4382faa1756 user: Patrik Jonsson date: Wed Jun 01 11:12:43 2011 -0700 files: blitz/array-impl.h blitz/array/asexpr.h blitz/array/fastiter.h blitz/array/ops.cc blitz/array/reduce.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tv2ops.cc test.cc testsuite/Makefile.am testsuite/initialize.cpp testsuite/reduce.cpp testsuite/tinyvec.cpp description: Further tweaks to make tests pass. All tests that compile now pass. Stencils remain, as do defining dot product for new expressions. changeset: 1692:363fc19b1e4a user: Patrik Jonsson date: Tue May 31 21:44:59 2011 -0700 files: blitz/array-impl.h blitz/array/domain.h blitz/array/functorExpr.h blitz/array/reduce.cc blitz/array/reduce.h blitz/array/where.h blitz/globeval.cc blitz/indexexpr.h blitz/tinyvec2.h description: Changed includes from tinyvec.h to tinyvec2.h. Several tweaks to make testsuite compile. Still not there though. changeset: 1691:86c3627f3114 user: Patrik Jonsson date: Tue May 31 21:27:59 2011 -0700 files: blitz/array-impl.h blitz/array/asexpr.h blitz/array/expr.h blitz/array/fastiter.h blitz/array/map.h blitz/array/ops.h blitz/array/reduce.h blitz/array/slice.h blitz/array/storage.h blitz/array/where.h blitz/globeval.cc blitz/ops.h blitz/ranks.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tinyvec2io.cc blitz/tv2fastiter.h blitz/tv2ops.cc blitz/tvecglobs.h test.cc description: Array now uses the new TinyVector in tinyvec2.h in place of the old one. A few things are nonfunctional because they depend on TinyMatrix. changeset: 1690:1dad478e2fd7 user: Patrik Jonsson date: Tue May 31 18:43:06 2011 -0700 files: blitz/array/fastiter.h blitz/array/map.h blitz/array/slice.h blitz/globeval.cc blitz/indexexpr.h blitz/indexmap-forward.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tv2fastiter.h test.cc description: Moved TinyVector2 expressions back to the iterator, as just forwarding fastRead allows vectorization. Added support for TV2 index expressions. changeset: 1689:25a35896ffb4 user: patrik@governator.ucsc.edu date: Tue May 31 16:41:03 2011 -0700 files: blitz/array/expr.h blitz/array/fastiter.h blitz/globeval.cc blitz/tinyvec2.h blitz/tv2fastiter.h description: Changed so TinyVector2 expressions use the TV2 objects directly and not the iterators. This allows the loops to be vectorized, otherwise the 'defereference is too complex'. changeset: 1688:a7f9abef3017 user: Patrik Jonsson date: Tue May 31 16:52:07 2011 -0400 files: test.cc description: Small test program. changeset: 1687:2a507de3ea58 user: Patrik Jonsson date: Tue May 31 16:32:58 2011 -0400 files: blitz/array-impl.h blitz/array/ops.cc blitz/globeval.cc blitz/tinyvec2.h blitz/tv2fastiter.h blitz/tv2ops.cc description: Make the Array evaluate() function a global one that works on any container that has the required methods. That way it also works for TinyVector2. changeset: 1686:36b9e6e658a2 user: Patrik Jonsson date: Tue May 31 12:46:03 2011 -0400 files: blitz/array/fastiter.h blitz/constpointerstack.h blitz/tinyvec2.cc blitz/tinyvec2.h blitz/tinyvec2io.cc blitz/tv2assign.h blitz/tv2fastiter.h blitz/tv2ops.cc description: Bare-bones implementation of TinyVector2 using a FastTV2iterator for expressions. changeset: 1685:1946604d4724 parent: 1599:50fc41194253 user: convert-repo date: Fri May 27 00:13:58 2011 +0000 files: .hgtags description: update tags blitz-0.10/LICENSE0000644002370500237050000002124311774676367010546 00000000000000Blitz++ is distributed under the Perl Artistic License version 2.0 (see below), the simplified BSD license (see COPYRIGHT), or the GNU Lesser General Public License, version 3 (see COPYING and COPYING.LESSER) or any later version. Please choose whichever license best suits your needs. -- Artistic License 2.0 Preamble This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. Definitions "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. "You" and "your" means any person who would like to copy, distribute, or modify the Package. "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. "Source" form means the source code, documentation source, and configuration files for the Package. "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. Permission for Use and Modification Without Distribution (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. Permissions for Redistribution of the Standard Version (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. Distribution of Modified Versions of the Package as Source (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. Aggregating or Linking the Package (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. Items That are Not Considered Part of a Modified Version (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. General Provisions (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS 'AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. blitz-0.10/blitz/0000755002370500237050000000000011774705030010717 500000000000000blitz-0.10/blitz/bzconfig.h0000644002370500237050000000513511753271141012613 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/bzconfig.h Select compiler-specific config file * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ***************************************************************************/ /* Select the compiler-specific config.h header file */ #ifndef BZCONFIG_H #define BZCONFIG_H #if defined(__APPLE__) #if defined(__GNUC__) /* GNU gcc compiler for newer Mac OS X Darwin */ #include #else /* IBM xlc compiler for Darwin */ #include #endif #elif defined(__INTEL_COMPILER) /* Intel icc compiler */ #include #elif defined(_MSC_VER) /* Microsoft VS.NET compiler */ #include #elif defined(__xlC__) /* IBM xlC compiler */ #include #elif defined(__DECCXX) /* Compaq cxx compiler */ #include #elif defined(__HP_aCC) /* HP aCC compiler */ #include #elif defined(_SGI_COMPILER_VERSION) /* SGI CC compiler */ #include #elif defined(__SUNPRO_CC) /* SunPRO CC compiler */ #include #elif defined(__PATHCC__) /* Pathscale pathCC compiler */ #include #elif defined(__GNUC__) /* GNU gcc compiler */ #include #elif defined(__PGI) /* PGI pgCC compiler */ #include #elif defined(__KCC) /* KAI KCC compiler */ #include #elif defined(__FUJITSU) /* Fujitsu FCC compiler */ #include /* Add other compilers here */ #else #error Unknown compiler #endif #endif /* BZCONFIG_H */ blitz-0.10/blitz/gnu/0000755002370500237050000000000011774705030011510 500000000000000blitz-0.10/blitz/gnu/bzconfig.h0000644002370500237050000002711611774705015013414 00000000000000#ifndef _BLITZ_GNU_BZCONFIG_H #define _BLITZ_GNU_BZCONFIG_H 1 /* blitz/gnu/bzconfig.h. Generated automatically at end of configure. */ /* blitz/config.h. Generated from config.h.in by configure. */ /* blitz/config.h.in. Generated from configure.ac by autoheader. */ /****************************************************************************** * config.h Compiler language support flags * * This file was generated automatically when running the configure script. * You should rerun configure each time you switch compilers, install new * standard libraries, or change compiler versions. * */ /* Macro for declaring aligned variables */ #ifndef BZ_ALIGN_VARIABLE #define BZ_ALIGN_VARIABLE(vartype,varname,alignment) vartype varname; #endif /* Enable dimensions with > 2^31 elements (NOT IMPLEMENTED) */ /* #undef BZ_FULLY64BIT */ /* define if bool is a built-in type */ #ifndef BZ_HAVE_BOOL #define BZ_HAVE_BOOL /**/ #endif /* define if the Boost library is available */ /* #undef BZ_HAVE_BOOST */ /* Define to 1 if you have the header file. */ /* #undef BZ_HAVE_BOOST_MPI_HPP */ /* define if the Boost::Serialization library is available */ /* #undef BZ_HAVE_BOOST_SERIALIZATION */ /* define if the compiler has header */ #ifndef BZ_HAVE_CLIMITS #define BZ_HAVE_CLIMITS /**/ #endif /* define if the compiler has complex */ #ifndef BZ_HAVE_COMPLEX #define BZ_HAVE_COMPLEX /**/ #endif /* define if the compiler has standard complex functions */ #ifndef BZ_HAVE_COMPLEX_FCNS #define BZ_HAVE_COMPLEX_FCNS /**/ #endif /* define if the compiler has complex math functions */ #ifndef BZ_HAVE_COMPLEX_MATH1 #define BZ_HAVE_COMPLEX_MATH1 /**/ #endif /* define if the compiler has more complex math functions */ /* #undef BZ_HAVE_COMPLEX_MATH2 */ /* define if complex math functions are in namespace std */ #ifndef BZ_HAVE_COMPLEX_MATH_IN_NAMESPACE_STD #define BZ_HAVE_COMPLEX_MATH_IN_NAMESPACE_STD /**/ #endif /* define if the compiler supports const_cast<> */ #ifndef BZ_HAVE_CONST_CAST #define BZ_HAVE_CONST_CAST /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_CSTRING #define BZ_HAVE_CSTRING 1 #endif /* define if the compiler supports default template parameters */ #ifndef BZ_HAVE_DEFAULT_TEMPLATE_PARAMETERS #define BZ_HAVE_DEFAULT_TEMPLATE_PARAMETERS /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_DLFCN_H #define BZ_HAVE_DLFCN_H 1 #endif /* define if the compiler supports dynamic_cast<> */ #ifndef BZ_HAVE_DYNAMIC_CAST #define BZ_HAVE_DYNAMIC_CAST /**/ #endif /* define if the compiler handle computations inside an enum */ #ifndef BZ_HAVE_ENUM_COMPUTATIONS #define BZ_HAVE_ENUM_COMPUTATIONS /**/ #endif /* define if the compiler handles (int) casts in enum computations */ #ifndef BZ_HAVE_ENUM_COMPUTATIONS_WITH_CAST #define BZ_HAVE_ENUM_COMPUTATIONS_WITH_CAST /**/ #endif /* define if the compiler supports exceptions */ #ifndef BZ_HAVE_EXCEPTIONS #define BZ_HAVE_EXCEPTIONS /**/ #endif /* define if the compiler supports the explicit keyword */ #ifndef BZ_HAVE_EXPLICIT #define BZ_HAVE_EXPLICIT /**/ #endif /* define if the compiler supports explicit template function qualification */ #ifndef BZ_HAVE_EXPLICIT_TEMPLATE_FUNCTION_QUALIFICATION #define BZ_HAVE_EXPLICIT_TEMPLATE_FUNCTION_QUALIFICATION /**/ #endif /* define if the compiler recognizes the full specialization syntax */ #ifndef BZ_HAVE_FULL_SPECIALIZATION_SYNTAX #define BZ_HAVE_FULL_SPECIALIZATION_SYNTAX /**/ #endif /* define if the compiler supports function templates with non-type parameters */ #ifndef BZ_HAVE_FUNCTION_NONTYPE_PARAMETERS #define BZ_HAVE_FUNCTION_NONTYPE_PARAMETERS /**/ #endif /* define if the compiler supports IEEE math library */ #ifndef BZ_HAVE_IEEE_MATH #define BZ_HAVE_IEEE_MATH /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_INTTYPES_H #define BZ_HAVE_INTTYPES_H 1 #endif /* Define to 1 if you have the `m' library (-lm). */ /* #undef BZ_HAVE_LIBM */ /* Define to 1 if you have the `papi' library (-lpapi). */ /* #undef BZ_HAVE_LIBPAPI */ /* define if the compiler supports member constants */ #ifndef BZ_HAVE_MEMBER_CONSTANTS #define BZ_HAVE_MEMBER_CONSTANTS /**/ #endif /* define if the compiler supports member templates */ #ifndef BZ_HAVE_MEMBER_TEMPLATES #define BZ_HAVE_MEMBER_TEMPLATES /**/ #endif /* define if the compiler supports member templates outside the class declaration */ #ifndef BZ_HAVE_MEMBER_TEMPLATES_OUTSIDE_CLASS #define BZ_HAVE_MEMBER_TEMPLATES_OUTSIDE_CLASS /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_MEMORY_H #define BZ_HAVE_MEMORY_H 1 #endif /* define if the compiler supports the mutable keyword */ #ifndef BZ_HAVE_MUTABLE #define BZ_HAVE_MUTABLE /**/ #endif /* define if the compiler implements namespaces */ #ifndef BZ_HAVE_NAMESPACES #define BZ_HAVE_NAMESPACES /**/ #endif /* define if the compiler supports the Numerical C Extensions Group restrict keyword */ /* #undef BZ_HAVE_NCEG_RESTRICT */ /* define if the compiler supports the __restrict__ keyword */ #ifndef BZ_HAVE_NCEG_RESTRICT_EGCS #define BZ_HAVE_NCEG_RESTRICT_EGCS /**/ #endif /* define if the compiler has numeric_limits */ #ifndef BZ_HAVE_NUMERIC_LIMITS #define BZ_HAVE_NUMERIC_LIMITS /**/ #endif /* define if the compiler accepts the old for scoping rules */ /* #undef BZ_HAVE_OLD_FOR_SCOPING */ /* define if the compiler supports partial ordering */ #ifndef BZ_HAVE_PARTIAL_ORDERING #define BZ_HAVE_PARTIAL_ORDERING /**/ #endif /* define if the compiler supports partial specialization */ #ifndef BZ_HAVE_PARTIAL_SPECIALIZATION #define BZ_HAVE_PARTIAL_SPECIALIZATION /**/ #endif /* define if the compiler supports reinterpret_cast<> */ #ifndef BZ_HAVE_REINTERPRET_CAST #define BZ_HAVE_REINTERPRET_CAST /**/ #endif /* define if the compiler supports Run-Time Type Identification */ #ifndef BZ_HAVE_RTTI #define BZ_HAVE_RTTI /**/ #endif /* define if the compiler has getrusage() function */ #ifndef BZ_HAVE_RUSAGE #define BZ_HAVE_RUSAGE /**/ #endif /* define if the compiler supports static_cast<> */ #ifndef BZ_HAVE_STATIC_CAST #define BZ_HAVE_STATIC_CAST /**/ #endif /* define if the compiler supports ISO C++ standard library */ #ifndef BZ_HAVE_STD #define BZ_HAVE_STD /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_STDINT_H #define BZ_HAVE_STDINT_H 1 #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_STDLIB_H #define BZ_HAVE_STDLIB_H 1 #endif /* define if the compiler supports Standard Template Library */ #ifndef BZ_HAVE_STL #define BZ_HAVE_STL /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_STRINGS_H #define BZ_HAVE_STRINGS_H 1 #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_STRING_H #define BZ_HAVE_STRING_H 1 #endif /* define if the compiler supports System V math library */ /* #undef BZ_HAVE_SYSTEM_V_MATH */ /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_SYS_STAT_H #define BZ_HAVE_SYS_STAT_H 1 #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_SYS_TYPES_H #define BZ_HAVE_SYS_TYPES_H 1 #endif /* Define to 1 if you have the header file. */ /* #undef BZ_HAVE_TBB_ATOMIC_H */ /* define if the compiler supports basic templates */ #ifndef BZ_HAVE_TEMPLATES #define BZ_HAVE_TEMPLATES /**/ #endif /* define if the compiler supports templates as template arguments */ #ifndef BZ_HAVE_TEMPLATES_AS_TEMPLATE_ARGUMENTS #define BZ_HAVE_TEMPLATES_AS_TEMPLATE_ARGUMENTS /**/ #endif /* define if the compiler supports use of the template keyword as a qualifier */ #ifndef BZ_HAVE_TEMPLATE_KEYWORD_QUALIFIER #define BZ_HAVE_TEMPLATE_KEYWORD_QUALIFIER /**/ #endif /* define if the compiler supports template-qualified base class specifiers */ #ifndef BZ_HAVE_TEMPLATE_QUALIFIED_BASE_CLASS #define BZ_HAVE_TEMPLATE_QUALIFIED_BASE_CLASS /**/ #endif /* define if the compiler supports template-qualified return types */ #ifndef BZ_HAVE_TEMPLATE_QUALIFIED_RETURN_TYPE #define BZ_HAVE_TEMPLATE_QUALIFIED_RETURN_TYPE /**/ #endif /* define if the compiler supports function matching with argument types which are template scope-qualified */ #ifndef BZ_HAVE_TEMPLATE_SCOPED_ARGUMENT_MATCHING #define BZ_HAVE_TEMPLATE_SCOPED_ARGUMENT_MATCHING /**/ #endif /* define if the compiler recognizes typename */ #ifndef BZ_HAVE_TYPENAME #define BZ_HAVE_TYPENAME /**/ #endif /* define if the compiler supports the vector type promotion mechanism */ #ifndef BZ_HAVE_TYPE_PROMOTION #define BZ_HAVE_TYPE_PROMOTION /**/ #endif /* Define to 1 if you have the header file. */ #ifndef BZ_HAVE_UNISTD_H #define BZ_HAVE_UNISTD_H 1 #endif /* define if the compiler supports numeric traits promotions */ #ifndef BZ_HAVE_USE_NUMTRAIT #define BZ_HAVE_USE_NUMTRAIT /**/ #endif /* define if the compiler has valarray */ #ifndef BZ_HAVE_VALARRAY #define BZ_HAVE_VALARRAY /**/ #endif /* define if the compiler has isnan function in namespace std */ #ifndef BZ_ISNAN_IN_NAMESPACE_STD #define BZ_ISNAN_IN_NAMESPACE_STD /**/ #endif /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #ifndef BZ_LT_OBJDIR #define BZ_LT_OBJDIR ".libs/" #endif /* define if the compiler has C math abs(integer types) in namespace std */ #ifndef BZ_MATH_ABSINT_IN_NAMESPACE_STD #define BZ_MATH_ABSINT_IN_NAMESPACE_STD /**/ #endif /* define if the compiler has C math functions in namespace std */ #ifndef BZ_MATH_FN_IN_NAMESPACE_STD #define BZ_MATH_FN_IN_NAMESPACE_STD /**/ #endif /* Name of package */ #ifndef BZ_PACKAGE #define BZ_PACKAGE "blitz" #endif /* Define to the address where bug reports for this package should be sent. */ #ifndef BZ_PACKAGE_BUGREPORT #define BZ_PACKAGE_BUGREPORT "blitz-support@lists.sourceforge.net" #endif /* Define to the full name of this package. */ #ifndef BZ_PACKAGE_NAME #define BZ_PACKAGE_NAME "blitz" #endif /* Define to the full name and version of this package. */ #ifndef BZ_PACKAGE_STRING #define BZ_PACKAGE_STRING "blitz 0.10" #endif /* Define to the one symbol short name of this package. */ #ifndef BZ_PACKAGE_TARNAME #define BZ_PACKAGE_TARNAME "blitz" #endif /* Define to the home page for this package. */ #ifndef BZ_PACKAGE_URL #define BZ_PACKAGE_URL "" #endif /* Define to the version of this package. */ #ifndef BZ_PACKAGE_VERSION #define BZ_PACKAGE_VERSION "0.10" #endif /* Pad array lengths to SIMD width. */ /* #undef BZ_PAD_ARRAYS */ /* Set SIMD instruction width in bytes */ #ifndef BZ_SIMD_WIDTH #define BZ_SIMD_WIDTH 1 #endif /* Define to 1 if you have the ANSI C header files. */ #ifndef BZ_STDC_HEADERS #define BZ_STDC_HEADERS 1 #endif /* Enable Blitz thread-safety features */ /* #undef BZ_THREADSAFE */ /* Use TBB atomic types */ /* #undef BZ_THREADSAFE_USE_TBB */ /* Specifies whether compiler alignment pragmas should be used */ /* #undef BZ_USE_ALIGNMENT_PRAGMAS */ /* Version number of package */ #ifndef BZ_VERSION #define BZ_VERSION "0.10" #endif /* CXX */ #ifndef BZ__compiler_name #define BZ__compiler_name "c++" #endif /* CXXFLAGS */ #ifndef BZ__compiler_options #define BZ__compiler_options "" #endif /* date */ #ifndef BZ__config_date #define BZ__config_date "Tue Jul 3 17:10:48 PDT 2012" #endif /* uname -a */ #ifndef BZ__os_name #define BZ__os_name "Linux midgard.cacr 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux" #endif /* target */ #ifndef BZ__platform #define BZ__platform "x86_64-unknown-linux-gnu" #endif /* once: _BLITZ_GNU_BZCONFIG_H */ #endif blitz-0.10/blitz/array/0000755002370500237050000000000011774705030012035 500000000000000blitz-0.10/blitz/array/stencil-classes.cc0000644002370500237050000331725511772433371015404 00000000000000 /* Definitions of ET stencil operators. This file was generated by generate/genstencils.py. Do not edit. Note: You can't pass templates with >1 parameter as macro parameters because cpp doesn't recognize that the comma is balanced between the angle brackets and interprets them as multiple arguments, i.e., the following alternative declaration of grad2D will not work: BZ_ET_STENCIL(grad2D, TinyVector, TinyVector, shape(-1,1), shape(1,1)) instead, you have to use the above bzCC ("ConCatenate") macro to protect the things containing commas. The following would work: BZ_ET_STENCIL(grad2D, bzCC(TinyVector), bzCC(TinyVector), shape(-1,-1), shape(1,1)) */ BZ_NAMESPACE(blitz) /* Defines a stencil ET difference operator "central12" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class central12_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central12_et< typename T_expr::template tvresult::Type> Type; }; typedef central12_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central12_et(const central12_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central12_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central12_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central12_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central12_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central12_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central12_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central12_et T_slice; }; template central12_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central12_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central12(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(const Array& d1, int dim) { return central12(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(Array& d1, int dim) { return central12(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central22" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class central22_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central22_et< typename T_expr::template tvresult::Type> Type; }; typedef central22_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central22_et(const central22_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central22_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central22_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central22_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central22_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central22_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central22_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central22_et T_slice; }; template central22_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central22_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central22(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(const Array& d1, int dim) { return central22(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(Array& d1, int dim) { return central22(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central32" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central32_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central32_et< typename T_expr::template tvresult::Type> Type; }; typedef central32_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central32_et(const central32_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central32_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central32_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central32_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central32_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central32_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central32_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central32_et T_slice; }; template central32_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central32_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central32(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(const Array& d1, int dim) { return central32(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(Array& d1, int dim) { return central32(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central42" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central42_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central42_et< typename T_expr::template tvresult::Type> Type; }; typedef central42_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central42_et(const central42_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central42_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central42_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central42_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central42_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central42_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central42_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central42_et T_slice; }; template central42_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central42_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central42(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(const Array& d1, int dim) { return central42(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(Array& d1, int dim) { return central42(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central14" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central14_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central14_et< typename T_expr::template tvresult::Type> Type; }; typedef central14_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central14_et(const central14_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central14_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central14_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central14_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central14_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central14_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central14_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central14_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central14_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central14_et T_slice; }; template central14_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central14_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central14(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(const Array& d1, int dim) { return central14(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(Array& d1, int dim) { return central14(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central24" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central24_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central24_et< typename T_expr::template tvresult::Type> Type; }; typedef central24_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central24_et(const central24_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central24_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central24_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central24_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central24_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central24_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central24_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central24_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central24_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central24_et T_slice; }; template central24_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central24_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central24(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(const Array& d1, int dim) { return central24(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(Array& d1, int dim) { return central24(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central34" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central34_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central34_et< typename T_expr::template tvresult::Type> Type; }; typedef central34_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central34_et(const central34_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central34_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central34_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central34_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central34_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central34_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central34_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central34_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central34_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central34_et T_slice; }; template central34_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central34_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central34(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(const Array& d1, int dim) { return central34(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(Array& d1, int dim) { return central34(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central44" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central44_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central44_et< typename T_expr::template tvresult::Type> Type; }; typedef central44_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central44_et(const central44_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central44_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central44_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central44_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central44_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central44_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central44_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central44_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central44_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central44_et T_slice; }; template central44_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central44_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central44(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(const Array& d1, int dim) { return central44(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(Array& d1, int dim) { return central44(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central12n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class central12n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central12n_et< typename T_expr::template tvresult::Type> Type; }; typedef central12n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central12n_et(const central12n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central12n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central12n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central12n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central12n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central12n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central12n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central12n_et T_slice; }; template central12n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central12n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(const Array& d1, int dim) { return central12n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(Array& d1, int dim) { return central12n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central22n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class central22n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central22n_et< typename T_expr::template tvresult::Type> Type; }; typedef central22n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central22n_et(const central22n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central22n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central22n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central22n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central22n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central22n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central22n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central22n_et T_slice; }; template central22n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central22n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(const Array& d1, int dim) { return central22n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(Array& d1, int dim) { return central22n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central32n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central32n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central32n_et< typename T_expr::template tvresult::Type> Type; }; typedef central32n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central32n_et(const central32n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central32n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central32n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central32n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central32n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central32n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central32n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central32n_et T_slice; }; template central32n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central32n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(const Array& d1, int dim) { return central32n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(Array& d1, int dim) { return central32n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central42n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central42n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central42n_et< typename T_expr::template tvresult::Type> Type; }; typedef central42n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central42n_et(const central42n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central42n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central42n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central42n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central42n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central42n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central42n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central42n_et T_slice; }; template central42n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central42n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(const Array& d1, int dim) { return central42n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(Array& d1, int dim) { return central42n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central14n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central14n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central14n_et< typename T_expr::template tvresult::Type> Type; }; typedef central14n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central14n_et(const central14n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central14n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central14n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central14n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central14n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central14n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central14n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central14n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central14n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central14n_et T_slice; }; template central14n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central14n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central14n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(const Array& d1, int dim) { return central14n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(Array& d1, int dim) { return central14n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central24n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central24n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central24n_et< typename T_expr::template tvresult::Type> Type; }; typedef central24n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central24n_et(const central24n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central24n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central24n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central24n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central24n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central24n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central24n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central24n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central24n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central24n_et T_slice; }; template central24n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central24n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central24n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(const Array& d1, int dim) { return central24n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(Array& d1, int dim) { return central24n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central34n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central34n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central34n_et< typename T_expr::template tvresult::Type> Type; }; typedef central34n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central34n_et(const central34n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central34n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central34n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central34n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central34n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central34n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central34n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central34n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central34n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central34n_et T_slice; }; template central34n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central34n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central34n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(const Array& d1, int dim) { return central34n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(Array& d1, int dim) { return central34n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "central44n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class central44n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef central44n_et< typename T_expr::template tvresult::Type> Type; }; typedef central44n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central44n_et(const central44n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } central44n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } central44n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return central44n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central44n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return central44n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = central44n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = central44n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = central44n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central44n_et T_slice; }; template central44n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central44n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central44n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(const Array& d1, int dim) { return central44n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(Array& d1, int dim) { return central44n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward11" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward11_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward11_et< typename T_expr::template tvresult::Type> Type; }; typedef backward11_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward11_et(const backward11_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward11_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward11_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward11_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward11_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward11_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward11_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward11_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward11_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward11_et T_slice; }; template backward11_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward11_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward11(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(const Array& d1, int dim) { return backward11(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(Array& d1, int dim) { return backward11(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward21" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward21_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward21_et< typename T_expr::template tvresult::Type> Type; }; typedef backward21_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward21_et(const backward21_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward21_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward21_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward21_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward21_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward21_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward21_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward21_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward21_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward21_et T_slice; }; template backward21_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward21_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward21(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(const Array& d1, int dim) { return backward21(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(Array& d1, int dim) { return backward21(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward31" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -3 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward31_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward31_et< typename T_expr::template tvresult::Type> Type; }; typedef backward31_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward31_et(const backward31_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward31_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward31_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward31_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward31_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward31_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward31_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward31_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward31_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward31_et T_slice; }; template backward31_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward31_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward31(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(const Array& d1, int dim) { return backward31(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(Array& d1, int dim) { return backward31(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward41" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -4 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward41_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward41_et< typename T_expr::template tvresult::Type> Type; }; typedef backward41_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward41_et(const backward41_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward41_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward41_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward41_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward41_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward41_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward41_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward41_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward41_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward41_et T_slice; }; template backward41_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward41_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward41(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(const Array& d1, int dim) { return backward41(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(Array& d1, int dim) { return backward41(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward12" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward12_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward12_et< typename T_expr::template tvresult::Type> Type; }; typedef backward12_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward12_et(const backward12_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward12_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward12_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward12_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward12_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward12_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward12_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward12_et T_slice; }; template backward12_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward12_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward12(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(const Array& d1, int dim) { return backward12(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(Array& d1, int dim) { return backward12(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward22" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -3 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward22_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward22_et< typename T_expr::template tvresult::Type> Type; }; typedef backward22_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward22_et(const backward22_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward22_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward22_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward22_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward22_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward22_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward22_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward22_et T_slice; }; template backward22_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward22_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward22(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(const Array& d1, int dim) { return backward22(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(Array& d1, int dim) { return backward22(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward32" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -4 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward32_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward32_et< typename T_expr::template tvresult::Type> Type; }; typedef backward32_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward32_et(const backward32_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward32_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward32_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward32_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward32_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward32_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward32_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward32_et T_slice; }; template backward32_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward32_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward32(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(const Array& d1, int dim) { return backward32(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(Array& d1, int dim) { return backward32(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward42" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -5 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward42_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward42_et< typename T_expr::template tvresult::Type> Type; }; typedef backward42_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward42_et(const backward42_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward42_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward42_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward42_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward42_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward42_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward42_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward42_et T_slice; }; template backward42_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward42_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward42(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-5; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(const Array& d1, int dim) { return backward42(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(Array& d1, int dim) { return backward42(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward11n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -1 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward11n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward11n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward11n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward11n_et(const backward11n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward11n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward11n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward11n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward11n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward11n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward11n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward11n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward11n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward11n_et T_slice; }; template backward11n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward11n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward11n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(const Array& d1, int dim) { return backward11n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(Array& d1, int dim) { return backward11n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward21n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward21n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward21n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward21n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward21n_et(const backward21n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward21n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward21n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward21n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward21n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward21n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward21n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward21n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward21n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward21n_et T_slice; }; template backward21n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward21n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward21n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(const Array& d1, int dim) { return backward21n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(Array& d1, int dim) { return backward21n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward31n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -3 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward31n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward31n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward31n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward31n_et(const backward31n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward31n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward31n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward31n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward31n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward31n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward31n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward31n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward31n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward31n_et T_slice; }; template backward31n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward31n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward31n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(const Array& d1, int dim) { return backward31n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(Array& d1, int dim) { return backward31n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward41n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -4 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward41n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward41n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward41n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward41n_et(const backward41n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward41n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward41n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward41n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward41n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward41n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward41n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward41n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward41n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward41n_et T_slice; }; template backward41n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward41n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward41n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(const Array& d1, int dim) { return backward41n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(Array& d1, int dim) { return backward41n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward12n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -2 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward12n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward12n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward12n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward12n_et(const backward12n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward12n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward12n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward12n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward12n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward12n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward12n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward12n_et T_slice; }; template backward12n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward12n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(const Array& d1, int dim) { return backward12n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(Array& d1, int dim) { return backward12n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward22n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -3 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward22n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward22n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward22n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward22n_et(const backward22n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward22n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward22n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward22n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward22n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward22n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward22n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward22n_et T_slice; }; template backward22n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward22n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(const Array& d1, int dim) { return backward22n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(Array& d1, int dim) { return backward22n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward32n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -4 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward32n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward32n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward32n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward32n_et(const backward32n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward32n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward32n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward32n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward32n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward32n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward32n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward32n_et T_slice; }; template backward32n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward32n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(const Array& d1, int dim) { return backward32n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(Array& d1, int dim) { return backward32n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "backward42n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). -5 and 0 are integer expressions describing the extent of the operator in the operating dimension. */ template class backward42n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef backward42n_et< typename T_expr::template tvresult::Type> Type; }; typedef backward42n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward42n_et(const backward42n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } backward42n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } backward42n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return backward42n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward42n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return backward42n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = backward42n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = backward42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = backward42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward42n_et T_slice; }; template backward42n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward42n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-5; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(const Array& d1, int dim) { return backward42n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(Array& d1, int dim) { return backward42n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward11" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward11_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward11_et< typename T_expr::template tvresult::Type> Type; }; typedef forward11_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward11_et(const forward11_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward11_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward11_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward11_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward11_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward11_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward11_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward11_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward11_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward11_et T_slice; }; template forward11_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward11_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward11(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(const Array& d1, int dim) { return forward11(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(Array& d1, int dim) { return forward11(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward21" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward21_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward21_et< typename T_expr::template tvresult::Type> Type; }; typedef forward21_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward21_et(const forward21_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward21_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward21_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward21_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward21_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward21_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward21_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward21_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward21_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward21_et T_slice; }; template forward21_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward21_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward21(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(const Array& d1, int dim) { return forward21(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(Array& d1, int dim) { return forward21(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward31" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 3 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward31_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward31_et< typename T_expr::template tvresult::Type> Type; }; typedef forward31_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward31_et(const forward31_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward31_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward31_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward31_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward31_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward31_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward31_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward31_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward31_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward31_et T_slice; }; template forward31_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward31_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward31(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(const Array& d1, int dim) { return forward31(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(Array& d1, int dim) { return forward31(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward41" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 4 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward41_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward41_et< typename T_expr::template tvresult::Type> Type; }; typedef forward41_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward41_et(const forward41_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward41_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward41_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward41_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward41_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward41_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward41_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward41_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward41_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward41_et T_slice; }; template forward41_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward41_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward41(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(const Array& d1, int dim) { return forward41(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(Array& d1, int dim) { return forward41(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward12" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward12_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward12_et< typename T_expr::template tvresult::Type> Type; }; typedef forward12_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward12_et(const forward12_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward12_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward12_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward12_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward12_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward12_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward12_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward12_et T_slice; }; template forward12_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward12_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward12(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(const Array& d1, int dim) { return forward12(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(Array& d1, int dim) { return forward12(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward22" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 3 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward22_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward22_et< typename T_expr::template tvresult::Type> Type; }; typedef forward22_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward22_et(const forward22_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward22_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward22_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward22_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward22_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward22_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward22_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward22_et T_slice; }; template forward22_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward22_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward22(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(const Array& d1, int dim) { return forward22(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(Array& d1, int dim) { return forward22(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward32" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 4 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward32_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward32_et< typename T_expr::template tvresult::Type> Type; }; typedef forward32_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward32_et(const forward32_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward32_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward32_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward32_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward32_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward32_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward32_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward32_et T_slice; }; template forward32_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward32_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward32(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(const Array& d1, int dim) { return forward32(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(Array& d1, int dim) { return forward32(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward42" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 5 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward42_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward42_et< typename T_expr::template tvresult::Type> Type; }; typedef forward42_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward42_et(const forward42_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward42_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward42_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward42_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward42_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward42_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward42_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward42_et T_slice; }; template forward42_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward42_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward42(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=5; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(const Array& d1, int dim) { return forward42(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(Array& d1, int dim) { return forward42(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward11n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 1 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward11n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward11n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward11n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward11n_et(const forward11n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward11n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward11n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward11n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward11n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward11n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward11n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward11n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward11n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward11n_et T_slice; }; template forward11n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward11n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward11n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(const Array& d1, int dim) { return forward11n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(Array& d1, int dim) { return forward11n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward21n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward21n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward21n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward21n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward21n_et(const forward21n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward21n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward21n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward21n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward21n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward21n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward21n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward21n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward21n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward21n_et T_slice; }; template forward21n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward21n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward21n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(const Array& d1, int dim) { return forward21n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(Array& d1, int dim) { return forward21n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward31n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 3 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward31n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward31n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward31n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward31n_et(const forward31n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward31n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward31n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward31n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward31n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward31n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward31n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward31n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward31n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward31n_et T_slice; }; template forward31n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward31n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward31n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(const Array& d1, int dim) { return forward31n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(Array& d1, int dim) { return forward31n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward41n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 4 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward41n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward41n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward41n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward41n_et(const forward41n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward41n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward41n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward41n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward41n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward41n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward41n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward41n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward41n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward41n_et T_slice; }; template forward41n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward41n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward41n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(const Array& d1, int dim) { return forward41n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(Array& d1, int dim) { return forward41n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward12n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 2 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward12n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward12n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward12n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward12n_et(const forward12n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward12n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward12n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward12n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward12n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward12n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward12n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward12n_et T_slice; }; template forward12n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward12n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(const Array& d1, int dim) { return forward12n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(Array& d1, int dim) { return forward12n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward22n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 3 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward22n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward22n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward22n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward22n_et(const forward22n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward22n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward22n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward22n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward22n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward22n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward22n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward22n_et T_slice; }; template forward22n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward22n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(const Array& d1, int dim) { return forward22n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(Array& d1, int dim) { return forward22n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward32n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 4 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward32n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward32n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward32n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward32n_et(const forward32n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward32n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward32n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward32n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward32n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward32n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward32n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward32n_et T_slice; }; template forward32n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward32n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(const Array& d1, int dim) { return forward32n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(Array& d1, int dim) { return forward32n(d1.wrap(), dim); } /* Defines a stencil ET difference operator "forward42n" that operates on an array and returns an array of identical type. (The only significance of the "difference" aspect is that the operator is assumed to take a second argument which is the dimension to do the difference in). 0 and 5 are integer expressions describing the extent of the operator in the operating dimension. */ template class forward42n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef forward42n_et< typename T_expr::template tvresult::Type> Type; }; typedef forward42n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward42n_et(const forward42n_et& a) : _bz_StencilExpr(a), dim_(a.dim_) { } forward42n_et(BZ_ETPARM(T_expr) a, int dim) : _bz_StencilExpr(a), dim_(dim) { } forward42n_et(_bz_typename T_expr::T_ctorArg1 a, int dim) : _bz_StencilExpr(a), dim_(dim) { } T_result operator*() const { return forward42n_stencilop(iter_, dim_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward42n_stencilop(iter_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim_); } T_result operator[](int i) const { return forward42n_stencilop(iter_[i], dim_); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = forward42n_stencilop (iter_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim_); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = forward42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = forward42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward42n_et T_slice; }; template forward42n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward42n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),dim_); } private: int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=5; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(const Array& d1, int dim) { return forward42n(d1.wrap(), dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(Array& d1, int dim) { return forward42n(d1.wrap(), dim); } /** Defines a stencil ET difference operator "central12" that operates on a multicomponent array and returns an array. */ template class central12_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central12_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central12_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central12_et_multi(const central12_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central12_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central12_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central12_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central12_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central12_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central12_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central12_et_multi T_slice; }; template central12_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central12_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central12(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(const Array& d1, int comp, int dim) { return central12(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(Array& d1, int comp, int dim) { return central12(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(const Array& d1) { return central12(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12(Array& d1) { return central12(d1.wrap()); } /** Defines a stencil ET difference operator "central22" that operates on a multicomponent array and returns an array. */ template class central22_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central22_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central22_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central22_et_multi(const central22_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central22_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central22_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central22_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central22_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central22_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central22_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central22_et_multi T_slice; }; template central22_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central22_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central22(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(const Array& d1, int comp, int dim) { return central22(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(Array& d1, int comp, int dim) { return central22(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(const Array& d1) { return central22(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22(Array& d1) { return central22(d1.wrap()); } /** Defines a stencil ET difference operator "central32" that operates on a multicomponent array and returns an array. */ template class central32_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central32_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central32_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central32_et_multi(const central32_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central32_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central32_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central32_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central32_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central32_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central32_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central32_et_multi T_slice; }; template central32_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central32_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central32(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(const Array& d1, int comp, int dim) { return central32(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(Array& d1, int comp, int dim) { return central32(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(const Array& d1) { return central32(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32(Array& d1) { return central32(d1.wrap()); } /** Defines a stencil ET difference operator "central42" that operates on a multicomponent array and returns an array. */ template class central42_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central42_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central42_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central42_et_multi(const central42_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central42_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central42_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central42_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central42_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central42_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central42_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central42_et_multi T_slice; }; template central42_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central42_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central42(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(const Array& d1, int comp, int dim) { return central42(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(Array& d1, int comp, int dim) { return central42(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(const Array& d1) { return central42(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42(Array& d1) { return central42(d1.wrap()); } /** Defines a stencil ET difference operator "central14" that operates on a multicomponent array and returns an array. */ template class central14_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central14_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central14_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central14_et_multi(const central14_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central14_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central14_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central14_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central14_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central14_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central14_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central14_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central14_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central14_et_multi T_slice; }; template central14_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central14_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central14(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(const Array& d1, int comp, int dim) { return central14(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(Array& d1, int comp, int dim) { return central14(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(const Array& d1) { return central14(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14(Array& d1) { return central14(d1.wrap()); } /** Defines a stencil ET difference operator "central24" that operates on a multicomponent array and returns an array. */ template class central24_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central24_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central24_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central24_et_multi(const central24_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central24_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central24_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central24_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central24_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central24_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central24_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central24_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central24_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central24_et_multi T_slice; }; template central24_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central24_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central24(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(const Array& d1, int comp, int dim) { return central24(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(Array& d1, int comp, int dim) { return central24(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(const Array& d1) { return central24(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24(Array& d1) { return central24(d1.wrap()); } /** Defines a stencil ET difference operator "central34" that operates on a multicomponent array and returns an array. */ template class central34_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central34_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central34_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central34_et_multi(const central34_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central34_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central34_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central34_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central34_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central34_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central34_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central34_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central34_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central34_et_multi T_slice; }; template central34_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central34_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central34(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(const Array& d1, int comp, int dim) { return central34(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(Array& d1, int comp, int dim) { return central34(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(const Array& d1) { return central34(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34(Array& d1) { return central34(d1.wrap()); } /** Defines a stencil ET difference operator "central44" that operates on a multicomponent array and returns an array. */ template class central44_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central44_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central44_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central44_et_multi(const central44_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central44_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central44_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central44_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central44_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central44_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central44_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central44_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central44_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central44_et_multi T_slice; }; template central44_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central44_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central44(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(const Array& d1, int comp, int dim) { return central44(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(Array& d1, int comp, int dim) { return central44(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(const Array& d1) { return central44(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44(Array& d1) { return central44(d1.wrap()); } /** Defines a stencil ET difference operator "central12n" that operates on a multicomponent array and returns an array. */ template class central12n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central12n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central12n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central12n_et_multi(const central12n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central12n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central12n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central12n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central12n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central12n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central12n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central12n_et_multi T_slice; }; template central12n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central12n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(const Array& d1, int comp, int dim) { return central12n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(Array& d1, int comp, int dim) { return central12n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(const Array& d1) { return central12n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central12n(Array& d1) { return central12n(d1.wrap()); } /** Defines a stencil ET difference operator "central22n" that operates on a multicomponent array and returns an array. */ template class central22n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central22n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central22n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central22n_et_multi(const central22n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central22n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central22n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central22n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central22n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central22n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central22n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central22n_et_multi T_slice; }; template central22n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central22n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(const Array& d1, int comp, int dim) { return central22n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(Array& d1, int comp, int dim) { return central22n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(const Array& d1) { return central22n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central22n(Array& d1) { return central22n(d1.wrap()); } /** Defines a stencil ET difference operator "central32n" that operates on a multicomponent array and returns an array. */ template class central32n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central32n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central32n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central32n_et_multi(const central32n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central32n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central32n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central32n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central32n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central32n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central32n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central32n_et_multi T_slice; }; template central32n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central32n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(const Array& d1, int comp, int dim) { return central32n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(Array& d1, int comp, int dim) { return central32n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(const Array& d1) { return central32n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central32n(Array& d1) { return central32n(d1.wrap()); } /** Defines a stencil ET difference operator "central42n" that operates on a multicomponent array and returns an array. */ template class central42n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central42n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central42n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central42n_et_multi(const central42n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central42n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central42n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central42n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central42n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central42n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central42n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central42n_et_multi T_slice; }; template central42n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central42n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(const Array& d1, int comp, int dim) { return central42n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(Array& d1, int comp, int dim) { return central42n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(const Array& d1) { return central42n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central42n(Array& d1) { return central42n(d1.wrap()); } /** Defines a stencil ET difference operator "central14n" that operates on a multicomponent array and returns an array. */ template class central14n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central14n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central14n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central14n_et_multi(const central14n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central14n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central14n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central14n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central14n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central14n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central14n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central14n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central14n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central14n_et_multi T_slice; }; template central14n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central14n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central14n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(const Array& d1, int comp, int dim) { return central14n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(Array& d1, int comp, int dim) { return central14n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(const Array& d1) { return central14n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central14n(Array& d1) { return central14n(d1.wrap()); } /** Defines a stencil ET difference operator "central24n" that operates on a multicomponent array and returns an array. */ template class central24n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central24n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central24n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central24n_et_multi(const central24n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central24n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central24n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central24n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central24n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central24n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central24n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central24n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central24n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central24n_et_multi T_slice; }; template central24n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central24n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central24n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(const Array& d1, int comp, int dim) { return central24n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(Array& d1, int comp, int dim) { return central24n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(const Array& d1) { return central24n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central24n(Array& d1) { return central24n(d1.wrap()); } /** Defines a stencil ET difference operator "central34n" that operates on a multicomponent array and returns an array. */ template class central34n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central34n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central34n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central34n_et_multi(const central34n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central34n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central34n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central34n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central34n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central34n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central34n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central34n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central34n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central34n_et_multi T_slice; }; template central34n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central34n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central34n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(const Array& d1, int comp, int dim) { return central34n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(Array& d1, int comp, int dim) { return central34n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(const Array& d1) { return central34n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central34n(Array& d1) { return central34n(d1.wrap()); } /** Defines a stencil ET difference operator "central44n" that operates on a multicomponent array and returns an array. */ template class central44n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef central44n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef central44n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: central44n_et_multi(const central44n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } central44n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } central44n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return central44n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return central44n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return central44n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = central44n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = central44n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = central44n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef central44n_et_multi T_slice; }; template central44n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return central44n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > central44n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(const Array& d1, int comp, int dim) { return central44n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(Array& d1, int comp, int dim) { return central44n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(const Array& d1) { return central44n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > central44n(Array& d1) { return central44n(d1.wrap()); } /** Defines a stencil ET difference operator "backward11" that operates on a multicomponent array and returns an array. */ template class backward11_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward11_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward11_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward11_et_multi(const backward11_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward11_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward11_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward11_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward11_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward11_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward11_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward11_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward11_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward11_et_multi T_slice; }; template backward11_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward11_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward11(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(const Array& d1, int comp, int dim) { return backward11(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(Array& d1, int comp, int dim) { return backward11(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(const Array& d1) { return backward11(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11(Array& d1) { return backward11(d1.wrap()); } /** Defines a stencil ET difference operator "backward21" that operates on a multicomponent array and returns an array. */ template class backward21_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward21_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward21_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward21_et_multi(const backward21_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward21_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward21_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward21_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward21_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward21_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward21_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward21_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward21_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward21_et_multi T_slice; }; template backward21_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward21_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward21(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(const Array& d1, int comp, int dim) { return backward21(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(Array& d1, int comp, int dim) { return backward21(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(const Array& d1) { return backward21(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21(Array& d1) { return backward21(d1.wrap()); } /** Defines a stencil ET difference operator "backward31" that operates on a multicomponent array and returns an array. */ template class backward31_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward31_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward31_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward31_et_multi(const backward31_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward31_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward31_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward31_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward31_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward31_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward31_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward31_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward31_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward31_et_multi T_slice; }; template backward31_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward31_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward31(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(const Array& d1, int comp, int dim) { return backward31(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(Array& d1, int comp, int dim) { return backward31(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(const Array& d1) { return backward31(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31(Array& d1) { return backward31(d1.wrap()); } /** Defines a stencil ET difference operator "backward41" that operates on a multicomponent array and returns an array. */ template class backward41_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward41_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward41_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward41_et_multi(const backward41_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward41_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward41_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward41_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward41_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward41_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward41_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward41_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward41_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward41_et_multi T_slice; }; template backward41_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward41_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward41(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(const Array& d1, int comp, int dim) { return backward41(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(Array& d1, int comp, int dim) { return backward41(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(const Array& d1) { return backward41(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41(Array& d1) { return backward41(d1.wrap()); } /** Defines a stencil ET difference operator "backward12" that operates on a multicomponent array and returns an array. */ template class backward12_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward12_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward12_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward12_et_multi(const backward12_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward12_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward12_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward12_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward12_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward12_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward12_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward12_et_multi T_slice; }; template backward12_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward12_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward12(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(const Array& d1, int comp, int dim) { return backward12(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(Array& d1, int comp, int dim) { return backward12(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(const Array& d1) { return backward12(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12(Array& d1) { return backward12(d1.wrap()); } /** Defines a stencil ET difference operator "backward22" that operates on a multicomponent array and returns an array. */ template class backward22_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward22_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward22_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward22_et_multi(const backward22_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward22_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward22_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward22_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward22_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward22_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward22_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward22_et_multi T_slice; }; template backward22_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward22_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward22(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(const Array& d1, int comp, int dim) { return backward22(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(Array& d1, int comp, int dim) { return backward22(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(const Array& d1) { return backward22(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22(Array& d1) { return backward22(d1.wrap()); } /** Defines a stencil ET difference operator "backward32" that operates on a multicomponent array and returns an array. */ template class backward32_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward32_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward32_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward32_et_multi(const backward32_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward32_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward32_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward32_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward32_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward32_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward32_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward32_et_multi T_slice; }; template backward32_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward32_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward32(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(const Array& d1, int comp, int dim) { return backward32(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(Array& d1, int comp, int dim) { return backward32(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(const Array& d1) { return backward32(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32(Array& d1) { return backward32(d1.wrap()); } /** Defines a stencil ET difference operator "backward42" that operates on a multicomponent array and returns an array. */ template class backward42_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward42_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward42_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward42_et_multi(const backward42_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward42_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward42_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward42_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward42_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward42_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward42_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward42_et_multi T_slice; }; template backward42_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward42_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward42(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-5; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(const Array& d1, int comp, int dim) { return backward42(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(Array& d1, int comp, int dim) { return backward42(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(const Array& d1) { return backward42(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42(Array& d1) { return backward42(d1.wrap()); } /** Defines a stencil ET difference operator "backward11n" that operates on a multicomponent array and returns an array. */ template class backward11n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward11n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward11n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward11n_et_multi(const backward11n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward11n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward11n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward11n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward11n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward11n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward11n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward11n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward11n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward11n_et_multi T_slice; }; template backward11n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward11n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward11n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-1; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(const Array& d1, int comp, int dim) { return backward11n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(Array& d1, int comp, int dim) { return backward11n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(const Array& d1) { return backward11n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward11n(Array& d1) { return backward11n(d1.wrap()); } /** Defines a stencil ET difference operator "backward21n" that operates on a multicomponent array and returns an array. */ template class backward21n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward21n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward21n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward21n_et_multi(const backward21n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward21n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward21n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward21n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward21n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward21n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward21n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward21n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward21n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward21n_et_multi T_slice; }; template backward21n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward21n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward21n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(const Array& d1, int comp, int dim) { return backward21n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(Array& d1, int comp, int dim) { return backward21n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(const Array& d1) { return backward21n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward21n(Array& d1) { return backward21n(d1.wrap()); } /** Defines a stencil ET difference operator "backward31n" that operates on a multicomponent array and returns an array. */ template class backward31n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward31n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward31n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward31n_et_multi(const backward31n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward31n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward31n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward31n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward31n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward31n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward31n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward31n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward31n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward31n_et_multi T_slice; }; template backward31n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward31n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward31n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(const Array& d1, int comp, int dim) { return backward31n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(Array& d1, int comp, int dim) { return backward31n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(const Array& d1) { return backward31n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward31n(Array& d1) { return backward31n(d1.wrap()); } /** Defines a stencil ET difference operator "backward41n" that operates on a multicomponent array and returns an array. */ template class backward41n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward41n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward41n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward41n_et_multi(const backward41n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward41n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward41n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward41n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward41n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward41n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward41n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward41n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward41n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward41n_et_multi T_slice; }; template backward41n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward41n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward41n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(const Array& d1, int comp, int dim) { return backward41n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(Array& d1, int comp, int dim) { return backward41n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(const Array& d1) { return backward41n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward41n(Array& d1) { return backward41n(d1.wrap()); } /** Defines a stencil ET difference operator "backward12n" that operates on a multicomponent array and returns an array. */ template class backward12n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward12n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward12n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward12n_et_multi(const backward12n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward12n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward12n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward12n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward12n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward12n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward12n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward12n_et_multi T_slice; }; template backward12n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward12n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-2; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(const Array& d1, int comp, int dim) { return backward12n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(Array& d1, int comp, int dim) { return backward12n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(const Array& d1) { return backward12n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward12n(Array& d1) { return backward12n(d1.wrap()); } /** Defines a stencil ET difference operator "backward22n" that operates on a multicomponent array and returns an array. */ template class backward22n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward22n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward22n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward22n_et_multi(const backward22n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward22n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward22n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward22n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward22n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward22n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward22n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward22n_et_multi T_slice; }; template backward22n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward22n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-3; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(const Array& d1, int comp, int dim) { return backward22n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(Array& d1, int comp, int dim) { return backward22n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(const Array& d1) { return backward22n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward22n(Array& d1) { return backward22n(d1.wrap()); } /** Defines a stencil ET difference operator "backward32n" that operates on a multicomponent array and returns an array. */ template class backward32n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward32n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward32n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward32n_et_multi(const backward32n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward32n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward32n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward32n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward32n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward32n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward32n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward32n_et_multi T_slice; }; template backward32n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward32n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-4; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(const Array& d1, int comp, int dim) { return backward32n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(Array& d1, int comp, int dim) { return backward32n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(const Array& d1) { return backward32n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward32n(Array& d1) { return backward32n(d1.wrap()); } /** Defines a stencil ET difference operator "backward42n" that operates on a multicomponent array and returns an array. */ template class backward42n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef backward42n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef backward42n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: backward42n_et_multi(const backward42n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } backward42n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } backward42n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return backward42n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return backward42n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return backward42n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = backward42n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = backward42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = backward42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef backward42n_et_multi T_slice; }; template backward42n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return backward42n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > backward42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=-5; maxb[dim]=0; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(const Array& d1, int comp, int dim) { return backward42n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(Array& d1, int comp, int dim) { return backward42n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(const Array& d1) { return backward42n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > backward42n(Array& d1) { return backward42n(d1.wrap()); } /** Defines a stencil ET difference operator "forward11" that operates on a multicomponent array and returns an array. */ template class forward11_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward11_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward11_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward11_et_multi(const forward11_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward11_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward11_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward11_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward11_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward11_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward11_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward11_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward11_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward11_et_multi T_slice; }; template forward11_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward11_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward11(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(const Array& d1, int comp, int dim) { return forward11(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(Array& d1, int comp, int dim) { return forward11(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(const Array& d1) { return forward11(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11(Array& d1) { return forward11(d1.wrap()); } /** Defines a stencil ET difference operator "forward21" that operates on a multicomponent array and returns an array. */ template class forward21_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward21_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward21_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward21_et_multi(const forward21_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward21_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward21_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward21_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward21_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward21_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward21_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward21_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward21_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward21_et_multi T_slice; }; template forward21_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward21_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward21(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(const Array& d1, int comp, int dim) { return forward21(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(Array& d1, int comp, int dim) { return forward21(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(const Array& d1) { return forward21(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21(Array& d1) { return forward21(d1.wrap()); } /** Defines a stencil ET difference operator "forward31" that operates on a multicomponent array and returns an array. */ template class forward31_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward31_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward31_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward31_et_multi(const forward31_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward31_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward31_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward31_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward31_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward31_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward31_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward31_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward31_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward31_et_multi T_slice; }; template forward31_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward31_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward31(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(const Array& d1, int comp, int dim) { return forward31(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(Array& d1, int comp, int dim) { return forward31(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(const Array& d1) { return forward31(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31(Array& d1) { return forward31(d1.wrap()); } /** Defines a stencil ET difference operator "forward41" that operates on a multicomponent array and returns an array. */ template class forward41_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward41_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward41_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward41_et_multi(const forward41_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward41_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward41_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward41_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward41_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward41_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward41_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward41_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward41_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward41_et_multi T_slice; }; template forward41_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward41_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward41(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(const Array& d1, int comp, int dim) { return forward41(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(Array& d1, int comp, int dim) { return forward41(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(const Array& d1) { return forward41(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41(Array& d1) { return forward41(d1.wrap()); } /** Defines a stencil ET difference operator "forward12" that operates on a multicomponent array and returns an array. */ template class forward12_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward12_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward12_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward12_et_multi(const forward12_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward12_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward12_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward12_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward12_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward12_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward12_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward12_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward12_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward12_et_multi T_slice; }; template forward12_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward12_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward12(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(const Array& d1, int comp, int dim) { return forward12(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(Array& d1, int comp, int dim) { return forward12(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(const Array& d1) { return forward12(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12(Array& d1) { return forward12(d1.wrap()); } /** Defines a stencil ET difference operator "forward22" that operates on a multicomponent array and returns an array. */ template class forward22_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward22_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward22_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward22_et_multi(const forward22_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward22_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward22_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward22_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward22_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward22_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward22_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward22_et_multi T_slice; }; template forward22_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward22_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward22(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(const Array& d1, int comp, int dim) { return forward22(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(Array& d1, int comp, int dim) { return forward22(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(const Array& d1) { return forward22(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22(Array& d1) { return forward22(d1.wrap()); } /** Defines a stencil ET difference operator "forward32" that operates on a multicomponent array and returns an array. */ template class forward32_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward32_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward32_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward32_et_multi(const forward32_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward32_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward32_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward32_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward32_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward32_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward32_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward32_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward32_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward32_et_multi T_slice; }; template forward32_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward32_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward32(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(const Array& d1, int comp, int dim) { return forward32(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(Array& d1, int comp, int dim) { return forward32(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(const Array& d1) { return forward32(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32(Array& d1) { return forward32(d1.wrap()); } /** Defines a stencil ET difference operator "forward42" that operates on a multicomponent array and returns an array. */ template class forward42_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward42_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward42_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward42_et_multi(const forward42_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward42_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward42_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward42_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward42_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward42_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward42_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward42_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward42_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward42_et_multi T_slice; }; template forward42_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward42_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward42(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=5; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(const Array& d1, int comp, int dim) { return forward42(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(Array& d1, int comp, int dim) { return forward42(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(const Array& d1) { return forward42(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42(Array& d1) { return forward42(d1.wrap()); } /** Defines a stencil ET difference operator "forward11n" that operates on a multicomponent array and returns an array. */ template class forward11n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward11n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward11n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward11n_et_multi(const forward11n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward11n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward11n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward11n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward11n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward11n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward11n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward11n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward11n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward11n_et_multi T_slice; }; template forward11n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward11n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward11n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(const Array& d1, int comp, int dim) { return forward11n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(Array& d1, int comp, int dim) { return forward11n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(const Array& d1) { return forward11n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward11n(Array& d1) { return forward11n(d1.wrap()); } /** Defines a stencil ET difference operator "forward21n" that operates on a multicomponent array and returns an array. */ template class forward21n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward21n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward21n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward21n_et_multi(const forward21n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward21n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward21n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward21n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward21n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward21n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward21n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward21n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward21n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward21n_et_multi T_slice; }; template forward21n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward21n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward21n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(const Array& d1, int comp, int dim) { return forward21n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(Array& d1, int comp, int dim) { return forward21n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(const Array& d1) { return forward21n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward21n(Array& d1) { return forward21n(d1.wrap()); } /** Defines a stencil ET difference operator "forward31n" that operates on a multicomponent array and returns an array. */ template class forward31n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward31n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward31n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward31n_et_multi(const forward31n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward31n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward31n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward31n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward31n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward31n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward31n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward31n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward31n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward31n_et_multi T_slice; }; template forward31n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward31n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward31n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(const Array& d1, int comp, int dim) { return forward31n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(Array& d1, int comp, int dim) { return forward31n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(const Array& d1) { return forward31n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward31n(Array& d1) { return forward31n(d1.wrap()); } /** Defines a stencil ET difference operator "forward41n" that operates on a multicomponent array and returns an array. */ template class forward41n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward41n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward41n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward41n_et_multi(const forward41n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward41n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward41n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward41n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward41n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward41n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward41n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward41n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward41n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward41n_et_multi T_slice; }; template forward41n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward41n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward41n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(const Array& d1, int comp, int dim) { return forward41n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(Array& d1, int comp, int dim) { return forward41n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(const Array& d1) { return forward41n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward41n(Array& d1) { return forward41n(d1.wrap()); } /** Defines a stencil ET difference operator "forward12n" that operates on a multicomponent array and returns an array. */ template class forward12n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward12n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward12n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward12n_et_multi(const forward12n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward12n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward12n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward12n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward12n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward12n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward12n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward12n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward12n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward12n_et_multi T_slice; }; template forward12n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward12n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward12n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(const Array& d1, int comp, int dim) { return forward12n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(Array& d1, int comp, int dim) { return forward12n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(const Array& d1) { return forward12n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward12n(Array& d1) { return forward12n(d1.wrap()); } /** Defines a stencil ET difference operator "forward22n" that operates on a multicomponent array and returns an array. */ template class forward22n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward22n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward22n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward22n_et_multi(const forward22n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward22n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward22n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward22n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward22n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward22n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward22n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward22n_et_multi T_slice; }; template forward22n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward22n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=3; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(const Array& d1, int comp, int dim) { return forward22n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(Array& d1, int comp, int dim) { return forward22n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(const Array& d1) { return forward22n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward22n(Array& d1) { return forward22n(d1.wrap()); } /** Defines a stencil ET difference operator "forward32n" that operates on a multicomponent array and returns an array. */ template class forward32n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward32n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward32n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward32n_et_multi(const forward32n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward32n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward32n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward32n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward32n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward32n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward32n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward32n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward32n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward32n_et_multi T_slice; }; template forward32n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward32n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward32n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=4; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(const Array& d1, int comp, int dim) { return forward32n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(Array& d1, int comp, int dim) { return forward32n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(const Array& d1) { return forward32n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward32n(Array& d1) { return forward32n(d1.wrap()); } /** Defines a stencil ET difference operator "forward42n" that operates on a multicomponent array and returns an array. */ template class forward42n_et_multi : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef forward42n_et_multi< typename T_expr::template tvresult::Type> Type; }; typedef forward42n_et_multi<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: forward42n_et_multi(const forward42n_et_multi& a) : _bz_StencilExpr(a), comp_(a.comp_), dim_(a.dim_) { } forward42n_et_multi(BZ_ETPARM(T_expr) a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } forward42n_et_multi(_bz_typename T_expr::T_ctorArg1 a, int comp, int dim) : _bz_StencilExpr(a), comp_(comp), dim_(dim) { } T_numtype operator*() const { return forward42n_stencilop(iter_, comp_, dim_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return forward42n_stencilop(iter_, comp_, dim_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), comp_, dim_); } T_numtype operator[](int i) const { return forward42n_stencilop(iter_[i], comp_, dim_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = forward42n_stencilop (iter_, comp_, dim_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),comp_,dim_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = forward42n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = forward42n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef forward42n_et_multi T_slice; }; template forward42n_et_multi operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return forward42n_et_multi (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)),comp_, dim_); } private: int comp_; int dim_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > forward42n(const BZ_BLITZ_SCOPE(ETBase)& d1, int comp, int dim) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim]=0; maxb[dim]=5; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), comp, dim); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(const Array& d1, int comp, int dim) { return forward42n(d1.wrap(), comp, dim); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(Array& d1, int comp, int dim) { return forward42n(d1.wrap(), comp, dim); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(const Array& d1) { return forward42n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > forward42n(Array& d1) { return forward42n(d1.wrap()); } /** Defines a stencil ET "Laplacian2D" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1)-shape(1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian2D_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian2D_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian2D_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian2D_et(const Laplacian2D_et& a) : _bz_StencilExpr(a) { } Laplacian2D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian2D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian2D_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian2D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian2D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian2D_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian2D_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian2D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian2D (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian2D_et T_slice; }; template Laplacian2D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian2D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian2D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D(const Array& d1) { return Laplacian2D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D(Array& d1) { return Laplacian2D(d1.wrap()); } /** Defines a stencil ET "Laplacian3D" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1,-1)-shape(1,1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian3D_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian3D_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian3D_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian3D_et(const Laplacian3D_et& a) : _bz_StencilExpr(a) { } Laplacian3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian3D_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian3D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian3D_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian3D_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian3D (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian3D_et T_slice; }; template Laplacian3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D(const Array& d1) { return Laplacian3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D(Array& d1) { return Laplacian3D(d1.wrap()); } /** Defines a stencil ET "Laplacian2D4" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2)-shape(2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian2D4_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian2D4_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian2D4_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian2D4_et(const Laplacian2D4_et& a) : _bz_StencilExpr(a) { } Laplacian2D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian2D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian2D4_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian2D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian2D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian2D4_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian2D4_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian2D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian2D4 (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian2D4_et T_slice; }; template Laplacian2D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian2D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian2D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D4(const Array& d1) { return Laplacian2D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D4(Array& d1) { return Laplacian2D4(d1.wrap()); } /** Defines a stencil ET "Laplacian2D4n" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2)-shape(2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian2D4n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian2D4n_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian2D4n_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian2D4n_et(const Laplacian2D4n_et& a) : _bz_StencilExpr(a) { } Laplacian2D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian2D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian2D4n_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian2D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian2D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian2D4n_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian2D4n_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian2D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian2D4n (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian2D4n_et T_slice; }; template Laplacian2D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian2D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian2D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D4n(const Array& d1) { return Laplacian2D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian2D4n(Array& d1) { return Laplacian2D4n(d1.wrap()); } /** Defines a stencil ET "Laplacian3D4" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2,-2)-shape(2,2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian3D4_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian3D4_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian3D4_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian3D4_et(const Laplacian3D4_et& a) : _bz_StencilExpr(a) { } Laplacian3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian3D4_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian3D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian3D4_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian3D4_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian3D4 (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian3D4_et T_slice; }; template Laplacian3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D4(const Array& d1) { return Laplacian3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D4(Array& d1) { return Laplacian3D4(d1.wrap()); } /** Defines a stencil ET "Laplacian3D4n" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2,-2)-shape(2,2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class Laplacian3D4n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Laplacian3D4n_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef Laplacian3D4n_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: Laplacian3D4n_et(const Laplacian3D4n_et& a) : _bz_StencilExpr(a) { } Laplacian3D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Laplacian3D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Laplacian3D4n_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return Laplacian3D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Laplacian3D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Laplacian3D4n_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Laplacian3D4n_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Laplacian3D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "Laplacian3D4n (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Laplacian3D4n_et T_slice; }; template Laplacian3D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return Laplacian3D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > Laplacian3D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D4n(const Array& d1) { return Laplacian3D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > Laplacian3D4n(Array& d1) { return Laplacian3D4n(d1.wrap()); } /* Defines a stencil ET "grad2D" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad2D_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad2D_et< typename T_expr::template tvresult::Type> Type; }; typedef grad2D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad2D_et(const grad2D_et& a) : _bz_StencilExpr(a) { } grad2D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad2D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad2D_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad2D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad2D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad2D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad2D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad2D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad2D_et T_slice; }; template grad2D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad2D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad2D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D(const Array& d1) { return grad2D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D(Array& d1) { return grad2D(d1.wrap()); } /* Defines a stencil ET "grad2D4" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad2D4_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad2D4_et< typename T_expr::template tvresult::Type> Type; }; typedef grad2D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad2D4_et(const grad2D4_et& a) : _bz_StencilExpr(a) { } grad2D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad2D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad2D4_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad2D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad2D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad2D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad2D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad2D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad2D4_et T_slice; }; template grad2D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad2D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad2D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D4(const Array& d1) { return grad2D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D4(Array& d1) { return grad2D4(d1.wrap()); } /* Defines a stencil ET "grad3D" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad3D_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad3D_et< typename T_expr::template tvresult::Type> Type; }; typedef grad3D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad3D_et(const grad3D_et& a) : _bz_StencilExpr(a) { } grad3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad3D_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad3D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad3D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad3D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad3D_et T_slice; }; template grad3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D(const Array& d1) { return grad3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D(Array& d1) { return grad3D(d1.wrap()); } /* Defines a stencil ET "grad3D4" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad3D4_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad3D4_et< typename T_expr::template tvresult::Type> Type; }; typedef grad3D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad3D4_et(const grad3D4_et& a) : _bz_StencilExpr(a) { } grad3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad3D4_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad3D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad3D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad3D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad3D4_et T_slice; }; template grad3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D4(const Array& d1) { return grad3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D4(Array& d1) { return grad3D4(d1.wrap()); } /* Defines a stencil ET "grad2Dn" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad2Dn_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad2Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef grad2Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad2Dn_et(const grad2Dn_et& a) : _bz_StencilExpr(a) { } grad2Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad2Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad2Dn_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad2Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad2Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad2Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad2Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad2Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad2Dn_et T_slice; }; template grad2Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad2Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad2Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2Dn(const Array& d1) { return grad2Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2Dn(Array& d1) { return grad2Dn(d1.wrap()); } /* Defines a stencil ET "grad2D4n" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad2D4n_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad2D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef grad2D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad2D4n_et(const grad2D4n_et& a) : _bz_StencilExpr(a) { } grad2D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad2D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad2D4n_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad2D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad2D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad2D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad2D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad2D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad2D4n_et T_slice; }; template grad2D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad2D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad2D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D4n(const Array& d1) { return grad2D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad2D4n(Array& d1) { return grad2D4n(d1.wrap()); } /* Defines a stencil ET "grad3Dn" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad3Dn_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad3Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef grad3Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad3Dn_et(const grad3Dn_et& a) : _bz_StencilExpr(a) { } grad3Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad3Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad3Dn_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad3Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad3Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad3Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad3Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad3Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad3Dn_et T_slice; }; template grad3Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad3Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad3Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3Dn(const Array& d1) { return grad3Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3Dn(Array& d1) { return grad3Dn(d1.wrap()); } /* Defines a stencil ET "grad3D4n" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class grad3D4n_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef grad3D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef grad3D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: grad3D4n_et(const grad3D4n_et& a) : _bz_StencilExpr(a) { } grad3D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } grad3D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return grad3D4n_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return grad3D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return grad3D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = grad3D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = grad3D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = grad3D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef grad3D4n_et T_slice; }; template grad3D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return grad3D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > grad3D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D4n(const Array& d1) { return grad3D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > grad3D4n(Array& d1) { return grad3D4n(d1.wrap()); } /* Defines a stencil ET "gradSqr2D" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr2D_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr2D_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr2D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr2D_et(const gradSqr2D_et& a) : _bz_StencilExpr(a) { } gradSqr2D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr2D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr2D_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr2D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr2D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr2D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr2D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr2D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr2D_et T_slice; }; template gradSqr2D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr2D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr2D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D(const Array& d1) { return gradSqr2D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D(Array& d1) { return gradSqr2D(d1.wrap()); } /* Defines a stencil ET "gradSqr2D4" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr2D4_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr2D4_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr2D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr2D4_et(const gradSqr2D4_et& a) : _bz_StencilExpr(a) { } gradSqr2D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr2D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr2D4_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr2D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr2D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr2D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr2D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr2D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr2D4_et T_slice; }; template gradSqr2D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr2D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr2D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D4(const Array& d1) { return gradSqr2D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D4(Array& d1) { return gradSqr2D4(d1.wrap()); } /* Defines a stencil ET "gradSqr3D" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr3D_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr3D_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr3D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr3D_et(const gradSqr3D_et& a) : _bz_StencilExpr(a) { } gradSqr3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr3D_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr3D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr3D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr3D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr3D_et T_slice; }; template gradSqr3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D(const Array& d1) { return gradSqr3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D(Array& d1) { return gradSqr3D(d1.wrap()); } /* Defines a stencil ET "gradSqr3D4" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr3D4_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr3D4_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr3D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr3D4_et(const gradSqr3D4_et& a) : _bz_StencilExpr(a) { } gradSqr3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr3D4_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr3D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr3D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr3D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr3D4_et T_slice; }; template gradSqr3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D4(const Array& d1) { return gradSqr3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D4(Array& d1) { return gradSqr3D4(d1.wrap()); } /* Defines a stencil ET "gradSqr2Dn" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr2Dn_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr2Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr2Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr2Dn_et(const gradSqr2Dn_et& a) : _bz_StencilExpr(a) { } gradSqr2Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr2Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr2Dn_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr2Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr2Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr2Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr2Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr2Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr2Dn_et T_slice; }; template gradSqr2Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr2Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr2Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2Dn(const Array& d1) { return gradSqr2Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2Dn(Array& d1) { return gradSqr2Dn(d1.wrap()); } /* Defines a stencil ET "gradSqr2D4n" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr2D4n_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr2D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr2D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr2D4n_et(const gradSqr2D4n_et& a) : _bz_StencilExpr(a) { } gradSqr2D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr2D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr2D4n_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr2D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr2D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr2D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr2D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr2D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr2D4n_et T_slice; }; template gradSqr2D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr2D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr2D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D4n(const Array& d1) { return gradSqr2D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr2D4n(Array& d1) { return gradSqr2D4n(d1.wrap()); } /* Defines a stencil ET "gradSqr3Dn" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr3Dn_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr3Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr3Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr3Dn_et(const gradSqr3Dn_et& a) : _bz_StencilExpr(a) { } gradSqr3Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr3Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr3Dn_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr3Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr3Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr3Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr3Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr3Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr3Dn_et T_slice; }; template gradSqr3Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr3Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr3Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3Dn(const Array& d1) { return gradSqr3Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3Dn(Array& d1) { return gradSqr3Dn(d1.wrap()); } /* Defines a stencil ET "gradSqr3D4n" that operates on a (scalar) array and returns a multicomponent array >, N_rank>. */ template class gradSqr3D4n_et : public _bz_StencilExpr > { public: typedef _bz_StencilExpr > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, we assume P_numtype is scalar // and that we are returning a TinyVector. This needs to be returned // as a FastTVCopyIterator that keeps a copy of the TV it is // iterating over, since the result of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_numtype T_optype; template struct tvresult { typedef gradSqr3D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef gradSqr3D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: gradSqr3D4n_et(const gradSqr3D4n_et& a) : _bz_StencilExpr(a) { } gradSqr3D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } gradSqr3D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return gradSqr3D4n_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return gradSqr3D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return gradSqr3D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = gradSqr3D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = gradSqr3D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = gradSqr3D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef gradSqr3D4n_et T_slice; }; template gradSqr3D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return gradSqr3D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > gradSqr3D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D4n(const Array& d1) { return gradSqr3D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > gradSqr3D4n(Array& d1) { return gradSqr3D4n(d1.wrap()); } /* Defines a stencil ET "Jacobian3D" that operates on an array array and returns a multicomponent array >, N_rank>. P_numtype can be a TinyVector or a scalar, I think. */ template class Jacobian3D_et : public _bz_StencilExpr::T_element, 3, 3> > { public: typedef _bz_StencilExpr::T_element, 3, 3> > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, as we are returning a // TinyMatrix. This must be returned as a FastTMCopyIterator since the // output of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr::T_element, 3, 3> > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Jacobian3D_et< typename T_expr::template tvresult::Type> Type; }; typedef Jacobian3D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: Jacobian3D_et(const Jacobian3D_et& a) : _bz_StencilExpr(a) { } Jacobian3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Jacobian3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Jacobian3D_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return Jacobian3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Jacobian3D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Jacobian3D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Jacobian3D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Jacobian3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Jacobian3D_et T_slice; }; template Jacobian3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return Jacobian3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > Jacobian3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D(const Array& d1) { return Jacobian3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D(Array& d1) { return Jacobian3D(d1.wrap()); } /* Defines a stencil ET "Jacobian3Dn" that operates on an array array and returns a multicomponent array >, N_rank>. P_numtype can be a TinyVector or a scalar, I think. */ template class Jacobian3Dn_et : public _bz_StencilExpr::T_element, 3, 3> > { public: typedef _bz_StencilExpr::T_element, 3, 3> > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, as we are returning a // TinyMatrix. This must be returned as a FastTMCopyIterator since the // output of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr::T_element, 3, 3> > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Jacobian3Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef Jacobian3Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: Jacobian3Dn_et(const Jacobian3Dn_et& a) : _bz_StencilExpr(a) { } Jacobian3Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Jacobian3Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Jacobian3Dn_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return Jacobian3Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Jacobian3Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Jacobian3Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Jacobian3Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Jacobian3Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Jacobian3Dn_et T_slice; }; template Jacobian3Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return Jacobian3Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > Jacobian3Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3Dn(const Array& d1) { return Jacobian3Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3Dn(Array& d1) { return Jacobian3Dn(d1.wrap()); } /* Defines a stencil ET "Jacobian3D4" that operates on an array array and returns a multicomponent array >, N_rank>. P_numtype can be a TinyVector or a scalar, I think. */ template class Jacobian3D4_et : public _bz_StencilExpr::T_element, 3, 3> > { public: typedef _bz_StencilExpr::T_element, 3, 3> > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, as we are returning a // TinyMatrix. This must be returned as a FastTMCopyIterator since the // output of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr::T_element, 3, 3> > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Jacobian3D4_et< typename T_expr::template tvresult::Type> Type; }; typedef Jacobian3D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: Jacobian3D4_et(const Jacobian3D4_et& a) : _bz_StencilExpr(a) { } Jacobian3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Jacobian3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Jacobian3D4_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return Jacobian3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Jacobian3D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Jacobian3D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Jacobian3D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Jacobian3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Jacobian3D4_et T_slice; }; template Jacobian3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return Jacobian3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > Jacobian3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D4(const Array& d1) { return Jacobian3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D4(Array& d1) { return Jacobian3D4(d1.wrap()); } /* Defines a stencil ET "Jacobian3D4n" that operates on an array array and returns a multicomponent array >, N_rank>. P_numtype can be a TinyVector or a scalar, I think. */ template class Jacobian3D4n_et : public _bz_StencilExpr::T_element, 3, 3> > { public: typedef _bz_StencilExpr::T_element, 3, 3> > T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no return type selection, as we are returning a // TinyMatrix. This must be returned as a FastTMCopyIterator since the // output of the stencil operator is a temporary. typedef ETBase<_bz_ArrayExpr::T_element, 3, 3> > > T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef Jacobian3D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef Jacobian3D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: Jacobian3D4n_et(const Jacobian3D4n_et& a) : _bz_StencilExpr(a) { } Jacobian3D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } Jacobian3D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return Jacobian3D4n_stencilop(iter_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return Jacobian3D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return Jacobian3D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = Jacobian3D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = Jacobian3D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = Jacobian3D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef Jacobian3D4n_et T_slice; }; template Jacobian3D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return Jacobian3D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > Jacobian3D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D4n(const Array& d1) { return Jacobian3D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > Jacobian3D4n(Array& d1) { return Jacobian3D4n(d1.wrap()); } /** Defines a stencil ET "curl3D" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1,-1)-shape(1,1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl3D_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl3D_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl3D_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl3D_et(const curl3D_et& a) : _bz_StencilExpr(a) { } curl3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl3D_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl3D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl3D_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl3D_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl3D (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl3D_et T_slice; }; template curl3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D(const Array& d1) { return curl3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D(Array& d1) { return curl3D(d1.wrap()); } /** Defines a stencil ET "curl3Dn" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1,-1)-shape(1,1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl3Dn_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl3Dn_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl3Dn_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl3Dn_et(const curl3Dn_et& a) : _bz_StencilExpr(a) { } curl3Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl3Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl3Dn_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl3Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl3Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl3Dn_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl3Dn_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl3Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl3Dn (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl3Dn_et T_slice; }; template curl3Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl3Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl3Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3Dn(const Array& d1) { return curl3Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3Dn(Array& d1) { return curl3Dn(d1.wrap()); } /** Defines a stencil ET "curl3D4" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2,-2)-shape(2,2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl3D4_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl3D4_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl3D4_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl3D4_et(const curl3D4_et& a) : _bz_StencilExpr(a) { } curl3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl3D4_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl3D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl3D4_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl3D4_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl3D4 (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl3D4_et T_slice; }; template curl3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D4(const Array& d1) { return curl3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D4(Array& d1) { return curl3D4(d1.wrap()); } /** Defines a stencil ET "curl3D4n" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2,-2)-shape(2,2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl3D4n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl3D4n_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl3D4n_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl3D4n_et(const curl3D4n_et& a) : _bz_StencilExpr(a) { } curl3D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl3D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl3D4n_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl3D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl3D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl3D4n_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl3D4n_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl3D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl3D4n (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl3D4n_et T_slice; }; template curl3D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl3D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl3D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D4n(const Array& d1) { return curl3D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl3D4n(Array& d1) { return curl3D4n(d1.wrap()); } /** Defines a stencil ET "curl2D" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1)-shape(1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl2D_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl2D_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl2D_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl2D_et(const curl2D_et& a) : _bz_StencilExpr(a) { } curl2D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl2D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl2D_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl2D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl2D_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl2D_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl2D_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl2D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl2D (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl2D_et T_slice; }; template curl2D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl2D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl2D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D(const Array& d1) { return curl2D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D(Array& d1) { return curl2D(d1.wrap()); } /** Defines a stencil ET "curl2Dn" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-1,-1)-shape(1,1). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl2Dn_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl2Dn_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl2Dn_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl2Dn_et(const curl2Dn_et& a) : _bz_StencilExpr(a) { } curl2Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl2Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl2Dn_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl2Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl2Dn_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl2Dn_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl2Dn_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl2Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl2Dn (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl2Dn_et T_slice; }; template curl2Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl2Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl2Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2Dn(const Array& d1) { return curl2Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2Dn(Array& d1) { return curl2Dn(d1.wrap()); } /** Defines a stencil ET "curl2D4" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2)-shape(2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl2D4_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl2D4_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl2D4_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl2D4_et(const curl2D4_et& a) : _bz_StencilExpr(a) { } curl2D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl2D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl2D4_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl2D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl2D4_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl2D4_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl2D4_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl2D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl2D4 (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl2D4_et T_slice; }; template curl2D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl2D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl2D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D4(const Array& d1) { return curl2D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D4(Array& d1) { return curl2D4(d1.wrap()); } /** Defines a stencil ET "curl2D4n" that operates on an Array and specifies the return type as Array. The result type is used when running on an array and the etresult type when running on an expression. The extent of the stencil is shape(-2,-2)-shape(2,2). If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. The stencil ET calls the stencil operator name_stencilop, defined in stencilops.h. **/ template class curl2D4n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef curl2D4n_et< typename T_expr::template tvresult::Type, T_numtype> Type; }; typedef curl2D4n_et<_bz_typename P_expr::T_range_result, T_numtype> T_range_result; using T_base::iter_; using T_base::rank_; public: curl2D4n_et(const curl2D4n_et& a) : _bz_StencilExpr(a) { } curl2D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } curl2D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_result operator*() const { return curl2D4n_stencilop(iter_); } /* this is not really const, because we don't undo the moveTo, but that should not be visible to outside. It would be if we used some kind of mixed index and stack traversal, but that will screw things up, const or not. */ template T_result operator()(const TinyVector& i) const { iter_.moveTo(i); return curl2D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_result operator[](int i) const { return curl2D4n_stencilop(iter_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_result r = curl2D4n_stencilop(iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_result shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_result r = curl2D4n_stencilop(iter_); iter_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = curl2D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "curl2D4n (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef curl2D4n_et T_slice; }; template curl2D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* because stencils work inherently in several dimensions it's complicated to slice the domain. slices will be changed to unit ranges instead. slicing stencil result thus *never* changes the rank of the expression, unlike the normal case. */ return curl2D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* generate an ET object from an expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > curl2D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* redirect calls with bare arrays to the main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D4n(const Array& d1) { return curl2D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, T> > curl2D4n(Array& d1) { return curl2D4n(d1.wrap()); } /** Defines a stencil ET "div2D" that operates on a multicomponent array and returns a scalar array. */ template class div2D_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div2D_et< typename T_expr::template tvresult::Type> Type; }; typedef div2D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div2D_et(const div2D_et& a) : _bz_StencilExpr(a) { } div2D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div2D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div2D_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div2D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div2D_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div2D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div2D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div2D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div2D_et T_slice; }; template div2D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div2D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div2D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D(const Array& d1) { return div2D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D(Array& d1) { return div2D(d1.wrap()); } /** Defines a stencil ET "div2Dn" that operates on a multicomponent array and returns a scalar array. */ template class div2Dn_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div2Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef div2Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div2Dn_et(const div2Dn_et& a) : _bz_StencilExpr(a) { } div2Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div2Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div2Dn_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div2Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div2Dn_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div2Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div2Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div2Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div2Dn_et T_slice; }; template div2Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div2Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div2Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2Dn(const Array& d1) { return div2Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2Dn(Array& d1) { return div2Dn(d1.wrap()); } /** Defines a stencil ET "div2D4" that operates on a multicomponent array and returns a scalar array. */ template class div2D4_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div2D4_et< typename T_expr::template tvresult::Type> Type; }; typedef div2D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div2D4_et(const div2D4_et& a) : _bz_StencilExpr(a) { } div2D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div2D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div2D4_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div2D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div2D4_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div2D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div2D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div2D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div2D4_et T_slice; }; template div2D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div2D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div2D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D4(const Array& d1) { return div2D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D4(Array& d1) { return div2D4(d1.wrap()); } /** Defines a stencil ET "div2D4n" that operates on a multicomponent array and returns a scalar array. */ template class div2D4n_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div2D4n_et< typename T_expr::template tvresult::Type> Type; }; typedef div2D4n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div2D4n_et(const div2D4n_et& a) : _bz_StencilExpr(a) { } div2D4n_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div2D4n_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div2D4n_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div2D4n_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div2D4n_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div2D4n_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div2D4n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div2D4n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div2D4n_et T_slice; }; template div2D4n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div2D4n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div2D4n(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D4n(const Array& d1) { return div2D4n(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div2D4n(Array& d1) { return div2D4n(d1.wrap()); } /** Defines a stencil ET "div3D" that operates on a multicomponent array and returns a scalar array. */ template class div3D_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div3D_et< typename T_expr::template tvresult::Type> Type; }; typedef div3D_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div3D_et(const div3D_et& a) : _bz_StencilExpr(a) { } div3D_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div3D_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div3D_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div3D_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div3D_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div3D_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div3D_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div3D_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div3D_et T_slice; }; template div3D_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div3D_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div3D(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3D(const Array& d1) { return div3D(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3D(Array& d1) { return div3D(d1.wrap()); } /** Defines a stencil ET "div3Dn" that operates on a multicomponent array and returns a scalar array. */ template class div3Dn_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div3Dn_et< typename T_expr::template tvresult::Type> Type; }; typedef div3Dn_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div3Dn_et(const div3Dn_et& a) : _bz_StencilExpr(a) { } div3Dn_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div3Dn_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div3Dn_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div3Dn_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div3Dn_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div3Dn_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div3Dn_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div3Dn_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div3Dn_et T_slice; }; template div3Dn_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div3Dn_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div3Dn(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1,-1), shape(1,1,1)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3Dn(const Array& d1) { return div3Dn(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3Dn(Array& d1) { return div3Dn(d1.wrap()); } /** Defines a stencil ET "div3D4" that operates on a multicomponent array and returns a scalar array. */ template class div3D4_et : public _bz_StencilExpr::T_element> { public: typedef _bz_typename multicomponent_traits::T_element T_result; typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // there is no selecting return type here. because we *know* it is // scalar T_result, there's no question of whether we could be doing // multicomponent evaluations. typedef T_result T_typeprop; typedef T_numtype T_optype; template struct tvresult { typedef div3D4_et< typename T_expr::template tvresult::Type> Type; }; typedef div3D4_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: div3D4_et(const div3D4_et& a) : _bz_StencilExpr(a) { } div3D4_et(BZ_ETPARM(T_expr) a) : _bz_StencilExpr(a) { } div3D4_et(_bz_typename T_expr::T_ctorArg1 a) : _bz_StencilExpr(a) { } T_numtype operator*() const { return div3D4_stencilop(iter_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return div3D4_stencilop(iter_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } T_numtype operator[](int i) const { return div3D4_stencilop(iter_[i]); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = div3D4_stencilop (iter_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return iter_.fastRead_tv(i); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = div3D4_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = div3D4_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div3D4_et T_slice; }; template div3D4_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div3D4_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > div3D4(const BZ_BLITZ_SCOPE(ETBase)& d1) { return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2,-2), shape(2,2,2)))); } /* Explicit operators for arrays for stencil name. */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3D4(const Array& d1) { return div3D4(d1.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > div3D4(Array& d1) { return div3D4(d1.wrap()); } /** Defines a stencil "div" ET that operates on two arrays of arbitrary type and specifies the return type as array. The result type is used when running on an array and the etresult type when running on an expression. If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. */ template class div_et2 : public _bz_StencilExpr2 { public: typedef _bz_StencilExpr2 T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr1 T_expr1; typedef _bz_typename T_base::T_expr2 T_expr2; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; /// dummy template struct tvresult { typedef div_et2< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, T_numtype> Type; }; typedef div_et2<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, T_numtype> T_range_result; using T_base::iter1_; using T_base::iter2_; using T_base::rank_; public: div_et2(const div_et2& a) : _bz_StencilExpr2(a) { } div_et2(BZ_ETPARM(T_expr1) a, BZ_ETPARM(T_expr2) b) : _bz_StencilExpr2(a, b) { } T_result operator*() const { return div_stencilop(iter1_, iter2_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter1_.moveTo(i); iter2_.moveTo(i); return div_stencilop(iter1_, iter2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d)); } T_result operator[](int i) const { return div_stencilop(iter1_[i], iter2_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); T_result r = div_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-i); iter2_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter1_.fastRead_tv(i), iter2_.fastRead_tv(i)); } T_result shift(int offset, int dim) const { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); T_result r = div_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset, dim); iter2_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = div_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset1, dim1, -offset2, dim2); iter2_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter1_.prettyPrint(str, format); str += ", "; iter2_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div_et2 T_slice; }; template div_et2 operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div_et2 (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET object from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > div(const BZ_BLITZ_SCOPE(ETBase)& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1))), BZ_BLITZ_SCOPE(asExpr)::getExpr(d2.unwrap())(_bz_shrinkDomain(d2.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* matches to calls involving bare arrays (this is very annoying because we have to exactly match every possible call combination to ensure that this matches instead of the operator in stencilops.h) */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(const BZ_BLITZ_SCOPE(ETBase)& d1, Array& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(const BZ_BLITZ_SCOPE(ETBase)& d1, const Array& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div(Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div(const Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(const Array& d1, Array& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(Array& d1, const Array& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(Array& d1, Array& d2) { return div(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div(const Array& d1, const Array& d2) { return div(d1.wrap(), d2.wrap()); } /** Defines a stencil "divn" ET that operates on two arrays of arbitrary type and specifies the return type as array. The result type is used when running on an array and the etresult type when running on an expression. If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. */ template class divn_et2 : public _bz_StencilExpr2 { public: typedef _bz_StencilExpr2 T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr1 T_expr1; typedef _bz_typename T_base::T_expr2 T_expr2; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; /// dummy template struct tvresult { typedef divn_et2< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, T_numtype> Type; }; typedef divn_et2<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, T_numtype> T_range_result; using T_base::iter1_; using T_base::iter2_; using T_base::rank_; public: divn_et2(const divn_et2& a) : _bz_StencilExpr2(a) { } divn_et2(BZ_ETPARM(T_expr1) a, BZ_ETPARM(T_expr2) b) : _bz_StencilExpr2(a, b) { } T_result operator*() const { return divn_stencilop(iter1_, iter2_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter1_.moveTo(i); iter2_.moveTo(i); return divn_stencilop(iter1_, iter2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d)); } T_result operator[](int i) const { return divn_stencilop(iter1_[i], iter2_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); T_result r = divn_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-i); iter2_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter1_.fastRead_tv(i), iter2_.fastRead_tv(i)); } T_result shift(int offset, int dim) const { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); T_result r = divn_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset, dim); iter2_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = divn_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset1, dim1, -offset2, dim2); iter2_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter1_.prettyPrint(str, format); str += ", "; iter2_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef divn_et2 T_slice; }; template divn_et2 operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return divn_et2 (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET object from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > divn(const BZ_BLITZ_SCOPE(ETBase)& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-1,-1), shape(1,1))), BZ_BLITZ_SCOPE(asExpr)::getExpr(d2.unwrap())(_bz_shrinkDomain(d2.unwrap().domain(),shape(-1,-1), shape(1,1)))); } /* matches to calls involving bare arrays (this is very annoying because we have to exactly match every possible call combination to ensure that this matches instead of the operator in stencilops.h) */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(const BZ_BLITZ_SCOPE(ETBase)& d1, Array& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(const BZ_BLITZ_SCOPE(ETBase)& d1, const Array& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > divn(Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > divn(const Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(const Array& d1, Array& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(Array& d1, const Array& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(Array& d1, Array& d2) { return divn(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > divn(const Array& d1, const Array& d2) { return divn(d1.wrap(), d2.wrap()); } /** Defines a stencil "div4" ET that operates on two arrays of arbitrary type and specifies the return type as array. The result type is used when running on an array and the etresult type when running on an expression. If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. */ template class div4_et2 : public _bz_StencilExpr2 { public: typedef _bz_StencilExpr2 T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr1 T_expr1; typedef _bz_typename T_base::T_expr2 T_expr2; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; /// dummy template struct tvresult { typedef div4_et2< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, T_numtype> Type; }; typedef div4_et2<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, T_numtype> T_range_result; using T_base::iter1_; using T_base::iter2_; using T_base::rank_; public: div4_et2(const div4_et2& a) : _bz_StencilExpr2(a) { } div4_et2(BZ_ETPARM(T_expr1) a, BZ_ETPARM(T_expr2) b) : _bz_StencilExpr2(a, b) { } T_result operator*() const { return div4_stencilop(iter1_, iter2_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter1_.moveTo(i); iter2_.moveTo(i); return div4_stencilop(iter1_, iter2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d)); } T_result operator[](int i) const { return div4_stencilop(iter1_[i], iter2_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); T_result r = div4_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-i); iter2_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter1_.fastRead_tv(i), iter2_.fastRead_tv(i)); } T_result shift(int offset, int dim) const { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); T_result r = div4_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset, dim); iter2_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = div4_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset1, dim1, -offset2, dim2); iter2_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter1_.prettyPrint(str, format); str += ", "; iter2_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div4_et2 T_slice; }; template div4_et2 operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div4_et2 (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET object from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > div4(const BZ_BLITZ_SCOPE(ETBase)& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2))), BZ_BLITZ_SCOPE(asExpr)::getExpr(d2.unwrap())(_bz_shrinkDomain(d2.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* matches to calls involving bare arrays (this is very annoying because we have to exactly match every possible call combination to ensure that this matches instead of the operator in stencilops.h) */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(const BZ_BLITZ_SCOPE(ETBase)& d1, Array& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(const BZ_BLITZ_SCOPE(ETBase)& d1, const Array& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div4(Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div4(const Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(const Array& d1, Array& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(Array& d1, const Array& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(Array& d1, Array& d2) { return div4(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4(const Array& d1, const Array& d2) { return div4(d1.wrap(), d2.wrap()); } /** Defines a stencil "div4n" ET that operates on two arrays of arbitrary type and specifies the return type as array. The result type is used when running on an array and the etresult type when running on an expression. If you want to refer to the native type of the expression, set result="P_numtype" and etresult="typename T1::T_numtype". Sorry for that ugliness, but they define types differently. */ template class div4n_et2 : public _bz_StencilExpr2 { public: typedef _bz_StencilExpr2 T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr1 T_expr1; typedef _bz_typename T_base::T_expr2 T_expr2; // if P_numtype is an ET-type, we need to return an expr typedef typename selectET > > >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; /// dummy template struct tvresult { typedef div4n_et2< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, T_numtype> Type; }; typedef div4n_et2<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, T_numtype> T_range_result; using T_base::iter1_; using T_base::iter2_; using T_base::rank_; public: div4n_et2(const div4n_et2& a) : _bz_StencilExpr2(a) { } div4n_et2(BZ_ETPARM(T_expr1) a, BZ_ETPARM(T_expr2) b) : _bz_StencilExpr2(a, b) { } T_result operator*() const { return div4n_stencilop(iter1_, iter2_); } T_result operator()(_bz_typename _bz_IndexParameter >::type i) const { iter1_.moveTo(i); iter2_.moveTo(i); return div4n_stencilop(iter1_, iter2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d)); } T_result operator[](int i) const { return div4n_stencilop(iter1_[i], iter2_[i]); } T_result fastRead(diffType i) const {/* this probably isn't very fast... */ iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); T_result r = div4n_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-i); iter2_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter1_.fastRead_tv(i), iter2_.fastRead_tv(i)); } T_result shift(int offset, int dim) const { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); T_result r = div4n_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset, dim); iter2_._bz_offsetData(-offset, dim); return r; } T_result shift(int offset1, int dim1, int offset2, int dim2) const { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); T_result r = div4n_stencilop (iter1_, iter2_); iter1_._bz_offsetData(-offset1, dim1, -offset2, dim2); iter2_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter1_.prettyPrint(str, format); str += ", "; iter2_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef div4n_et2 T_slice; }; template div4n_et2 operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return div4n_et2 (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11))); } }; /* create ET object from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > div4n(const BZ_BLITZ_SCOPE(ETBase)& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, BZ_PROMOTE(typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_numtype)> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),shape(-2,-2), shape(2,2))), BZ_BLITZ_SCOPE(asExpr)::getExpr(d2.unwrap())(_bz_shrinkDomain(d2.unwrap().domain(),shape(-2,-2), shape(2,2)))); } /* matches to calls involving bare arrays (this is very annoying because we have to exactly match every possible call combination to ensure that this matches instead of the operator in stencilops.h) */ template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(const BZ_BLITZ_SCOPE(ETBase)& d1, Array& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(const BZ_BLITZ_SCOPE(ETBase)& d1, const Array& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div4n(Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr)::T_expr::T_range_result, double> > div4n(const Array& d1, const BZ_BLITZ_SCOPE(ETBase)& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(const Array& d1, Array& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(Array& d1, const Array& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(Array& d1, Array& d2) { return div4n(d1.wrap(), d2.wrap()); } template inline _bz_ArrayExpr >::T_expr::T_range_result, typename BZ_BLITZ_SCOPE(asExpr) >::T_expr::T_range_result, double> > div4n(const Array& d1, const Array& d2) { return div4n(d1.wrap(), d2.wrap()); } /** Defines a stencil ET double-difference operator "mixed22" that operates on an array and returns an array of identical type. (The only significance of the "double-difference" aspect is that the operator is assumed to take two extra arguments which are the dimensions to do the differences in). */ template class mixed22_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef mixed22_et< typename T_expr::template tvresult::Type> Type; }; typedef mixed22_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: mixed22_et(const mixed22_et& a) : _bz_StencilExpr(a), dim1_(a.dim1_), dim2_(a.dim2_) { } mixed22_et(BZ_ETPARM(T_expr) a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } mixed22_et(_bz_typename T_expr::T_ctorArg1 a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } T_numtype operator*() const { return mixed22_stencilop(iter_, dim1_, dim2_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return mixed22_stencilop(iter_, dim1_, dim2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim1_, dim2_); } T_numtype operator[](int i) const { return mixed22_stencilop(iter_[i], dim1_, dim2_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = mixed22_stencilop (iter_, dim1_, dim2_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim1_,dim2_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = mixed22_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = mixed22_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef mixed22_et T_slice; }; template mixed22_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return mixed22_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)), dim1_, dim2_); } private: int dim1_, dim2_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > mixed22(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim1, int dim2) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim1]=-1; maxb[dim1]=1; minb[dim2]=-1; maxb[dim2]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim1, dim2); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed22(const Array& d1, int dim1, int dim2) { return mixed22(d1.wrap(), dim1, dim2); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed22(Array& d1, int dim1, int dim2) { return mixed22(d1.wrap(), dim1, dim2); } /** Defines a stencil ET double-difference operator "mixed22n" that operates on an array and returns an array of identical type. (The only significance of the "double-difference" aspect is that the operator is assumed to take two extra arguments which are the dimensions to do the differences in). */ template class mixed22n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef mixed22n_et< typename T_expr::template tvresult::Type> Type; }; typedef mixed22n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: mixed22n_et(const mixed22n_et& a) : _bz_StencilExpr(a), dim1_(a.dim1_), dim2_(a.dim2_) { } mixed22n_et(BZ_ETPARM(T_expr) a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } mixed22n_et(_bz_typename T_expr::T_ctorArg1 a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } T_numtype operator*() const { return mixed22n_stencilop(iter_, dim1_, dim2_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return mixed22n_stencilop(iter_, dim1_, dim2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim1_, dim2_); } T_numtype operator[](int i) const { return mixed22n_stencilop(iter_[i], dim1_, dim2_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = mixed22n_stencilop (iter_, dim1_, dim2_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim1_,dim2_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = mixed22n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = mixed22n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef mixed22n_et T_slice; }; template mixed22n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return mixed22n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)), dim1_, dim2_); } private: int dim1_, dim2_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > mixed22n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim1, int dim2) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim1]=-1; maxb[dim1]=1; minb[dim2]=-1; maxb[dim2]=1; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim1, dim2); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed22n(const Array& d1, int dim1, int dim2) { return mixed22n(d1.wrap(), dim1, dim2); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed22n(Array& d1, int dim1, int dim2) { return mixed22n(d1.wrap(), dim1, dim2); } /** Defines a stencil ET double-difference operator "mixed24" that operates on an array and returns an array of identical type. (The only significance of the "double-difference" aspect is that the operator is assumed to take two extra arguments which are the dimensions to do the differences in). */ template class mixed24_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef mixed24_et< typename T_expr::template tvresult::Type> Type; }; typedef mixed24_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: mixed24_et(const mixed24_et& a) : _bz_StencilExpr(a), dim1_(a.dim1_), dim2_(a.dim2_) { } mixed24_et(BZ_ETPARM(T_expr) a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } mixed24_et(_bz_typename T_expr::T_ctorArg1 a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } T_numtype operator*() const { return mixed24_stencilop(iter_, dim1_, dim2_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return mixed24_stencilop(iter_, dim1_, dim2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim1_, dim2_); } T_numtype operator[](int i) const { return mixed24_stencilop(iter_[i], dim1_, dim2_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = mixed24_stencilop (iter_, dim1_, dim2_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim1_,dim2_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = mixed24_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = mixed24_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef mixed24_et T_slice; }; template mixed24_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return mixed24_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)), dim1_, dim2_); } private: int dim1_, dim2_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > mixed24(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim1, int dim2) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim1]=-2; maxb[dim1]=2; minb[dim2]=-2; maxb[dim2]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim1, dim2); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed24(const Array& d1, int dim1, int dim2) { return mixed24(d1.wrap(), dim1, dim2); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed24(Array& d1, int dim1, int dim2) { return mixed24(d1.wrap(), dim1, dim2); } /** Defines a stencil ET double-difference operator "mixed24n" that operates on an array and returns an array of identical type. (The only significance of the "double-difference" aspect is that the operator is assumed to take two extra arguments which are the dimensions to do the differences in). */ template class mixed24n_et : public _bz_StencilExpr { public: typedef _bz_StencilExpr T_base; typedef _bz_typename T_base::T_numtype T_numtype; typedef _bz_typename T_base::T_expr T_expr; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; template struct tvresult { typedef mixed24n_et< typename T_expr::template tvresult::Type> Type; }; typedef mixed24n_et<_bz_typename P_expr::T_range_result> T_range_result; using T_base::iter_; using T_base::rank_; public: mixed24n_et(const mixed24n_et& a) : _bz_StencilExpr(a), dim1_(a.dim1_), dim2_(a.dim2_) { } mixed24n_et(BZ_ETPARM(T_expr) a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } mixed24n_et(_bz_typename T_expr::T_ctorArg1 a, int dim1, int dim2) : _bz_StencilExpr(a), dim1_(dim1), dim2_(dim2) { } T_numtype operator*() const { return mixed24n_stencilop(iter_, dim1_, dim2_); } T_numtype operator()(_bz_typename _bz_IndexParameter >::type i) const { iter_.moveTo(i); return mixed24n_stencilop(iter_, dim1_, dim2_); } T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d), dim1_, dim2_); } T_numtype operator[](int i) const { return mixed24n_stencilop(iter_[i], dim1_, dim2_); } T_numtype fastRead(diffType i) const {/* this probably isn't very fast... */ iter_._bz_offsetData(i); T_numtype r = mixed24n_stencilop (iter_, dim1_, dim2_); iter_._bz_offsetData(-i); return r; } /** This way of vectorizing won't work on stencils. */ template typename tvresult::Type fastRead_tv(diffType i) const { BZPRECHECK(0, "Can't vectorize stencils"); return typename tvresult::Type(iter_.fastRead_tv(i),dim1_,dim2_); } T_numtype shift(int offset, int dim) const { iter_._bz_offsetData(offset, dim); T_numtype r = mixed24n_stencilop (iter_); iter_._bz_offsetData(-offset, dim); return r; } T_numtype shift(int offset1, int dim1, int offset2, int dim2) const { iter_._bz_offsetData(offset1, dim1, offset2, dim2); T_numtype r = mixed24n_stencilop (iter_); iter_._bz_offsetData(-offset1, dim1, -offset2, dim2); return r; } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { str += "name (stencil)"; str += "("; iter_.prettyPrint(str, format); str += ")"; } template class SliceInfo { public: typedef mixed24n_et T_slice; }; template mixed24n_et operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return mixed24n_et (iter_(_bz_makeRange(r1), _bz_makeRange(r2), _bz_makeRange(r3), _bz_makeRange(r4), _bz_makeRange(r5), _bz_makeRange(r6), _bz_makeRange(r7), _bz_makeRange(r8), _bz_makeRange(r9), _bz_makeRange(r10), _bz_makeRange(r11)), dim1_, dim2_); } private: int dim1_, dim2_; }; /* create ET from application to expression */ template inline _bz_ArrayExpr::T_expr::T_range_result> > mixed24n(const BZ_BLITZ_SCOPE(ETBase)& d1, int dim1, int dim2) { TinyVector::T_expr::rank_> minb(0), maxb(0); minb[dim1]=-2; maxb[dim1]=2; minb[dim2]=-2; maxb[dim2]=2; return _bz_ArrayExpr::T_expr::T_range_result> > (BZ_BLITZ_SCOPE(asExpr)::getExpr(d1.unwrap())(_bz_shrinkDomain(d1.unwrap().domain(),minb, maxb)), dim1, dim2); } /* forward operations on arrays to main function */ template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed24n(const Array& d1, int dim1, int dim2) { return mixed24n(d1.wrap(), dim1, dim2); } template inline _bz_ArrayExpr >::T_expr::T_range_result> > mixed24n(Array& d1, int dim1, int dim2) { return mixed24n(d1.wrap(), dim1, dim2); } BZ_NAMESPACE_END blitz-0.10/blitz/array/expr.h0000644002370500237050000021710411772451133013111 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/expr.h Array expression templates * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_EXPR_H #define BZ_EXPR_H #include #include #include #include #include #include /* * The array expression templates iterator interface is followed by * these classes: * * FastArrayIterator * _bz_ArrayExpr * _bz_ArrayExprUnaryOp " * _bz_ArrayExprBinaryOp " * _bz_ArrayExprTernaryOp " * _bz_ArrayExprConstant " * ArrayIndexMapping * _bz_ArrayExprReduce * _bz_StencilExpr * ... and derived types " * IndexPlaceholder * _bz_ArrayWhere * _bz_FunctorExpr * _bz_FunctorExpr2 " * _bz_FunctorExpr3 " */ BZ_NAMESPACE(blitz) #define BZ_MAX(a,b) (a)>(b) ? (a) : (b) #define BZ_MIN(a,b) (a)<(b) ? (a) : (b) template class _bz_ExprPair { public: _bz_ExprPair(const T1& a, const T2& b) : first_(a), second_(b) { } const T1& first() const { return first_; } const T2& second() const { return second_; } protected: T1 first_; T2 second_; }; template inline _bz_ExprPair makeExprPair(const T1& a, const T2& b) { return _bz_ExprPair(a,b); } /** The main expression template class which is used to wrap all other elements. This makes an expression easy to recognize. A container that wants to be usable through the expression template machinery must must implement the same interface as this class. Once it does, it will be able to interoperate with the other containers. Note that the expression components (_bz_ArrayExprUnaryOp, _bz_ArrayExprBinaryOp, _bz_ArrayExprReduce, etc.) do not inherit from ETBase. Since all the functions are duplicated in all ET classes, they are documented only in this class. \todo Actually document the interface. */ template class _bz_ArrayExpr #ifdef BZ_NEW_EXPRESSION_TEMPLATES : public ETBase<_bz_ArrayExpr > #endif { public: typedef P_expr T_expr; typedef _bz_typename T_expr::T_numtype T_numtype; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_expr::T_optype T_optype; typedef T_expr T_ctorArg1; typedef int T_ctorArg2; // dummy typedef _bz_ArrayExpr<_bz_typename P_expr::T_range_result> T_range_result; static const int numArrayOperands = T_expr::numArrayOperands, numTVOperands = T_expr::numTVOperands, numTMOperands = T_expr::numTMOperands, numIndexPlaceholders = T_expr::numIndexPlaceholders, minWidth = T_expr::minWidth, maxWidth = T_expr::maxWidth, rank_ = T_expr::rank_; // traits class that computes the vectorized return type for vector // width N. template struct tvresult { typedef _bz_ArrayExpr::Type> Type; }; _bz_ArrayExpr(const _bz_ArrayExpr& a) #ifdef BZ_NEW_EXPRESSION_TEMPLATES : ETBase< _bz_ArrayExpr >(a), iter_(a.iter_) #else : iter_(a.iter_) #endif { } #if defined(BZ_NEW_EXPRESSION_TEMPLATES) && ! defined(__MWERKS__) template _bz_ArrayExpr(const T& a) : iter_(a) { } #else _bz_ArrayExpr(BZ_ETPARM(T_expr) a) : iter_(a) { } #if !defined(__MWERKS__) _bz_ArrayExpr(BZ_ETPARM(_bz_typename T_expr::T_ctorArg1) a) : iter_(a) { } #endif #endif template _bz_ArrayExpr(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b) : iter_(a, b) { } template _bz_ArrayExpr(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b, BZ_ETPARM(T3) c) : iter_(a, b, c) { } template _bz_ArrayExpr(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b, BZ_ETPARM(T3) c, BZ_ETPARM(T4) d) : iter_(a, b, c, d) { } template _bz_ArrayExpr(const _bz_ExprPair& exprpair) : iter_(exprpair.first(), exprpair.second()) { } T_result operator*() const { return *iter_; } T_result first_value() const { return iter_.first_value(); } #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE template T_result operator()(const TinyVector i) const { return iter_(i); } #else template T_result operator()(const TinyVector& i) const { return iter_(i); } #endif template T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } int ascending(const int rank) const { return iter_.ascending(rank); } int ordering(const int rank) const { return iter_.ordering(rank); } int lbound(const int rank) const { return iter_.lbound(rank); } int ubound(const int rank) const { return iter_.ubound(rank); } RectDomain domain() const { return iter_.domain(); } void push(int position) { iter_.push(position); } void pop(int position) { iter_.pop(position); } void advance() { iter_.advance(); } void advance(int n) { iter_.advance(n); } void loadStride(int rank) { iter_.loadStride(rank); } bool isUnitStride(int rank) const { return iter_.isUnitStride(rank); } bool isUnitStride() const { return iter_.isUnitStride(); } void advanceUnitStride() { iter_.advanceUnitStride(); } bool canCollapse(int outerLoopRank, int innerLoopRank) const { // BZ_DEBUG_MESSAGE("_bz_ArrayExpr<>::canCollapse()"); return iter_.canCollapse(outerLoopRank, innerLoopRank); } T_result operator[](int i) const { return iter_[i]; } T_result fastRead(diffType i) const { return iter_.fastRead(i); } template typename tvresult::Type fastRead_tv(diffType i) const { return iter_.template fastRead_tv(i); } bool isVectorAligned(diffType offset) const { return iter_.isVectorAligned(offset); } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) { iter_._bz_offsetData(i); } // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) { iter_._bz_offsetData(offset, dim);} void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) { iter_._bz_offsetData(offset1, dim1, offset2, dim2);} diffType suggestStride(int rank) const { return iter_.suggestStride(rank); } bool isStride(int rank, diffType stride) const { return iter_.isStride(rank,stride); } void prettyPrint(BZ_STD_SCOPE(string) &str) const { prettyPrintFormat format(true); // Terse formatting by default iter_.prettyPrint(str, format); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { iter_.prettyPrint(str, format); } template bool shapeCheck(const T_shape& shape) const { return iter_.shapeCheck(shape); } template void moveTo(const TinyVector& i) { iter_.moveTo(i); } T_result shift(int offset, int dim) const { return iter_.shift(offset, dim); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { return iter_.shift(offset1, dim1, offset2, dim2); } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr::template SliceInfo::T_slice T_subexpr; typedef _bz_ArrayExpr T_slice; }; // slicing (experimental) // because _bz_ArrayExpr is the "top-level" expression class, it has // the burden of supplying enough variants of the operator to make // it user-friendly. Hence the large numbers that follow template typename SliceInfo::T_slice operator()(T1 r1) const { return typename SliceInfo::T_slice (iter_ (r1, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2) const { typedef typename SliceInfo::T_slice slice; return slice(iter_ (r1, r2, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, r7, nilArraySection(), nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, r7, r8, nilArraySection(), nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, r7, r8, r9, nilArraySection(), nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, nilArraySection())); } template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { typedef typename SliceInfo::T_slice slice; return slice(iter_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)); } // now complete slicings to a scalar, which can't be expressed with the above // unlike for arrays, these expressions are rvalues so we return by value T_numtype operator()(int i0) const { return iter_(TinyVector(i0)); } T_numtype operator()(int i0, int i1) const { return iter_(TinyVector(i0, i1)); } T_numtype operator()(int i0, int i1, int i2) const { return iter_(TinyVector(i0, i1, i2)); } T_numtype operator()(int i0, int i1, int i2, int i3) const { return iter_(TinyVector(i0, i1, i2, i3)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4) const { return iter_(TinyVector(i0, i1, i2, i3, i4)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5, int i6) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5, i6)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5, i6, i7)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5, i6, i7, i8)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5, i6, i7, i8, i9)); } T_numtype operator()(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) const { return iter_(TinyVector(i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10)); } protected: _bz_ArrayExpr() { } T_expr iter_; }; template class _bz_ArrayExprUnaryOp { public: typedef P_expr T_expr; typedef P_op T_op; typedef _bz_typename T_expr::T_numtype T_numtype1; typedef _bz_typename T_op::T_numtype T_numtype; // select return type typedef typename unwrapET::T_unwrapped test; typedef typename selectET >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_optype; typedef T_expr T_ctorArg1; typedef int T_ctorArg2; // dummy typedef _bz_ArrayExprUnaryOp<_bz_typename P_expr::T_range_result, P_op> T_range_result; static const int numArrayOperands = T_expr::numArrayOperands, numTVOperands = T_expr::numTVOperands, numTMOperands = T_expr::numTMOperands, numIndexPlaceholders = T_expr::numIndexPlaceholders, minWidth = T_expr::minWidth, maxWidth = T_expr::maxWidth, rank_ = T_expr::rank_; template struct tvresult { typedef _bz_ArrayExprUnaryOp< typename T_expr::template tvresult::Type, T_op> Type; }; _bz_ArrayExprUnaryOp(const _bz_ArrayExprUnaryOp& a) : iter_(a.iter_) { } _bz_ArrayExprUnaryOp(BZ_ETPARM(T_expr) a) : iter_(a) { } /* _bz_ArrayExprUnaryOp(_bz_typename T_expr::T_ctorArg1 a) : iter_(a) { } */ #if BZ_TEMPLATE_CTOR_DOESNT_CAUSE_HAVOC template explicit _bz_ArrayExprUnaryOp(BZ_ETPARM(T1) a) : iter_(a) { } #endif int ascending(const int rank) const { return iter_.ascending(rank); } int ordering(const int rank) const { return iter_.ordering(rank); } int lbound(const int rank) const { return iter_.lbound(rank); } int ubound(const int rank) const { return iter_.ubound(rank); } RectDomain domain() const { return iter_.domain(); } /* Functions for reading data. Because they must depend on the * result type, they utilize a helper class. */ // For numtypes, apply operator template struct readHelper { static T_result fastRead(const T_expr& iter, diffType i) { return (T_op::apply(iter.fastRead(i))); }; static T_result indexop(const T_expr& iter, int i) { return (T_op::apply(iter[i])); }; static T_result deref(const T_expr& iter) { return T_op::apply(*iter); } static T_result first_value(const T_expr& iter) { return T_op::apply(iter.first_value()); } static T_result shift(const T_expr& iter, int offset, int dim) { return T_op::apply(iter.shift(offset, dim)); } static T_result shift(const T_expr& iter, int offset1, int dim1, int offset2, int dim2) { return T_op::apply(iter.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr& iter, const TinyVector i) { #else static T_result indexop(const T_expr& iter, const TinyVector& i) { #endif return T_op::apply(iter(i)); } }; // For ET types, bypass operator and create expression template struct readHelper > { static T_result fastRead(const T_expr& iter, diffType i) { return iter.fastRead(i); }; static T_result indexop(const T_expr& iter, int i) { return iter[i]; }; static T_result deref(const T_expr& iter) { return *iter; } static T_result first_value(const T_expr& iter) { return iter.first_value(); } static T_result shift(const T_expr& iter, int offset, int dim) { return T_result(iter.shift(offset, dim)); } static T_result shift(const T_expr& iter, int offset1, int dim1, int offset2, int dim2) { return T_result(iter.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr& iter, const TinyVector i) { #else static T_result indexop(const T_expr& iter, const TinyVector& i) { #endif return iter(i); } }; T_result fastRead(diffType i) const { return readHelper::fastRead(iter_, i); } template typename tvresult::Type fastRead_tv(diffType i) const { return iter_.template fastRead_tv(i); } T_result operator[](int i) const { return readHelper::indexop(iter_, i); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE T_result operator()(const TinyVector i) const { #else T_result operator()(const TinyVector& i) const { #endif return readHelper::indexop(iter_,i); } T_result operator*() const { return readHelper::deref(iter_); } T_result first_value() const { return readHelper::first_value(iter_); } T_result shift(int offset, int dim) const { return readHelper::shift(iter_, offset, dim); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { return readHelper::shift(iter_, offset1, dim1, offset2, dim2); } // ****** end reading bool isVectorAligned(diffType offset) const { return iter_.isVectorAligned(offset); } template T_range_result operator()(const RectDomain& d) const { return T_range_result(iter_(d)); } void push(int position) { iter_.push(position); } void pop(int position) { iter_.pop(position); } void advance() { iter_.advance(); } void advance(int n) { iter_.advance(n); } void loadStride(int rank) { iter_.loadStride(rank); } bool isUnitStride(int rank) const { return iter_.isUnitStride(rank); } bool isUnitStride() const { return iter_.isUnitStride(); } void advanceUnitStride() { iter_.advanceUnitStride(); } template void moveTo(const TinyVector& i) { iter_.moveTo(i); } bool canCollapse(int outerLoopRank, int innerLoopRank) const { // BZ_DEBUG_MESSAGE("_bz_ArrayExprUnaryOp<>::canCollapse"); return iter_.canCollapse(outerLoopRank, innerLoopRank); } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) { iter_._bz_offsetData(i); } // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) { iter_._bz_offsetData(offset, dim);} void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) { iter_._bz_offsetData(offset1, dim1, offset2, dim2);} diffType suggestStride(int rank) const { return iter_.suggestStride(rank); } bool isStride(int rank, diffType stride) const { return iter_.isStride(rank,stride); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { T_op::prettyPrint(str, format, iter_); } template bool shapeCheck(const T_shape& shape) const { return iter_.shapeCheck(shape); } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr::template SliceInfo::T_slice T_slice1; typedef _bz_ArrayExprUnaryOp T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return typename SliceInfo::T_slice (iter_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)); } protected: _bz_ArrayExprUnaryOp() { } T_expr iter_; }; template class _bz_ArrayExprBinaryOp { public: typedef P_expr1 T_expr1; typedef P_expr2 T_expr2; typedef P_op T_op; typedef _bz_typename T_expr1::T_numtype T_numtype1; typedef _bz_typename T_expr2::T_numtype T_numtype2; typedef _bz_typename T_op::T_numtype T_numtype; // select return type typedef typename unwrapET::T_unwrapped T_unwrapped1; typedef typename unwrapET::T_unwrapped T_unwrapped2; typedef typename selectET2::T_expr, typename asExpr::T_expr, T_op> >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_op::T_numtype T_optype; typedef T_expr1 T_ctorArg1; typedef T_expr2 T_ctorArg2; typedef _bz_ArrayExprBinaryOp<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, P_op> T_range_result; static const int numArrayOperands = T_expr1::numArrayOperands + T_expr2::numArrayOperands, numTVOperands = T_expr1::numTVOperands + T_expr2::numTVOperands, numTMOperands = T_expr1::numTMOperands + T_expr2::numTMOperands, numIndexPlaceholders = T_expr1::numIndexPlaceholders + T_expr2::numIndexPlaceholders, minWidth = BZ_MIN(T_expr1::minWidth, T_expr2::minWidth), maxWidth = BZ_MAX(T_expr1::maxWidth, T_expr2::maxWidth), rank_ = BZ_MAX(T_expr1::rank_, T_expr2::rank_); template struct tvresult { typedef _bz_ArrayExprBinaryOp< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, T_op> Type; }; _bz_ArrayExprBinaryOp( const _bz_ArrayExprBinaryOp& a) : iter1_(a.iter1_), iter2_(a.iter2_) { } template _bz_ArrayExprBinaryOp(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b) : iter1_(a), iter2_(b) { } /* Functions for reading. Because they must depend on the result * type, they utilize a helper class. */ // For numtypes, apply operator template struct readHelper { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, diffType i) { return T_op::apply(iter1.fastRead(i), iter2.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, int i) { return T_op::apply(iter1[i], iter2[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2) { return T_op::apply(*iter1, *iter2); } static T_result first_value(const T_expr1& iter1, const T_expr2& iter2) { return T_op::apply(iter1.first_value(), iter2.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, int offset, int dim) { return T_op::apply(iter1.shift(offset, dim),iter2.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, int offset1, int dim1, int offset2, int dim2) { return T_op::apply(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const TinyVector& i) { #endif return T_op::apply(iter1(i), iter2(i)); }; }; // For ET types, bypass operator and create expression template struct readHelper > { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, diffType i) { return T_result(iter1.fastRead(i), iter2.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, int i) { return T_result(iter1[i], iter2[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2) { return T_result(*iter1, *iter2); } static T_result first_value(const T_expr1& iter1, const T_expr2& iter2) { return T_result(iter1.first_value(), iter2.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, int offset, int dim) { return T_result(iter1.shift(offset, dim),iter2.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, int offset1, int dim1, int offset2, int dim2) { return T_result(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const TinyVector& i) { #endif return T_result(iter1(i), iter2(i)); } }; T_result fastRead(diffType i) const { return readHelper::fastRead(iter1_, iter2_, i); } template typename tvresult::Type fastRead_tv(diffType i) const { return typename tvresult::Type(iter1_.template fastRead_tv(i), iter2_.template fastRead_tv(i)); } T_result operator[](int i) const { return readHelper::indexop(iter1_, iter2_, i); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE T_result operator()(const TinyVector i) const { #else T_result operator()(const TinyVector& i) const { #endif return readHelper::indexop(iter1_, iter2_, i); } T_result operator*() const { return readHelper::deref(iter1_, iter2_); } T_result first_value() const { return readHelper::first_value(iter1_, iter2_); } T_result shift(int offset, int dim) const { return readHelper::shift(iter1_, iter2_, offset, dim); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { return readHelper::shift(iter1_, iter2_, offset1, dim1, offset2, dim2); } // ****** end reading bool isVectorAligned(diffType offset) const { return iter1_.isVectorAligned(offset) && iter2_.isVectorAligned(offset); } template T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d)); } int ascending(const int rank) const { return bounds::compute_ascending(rank, iter1_.ascending(rank), iter2_.ascending(rank)); } int ordering(const int rank) const { return bounds::compute_ordering(rank, iter1_.ordering(rank), iter2_.ordering(rank)); } int lbound(const int rank) const { return bounds::compute_lbound(rank, iter1_.lbound(rank), iter2_.lbound(rank)); } int ubound(const int rank) const { return bounds::compute_ubound(rank, iter1_.ubound(rank), iter2_.ubound(rank)); } // defer calculation to lbound/ubound RectDomain domain() const { TinyVector lb, ub; for(int r=0; r(lb,ub); } void push(int position) { iter1_.push(position); iter2_.push(position); } void pop(int position) { iter1_.pop(position); iter2_.pop(position); } void advance() { iter1_.advance(); iter2_.advance(); } void advance(int n) { iter1_.advance(n); iter2_.advance(n); } void loadStride(int rank) { iter1_.loadStride(rank); iter2_.loadStride(rank); } bool isUnitStride(int rank) const { return iter1_.isUnitStride(rank) && iter2_.isUnitStride(rank); } bool isUnitStride() const { return iter1_.isUnitStride() && iter2_.isUnitStride(); } void advanceUnitStride() { iter1_.advanceUnitStride(); iter2_.advanceUnitStride(); } bool canCollapse(int outerLoopRank, int innerLoopRank) const { // BZ_DEBUG_MESSAGE("_bz_ArrayExprBinaryOp<>::canCollapse"); return iter1_.canCollapse(outerLoopRank, innerLoopRank) && iter2_.canCollapse(outerLoopRank, innerLoopRank); } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) { iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); } // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); } void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); } diffType suggestStride(int rank) const { diffType stride1 = iter1_.suggestStride(rank); diffType stride2 = iter2_.suggestStride(rank); return (stride1 > stride2) ? stride1 : stride2; } bool isStride(int rank, diffType stride) const { return iter1_.isStride(rank,stride) && iter2_.isStride(rank,stride); } template void moveTo(const TinyVector& i) { iter1_.moveTo(i); iter2_.moveTo(i); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { T_op::prettyPrint(str, format, iter1_, iter2_); } template bool shapeCheck(const T_shape& shape) const { return iter1_.shapeCheck(shape) && iter2_.shapeCheck(shape); } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr1::template SliceInfo::T_slice T_slice1; typedef typename T_expr2::template SliceInfo::T_slice T_slice2; typedef _bz_ArrayExprBinaryOp T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return typename SliceInfo::T_slice (iter1_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter2_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)); } protected: _bz_ArrayExprBinaryOp() { } T_expr1 iter1_; T_expr2 iter2_; }; template class _bz_ArrayExprTernaryOp { public: typedef P_expr1 T_expr1; typedef P_expr2 T_expr2; typedef P_expr3 T_expr3; typedef P_op T_op; typedef _bz_typename T_expr1::T_numtype T_numtype1; typedef _bz_typename T_expr2::T_numtype T_numtype2; typedef _bz_typename T_expr3::T_numtype T_numtype3; typedef _bz_typename T_op::T_numtype T_numtype; // select return type typedef typename unwrapET< typename T_expr1::T_result>::T_unwrapped T_unwrapped1; typedef typename unwrapET< typename T_expr2::T_result>::T_unwrapped T_unwrapped2; typedef typename unwrapET< typename T_expr3::T_result>::T_unwrapped T_unwrapped3; typedef typename selectET2::T_selected T_intermediary; typedef typename selectET2< T_intermediary, typename T_expr3::T_typeprop, T_numtype, _bz_ArrayExprTernaryOp::T_expr, typename asExpr::T_expr, typename asExpr::T_expr, T_op> >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_op::T_numtype T_optype; typedef T_expr1 T_ctorArg1; typedef T_expr2 T_ctorArg2; typedef T_expr3 T_ctorArg3; typedef _bz_ArrayExprTernaryOp<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, _bz_typename P_expr3::T_range_result, P_op> T_range_result; static const int numArrayOperands = T_expr1::numArrayOperands + T_expr2::numArrayOperands + T_expr3::numArrayOperands, numTVOperands = T_expr1::numTVOperands + T_expr2::numTVOperands + T_expr3::numTVOperands, numTMOperands = T_expr1::numTMOperands + T_expr2::numTMOperands + T_expr3::numTMOperands, numIndexPlaceholders = T_expr1::numIndexPlaceholders + T_expr2::numIndexPlaceholders + T_expr3::numIndexPlaceholders, minWidth = BZ_MIN(BZ_MIN(T_expr1::minWidth, T_expr2::minWidth), T_expr3::minWidth), maxWidth = BZ_MAX(BZ_MAX(T_expr1::maxWidth, T_expr2::maxWidth), T_expr3::maxWidth), rank_ = BZ_MAX(BZ_MAX(T_expr1::rank_, T_expr2::rank_), T_expr3::rank_); template struct tvresult { typedef _bz_ArrayExprTernaryOp< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, typename T_expr3::template tvresult::Type, T_op> Type; }; _bz_ArrayExprTernaryOp( const _bz_ArrayExprTernaryOp& a) : iter1_(a.iter1_), iter2_(a.iter2_), iter3_(a.iter3_) { } template _bz_ArrayExprTernaryOp(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b, BZ_ETPARM(T3) c) : iter1_(a), iter2_(b), iter3_(c) { } /* Functions for reading. Because they must depend on the result * type, they utilize a helper class. */ // For numtypes, apply operator template struct readHelper { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, diffType i) { return T_op::apply(iter1.fastRead(i), iter2.fastRead(i), iter3.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int i) { return T_op::apply(iter1[i], iter2[i], iter3[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3) { return T_op::apply(*iter1, *iter2, *iter3); }; static T_result first_value(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3) { return T_op::apply(iter1.first_value(), iter2.first_value(), iter3.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int offset, int dim) { return T_op::apply(iter1.shift(offset, dim),iter2.shift(offset, dim), iter3.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int offset1, int dim1, int offset2, int dim2) { return T_op::apply(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2), iter3.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const TinyVector& i) { #endif return T_op::apply(iter1(i), iter2(i), iter3(i) ); }; }; // For ET types, bypass operator and create expression template struct readHelper > { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, diffType i) { return T_result(iter1.fastRead(i), iter2.fastRead(i), iter3.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int i) { return T_result(iter1[i], iter2[i], iter3[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3) { return T_result(*iter1, *iter2, *iter3); }; static T_result first_value(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3) { return T_result(iter1.first_value(), iter2.first_value(), iter3.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int offset, int dim) { return T_result(iter1.shift(offset, dim),iter2.shift(offset, dim), iter3.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, int offset1, int dim1, int offset2, int dim2) { return T_result(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2), iter3.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const TinyVector& i) { #endif return T_result(iter1(i), iter2(i), iter3(i) ); } }; T_result fastRead(diffType i) const { return readHelper::fastRead(iter1_, iter2_, iter3_, i); } template typename tvresult::Type fastRead_tv(diffType i) const { return typename tvresult::Type(iter1_.template fastRead_tv(i), iter2_.template fastRead_tv(i), iter3_.template fastRead_tv(i)); } T_result operator[](int i) const { return readHelper::indexop(iter1_, iter2_, iter3_, i); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE T_result operator()(const TinyVector i) const { #else T_result operator()(const TinyVector& i) const { #endif return readHelper::indexop(iter1_, iter2_, iter3_, i); } T_result operator*() const { return readHelper::deref(iter1_, iter2_, iter3_); } T_result first_value() const { return readHelper::first_value(iter1_, iter2_, iter3_); } T_result shift(int offset, int dim) const { return readHelper::shift(iter1_, iter2_, iter3_, offset, dim); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { return readHelper::shift(iter1_, iter2_, iter3_, offset1, dim1, offset2, dim2); } // ****** end reading bool isVectorAligned(diffType offset) const { return iter1_.isVectorAligned(offset) && iter2_.isVectorAligned(offset) && iter3_.isVectorAligned(offset); } template T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d), iter3_(d)); } int ascending(const int rank) const { return bounds::compute_ascending(rank, bounds::compute_ascending( rank, iter1_.ascending(rank), iter2_.ascending(rank)), iter3_.ascending(rank)); } int ordering(const int rank) const { return bounds::compute_ordering(rank, bounds::compute_ordering( rank, iter1_.ordering(rank), iter2_.ordering(rank)), iter3_.ordering(rank)); } int lbound(const int rank) const { return bounds::compute_lbound(rank, bounds::compute_lbound( rank, iter1_.lbound(rank), iter2_.lbound(rank)), iter3_.lbound(rank)); } int ubound(const int rank) const { return bounds::compute_ubound(rank, bounds::compute_ubound( rank, iter1_.ubound(rank), iter2_.ubound(rank)), iter3_.ubound(rank)); } // defer calculation to lbound/ubound RectDomain domain() const { TinyVector lb, ub; for(int r=0; r(lb,ub); } void push(int position) { iter1_.push(position); iter2_.push(position); iter3_.push(position); } void pop(int position) { iter1_.pop(position); iter2_.pop(position); iter3_.pop(position); } void advance() { iter1_.advance(); iter2_.advance(); iter3_.advance(); } void advance(int n) { iter1_.advance(n); iter2_.advance(n); iter3_.advance(n); } void loadStride(int rank) { iter1_.loadStride(rank); iter2_.loadStride(rank); iter3_.loadStride(rank); } bool isUnitStride(int rank) const { return iter1_.isUnitStride(rank) && iter2_.isUnitStride(rank) && iter3_.isUnitStride(rank); } bool isUnitStride() const { return iter1_.isUnitStride() && iter2_.isUnitStride() && iter3_.isUnitStride(); } void advanceUnitStride() { iter1_.advanceUnitStride(); iter2_.advanceUnitStride(); iter3_.advanceUnitStride(); } bool canCollapse(int outerLoopRank, int innerLoopRank) const { // BZ_DEBUG_MESSAGE("_bz_ArrayExprTernaryOp<>::canCollapse"); return iter1_.canCollapse(outerLoopRank, innerLoopRank) && iter2_.canCollapse(outerLoopRank, innerLoopRank) && iter3_.canCollapse(outerLoopRank, innerLoopRank); } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) { iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); iter3_._bz_offsetData(i); } // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); iter3_._bz_offsetData(offset, dim); } void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); iter3_._bz_offsetData(offset1, dim1, offset2, dim2); } diffType suggestStride(int rank) const { diffType stride1 = iter1_.suggestStride(rank); diffType stride2 = iter2_.suggestStride(rank); diffType stride3 = iter3_.suggestStride(rank); return stride1 > ( stride2 = (stride2>stride3 ? stride2 : stride3) ) ? stride1 : stride2; } bool isStride(int rank, diffType stride) const { return iter1_.isStride(rank,stride) && iter2_.isStride(rank,stride) && iter3_.isStride(rank,stride); } template void moveTo(const TinyVector& i) { iter1_.moveTo(i); iter2_.moveTo(i); iter3_.moveTo(i); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { T_op::prettyPrint(str, format, iter1_, iter2_, iter3_); } template bool shapeCheck(const T_shape& shape) const { return iter1_.shapeCheck(shape) && iter2_.shapeCheck(shape) && iter3_.shapeCheck(shape); } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr1::template SliceInfo::T_slice T_slice1; typedef typename T_expr2::template SliceInfo::T_slice T_slice2; typedef typename T_expr3::template SliceInfo::T_slice T_slice3; typedef _bz_ArrayExprTernaryOp T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return typename SliceInfo::T_slice (iter1_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter2_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter3_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)); } protected: _bz_ArrayExprTernaryOp() { } T_expr1 iter1_; T_expr2 iter2_; T_expr3 iter3_; }; template class _bz_ArrayExprQuaternaryOp { public: typedef P_expr1 T_expr1; typedef P_expr2 T_expr2; typedef P_expr3 T_expr3; typedef P_expr4 T_expr4; typedef P_op T_op; typedef _bz_typename T_expr1::T_numtype T_numtype1; typedef _bz_typename T_expr2::T_numtype T_numtype2; typedef _bz_typename T_expr3::T_numtype T_numtype3; typedef _bz_typename T_expr4::T_numtype T_numtype4; typedef _bz_typename T_op::T_numtype T_numtype; // select return type typedef typename unwrapET::T_unwrapped T_unwrapped1; typedef typename unwrapET::T_unwrapped T_unwrapped2; typedef typename unwrapET::T_unwrapped T_unwrapped3; typedef typename unwrapET::T_unwrapped T_unwrapped4; typedef typename selectET2::T_selected T_intermediary1; typedef typename selectET2::T_selected T_intermediary2; typedef typename selectET2< T_intermediary2, typename T_expr4::T_typeprop, T_numtype, _bz_ArrayExprQuaternaryOp::T_expr, typename asExpr::T_expr, typename asExpr::T_expr, typename asExpr::T_expr, T_op> >::T_selected T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef typename T_op::T_numtype T_optype; typedef T_expr1 T_ctorArg1; typedef T_expr2 T_ctorArg2; typedef T_expr3 T_ctorArg3; typedef T_expr4 T_ctorArg4; typedef _bz_ArrayExprQuaternaryOp<_bz_typename P_expr1::T_range_result, _bz_typename P_expr2::T_range_result, _bz_typename P_expr3::T_range_result, _bz_typename P_expr4::T_range_result, P_op> T_range_result; static const int numArrayOperands = T_expr1::numArrayOperands + T_expr2::numArrayOperands + T_expr3::numArrayOperands + T_expr4::numArrayOperands, numTVOperands = T_expr1::numTVOperands + T_expr2::numTVOperands + T_expr3::numTVOperands + T_expr4::numTVOperands, numTMOperands = T_expr1::numTMOperands + T_expr2::numTMOperands + T_expr3::numTMOperands + T_expr4::numTMOperands, numIndexPlaceholders = T_expr1::numIndexPlaceholders + T_expr2::numIndexPlaceholders + T_expr3::numIndexPlaceholders + T_expr4::numIndexPlaceholders, minWidth = BZ_MIN(BZ_MIN(T_expr1::minWidth, T_expr2::minWidth), BZ_MIN(T_expr3::minWidth, T_expr4::minWidth)), maxWidth = BZ_MAX(BZ_MAX(T_expr1::maxWidth, T_expr2::maxWidth), BZ_MAX(T_expr3::maxWidth, T_expr4::maxWidth)), rank_ = BZ_MAX(BZ_MAX(T_expr1::rank_, T_expr2::rank_), BZ_MAX(T_expr3::rank_, T_expr4::rank_)); template struct tvresult { typedef _bz_ArrayExprQuaternaryOp< typename T_expr1::template tvresult::Type, typename T_expr2::template tvresult::Type, typename T_expr3::template tvresult::Type, typename T_expr4::template tvresult::Type, T_op> Type; }; _bz_ArrayExprQuaternaryOp( const _bz_ArrayExprQuaternaryOp& a) : iter1_(a.iter1_), iter2_(a.iter2_), iter3_(a.iter3_), iter4_(a.iter4_) { } template _bz_ArrayExprQuaternaryOp(BZ_ETPARM(T1) a, BZ_ETPARM(T2) b, BZ_ETPARM(T3) c, BZ_ETPARM(T4) d) : iter1_(a), iter2_(b), iter3_(c), iter4_(d) { } /* Functions for reading. Because they must depend on the result * type, they utilize a helper class. */ // For numtypes, apply operator template struct readHelper { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, diffType i) { return T_op::apply(iter1.fastRead(i), iter2.fastRead(i), iter3.fastRead(i), iter4.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int i) { return T_op::apply(iter1[i], iter2[i], iter3[i], iter4[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4) { return T_op::apply(*iter1, *iter2, *iter3, *iter4); }; static T_result first_value(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4) { return T_op::apply(iter1.first_value(), iter2.first_value(), iter3.first_value(), iter4.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int offset, int dim) { return T_op::apply(iter1.shift(offset, dim),iter2.shift(offset, dim), iter3.shift(offset, dim), iter4.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int offset1, int dim1, int offset2, int dim2) { return T_op::apply(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2), iter3.shift(offset1, dim1, offset2, dim2), iter4.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, const TinyVector& i) { #endif return T_op::apply(iter1(i), iter2(i), iter3(i), iter4(i) ); }; }; // For ET types, bypass operator and create expression template struct readHelper > { static T_result fastRead(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, diffType i) { return T_result(iter1.fastRead(i), iter2.fastRead(i), iter3.fastRead(i), iter4.fastRead(i)); } static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int i) { return T_result(iter1[i], iter2[i], iter3[i], iter4[i]); }; static T_result deref(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4) { return T_result(*iter1, *iter2, *iter3, *iter4); }; static T_result first_value(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr3& iter4) { return T_result(iter1.first_value(), iter2.first_value(), iter3.first_value(), iter4.first_value()); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int offset, int dim) { return T_result(iter1.shift(offset, dim),iter2.shift(offset, dim), iter3.shift(offset, dim), iter4.shift(offset, dim)); } static T_result shift(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, int offset1, int dim1, int offset2, int dim2) { return T_result(iter1.shift(offset1, dim1, offset2, dim2), iter2.shift(offset1, dim1, offset2, dim2), iter3.shift(offset1, dim1, offset2, dim2), iter4.shift(offset1, dim1, offset2, dim2)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, const TinyVector i) { #else static T_result indexop(const T_expr1& iter1, const T_expr2& iter2, const T_expr3& iter3, const T_expr4& iter4, const TinyVector& i) { #endif return T_result(iter1(i), iter2(i), iter3(i), iter4(i) ); } }; T_result fastRead(diffType i) const { return readHelper::fastRead(iter1_, iter2_, iter3_, iter4_, i); } template typename tvresult::Type fastRead_tv(diffType i) const { return typename tvresult::Type(iter1_.template fastRead_tv(i), iter2_.template fastRead_tv(i), iter3_.template fastRead_tv(i), iter4_.template fastRead_tv(i)); } T_result operator[](int i) const { return readHelper::indexop(iter1_, iter2_, iter3_, iter4_, i); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE T_result operator()(const TinyVector i) const { #else T_result operator()(const TinyVector& i) const { #endif return readHelper::indexop(iter1_, iter2_, iter3_, iter4_, i); } T_result operator*() const { return readHelper::deref(*iter1_, *iter2_, *iter3_, *iter4_); } T_result first_value() const { return readHelper::first_value(iter1_, iter2_, iter3_, iter4_); } T_result shift(int offset, int dim) const { return readHelper::shift(iter1_, iter2_, iter3_, iter4_, offset, dim); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { return readHelper::shift(iter1_, iter2_, iter3_, iter4_, offset1, dim1, offset2, dim2); } // ****** end reading bool isVectorAligned(diffType offset) const { return iter1_.isVectorAligned(offset) && iter2_.isVectorAligned(offset) && iter3_.isVectorAligned(offset) && iter3_.isVectorAligned(offset); } template T_range_result operator()(const RectDomain& d) const { return T_range_result(iter1_(d), iter2_(d), iter3_(d), iter4_(d)); } int ascending(const int rank) const { return bounds::compute_ascending(rank, bounds::compute_ascending(rank, iter1_.ascending(rank), iter2_.ascending(rank)), bounds::compute_ascending(rank, iter3_.ascending(rank), iter4_.ascending(rank))); } int ordering(const int rank) const { return bounds::compute_ordering(rank, bounds::compute_ordering(rank, iter1_.ordering(rank), iter2_.ordering(rank)), bounds::compute_ordering(rank, iter3_.ordering(rank), iter4_.ordering(rank))); } int lbound(const int rank) const { return bounds::compute_lbound(rank, bounds::compute_lbound(rank, iter1_.lbound(rank), iter2_.lbound(rank)), bounds::compute_lbound(rank, iter3_.lbound(rank), iter4_.lbound(rank))); } int ubound(const int rank) const { return bounds::compute_ubound(rank, bounds::compute_ubound(rank, iter1_.ubound(rank), iter2_.ubound(rank)), bounds::compute_ubound(rank, iter3_.ubound(rank), iter4_.ubound(rank))); } // defer calculation to lbound/ubound RectDomain domain() const { TinyVector lb, ub; for(int r=0; r(lb,ub); } void push(int position) { iter1_.push(position); iter2_.push(position); iter3_.push(position); iter4_.push(position); } void pop(int position) { iter1_.pop(position); iter2_.pop(position); iter3_.pop(position); iter4_.pop(position); } void advance() { iter1_.advance(); iter2_.advance(); iter3_.advance(); iter4_.advance(); } void advance(int n) { iter1_.advance(n); iter2_.advance(n); iter3_.advance(n); iter4_.advance(n); } void loadStride(int rank) { iter1_.loadStride(rank); iter2_.loadStride(rank); iter3_.loadStride(rank); iter4_.loadStride(rank); } bool isUnitStride(int rank) const { return iter1_.isUnitStride(rank) && iter2_.isUnitStride(rank) && iter3_.isUnitStride(rank) && iter4_.isUnitStride(rank); } bool isUnitStride() const { return iter1_.isUnitStride() && iter2_.isUnitStride() && iter3_.isUnitStride() && iter4_.isUnitStride(); } void advanceUnitStride() { iter1_.advanceUnitStride(); iter2_.advanceUnitStride(); iter3_.advanceUnitStride(); iter4_.advanceUnitStride(); } bool canCollapse(int outerLoopRank, int innerLoopRank) const { // BZ_DEBUG_MESSAGE("_bz_ArrayExprQuaternaryOp<>::canCollapse"); return iter1_.canCollapse(outerLoopRank, innerLoopRank) && iter2_.canCollapse(outerLoopRank, innerLoopRank) && iter3_.canCollapse(outerLoopRank, innerLoopRank) && iter4_.canCollapse(outerLoopRank, innerLoopRank); } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) { iter1_._bz_offsetData(i); iter2_._bz_offsetData(i); iter3_._bz_offsetData(i); iter4_._bz_offsetData(i); } // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) { iter1_._bz_offsetData(offset, dim); iter2_._bz_offsetData(offset, dim); iter3_._bz_offsetData(offset, dim); iter4_._bz_offsetData(offset, dim); } void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) { iter1_._bz_offsetData(offset1, dim1, offset2, dim2); iter2_._bz_offsetData(offset1, dim1, offset2, dim2); iter3_._bz_offsetData(offset1, dim1, offset2, dim2); iter4_._bz_offsetData(offset1, dim1, offset2, dim2); } diffType suggestStride(int rank) const { diffType stride1 = iter1_.suggestStride(rank); diffType stride2 = iter2_.suggestStride(rank); diffType stride3 = iter3_.suggestStride(rank); diffType stride4 = iter4_.suggestStride(rank); //return stride1 > ( stride2 = (stride2>stride3 ? stride2 : stride3) ) ? // stride1 : stride2; return std::max(std::max(stride1, stride2), std::max(stride3, stride4)); } bool isStride(int rank, diffType stride) const { return iter1_.isStride(rank,stride) && iter2_.isStride(rank,stride) && iter3_.isStride(rank,stride) && iter4_.isStride(rank,stride); } template void moveTo(const TinyVector& i) { iter1_.moveTo(i); iter2_.moveTo(i); iter3_.moveTo(i); iter4_.moveTo(i); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { T_op::prettyPrint(str, format, iter1_, iter2_, iter3_, iter4_); } template bool shapeCheck(const T_shape& shape) const { return iter1_.shapeCheck(shape) && iter2_.shapeCheck(shape) && iter3_.shapeCheck(shape) && iter4_.shapeCheck(shape); } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr1::template SliceInfo::T_slice T_slice1; typedef typename T_expr2::template SliceInfo::T_slice T_slice2; typedef typename T_expr3::template SliceInfo::T_slice T_slice3; typedef typename T_expr4::template SliceInfo::T_slice T_slice4; typedef _bz_ArrayExprQuaternaryOp T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return typename SliceInfo::T_slice (iter1_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter2_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter3_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11), iter4_(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)); } protected: _bz_ArrayExprQuaternaryOp() { } T_expr1 iter1_; T_expr2 iter2_; T_expr3 iter3_; T_expr4 iter4_; }; template class _bz_ArrayExprConstant { public: typedef P_numtype T_numtype; typedef typename opType::T_optype T_optype; typedef typename asET::T_wrapped T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_numtype T_ctorArg1; typedef int T_ctorArg2; // dummy typedef _bz_ArrayExprConstant T_range_result; static const int numArrayOperands = 0, numTVOperands = 0, numTMOperands = 0, numIndexPlaceholders = 0, minWidth = simdTypes::vecWidth, maxWidth = simdTypes::vecWidth, rank_ = 0; /** For the purpose of vectorizing across the container (as opposed to for operating on multicomponent types), a constant is always a constant. */ template struct tvresult { typedef _bz_ArrayExprConstant Type; }; _bz_ArrayExprConstant(const _bz_ArrayExprConstant& a) : value_(a.value_) { } _bz_ArrayExprConstant(T_numtype value) : value_(BZ_NO_PROPAGATE(value)) { } // tiny() and huge() return the smallest and largest representable // integer values. See // NEEDS_WORK: use tiny(int()) once numeric_limits available on // all platforms int ascending(const int) const { return INT_MIN; } int ordering(const int) const { return INT_MIN; } int lbound(const int) const { return INT_MIN; } int ubound(const int) const { return INT_MAX; } // there is no rank so we use highest possible RectDomain<12> domain() const; // NEEDS_WORK: use huge(int()) once numeric_limits available on // all platforms T_result operator*() const { return value_; } T_result first_value() const { return value_; } #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE template T_result operator()(const TinyVector) const { return value_; } #else template T_result operator()(const TinyVector&) const { return value_; } #endif template const _bz_ArrayExprConstant& operator()(const RectDomain& d) const { return *this; } void push(int) { } void pop(int) { } void advance() { } void advance(int) { } void loadStride(int) { } bool isUnitStride(int) const { return true; } bool isUnitStride() const { return true; } void advanceUnitStride() { } bool canCollapse(int,int) const { return true; } T_numtype operator[](int) const { return value_; } // this must return by reference, because for multicomponent arrays // it gets turned into an iterator by the containing expression. const T_numtype& fastRead(diffType) const { return value_; } template typename tvresult::Type fastRead_tv(diffType i) const { return value_; } bool isVectorAligned(diffType offset) const { return true; } // this is needed for the stencil expression fastRead to work void _bz_offsetData(sizeType i) const{}; // and these are needed for stencil expression shift to work void _bz_offsetData(sizeType offset, int dim) const {}; void _bz_offsetData(sizeType offset1, int dim1, sizeType offset2, int dim2) const {}; diffType suggestStride(int) const { return 1; } bool isStride(int,diffType) const { return true; } void moveTo(int) const { } T_result shift(int offset, int dim) const {return value_;} T_result shift(int offset1, int dim1,int offset2, int dim2) const { return value_;} template void moveTo(const TinyVector&) const { } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat& format) const { if (format.tersePrintingSelected()) str += format.nextScalarOperandSymbol(); else str += BZ_DEBUG_TEMPLATE_AS_STRING_LITERAL(T_numtype); } template bool shapeCheck(const T_shape&) const { return true; } // sliceinfo for expressions template class SliceInfo { public: typedef _bz_ArrayExprConstant T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { return *this; } protected: _bz_ArrayExprConstant() { } T_numtype value_; }; BZ_NAMESPACE_END #include #endif // BZ_ARRAYEXPR_H blitz-0.10/blitz/array/stencils.h0000644002370500237050000002423211753271141013753 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/stencils.h Stencils for arrays * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYSTENCILS_H #define BZ_ARRAYSTENCILS_H #ifndef BZ_ARRAY_H #error must be included after #endif #include // NEEDS_WORK: currently stencilExtent returns int(1). What if the // stencil contains calls to math functions, or divisions, etc.? // Should at least return a number of the appropriate type. Probably // return a sequence of quasi-random floating point numbers. /* * These macros make it easier for users to declare stencil objects. * The syntax is: * * BZ_DECLARE_STENCILN(stencilname, Array1, Array2, ..., ArrayN) * // stencil operations go here * BZ_END_STENCIL */ #define BZ_DECLARE_STENCIL2(name,A,B) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3, T4, T5, T6, T7, T8, T9, T10, T11) \ { #define BZ_END_STENCIL_WITH_SHAPE(MINS,MAXS) } \ template \ void getExtent(BZ_BLITZ_SCOPE(TinyVector)& minb, \ BZ_BLITZ_SCOPE(TinyVector)& maxb) const \ { \ minb = MINS; \ maxb = MAXS; \ } \ static const bool hasExtent = true; \ }; #define BZ_END_STENCIL } static const bool hasExtent = false; }; #define BZ_STENCIL_END BZ_END_STENCIL #define BZ_DECLARE_STENCIL3(name,A,B,C) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4, T5, T6, T7, T8, T9, \ T10, T11) \ { #define BZ_DECLARE_STENCIL4(name,A,B,C,D) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5, T6, T7, \ T8, T9, T10, T11) \ { #define BZ_DECLARE_STENCIL5(name,A,B,C,D,E) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6, T7, T8, \ T9, T10, T11) \ { #define BZ_DECLARE_STENCIL6(name,A,B,C,D,E,F) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, \ T7, T8, T9, T10, T11) \ { #define BZ_DECLARE_STENCIL7(name,A,B,C,D,E,F,G) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, T7& G, \ T8, T9, T10, T11) \ { #define BZ_DECLARE_STENCIL8(name,A,B,C,D,E,F,G,H) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, T7& G, \ T8& H, T9, T10, T11) \ { #define BZ_DECLARE_STENCIL9(name,A,B,C,D,E,F,G,H,I) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, T7& G, \ T8& H, T9& I, T10, T11) \ { #define BZ_DECLARE_STENCIL10(name,A,B,C,D,E,F,G,H,I,J) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, T7& G, \ T8& H, T9& I, T10& J, T11) \ { #define BZ_DECLARE_STENCIL11(name,A,B,C,D,E,F,G,H,I,J,K) \ struct name { \ template \ static inline void apply(T1& A, T2& B, T3& C, T4& D, T5& E, T6& F, T7& G, \ T8& H, T9& I, T10& J, T11& K) \ { BZ_NAMESPACE(blitz) /* * dummyArray is used to provide "dummy" padding parameters to applyStencil(), * so that any number of arrays (up to 11) can be given as arguments. */ template class dummy; struct dummyArray { typedef dummy T_iterator; const dummyArray& shape() const { return *this; } }; _bz_global dummyArray _dummyArray; /* * This dummy class pretends to be a scalar of type T, or an array iterator * of type T, but really does nothing. */ template class dummy { public: dummy() { } dummy(T value) : value_(value) { } dummy(const dummyArray&) { } operator T() const { return value_; }; template void operator=(T2) { } _bz_typename multicomponent_traits::T_element operator[](int i) const { return value_[i]; } void loadStride(int) { } void moveTo(int) { } void moveTo(int,int) { } void moveTo(int,int,int) { } void moveTo(int,int,int,int) { } void advance() { } T shift(int,int) { return T(); } private: T value_; }; /* * The stencilExtent object is passed to stencil objects to find out * the spatial extent of the stencil. It pretends it's an array, * but really it's just recording the locations of the array reads * via operator(). */ template class stencilExtent : public ETBase > { public: typedef P_numtype T_numtype; stencilExtent() { min_ = 0; max_ = 0; } dummy operator()(int i) const { update(0, i); return dummy(1); } dummy operator()(int i, int j) const { update(0, i); update(1, j); return dummy(1); } dummy operator()(int i, int j, int k) const { update(0, i); update(1, j); update(2, k); return dummy(1); } dummy shift(int offset, int dim) const { update(dim, offset); return dummy(1); } dummy shift(int offset1, int dim1, int offset2, int dim2) const { update(dim1, offset1); update(dim2, offset2); return dummy(1); } dummy<_bz_typename multicomponent_traits::T_element> operator[](int) const { return dummy<_bz_typename multicomponent_traits::T_element> (1); } void update(int rank, int offset) const { if (offset < min_[rank]) min_[rank] = offset; if (offset > max_[rank]) max_[rank] = offset; } template void combine(const stencilExtent& x) const { for (int i=0; i < N_rank; ++i) { min_[i] = (extrema::min)(min_[i], (x.min)(i)); max_[i] = (extrema::max)(max_[i], (x.max)(i)); } } template void combine(const dummy&) const { } int (min)(int i) const { return min_[i]; } int (max)(int i) const { return max_[i]; } const TinyVector& (min)() const { return min_; } const TinyVector& (max)() const { return max_; } template void operator=(T) { } // NEEDS_WORK: other operators template void operator+=(T) { } template void operator-=(T) { } template void operator*=(T) { } template void operator/=(T) { } operator T_numtype() { return T_numtype(1); } T_numtype operator*() const { return T_numtype(1); } private: mutable TinyVector min_, max_; }; /* * stencilExtent_traits gives a stencilExtent object for arrays, * and a dummy object for dummy arrays. */ template struct stencilExtent_traits { typedef dummy T_stencilExtent; }; template struct stencilExtent_traits > { typedef stencilExtent T_stencilExtent; }; /* * Specialization of areShapesConformable(), originally * defined in */ template inline bool areShapesConformable(const T_shape1&, const dummyArray&) { return true; } BZ_NAMESPACE_END #include #endif // BZ_ARRAYSTENCILS_H blitz-0.10/blitz/array/convolve.cc0000644002370500237050000000364411753271141014124 00000000000000/*************************************************************************** * blitz/array/convolve.cc One-dimensional convolution * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAY_CONVOLVE_CC #define BZ_ARRAY_CONVOLVE_CC BZ_NAMESPACE(blitz) template Array convolve(const Array& B, const Array& C) { int Bl = B.lbound(0), Bh = B.ubound(0); int Cl = C.lbound(0), Ch = C.ubound(0); int lbound = Bl + Cl; int ubound = Bh + Ch; Array A(Range(lbound,ubound)); T result; for (int i=lbound; i <= ubound; ++i) { int jl = i - Ch; if (jl < Bl) jl = Bl; int jh = i - Cl; if (jh > Bh) jh = Bh; result = 0; for (int j=jl; j <= jh; ++j) result += B(j) * C(i-j); A(i) = result; } return A; } BZ_NAMESPACE_END #endif // BZ_ARRAY_CONVOLVE_CC blitz-0.10/blitz/array/io.cc0000644002370500237050000001415411753271141012676 00000000000000/*************************************************************************** * blitz/array/io.cc Input/output of arrays. * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYIO_CC #define BZ_ARRAYIO_CC #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) // NEEDS_WORK??? // This version of operator<< is updated on August 2005 // by Sergei Mingaleev . // Also, the corresponding operator>> is updated. template ostream& operator<<(ostream& os, const Array& x) { // Write the extent vector: e.g., (-4, 4) os << "(" << x.lbound(0) << "," << x.ubound(0) << ")"; os << endl << "[ "; for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { os << x(i1) << " "; } os << "]" << endl; return os; } template ostream& operator<<(ostream& os, const Array& x) { // Write the extent vector: this is separated by 'x's, e.g. // (1, 10) x (-4, 4) x (-5, 5) for (int i=0; i < N_rank; ++i) { os << "("; os << x.lbound(i); os << ","; os << x.ubound(i); os << ")"; if (i != N_rank-1) os << " x "; } os << endl << "[ "; switch (N_rank) { case 2: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { os << x(i1,i2) << " "; } if (i1 != x.ubound(0)) os << endl << " "; } break; case 3: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { for (int i3=x.lbound(2); i3<=x.ubound(2); i3++) { os << x(i1,i2,i3) << " "; } if (i1 != x.ubound(0) || i2 != x.ubound(1)) os << endl << " "; } } break; case 4: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { for (int i3=x.lbound(2); i3<=x.ubound(2); i3++) { for (int i4=x.lbound(3); i4<=x.ubound(3); i4++) { os << x(i1,i2,i3,i4) << " "; } if (i1 != x.ubound(0) || i2 != x.ubound(1) || i3 != x.ubound(2)) os << endl << " "; } } } break; default: cout << "Error: operator<< for " << N_rank << "D Array is not supported!" << endl; BZASSERT("ERROR!"); break; }; os << "]" << endl; return os; } /* * Input */ template istream& operator>>(istream& is, Array& x) { TinyVector lower_bounds, upper_bounds, extent; char sep; // Read the extent vector: this is separated by 'x's, e.g. // (1, 10) x (-4, 4) x (-5, 5) for (int i=0; i < N_rank; ++i) { is >> sep; BZPRECHECK(!is.bad(), "Premature end of input while scanning Array"); BZPRECHECK(sep == '(', "Format error while scanning input \ Array \n -- expected '(' opening Array extents"); is >> lower_bounds(i); is >> sep; BZPRECHECK(sep == ',', "Format error while scanning input \ Array \n -- expected ',' between Array extents"); is >> upper_bounds(i); is >> sep; BZPRECHECK(sep == ')', "Format error while scanning input \ Array \n -- expected ',' closing Array extents"); if (i != N_rank-1) { is >> sep; BZPRECHECK(sep == 'x', "Format error while scanning input \ Array \n (expected 'x' between Array extents)"); } } is >> sep; BZPRECHECK(sep == '[', "Format error while scanning input \ Array \n (expected '[' before beginning of Array data)"); for (int i=0; i < N_rank; ++i) extent(i) = upper_bounds(i) - lower_bounds(i) + 1; x.resize(extent); x.reindexSelf(lower_bounds); switch (N_rank) { case 1: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { BZPRECHECK(!is.bad(), "Premature end of input while scanning Array"); is >> x(i1); } break; case 2: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { BZPRECHECK(!is.bad(), "Premature end of input while scanning Array"); is >> x(i1,i2); } } break; case 3: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { for (int i3=x.lbound(2); i3<=x.ubound(2); i3++) { BZPRECHECK(!is.bad(), "Premature end of input while scanning Array"); is >> x(i1,i2,i3); } } } break; case 4: for (int i1=x.lbound(0); i1<=x.ubound(0); i1++) { for (int i2=x.lbound(1); i2<=x.ubound(1); i2++) { for (int i3=x.lbound(2); i3<=x.ubound(2); i3++) { for (int i4=x.lbound(3); i4<=x.ubound(3); i4++) { BZPRECHECK(!is.bad(), "Premature end of input while scanning Array"); is >> x(i1,i2,i3,i4); } } } } break; default: cout << "Error: read() for " << N_rank << "D Array is not supported!" << endl; BZASSERT("ERROR!"); break; }; is >> sep; BZPRECHECK(sep == ']', "Format error while scanning input \ Array \n (expected ']' after end of Array data)"); return is; } BZ_NAMESPACE_END #endif // BZ_ARRAYIO_CC blitz-0.10/blitz/array/convolve.h0000644002370500237050000000304711753271141013763 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/convolve.h One-dimensional convolution * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAY_CONVOLVE_H #define BZ_ARRAY_CONVOLVE_H #ifndef BZ_ARRAY_H #error must be included after #endif BZ_NAMESPACE(blitz) template Array convolve(const Array& B, const Array& C); BZ_NAMESPACE_END #include #endif // BZ_ARRAY_CONVOLVE_H blitz-0.10/blitz/array/slicing.cc0000644002370500237050000002560411753271141013721 00000000000000/*************************************************************************** * blitz/array/slicing.cc Slicing of arrays * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYSLICING_CC #define BZ_ARRAYSLICING_CC #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) /* * These routines make the array a view of a portion of another array. * They all work by first referencing the other array, and then slicing. */ template void Array::constructSubarray( Array& array, const RectDomain& subdomain) { reference(array); for (int i=0; i < N_rank; ++i) slice(i, subdomain[i]); } template void Array::constructSubarray( Array& array, const StridedDomain& subdomain) { reference(array); for (int i=0; i < N_rank; ++i) slice(i, subdomain[i]); } template void Array::constructSubarray( Array& array, Range r0) { reference(array); slice(0, r0); } template void Array::constructSubarray( Array& array, Range r0, Range r1) { reference(array); slice(0, r0); slice(1, r1); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5, Range r6) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); slice(6, r6); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5, Range r6, Range r7) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); slice(6, r6); slice(7, r7); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5, Range r6, Range r7, Range r8) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); slice(6, r6); slice(7, r7); slice(8, r8); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5, Range r6, Range r7, Range r8, Range r9) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); slice(6, r6); slice(7, r7); slice(8, r8); slice(9, r9); } template void Array::constructSubarray( Array& array, Range r0, Range r1, Range r2, Range r3, Range r4, Range r5, Range r6, Range r7, Range r8, Range r9, Range r10) { reference(array); slice(0, r0); slice(1, r1); slice(2, r2); slice(3, r3); slice(4, r4); slice(5, r5); slice(6, r6); slice(7, r7); slice(8, r8); slice(9, r9); slice(10, r10); } /* * This member template is used to implement operator() with any * combination of int and Range parameters. There's room for up * to 11 parameters, but any unused parameters have no effect. */ template template void Array::constructSlice(Array& array, R0 r0, R1 r1, R2 r2, R3 r3, R4 r4, R5 r5, R6 r6, R7 r7, R8 r8, R9 r9, R10 r10) { MemoryBlockReference::changeBlock(array); int setRank = 0; TinyVector rankMap; slice(setRank, r0, array, rankMap, 0); slice(setRank, r1, array, rankMap, 1); slice(setRank, r2, array, rankMap, 2); slice(setRank, r3, array, rankMap, 3); slice(setRank, r4, array, rankMap, 4); slice(setRank, r5, array, rankMap, 5); slice(setRank, r6, array, rankMap, 6); slice(setRank, r7, array, rankMap, 7); slice(setRank, r8, array, rankMap, 8); slice(setRank, r9, array, rankMap, 9); slice(setRank, r10, array, rankMap, 10); // Redo the ordering_ array to account for dimensions which // have been sliced away. int j = 0; for (int i=0; i < N_rank2; ++i) { if (rankMap[array.ordering(i)] != -1) storage_.setOrdering(j++, rankMap[array.ordering(i)]); } calculateZeroOffset(); } /* * This member template is also used in the implementation of * operator() with any combination of int and Rank parameters. * It's called by constructSlice(), above. This version handles * Range parameters. */ template template void Array::slice(int& setRank, Range r, Array& array, TinyVector& rankMap, int sourceRank) { // NEEDS WORK: ordering will change completely when some ranks // are deleted. #ifdef BZ_DEBUG_SLICE cout << "slice(" << setRank << ", [" << r.first(array.lbound(sourceRank)) << ", " << r.last(array.ubound(sourceRank)) << "], Array, " << sourceRank << ")" << endl; #endif rankMap[sourceRank] = setRank; length_[setRank] = array.length(sourceRank); stride_[setRank] = array.stride(sourceRank); storage_.setAscendingFlag(setRank, array.isRankStoredAscending(sourceRank)); storage_.setBase(setRank, array.base(sourceRank)); slice(setRank, r); ++setRank; } /* * This member template is also used in the implementation of * operator() with any combination of int and Rank parameters. * It's called by constructSlice(), above. This version handles * int parameters, which reduce the dimensionality by one. */ template template void Array::slice(int&, int i, Array& array, TinyVector& rankMap, int sourceRank) { #ifdef BZ_DEBUG_SLICE cout << "slice(" << i << ", Array, " << sourceRank << ")" << endl; cout << "Offset by " << (i * array.stride(sourceRank)) << endl; #endif BZPRECHECK(array.isInRangeForDim(i, sourceRank), "Slice is out of range for array: index=" << i << " rank=" << sourceRank << endl << "Possible range for index: [" << array.lbound(sourceRank) << ", " << array.ubound(sourceRank) << "]"); rankMap[sourceRank] = -1; data_ += i * array.stride(sourceRank); #ifdef BZ_DEBUG_SLICE cout << "data_ = " << data_ << endl; #endif } /* * After calling slice(int rank, Range r), the array refers only to the * Range r of the original array. * e.g. Array x(100); * x.slice(firstRank, Range(25,50)); * x = 0; // Sets elements 25..50 of the original array to 0 */ template void Array::slice(int rank, Range r) { BZPRECONDITION((rank >= 0) && (rank < N_rank)); int first = r.first(lbound(rank)); int last = r.last(ubound(rank)); diffType stride = r.stride(); #ifdef BZ_DEBUG_SLICE cout << "slice(" << rank << ", Range):" << endl << "first = " << first << " last = " << last << "stride = " << stride << endl << "length_[rank] = " << length_[rank] << endl; #endif BZPRECHECK((((first <= last) && (stride > 0)) || ((first >= last) && (stride < 0))) && (first >= base(rank) && (first - base(rank)) < length_[rank]) && (last >= base(rank) && (last - base(rank)) < length_[rank]), "Bad array slice: Range(" << first << ", " << last << ", " << stride << "). Array is Range(" << lbound(rank) << ", " << ubound(rank) << ")"); // Will the storage be non-contiguous? // (1) Slice in the minor dimension and the range does not span // the entire index interval (NB: non-unit strides are possible) // (2) Slice in a middle dimension and the range is not Range::all() length_[rank] = (last - first) / stride + 1; // TV 20000312: added second term here, for testsuite/Josef-Wagenhuber diffType offset = (first - base(rank) * stride) * stride_[rank]; data_ += offset; zeroOffset_ += offset; stride_[rank] *= stride; // JCC: adjust ascending flag if slicing with backwards Range if (stride<0) storage_.setAscendingFlag(rank, !isRankStoredAscending(rank)); } BZ_NAMESPACE_END #endif // BZ_ARRAYSLICING_CC blitz-0.10/blitz/array/cgsolve.h0000644002370500237050000001033011753271141013563 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/cgsolve.h Basic conjugate gradient solver for linear systems * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_CGSOLVE_H #define BZ_CGSOLVE_H BZ_NAMESPACE(blitz) template void dump(const char* name, Array& A) { T_numtype normA = 0; for (int i=A.lbound(0); i <= A.ubound(0); ++i) { for (int j=A.lbound(1); j <= A.ubound(1); ++j) { for (int k=A.lbound(2); k <= A.ubound(2); ++k) { T_numtype tmp = A(i,j,k); normA += BZ_MATHFN_SCOPE(fabs)(tmp); } } } normA /= A.numElements(); cout << "Average magnitude of " << name << " is " << normA << endl; } template int conjugateGradientSolver(T_stencil stencil, Array& x, Array& rhs, double haltrho, const T_BCs& boundaryConditions) { // NEEDS_WORK: only apply CG updates over interior; need to handle // BCs separately. // x = unknowns being solved for (initial guess assumed) // r = residual // p = descent direction for x // q = descent direction for r RectDomain interior = interiorDomain(stencil, x, rhs); cout << "Interior: " << interior.lbound() << ", " << interior.ubound() << endl; // Calculate initial residual Array r = rhs.copy(); r *= -1.0; boundaryConditions.applyBCs(x); applyStencil(stencil, r, x); dump("r after stencil", r); cout << "Slice through r: " << endl << r(23,17,Range::all()) << endl; cout << "Slice through x: " << endl << x(23,17,Range::all()) << endl; cout << "Slice through rhs: " << endl << rhs(23,17,Range::all()) << endl; r *= -1.0; dump("r", r); // Allocate the descent direction arrays Array p, q; allocateArrays(x.shape(), p, q); int iteration = 0; int converged = 0; T_numtype rho = 0.; T_numtype oldrho = 0.; const int maxIterations = 1000; // Get views of interior of arrays (without boundaries) Array rint = r(interior); Array pint = p(interior); Array qint = q(interior); Array xint = x(interior); while (iteration < maxIterations) { rho = sum(r * r); if ((iteration % 20) == 0) cout << "CG: Iter " << iteration << "\t rho = " << rho << endl; // Check halting condition if (rho < haltrho) { converged = 1; break; } if (iteration == 0) { p = r; } else { T_numtype beta = rho / oldrho; p = beta * p + r; } q = 0.; // boundaryConditions.applyBCs(p); applyStencil(stencil, q, p); T_numtype pq = sum(p*q); T_numtype alpha = rho / pq; x += alpha * p; r -= alpha * q; oldrho = rho; ++iteration; } if (!converged) cout << "Warning: CG solver did not converge" << endl; return iteration; } BZ_NAMESPACE_END #endif // BZ_CGSOLVE_H blitz-0.10/blitz/array/interlace.cc0000644002370500237050000004360011753271141014233 00000000000000/*************************************************************************** * blitz/array/interlace.cc Interlaced array storage. * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYINTERLACE_CC #define BZ_ARRAYINTERLACE_CC #ifndef BZ_ARRAY_H #error must be included via #endif #ifndef BZ_ARRAYSHAPE_H #include #endif BZ_NAMESPACE(blitz) /* * This header provides two collections of routines: * * interlaceArrays(shape, A1, A2, ...); * allocateArrays(shape, A1, A2, ...); * * interlaceArrays allocates a set of arrays so that their data is * interlaced. For example, * * Array A, B; * interlaceArrays(shape(10,10), A, B); * * sets up the array storage so that A(0,0) is followed by B(0,0) in * memory; then A(0,1) and B(0,1), and so on. * * The allocateArrays() routines may or may not interlace the data, * depending on whether interlacing is advantageous for the architecture. * This is controlled by the setting of BZ_INTERLACE_ARRAYS in * . */ // Warning: Can't instantiate TinyVector because causes // conflict between TinyVector::operator=(T) and // TinyVector::operator=(Range) // NEEDS_WORK -- also shape for up to N=11 // NEEDS_WORK -- shape(Range r1, Range r2, ...) (return TinyVector) // maybe use Domain objects // NEEDS_WORK -- doesn't make a lot of sense for user to provide a // GeneralArrayStorage template void makeInterlacedArray(Array& mainArray, Array& subarray, int slice) { Array tmp = mainArray(Range::all(), slice); subarray.reference(tmp); } template void makeInterlacedArray(Array& mainArray, Array& subarray, int slice) { Array tmp = mainArray(Range::all(), Range::all(), slice); subarray.reference(tmp); } template void makeInterlacedArray(Array& mainArray, Array& subarray, int slice) { Array tmp = mainArray(Range::all(), Range::all(), Range::all(), slice); subarray.reference(tmp); } // These routines always allocate interlaced arrays template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2) { GeneralArrayStorage storage(contiguousData); Array array(shape, 2, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3) { GeneralArrayStorage storage(contiguousData); Array array(shape, 3, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4) { GeneralArrayStorage storage(contiguousData); Array array(shape, 4, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5) { GeneralArrayStorage storage(contiguousData); Array array(shape, 5, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6) { GeneralArrayStorage storage(contiguousData); Array array(shape, 6, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7) { GeneralArrayStorage storage(contiguousData); Array array(shape, 7, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); makeInterlacedArray(array, a7, 6); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8) { GeneralArrayStorage storage(contiguousData); Array array(shape, 8, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); makeInterlacedArray(array, a7, 6); makeInterlacedArray(array, a8, 7); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9) { GeneralArrayStorage storage(contiguousData); Array array(shape, 9, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); makeInterlacedArray(array, a7, 6); makeInterlacedArray(array, a8, 7); makeInterlacedArray(array, a9, 8); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9, Array& a10) { GeneralArrayStorage storage(contiguousData); Array array(shape, 10, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); makeInterlacedArray(array, a7, 6); makeInterlacedArray(array, a8, 7); makeInterlacedArray(array, a9, 8); makeInterlacedArray(array, a10, 9); } template void interlaceArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9, Array& a10, Array& a11) { GeneralArrayStorage storage(contiguousData); Array array(shape, 11, storage); makeInterlacedArray(array, a1, 0); makeInterlacedArray(array, a2, 1); makeInterlacedArray(array, a3, 2); makeInterlacedArray(array, a4, 3); makeInterlacedArray(array, a5, 4); makeInterlacedArray(array, a6, 5); makeInterlacedArray(array, a7, 6); makeInterlacedArray(array, a8, 7); makeInterlacedArray(array, a9, 8); makeInterlacedArray(array, a10, 9); makeInterlacedArray(array, a11, 10); } // NEEDS_WORK -- make `storage' a parameter in these routines // Will be tricky: have to convert GeneralArrayStorage to // GeneralArrayStorage // These routines may or may not interlace arrays, depending on // whether it is advantageous for this platform. template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2); #else a1.resize(shape); a2.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6, a7); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); a7.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6, a7, a8); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); a7.resize(shape); a8.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6, a7, a8, a9); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); a7.resize(shape); a8.resize(shape); a9.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9, Array& a10) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); a7.resize(shape); a8.resize(shape); a9.resize(shape); a10.resize(shape); #endif } template void allocateArrays(const TinyVector& shape, Array& a1, Array& a2, Array& a3, Array& a4, Array& a5, Array& a6, Array& a7, Array& a8, Array& a9, Array& a10, Array& a11) { #ifdef BZ_INTERLACE_ARRAYS interlaceArrays(shape, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); #else a1.resize(shape); a2.resize(shape); a3.resize(shape); a4.resize(shape); a5.resize(shape); a6.resize(shape); a7.resize(shape); a8.resize(shape); a9.resize(shape); a10.resize(shape); a11.resize(shape); #endif } // NEEDS_WORK -- allocateArrays for TinyVector /** This constructor is used to create interlaced arrays. */ template Array::Array(const TinyVector& shape, int lastExtent, const GeneralArrayStorage& storage) : storage_(storage) { // Create an array with the given shape, plus an extra dimension // for the number of arrays being allocated. This extra dimension // must have minor storage order. if (ordering(0) == 0) { // Column major storage order (or something like it) length_[0] = lastExtent; storage_.setBase(0,0); for (int i=1; i < N_rank; ++i) length_[i] = shape[i-1]; } else if (ordering(0) == N_rank-1) { // Row major storage order (or something like it) for (int i=0; i < N_rank-1; ++i) length_[i] = shape[i]; length_[N_rank-1] = lastExtent; storage_.setBase(N_rank-1, 0); } else { BZPRECHECK(0, "Used allocateArrays() with a peculiar storage format"); } setupStorage(N_rank-1); } // NEEDS_WORK -- see note about TinyVector in #if 0 template Array::Array(const TinyVector& shape, int lastExtent, const GeneralArrayStorage& storage) : storage_(storage) { #ifdef BZ_DEBUG for (int i=0; i < N_rank; ++i) BZPRECHECK(shape[i].isAscendingContiguous(), "In call to allocateArrays(), a Range object is not ascending" << endl << "contiguous: " << shape[i] << endl); #endif if (ordering(0) == 0) { // Column major storage order (or something like it) length_[0] = lastExtent; storage_.setBase(0,0); for (int i=1; i < N_rank; ++i) { length_[i] = shape[i-1].length(); storage_.setBase(i, shape[i-1].first()); } } else if (ordering(0) == N_rank-1) { // Row major storage order (or something like it) for (int i=0; i < N_rank-1; ++i) { length_[i] = shape[i]; storage_.setBase(i, shape[i].first()); } length_[N_rank-1] = lastExtent; storage_.setBase(N_rank-1, 0); } else { BZPRECHECK(0, "Used allocateArrays() with a peculiar storage format"); } setupStorage(N_rank-1); } #endif BZ_NAMESPACE_END #endif // BZ_ARRAYINTER_CC blitz-0.10/blitz/array/methods.cc0000644002370500237050000003631711753271141013737 00000000000000/*************************************************************************** * blitz/array/methods.cc General array class methods. * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYMETHODS_CC #define BZ_ARRAYMETHODS_CC #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) template template Array::Array(_bz_ArrayExpr expr) { // Determine extent of the array expression TinyVector lbound, extent, ordering; TinyVector ascendingFlag; TinyVector in_ordering; in_ordering = false; int j = 0; for (int i=0; i < N_rank; ++i) { lbound(i) = expr.lbound(i); int ubound = expr.ubound(i); extent(i) = ubound - lbound(i) + 1; int orderingj = expr.ordering(i); if (orderingj != INT_MIN && orderingj < N_rank && !in_ordering( orderingj )) { // unique value in ordering array in_ordering( orderingj ) = true; ordering(j++) = orderingj; } int ascending = expr.ascending(i); ascendingFlag(i) = (ascending == 1); #ifdef BZ_DEBUG if ((lbound(i) == INT_MIN) || (ubound == INT_MAX) || (ordering(i) == INT_MIN) || (ascending == INT_MIN)) { BZPRECHECK(0, "Attempted to construct an array from an expression " << endl << "which does not have a shape. To use this constructor, " << endl << "the expression must contain at least one array operand."); return; } #endif } // It is possible that ordering is not a permutation of 0,...,N_rank-1. // In that case j will be less than N_rank. We fill in ordering with the // usused values in decreasing order. for (int i = N_rank-1; j < N_rank; ++j) { while (in_ordering(i)) --i; ordering(j) = i--; } Array A(lbound,extent, GeneralArrayStorage(ordering,ascendingFlag)); A = expr; reference(A); } template Array::Array(const TinyVector& lbounds, const TinyVector& extent, const GeneralArrayStorage& storage) : storage_(storage) { length_ = extent; storage_.setBase(lbounds); setupStorage(N_rank - 1); } /** This routine takes the storage information for the array (ascendingFlag_[], base_[], and ordering_[]) and the size of the array (length_[]) and computes the stride vector (stride_[]) and the zero offset (see explanation in array.h). */ template _bz_inline2 void Array::computeStrides() { if (N_rank > 1) { diffType stride = 1; // This flag simplifies the code in the loop, encouraging // compile-time computation of strides through constant folding. bool allAscending = storage_.allRanksStoredAscending(); // BZ_OLD_FOR_SCOPING int n; for (n=0; n < N_rank; ++n) { int strideSign = +1; // If this rank is stored in descending order, then the stride // will be negative. if (!allAscending) { if (!isRankStoredAscending(ordering(n))) strideSign = -1; } // The stride for this rank is the product of the lengths of // the ranks minor to it. stride_[ordering(n)] = stride * strideSign; if((storage_.padding()==paddedData)&&(n==0)) { // The lowest rank dimension is padded to vecWidth, so this // needs to be accounted for in the stride stride *= simdTypes::paddedLength(length_[ordering(0)]); } else stride *= length_[ordering(n)]; } } else { // Specialization for N_rank == 1 // This simpler calculation makes it easier for the compiler // to propagate stride values. if (isRankStoredAscending(0)) stride_[0] = 1; else stride_[0] = -1; } calculateZeroOffset(); } template void Array::calculateZeroOffset() { // Calculate the offset of (0,0,...,0) zeroOffset_ = 0; // zeroOffset_ = - sum(where(ascendingFlag_, stride_ * base_, // (length_ - 1 + base_) * stride_)) for (int n=0; n < N_rank; ++n) { if (!isRankStoredAscending(n)) zeroOffset_ -= (length_[n] - 1 + base(n)) * stride_[n]; else zeroOffset_ -= stride_[n] * base(n); } } template bool Array::isStorageContiguous() const { // The storage is contiguous if for the set // { | stride[i] * extent[i] | }, i = 0..N_rank-1, // there is only one value which is not in the set // of strides; and if there is one stride which is 1. // This algorithm is quadratic in the rank. It is hard // to imagine this being a serious problem. int numStridesMissing = 0; bool haveUnitStride = false; for (int i=0; i < N_rank; ++i) { diffType stride = BZ_MATHFN_SCOPE(abs)(stride_[i]); if (stride == 1) haveUnitStride = true; diffType vi = stride * length_[i]; int j = 0; for (j=0; j < N_rank; ++j) if (BZ_MATHFN_SCOPE(abs)(stride_[j]) == vi) break; if (j == N_rank) { ++numStridesMissing; if (numStridesMissing == 2) return false; } } return haveUnitStride; } template void Array::dumpStructureInformation(ostream& os) const { os << "Dump of Array<" << BZ_DEBUG_TEMPLATE_AS_STRING_LITERAL(P_numtype) << ", " << N_rank << ">:" << endl << "ordering_ = " << storage_.ordering() << endl << "ascendingFlag_ = " << storage_.ascendingFlag() << endl << "base_ = " << storage_.base() << endl << "length_ = " << length_ << endl << "stride_ = " << stride_ << endl << "zeroOffset_ = " << zeroOffset_ << endl << "numElements() = " << numElements() << endl << "isStorageContiguous() = " << isStorageContiguous() << endl; } /** Make this array a view of another array's data. This overrides the current storage of the array. */ template void Array::reference(const Array& array) { storage_ = array.storage_; length_ = array.length_; stride_ = array.stride_; zeroOffset_ = array.zeroOffset_; T_base::changeBlock(array.noConst()); } /** This method makes the array reference another, but it does it as a "weak" reference that is not counted. If you can guarantee that the array memory block containing the data is persistent, this will allow reference counting to be bypassed for this array, which if mutex-locking is involved is a significant overhead. */ template void Array::weakReference(const Array& array) { storage_ = array.storage_; length_ = array.length_; stride_ = array.stride_; zeroOffset_ = array.zeroOffset_; T_base::changeToNullBlock(); data_ = array.data_; } /** Modify the Array storage. Array must be unallocated. */ template void Array::setStorage(GeneralArrayStorage x) { #ifdef BZ_DEBUG if (size() != 0) { BZPRECHECK(0,"Cannot modify storage format of an Array that has already been allocated!" << endl); return; } #endif storage_ = x; return; } /** This method is called to allocate memory for a new array. It assumes the storage_ and length_ members are already initialized. */ template _bz_inline2 void Array::setupStorage(int lastRankInitialized) { TAU_TYPE_STRING(p1, "Array::setupStorage() [T=" + CT(P_numtype) + ",N=" + CT(N_rank) + "]"); TAU_PROFILE(" ", p1, TAU_BLITZ); /* * If the length of some of the ranks was unspecified, fill these * in using the last specified value. * * e.g. Array A(40) results in a 40x40x40 array. */ for (int i=lastRankInitialized + 1; i < N_rank; ++i) { storage_.setBase(i, storage_.base(lastRankInitialized)); length_[i] = length_[lastRankInitialized]; } // Compute strides computeStrides(); // Allocate a block of memory. TinyVector alloc_length = length(); if(storage_.padding()==paddedData) { // The size of the block is NOT equal to numelements, because the // lowest rank dimension is padded to vecWidth alloc_length[ordering(0)] = simdTypes::paddedLength(alloc_length[ordering(0)]); } sizeType numElem = _bz_returntype::product(alloc_length); if (numElem==0) T_base::changeToNullBlock(); else T_base::newBlock(numElem); // Adjust the base of the array to account for non-zero base // indices and reversals data_ += zeroOffset_; } /** Return a deep copy of an array (as opposed to the reference copy done by the copy constructor. */ template Array Array::copy() const { if (numElements()) { Array z(length_, storage_); z = *this; return z; } else { // Null array-- don't bother allocating an empty block. return *this; } } /** Make the array have its own memory block by making a copy if the block has a reference count greater than one. */ template void Array::makeUnique() { if (T_base::numReferences() > 1) { T_array tmp = copy(); reference(tmp); } } template Array Array::transpose(int r0, int r1, int r2, int r3, int r4, int r5, int r6, int r7, int r8, int r9, int r10) const { T_array B(*this); B.transposeSelf(r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10); return B; } template void Array::transposeSelf(int r0, int r1, int r2, int r3, int r4, int r5, int r6, int r7, int r8, int r9, int r10) { BZPRECHECK(r0+r1+r2+r3+r4+r5+r6+r7+r8+r9+r10 == N_rank * (N_rank-1) / 2, "Invalid array transpose() arguments." << endl << "Arguments must be a permutation of the numerals (0,...," << (N_rank - 1) << ")"); // Create a temporary reference copy of this array Array x(*this); // Now reorder the dimensions using the supplied permutation doTranspose(0, r0, x); doTranspose(1, r1, x); doTranspose(2, r2, x); doTranspose(3, r3, x); doTranspose(4, r4, x); doTranspose(5, r5, x); doTranspose(6, r6, x); doTranspose(7, r7, x); doTranspose(8, r8, x); doTranspose(9, r9, x); doTranspose(10, r10, x); } template void Array::doTranspose(int destRank, int sourceRank, Array& array) { // BZ_NEEDS_WORK: precondition check if (destRank >= N_rank) return; length_[destRank] = array.length_[sourceRank]; stride_[destRank] = array.stride_[sourceRank]; storage_.setAscendingFlag(destRank, array.isRankStoredAscending(sourceRank)); storage_.setBase(destRank, array.base(sourceRank)); // BZ_NEEDS_WORK: Handling the storage ordering is currently O(N^2) // but it can be done fairly easily in linear time by constructing // the appropriate permutation. // Find sourceRank in array.storage_.ordering_ int i=0; for (; i < N_rank; ++i) if (array.storage_.ordering(i) == sourceRank) break; storage_.setOrdering(i, destRank); } template void Array::reverseSelf(int rank) { BZPRECONDITION(rank < N_rank); storage_.setAscendingFlag(rank, !isRankStoredAscending(rank)); diffType adjustment = static_cast(stride_[rank]) * (lbound(rank) + ubound(rank)); zeroOffset_ += adjustment; data_ += adjustment; stride_[rank] *= -1; } template Array Array::reverse(int rank) { T_array B(*this); B.reverseSelf(rank); return B; } template template Array Array::extractComponent(P_numtype2, int componentNumber, int numComponents) const { BZPRECONDITION((componentNumber >= 0) && (componentNumber < numComponents)); // If P_numtype is a multicomponent type, it may have an alignment // setting. For this reason it is not correct to use // numComponents, we must use sizeof(P_numtype)/sizeof(P_numtype2) // instead. BZASSERT(sizeof(P_numtype)%sizeof(P_numtype2)==0); TinyVector stride2; for (int i=0; i < N_rank; ++i) stride2(i) = stride_(i) * sizeof(P_numtype)/sizeof(P_numtype2); const P_numtype2* dataFirst2 = ((const P_numtype2*)dataFirst()) + componentNumber; return Array(const_cast(dataFirst2), length_, stride2, storage_); } /* * These routines reindex the current array to use a new base vector. * The first reindexes the array, the second just returns a reindex view * of the current array, leaving the current array unmodified. * (Contributed by Derrick Bass) */ template _bz_inline2 void Array::reindexSelf(const TinyVector& newBase) { diffType delta = 0; for (int i=0; i < N_rank; ++i) delta += (base(i) - newBase(i)) * stride_(i); data_ += delta; // WAS: dot(base() - newBase, stride_); storage_.setBase(newBase); calculateZeroOffset(); } template _bz_inline2 Array Array::reindex(const TinyVector& newBase) { T_array B(*this); B.reindexSelf(newBase); return B; } BZ_NAMESPACE_END #endif // BZ_ARRAY_CC blitz-0.10/blitz/array/multi.h0000644002370500237050000000616211753271141013263 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/multi.h Support for multicomponent arrays * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYMULTI_H #define BZ_ARRAYMULTI_H #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) /* * The multicomponent_traits class provides a mapping from multicomponent * tuples to the element type they contain. For example: * * multicomponent_traits >::T_numtype is float, * multicomponent_traits >::T_numtype is int. * * This is used to support Array::operator[], which extracts components * from a multicomponent array. */ // By default, produce a harmless component type, and zero components. template struct multicomponent_traits { typedef T_component T_element; static const int numComponents = 0; }; // TinyVector template struct multicomponent_traits > { typedef T_numtype T_element; static const int numComponents = N_rank; }; // TinyMatrix template struct multicomponent_traits > { typedef T_numtype T_element; static const int numComponents = N_rows*N_cols; }; #ifdef BZ_HAVE_COMPLEX // complex template struct multicomponent_traits > { typedef T T_element; static const int numComponents = 2; }; #endif // This macro is provided so that users can register their own // multicomponent types. #define BZ_DECLARE_MULTICOMPONENT_TYPE(T_tuple,T,N) \ BZ_NAMESPACE(blitz) \ template<> \ struct multicomponent_traits { \ typedef T T_element; \ static const int numComponents = N; \ }; \ BZ_NAMESPACE_END BZ_NAMESPACE_END #endif // BZ_ARRAYMULTI_H blitz-0.10/blitz/array/misc.cc0000644002370500237050000001061311753271141013216 00000000000000/*************************************************************************** * blitz/array/misc.cc Miscellaneous operators for arrays * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYMISC_CC #define BZ_ARRAYMISC_CC #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) #define BZ_ARRAY_DECLARE_UOP(fn, fnobj) \ template \ inline \ _bz_ArrayExpr<_bz_ArrayExprUnaryOp, \ fnobj > > \ fn(const Array& array) \ { \ return _bz_ArrayExprUnaryOp, \ fnobj >(array.beginFast()); \ } \ \ template \ inline \ _bz_ArrayExpr<_bz_ArrayExprUnaryOp<_bz_ArrayExpr, \ fnobj<_bz_typename T_expr::T_numtype> > > \ fn(BZ_ETPARM(_bz_ArrayExpr) expr) \ { \ return _bz_ArrayExprUnaryOp<_bz_ArrayExpr, \ fnobj<_bz_typename T_expr::T_numtype> >(expr); \ } BZ_ARRAY_DECLARE_UOP(operator!, LogicalNot) BZ_ARRAY_DECLARE_UOP(operator~, BitwiseNot) BZ_ARRAY_DECLARE_UOP(operator-, Negate) /* * cast() functions, for explicit type casting */ template inline _bz_ArrayExpr<_bz_ArrayExprUnaryOp, Cast > > cast(const Array& array, T_cast) { return _bz_ArrayExprUnaryOp, Cast >(array.beginFast()); } template inline _bz_ArrayExpr<_bz_ArrayExprUnaryOp<_bz_ArrayExpr, Cast<_bz_typename T_expr::T_numtype,T_cast> > > cast(BZ_ETPARM(_bz_ArrayExpr) expr, T_cast) { return _bz_ArrayExprUnaryOp<_bz_ArrayExpr, Cast<_bz_typename T_expr::T_numtype,T_cast> >(expr); } BZ_NAMESPACE_END #endif // BZ_ARRAYMISC_CC blitz-0.10/blitz/array/complex.cc0000644002370500237050000000352311753271141013734 00000000000000/*************************************************************************** * blitz/array/complex.cc Special functions for complex arrays * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ #ifndef BZ_ARRAYCOMPLEX_CC #define BZ_ARRAYCOMPLEX_CC // Special functions for complex arrays #ifndef BZ_ARRAY_H #error must be included via #endif BZ_NAMESPACE(blitz) #ifdef BZ_HAVE_COMPLEX template inline Array real(const Array,N_rank>& A) { return A.extractComponent(T_numtype(), 0, 2); } template inline Array imag(const Array,N_rank>& A) { return A.extractComponent(T_numtype(), 1, 2); } #endif BZ_NAMESPACE_END #endif // BZ_ARRAYCOMPLEX_CC blitz-0.10/blitz/array/map.h0000644002370500237050000006131111753271141012703 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/map.h Declaration of the ArrayIndexMapping class * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ****************************************************************************/ /* * ArrayIndexMapping is used to implement tensor array notation. For * example: * * Array A, B; * firstIndex i; * secondIndex j; * thirdIndex k; * Array C = A(i,j) * B(j,k); * * For expression templates purposes, something like B(j,k) is represented * by an instance of class ArrayIndexMapping. This class maps an array onto * the destination array coordinate system, e.g. B(j,k) -> C(i,j,k) */ #ifndef BZ_ARRAYMAP_H #define BZ_ARRAYMAP_H #include #include #include #include #include BZ_NAMESPACE(blitz) /* * _bz_doArrayIndexMapping is a helper class that does the index * remapping. It is specialized for ranks 1, 2, 3, ..., 11. */ template struct _bz_doArrayIndexMapping { static const int rank=N_rank; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector&, int, int, int, int, int, int, int, int, int, int, int) { // If you try to use an array index mapping on an array with // rank greater than 11, then you'll get a precondition failure // here. BZPRECHECK(0,"Index mappings for containers of rank>11 not implemented"); return T_expr::T_numtype(); } }; template<> struct _bz_doArrayIndexMapping<1> { static const int rank=1; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int, int, int, int, int, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0]); } template static TinyVector map_dims(const TinyVector& index, int i0, int, int, int, int, int, int, int, int, int, int) { // this might be slower but unlike Array, FAI doesn't have 11 // overloaded moveTo methods. const TinyVector newindex(index[i0]); return newindex; } }; template<> struct _bz_doArrayIndexMapping<2> { static const int rank=2; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int, int, int, int, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int, int, int, int, int, int, int, int, int) { return TinyVector(index[i0], index[i1]); } }; template<> struct _bz_doArrayIndexMapping<3> { static const int rank=3; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int, int, int, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int, int, int, int, int, int, int, int) { return TinyVector(index[i0], index[i1], index[i2]); } }; template<> struct _bz_doArrayIndexMapping<4> { static const int rank=4; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int, int, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int, int, int, int, int, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3]); } }; template<> struct _bz_doArrayIndexMapping<5> { static const int rank=5; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int, int, int, int, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4]); } }; template<> struct _bz_doArrayIndexMapping<6> { static const int rank=6; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int, int, int, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5]); } }; template<> struct _bz_doArrayIndexMapping<7> { static const int rank=7; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int, int, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6]); } }; template<> struct _bz_doArrayIndexMapping<8> { static const int rank=8; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7]); } }; template<> struct _bz_doArrayIndexMapping<9> { static const int rank=9; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8]); } }; template<> struct _bz_doArrayIndexMapping<10> { static const int rank=10; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8], index[i9]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8], index[i9]); } }; template<> struct _bz_doArrayIndexMapping<11> { static const int rank=11; template static typename T_expr::T_numtype map(const ETBase& expr, const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) { // this was the case when it took an array. is it necessary? BZPRECHECK(T_expr::rank_==rank, "Rank confusion in _bz_doArrayIndexMapping"); return expr.unwrap()(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8], index[i9], index[i10]); } template static TinyVector map_dims(const TinyVector& index, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) { return TinyVector(index[i0], index[i1], index[i2], index[i3], index[i4], index[i5], index[i6], index[i7], index[i8], index[i9], index[i10]); } }; // default arguments are defined in the fwd header template class ArrayIndexMapping { public: typedef P_expr T_expr; typedef typename T_expr::T_numtype T_numtype; typedef T_numtype T_optype; typedef typename asET::T_wrapped T_typeprop; typedef typename unwrapET::T_unwrapped T_result; typedef T_expr T_ctorArg1; typedef int T_ctorArg2; // dummy typedef ArrayIndexMapping T_range_result; /* * This enum block finds the maximum of the N_map0, N_map1, ..., N_map10 * parameters and stores it in maxRank10. The rank of the expression is * then maxRank10 + 1, since the IndexPlaceholders start at 0 rather than * 1. */ static const int maxRank1 = (N_map0 > N_map1) ? N_map0 : N_map1, maxRank2 = (N_map2 > maxRank1) ? N_map2 : maxRank1, maxRank3 = (N_map3 > maxRank2) ? N_map3 : maxRank2, maxRank4 = (N_map4 > maxRank3) ? N_map4 : maxRank3, maxRank5 = (N_map5 > maxRank4) ? N_map5 : maxRank4, maxRank6 = (N_map6 > maxRank5) ? N_map6 : maxRank5, maxRank7 = (N_map7 > maxRank6) ? N_map7 : maxRank6, maxRank8 = (N_map8 > maxRank7) ? N_map8 : maxRank7, maxRank9 = (N_map9 > maxRank8) ? N_map9 : maxRank8, maxRank10 = (N_map10 > maxRank9) ? N_map10 : maxRank9; static const int numArrayOperands = T_expr::numArrayOperands, numTVOperands = T_expr::numTVOperands, numTMOperands = T_expr::numTMOperands, numIndexPlaceholders = 1, minWidth = simdTypes::vecWidth, maxWidth = simdTypes::vecWidth, rank_ = maxRank10 + 1, exprRank = T_expr::rank_; template struct tvresult { typedef FastTV2Iterator Type; }; /* ArrayIndexMapping(const Array& array) : iter_(array) { } */ ArrayIndexMapping(const ArrayIndexMapping& z) : iter_(z.iter_) { } ArrayIndexMapping(BZ_ETPARM(T_expr) a) : iter_(a) { } // this is ambiguous with the above // ArrayIndexMapping(_bz_typename T_expr::T_ctorArg1 a) // : iter_(a) // { } // these bypass the FAI and go directly to the array. That should // prevent any performance impact of using the FAI instead of an // array directly. /* Functions for reading. Because they must depend on the result * type, they utilize a helper class. */ // For numtypes, apply operator template struct readHelper { static T_result first_value(const T_expr& iter) { // is the correct thing to do here to return the index zero value? return indexop(iter, TinyVector(0)); } template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr& iter, const TinyVector i) { #else static T_result indexop(const T_expr& iter, const TinyVector& i) { #endif return _bz_doArrayIndexMapping::map(iter/*.array()*/, i, N_map0, N_map1, N_map2, N_map3, N_map4, N_map5, N_map6, N_map7, N_map8, N_map9, N_map10); }; }; // For ET types, bypass operator and create expression template struct readHelper > { template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE static T_result indexop(const T_expr& iter, const TinyVector i) { #else static T_result indexop(const T_expr& iter, const TinyVector& i) { #endif return iter(i); } static T_result first_value(const T_expr& iter) { // is the correct thing to do here to return the index zero value? return indexop(iter, TinyVector(0)); } }; template #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE T_result operator()(const TinyVector i) const { #else T_result operator()(const TinyVector& i) const { #endif return readHelper::indexop(iter_,i); } T_result first_value() const { // unclear how to define "first" value for index expressions. BZPRECHECK(0,"Minmax reductions of index expressions not implemented"); return readHelper::first_value(iter_); } // find which dimension in mapped expression that corresponds to // dimension dim. This works such that dimension dim in this // expression corresponds to dimension map_dim(dim) in iter_. int map_dim(const int dim) const { if (N_map0 == dim) return 0; else if ((N_map1 == dim) && (exprRank > 1)) return 1; else if ((N_map2 == dim) && (exprRank > 2)) return 2; else if ((N_map3 == dim) && (exprRank > 3)) return 3; else if ((N_map4 == dim) && (exprRank > 4)) return 4; else if ((N_map5 == dim) && (exprRank > 5)) return 5; else if ((N_map6 == dim) && (exprRank > 6)) return 6; else if ((N_map7 == dim) && (exprRank > 7)) return 7; else if ((N_map8 == dim) && (exprRank > 8)) return 8; else if ((N_map9 == dim) && (exprRank > 9)) return 9; else if ((N_map10 == dim) && (exprRank > 10)) return 10; else // means dimension is not in this operand return -1; } // remaps the dimensions of an index vector so it can be applied to // iter_, using the _bz_doArrayIndexMapping helper class. template TinyVector map_dims(const TinyVector& i) const { return _bz_doArrayIndexMapping::map_dims (i, N_map0, N_map1, N_map2, N_map3, N_map4, N_map5, N_map6, N_map7, N_map8, N_map9, N_map10); } int ascending(const int dim) const { const int d=map_dim(dim); const int o = d>=0 ? iter_.ascending(d) : INT_MIN ; return o; } int ordering(const int dim) const { // JCC: ignore ordering result from 1d Array if (exprRank == 1) return INT_MIN; // tiny(int()); const int d=map_dim(dim); const int o = d>=0 ? iter_.ordering(d) : INT_MIN ; return o; } int lbound(const int dim) const { const int d=map_dim(dim); const int o = d>=0 ? iter_.lbound(d) : INT_MIN ; return o; } int ubound(const int dim) const { const int d=map_dim(dim); const int o = d>=0 ? iter_.ubound(d) : INT_MAX ; return o; } // defer calculation to lbound/ubound RectDomain domain() const { TinyVector lb, ub; for(int r=0; r(lb,ub); } // If you have a precondition failure on this routine, it means // you are trying to use stack iteration mode on an expression // which contains an index placeholder. You must use index // iteration mode instead. // (no -- added to support stencils /PJ) T_result operator*() const { return *iter_; } // See operator*() note void push(int) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } // See operator*() note void pop(int) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } // See operator*() note void advance() { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } // See operator*() note void advance(int) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } // See operator*() note void loadStride(int) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } bool isUnitStride(int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return false; } bool isUnitStride() const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return false; } void advanceUnitStride() { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } bool canCollapse(int,int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return false; } T_result operator[](int) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return T_result(); } T_result fastRead(int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return T_result(); } template typename tvresult::Type fastRead_tv(int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return TinyVector(); } /** Determining whether the resulting expression is aligned is difficult, so to be safe we say no. It shouldn't be attempted anyway, though. */ bool isVectorAligned(diffType offset) const { return false; } int suggestStride(int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return 0; } bool isStride(int,int) const { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); return true; } #ifdef BZ_ARRAY_EXPR_PASS_INDEX_BY_VALUE template void moveTo(const TinyVector i) { iter_.moveTo(map_dims(i)); } #else template void moveTo(const TinyVector& i) { iter_.moveTo(map_dims(i)); } #endif T_result shift(int offset, int dim) const { // need to check if dim is mapped into this expression const int d=map_dim(dim); if (d<0) return *iter_; else return iter_.shift(offset, d); } T_result shift(int offset1, int dim1,int offset2, int dim2) const { // need to check if dims are mapped into this expression int d1=map_dim(dim1); int d2=map_dim(dim2); if (d1<0) //disable offset {d1=0;offset1=0;} if (d2<0) //disable offset {d2=0;offset2=0;} return iter_.shift(offset1, d1, offset2, d2); } void _bz_offsetData(sizeType i) { BZPRECHECK(0,"Can't use stack iteration on an index mapping."); } template T_range_result operator()(RectDomain d) const { // need to reorder dimensions here TinyVector lb(map_dims(d.lbound())), ub(map_dims(d.ubound())); RectDomain newd(lb,ub); return T_range_result(iter_(newd)); } void prettyPrint(BZ_STD_SCOPE(string) &str, prettyPrintFormat&) const { // NEEDS_WORK-- do real formatting for reductions str += "map[NEEDS_WORK]"; } template bool shapeCheck(const T_shape&) const { // NEEDS_WORK-- do a real shape check (tricky) return true; } // sliceinfo for expressions template class SliceInfo { public: typedef typename T_expr::template SliceInfo::T_slice T_slice1; typedef ArrayIndexMapping T_slice; }; template typename SliceInfo::T_slice operator()(T1 r1, T2 r2, T3 r3, T4 r4, T5 r5, T6 r6, T7 r7, T8 r8, T9 r9, T10 r10, T11 r11) const { /* Slicing for remapped expressions doesn't work. Because of the potential different types (Range vs int) in the expression, it would be very awkward to implement. As far as I can see, it would require manual coding of the 3^11 calling possibilities. /PJ */ BZPRECONDITION(0); } private: ArrayIndexMapping() : iter_( Array() ) { } T_expr iter_; }; BZ_NAMESPACE_END #endif // BZ_ARRAYMAP_H blitz-0.10/blitz/array/asexpr.h0000644002370500237050000002220011753271141013422 00000000000000// -*- C++ -*- /*************************************************************************** * blitz/array/asexpr.h Declaration of the asExpr helper functions * * $Id$ * * Copyright (C) 1997-2011 Todd Veldhuizen * * This file is a part of Blitz. * * Blitz is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * Blitz is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Blitz. If not, see . * * Suggestions: blitz-devel@lists.sourceforge.net * Bugs: blitz-support@lists.sourceforge.net * * For more information, please see the Blitz++ Home Page: * https://sourceforge.net/projects/blitz/ * ***************************************************************************/ #ifndef BZ_ASEXPR_H #define BZ_ASEXPR_H #include #include BZ_NAMESPACE(blitz) // The traits class asExpr converts arbitrary things to // expression templatable operands. // Default to scalar. template struct asExpr { typedef _bz_ArrayExpr<_bz_ArrayExprConstant > T_expr; static T_expr getExpr(const T& x); }; // Already an expression template term template struct asExpr<_bz_ArrayExpr > { typedef _bz_ArrayExpr T_expr; static const T_expr& getExpr(const T_expr& x); }; // Specialization of asExpr for array operands // why doesn't it wrap iterators in an ArrayExpr? template struct asExpr > { //typedef FastArrayIterator T_expr; typedef _bz_ArrayExpr > T_expr; static T_expr getExpr(const Array& x); }; // Specialization of asExpr for tinyvector operands template struct asExpr > { typedef _bz_ArrayExpr > T_expr; static T_expr getExpr(const TinyVector& x); }; // Specialization of asExpr for tinymatrix operands template struct asExpr > { typedef _bz_ArrayExpr > T_expr; static T_expr getExpr(const TinyMatrix& x); }; // Index placeholder template struct asExpr > { // typedef _bz_ArrayExpr > T_expr; typedef _bz_ArrayExpr > T_expr; static T_expr getExpr(const T_expr& x); }; // the levi-civita symbol template <> struct asExpr { typedef _bz_ArrayExpr T_expr; static T_expr getExpr(T_expr x); }; // Range template <> struct asExpr { typedef _bz_ArrayExpr T_expr; static T_expr getExpr(T_expr x); }; // traits class that transforms ETBase subclasses into the // ET<>-wrapped superclass and corresponding expression, but unlike // the asExpr class it leaves POD types alone. This is necessary so // operators on multicomponent arrays can resolve properly. template struct asET { typedef T T_wrapped; typedef T T_expr; }; template struct asET > { typedef ETBase::T_expr> T_wrapped; typedef typename asExpr::T_expr T_expr; }; template struct asET > { typedef ETBase >::T_expr> T_wrapped; typedef typename asExpr >::T_expr T_expr; }; template struct asET > { typedef ETBase >::T_expr> T_wrapped; typedef typename asExpr >::T_expr T_expr; }; template struct asET > { typedef ETBase >::T_expr> T_wrapped; typedef typename asExpr >::T_expr T_expr; }; // traits class that unwraps an ETBase type, otherwise leaves it untouched. template struct unwrapET { typedef T T_unwrapped; }; template struct unwrapET > { typedef T T_unwrapped; }; // traits classes that are used to switch between an ET type or an // unknown type. If the supplied type T is an ET type, T_selected will // be T_ifET, otherwise T. template struct selectET { typedef T_ifnotET T_selected; }; template struct selectET, T_ifnotET, T_ifET> { typedef ETBase T_selected; }; // for binary exprs, it is more complicated. if T1 or T2 are an ET, // T_ifET is selected, otherwise T_ifnotET. template struct selectET2 { typedef T_ifnotET T_selected; }; template struct selectET2, T2, T_ifnotET, T_ifET> { typedef ETBase T_selected; }; template struct selectET2, T_ifnotET, T_ifET> { typedef ETBase T_selected; }; template struct selectET2, ETBase, T_ifnotET, T_ifET> { typedef ETBase T_selected; }; // traits class that resolves to the ultimate numeric datatype used // for operations on the container. This is necessary because for // multicomponent containers we need to determine what the ultimate // POD data type is. template struct opType { typedef T T_optype; }; template struct opType > { typedef typename opType::T_optype T_optype; }; template struct opType > { typedef typename opType::T_optype T_optype; }; template struct opType > { typedef typename opType::T_optype T_optype; }; template struct opType > { typedef typename opType::T_optype T_optype; }; #ifdef BZ_HAVE_TEMPLATES_AS_TEMPLATE_ARGUMENTS // traits classes that provide the return type of operations template