pax_global_header00006660000000000000000000000064141735620370014522gustar00rootroot0000000000000052 comment=b0d6558082799edad1d2a9bee1937ec84eb7db7a epix-1.2.21/000077500000000000000000000000001417356203700125525ustar00rootroot00000000000000epix-1.2.21/AUTHORS000066400000000000000000000001421417356203700136170ustar00rootroot00000000000000Jay P. Belanger Marcus D. Hanwell Andrew D. Hwang Please see THANKS for the list of contributors.epix-1.2.21/BUGS000066400000000000000000000015461417356203700132430ustar00rootroot00000000000000ePiX-1.2 -- BUGS Last Change: September 19, 2007 This file lists known idiosyncrasies ("features, not bugs") whose behavior may be unexpected. Some are too minor and/or messy to fix, some are outside the author's control. * The build-time script elaps-local calls epix, not epix-local. * Polygons are not shaded with simulated ambient light. The "fill" attribute controls whether or not to color fill. * Surface mesh elements are always color-filled. The fill attribute controls whether to use cos^2 (on) or flat (off) shading. * Dot-like markers may be slightly larger in tikz than in pst/eepic. * Line underlayer widths may be larger in pst than in eepic/tikz. * Line caps are round in eepic, square (butt) in pst/tikz. * Affine maps have no effect on label alignment, only on the offset. (N.B. Non-invertible affine maps may cause NaN label positions.)epix-1.2.21/COPYING000066400000000000000000000431131417356203700136070ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. epix-1.2.21/ChangeLog000066400000000000000000000765621417356203700143440ustar00rootroot00000000000000ePiX 1.2.x Andrew D. Hwang 2022-01.11 Version 1.2.21 * surface.h, surface.cc: - (surface): Add missing declaration and function * *.cc, *.h, README: - Update email address 2021-12.05 Version 1.2.20 * geometry.cc: - (klein_poincare): Guard against negative argument to sqrt 2020-03.21 Version 1.2.19 * Complex.cc: - (logC, sqrtC): Fix implementation typos 2017-09.17 Version 1.2.18 * Makefile.am: Fix epix.el handling of bashpath and bindir (Thanks to Danilo Alves and Julian Gilbey) * make_header: Add "#include " (Thanks to Julian Gilbey) * Complex.cc, Complex.h: (Arg, norm) New functions 2017-07.20 Version 1.2.17 * path_data.cc: (path_data::clip, path_data::clip_to) Use m_filled instead of m_closed to decide whether to clip as a loop. * Complex.cc, Complex.h, Sline.cc, Sline.h: New files * triples.h, triples.cc: Add constructor from Complex * doc/manual.tex: Remove index of functions 2016-05.18 Version 1.2.16 Fixes and enhancements to the emacs mode (Thanks to Brent Spillner) * epix.el.in: Use C-c C-f to control output format (except in flix mode), reconfigure C-c C-v to display viewer asynchronously (new emacs variable epix-call-elaps-viewer-synchronously) * Makefile.in: Invoke epix and elaps using bash explicitly (Ubuntu doesn't link /bin/sh to bin/bash), add configured $(bindir) as prefix for epix/elaps/flix 2015-08.20 Version 1.2.15 * format.cc: (format::print_paths) Test ep != edges.end() before (*ep).is_seen() in while loop (David Binderman) 2014-05.13 Version 1.2.14 * picture_data.cc: (print_to) Call the_page.m_screen->print_to before fmt.pic_header (Emilio Salazar) 2013-10.13 Version 1.2.13 Minor bug fixes (Thanks to Julian Gilbey and Daniel Schepler) * elaps.in, epix.in, epix-lib.sh, flix.in, laps.in: Fix error message piping * doc/epix.texi: Fix xrefs * doc/Makefile.am: Quell automake warnings 2013-08.01 Version 1.2.12 Minor bug fixes (Thanks to Julian Gilbey) * laps.in: - "--interactive" runs latex in errorstopmode - "--verbose" runs latex in nonstopmode * doc/Makefile.am: - Run latex in nonstopmode, don't discard errors - Run laps-local in --verbose mode 2013-07.09 Version 1.2.11 * doc/epix.texi: Update for texinfo 5.0 (Thanks to Julian Gilbey and David Sephirot) 2012-04.01 Version 1.2.10 Minor bug fixes (Thanks to Julian Gilbey and Lucas Nussbaum) * doc/manual.tex: Update hyperref options * Makefile.am, elaps.in, epix.in, flix.in, laps.in: Automake updates * THANKS: Update Debian URL 2011-08.06 Version 1.2.9 * doc/arrow.xp: Remove obsolete options ARROW25, ARROW50 * doc/arrow25.xp, doc/arrow50.xp: Remove tikz_format() calls * doc/arrow.eepic, doc/arrow25.eepic, doc/arrow50.eepic: recompile 2011-06.23 Version 1.2.8 * doc/graphpaper.xp, doc/marker.xp: x_min -> xmin(), etc. * doc/graphpaper.eepic, doc/marker.eepic: recompile 2010-04.14 * make_header: #include 2010-01.24 Version 1.2.7 Automake updates (Julian Gilbey) * Makefile.am: ./mkinstalldirs -> $(mkinstalldirs) * files: Omit aclocal.m4 2009-02.15 Version 1.2.6 Bugfixes for NetBSD (Aran Clauson) * make_header: #! /bin/bash -> #! /bin/sh * doc/Makefile.am: &>/dev/null -> 2>&1 >/dev/null (5 instances) 2009-01.31 * curves.cc: - (line) Use one segment by default - (Line) Reduce length, increase num_pts 2009-01.25 * triples.cc: (is_valid) Remove test for |(x,y,z)|^2 < INFTY (Mike Protts) 2008-06.30 * epix.el.in, Makefile.am: Look for info file in @infodir@ * samples/Makefile.am, doc/makefile.am: ":=" -> "=" 2008-06.18 Version 1.2.5 * surface.cc: Get id (identity) from map.h * map.h: Use typename instead of class in templates * utils.cc: (truncate) Hard-code upper bound 0.0001 * constants.h: EPIX_EPSILON = 10^-6 * samples/bowl.xp: Reverse culling arguments 2008-05.06 * axis.cc: (draw_labels) (Ryszard Tanas) - Truncate tmp_lbl - remove labels that are eps-close to unmarked 2008-05.06 (ADH) * edge_data.h: (shift) New function 2008-05.04 (ADH) * segment.cc, segment.h: - (midpoint) Accept optional parameter - (draw) Accept stretch argument * path_data.cc, path_data.h, path.cc, path.h: (data) New function 2008-03.09 Version 1.2.4 2008-03.09 Version 1.2.3 * errors.h: Include (Julian Gilbey) * epix.1.in: Remove second line of file (Julian Gilbey) * doc/epix.texi: New file (Julian Gilbey) * doc/manual.tex: Add index of functions 2008-01-01 * Several files: Change "pallet" to "palette" 2007-12-14 (ADH) * epix.in, flix.in: Read config files without spawning a subshell * elaps.in: --preamble option 2007-12.06 (ADH) Version 1.2.2 * plane.cc: Reverse unit normal in 3-point constructor (Maik Beckmann) * facet.cc: Reverse unit normals * epix.in, flix.in: Use .exe suffix on temporary binary for Cygwin (Ben Tillman) * epix.in, elaps.in, flix.in: Use "cp -p" instead of "ln -s" (Ben Tillman, Jay Belanger) 2007-11.12 (ADH) * Color.cc, Color.h: Move comparison operators out of Color class 2007-10.30 (ADH) * Color.cc, Color_CMY.cc, Color_CMYK.cc, Color_Gray.cc, Color_RGB.cc, Color_Sep.cc: Use std::min, std::max * flix.in: Use flix_seq to generate frame numbers (P.T. Kornman) 2007-10.03 (ADH) Version 1.2.1 * configure.ac, Makefile.am: New option --enable-epix-el (formerly --with-nolisp) * doc/Makefile.am: Build ps, pdf under manual-stamp so package can be built with parallel make (error noted by René Rebe) 2007-09.28 (ADH) * legend_tile.cc, legend_tile.h: Store offset as a pair * legend.cc: (draw) Pass offset as a pair * screen_data.cc: (paste) "affine" object named af, not affine 2007-09.26 (ADH) Version 1.2.0-2 * debug.h, interval.cc: #include (Maik Beckmann) * (Multiple files) Replace const double arguments by double 2007-09.25 (ADH) Version 1.2.0-1 * doc/plotting3.xp: crop -> set_crop, and update image 2007-09.24 (ADH) Version 1.1.22 (promoted to 1.2.0) * lens.cc: bubble lens projects to camera sphere * angle_units.cc, angle_units.h: (convert_to_radians) Remove - (to_radians, to_degrees, from_degrees) New functions - Store rad/unit, unit/deg, and rev/unit for efficiency * state.cc, state.h: (angle) Remove function - (full_turn) Reimplement as from_degrees(360) * functions.cc: Use angle_state::to_radians in trig functions * glyph.cc: (map_by) Reimplement label angle computation * label_style.cc, label_style.h: New public void constructor - Non-void constructor is private - (label_angle) Pass non-const double - (label_angle) Use the_angle_style to convert to degrees - (label_angle()) Returns degrees, not current angle units 2007-09.23 (ADH) Version 1.1.21 * affine.cc, affine.h: Member functions accept P as well as pair 2007-09.22 (ADH) * length.cc: Remove support for scaled pt * state.cc, state.h: crop() -> set_crop() - (crop) New function, calls screen::crop - (crop_rectangle, crop_ellipse, crop_diamond): Set crop state * lens.cc: fisheye, bubble are *not* linear * lens.cc, lens.h: (needs_clip) New function * camera.cc, camera.h: (needs_clip) New function - the_camera() -> cam() * path_data.cc: (photo) Clip to camera.front_plane only if nec. * arrow_data.cc: (photo) Clip to camera.front_plane only if nec. * facet.cc, geometry.cc: camera, the_camera() -> cam() * arrow_data.cc, axis.cc, curves.cc, label_data.cc, legend.cc, legend_item.cc, path.cc, path_data.cc, screen_data.cc, sphere.cc, state.cc: the_camera() -> cam() 2007-09.19 (ADH) Version 1.1.20 * pen_line.cc: (add_to_palette) Needn't check for unset * pen_data.cc, pen_data.h: (is_empty) New member * pen_fill.cc: (is_unset) Check line pen for invisibility - (print_to) If bd non-solid, draw fill/border only if visible - (add_to_palette) Needn't check for unset colors * eepic.cc: (print_line) No base layer if narrower than line * pst.cc: (print_line) Adjust base layer width (m_bwidth too large) 2007-09.18 (ADH) Version 1.1.19 * affine.cc: Group scaling operators in parentheses * glyph.cc: (map_by) Map offset direction, not length 2007-09.17 (ADH) * format.cc: (print_mark) Use mask color for circ background, add to palette if necessary - Fix label padding - Draw label border if pen width is positive * markers.cc: (circ) Handle like other markers - (marker) Handle CIRC like other types * label_style.cc: (seen_through) Needn't check for unset mask * label_style.h: Default label_pad 0 * picture.cc: Remove mp_format stubs * data_bins.cc, data_bins.h: Handle data on cuts - New data member m_cut_hits - (d_bin::insert) Rename add_datum - Copy constructor mis-copied d_bins - Implement m_bins as a list, not a vector 2007-09.16 (ADH) Version 1.1.18 * pair_map.cc, pair_map.h: Rename file, class to affine * epix.h: Add affine.h * screen.cc, screen.h: Pass-through affine operations - (apply) New member function * screen_data.cc, screen_data.h: Affine operations on contents * label_data.cc, label_data.h: Store offset as a pair * axis.cc, markers.cc: (label) Adjust label_data ctor * glyph.cc, glyph.h: Store offset as a pair * glyph.cc: (map_to) Adjust offset, label angle * legend_item.cc: (key) Adjust glyph ctor 2007-09.15 (ADH) * pair_map.cc, pair_map.h: Complete re-write * screen_data.cc: (paste) Use new pair_map ctor * utils.cc, utils.h: (get_chars) New function * path_style.cc: Rename get_breaks -> __epix_get_breakpts - (extract) Move to utils, rename -> get_chars - Use get_chars to extract dot/dash pattern - (__epix_get_breakpts) Check for anomalous patterns * screen_data.cc, screen_data.h: (is_cropped) Remove * screen.cc, screen.h: (is_cropped) Remove 2007-09.14 (ADH) * format.cc: (print_color) Check for empty vector of densities * picture_data.cc: (add_to_palette) Check for unset color * label_style.cc, label_style.h: Dependency cleanup * format.cc, legend.cc, markers.cc, state.cc: Consequent changes * arrow_data.cc, Color_Neutral.cc, glyph.cc, legend.cc, path_data.h, path.cc, pen_arrow.cc, pen_data.cc, pen_fill.cc picture.cc, picture_data.cc, plots.cc: Dependency cleanup 2007-09.14 (ADH) Version 1.1.17 * functions.cc, functions.h: (clip_to_unit) Move to Color_Utils * Color_Utils.cc: #include "Color_Utils.h" * Color_Utils.cc, Color_Utils.h: Move clip_to_unit from functions 2007-09.13 (ADH) * length.cc, length.h: (operator+, operator*) Pass one arg by value * configure.ac, Makefile.am: --with-nolisp option (for Gentoo) - Make scripts dependent on epix.el (to force build before install) * Color_Base.h: print_to(format) -> model, densities - Color is not a friend class * Color.cc, Color.h: (print_to) Remove function - (model, densities) New functions * Color_CMY.cc, Color_CMY.h, Color_CMYK.cc, Color_CMYK.h: Same * Color_Gray.cc, Color_Gray.h, Color_RGB.cc, Color_RGB.h: Same * Color_Neutral.cc, Color_Neutral.h, Color_Sep.cc, Color_Sep.h: Same * format.cc, format.h: (print_color(string, string, vector) New function, calls existing print_color functions * plane.cc, plane.h: (pt, perp) New member functions - Intersection operators aren't friends * intersections.cc: Use Plane member functions 2007-09.12 (ADH) * (Update README et. al.) 2007-09.11 (ADH) Version 1.1.16 * picture.cc, picture.h: (end_picture) New function (formerly end) - (end) Set output format on command-line flags, call end_picture * elaps.in, epix.in, flix.in: --pst, --tikz, --eepic options 2007-09.10 (ADH) * facet.cc: (draw) Handle unset pen, reorganize logic * Makefile.am: Install all headers under $(pkgincludedir) - Remove libepix_a_HDRS from libepix_a_LIBADD deps * make_header: Preserve include guards in epix.h - Include string - Don't include cstdio * Color.h, Color_CMY.h, Color_CMYK.h, Color_Gray.h, Color_Neutral.h, Color_RGB.h, Color_Sep.h, Color_Utils.h: EPIX2 -> EPIX in include guard symbol 2007-09.09 (ADH) * eepic.cc: (print_circle_marker) Set allinethickness, draw once * markers.h: (right_angle, arc_measure) Default size 8pt (was 12) 2007-09.08 (ADH) Version 1.1.15 * arrow_style.cc, arrow_style.h, pen_arrow.cc, state.cc, state.h: camber -> inset * constants.h: ACAMBER -> INSET * label_style.cc, label_style.h: (is_masked) New function * markers.cc: (label) Get mask flag from current label style * glyph.cc: (print_to) Don't call print_latex_hbox on label text * screen_data.h: Remove void constructor * pair_map.cc, pair_map.h: const pair args -> const pair& * screen_data.cc, screen_data.h: Store mask-indep corners - (paste) Use corners, not mask, to generate affine_map - (add_tile(tile*)) clone argument - (extract, extract_diamond, extract_ellipse) New functions * screen.cc: pair2P -> __epix_pair2P, accept const pair& - (extract, extract_diamond, extract_ellipse) New functions 2007-09.07 (ADH) * format.h: (print_circle_marker) New function * format.cc: (print_latex_marker) Needn't handle dot-like marks - (print_mark) Use print_circle_marker for dot-like marks - (print_edge) Use print_circle_marker for path dots * eepic.cc, eepic.h: (print_circle_marker) New function * pst.cc, pst.h: (print_circle_marker) New function * tikz.cc, tikz.h: (print_circle_marker) New function * tikz.cc: (put_box) truncate coordinates 2007-09.05 (ADH) * format.cc: (print_latex_hbox) "default" -> "rm" - "normalsize" -> "nsz" * label_style.h: (label_state) Same as above * state.h: (font_size, font_face) Same as above * mask_rectangle.h, mask_ellipse.h, mask_diamond.h: Remove void constructor * pen_fill.cc: (print_to, add_to_palette) No action if is_empty 2007-08.31 (ADH) * epix-lib.sh: Remove unused global EPIX_VERBOSE - New global LATEX_PKGS - (ePiX_usepackages) New function (only used by elaps) * elaps.in: (elaps_make_latex) Get LaTeX packages from input file 2007-08.30 (ADH) Version 1.1.14 * format.h: (usepackages) New function * format.c (file_comments) Call usepackages * eepic.cc, eepic.h: (usepackages) * pts.cc, pst.h: (usepackages) * tikz.cc, tikz.h: (usepackages) * fmt_template.cc, fmt_template.h: (usepackages) 2007-08.30 (ADH) Version 1.1.13 * epix.el.in: New file * epix.el: Obsolete file removed 2007-08.29 (ADH) * hatching.cc, hatching.h: Reimplement 2007-08.25 (ADH) * format.cc, format.h: (path_break) Default implementation - (path_conector) New virtual function, default implementation - (print_edge, print_paths) Use path_connector - (xdefinecolor) Non-virtual functions for xcolor formats * tikz.cc, tikz.h: New files * eepic.cc: (print_color) Use xdefinecolor * eepic.cc, eepic.h: (path_break) Use default implementation * pst.cc, pst.h: (path_break) Use default implementation * picture.cc, picture.h: (mp_format, print_mp) Comment out - pgf_format -> tikz_format - print_pgf -> print_tikz 2007-08.23 (ADH) * clipping.cc, clipping.h: New face list m_extras - (clip_face, clip_slice, clip_restore) New functions * state.cc, state.h: (clip_face, clip_slice, clip_restore) New functions - (label_border) Accept double for length arg * legend.cc: (draw) Position is not camera-dependent * picture.cc, picture.h: (border) Accept double for length arg * screen.cc, screen.h: (border) Accept double for length arg 2007-08.21 (ADH) Version 1.1.12 * axis.cc: log labels in decimal by default, sci available 2007-08.20 (ADH) * axis.cc, axis.h: (unmark(double)) New member function 2007-08.19 (ADH) * label_data.cc: (label_data(P, mark, align): Axis tick markers restrictively aligned, cannot be rotated * legend_tile.cc, legend_tile.h: Copy ctor/assign, destructor * lens.cc, lens.h: New files - Add clone function * camera.cc, camera.h: Factor out Lens code - Add copy ctor/assign * picture.cc, picture.h: (pic_units_per_pt, units_per_pic_unit, pt_to_screen) New functions for true-size drawing - Remove svg functions * markers.cc, markers.h: (right_angle, arc_measure, axis_break, h_error_bar, v_error_bar) New functions 2007-08.18 (ADH) Version 1.1.11 * screen_data.cc, screen_data.h: (print_to) Accept bool flag to encapsulate in a picture-like environment * format.h: (reset_state) New pure virtual function * eepic.cc, eepic.h, pst.cc, pst.h: (reset_state) New function 2007-08.17 (ADH) * format.cc, format.h: (start_picture, end_picture, print_palette, print_latex_hbox, set_unitlength) New functions - (pic_header, pic_footer) Implemented in lower-level functions * glyph.cc: (print_to) Font attributes handled in format. * legend_item.cc, legend_item.h: New files * legend_tile.cc, legend_tile.h: New files 2007-08.16 (ADH) * format.cc, format.h: (print_latex_label) Masking flag - (print_latex_label) Always print text color * legend.cc, legend.h: New files * length.cc, length.h: (name) New member function 2007-08.15 (ADH) * fmt_template.cc, fmt_template.h: New files * active_screen.cc, active_screen.h: screen_broker class replaces global screen pointer active_screen * picture.cc, picture.h: (inlay, inlay_vertical, inlay_horizontal) New functions - (deactivate) New function - (activate) Re-implement using screen_broker * arrow_data.cc, axis.cc, curves.cc, label_data.cc, path.cc, path_data.cc, state.cc: Use active_screen() 2007-08.12 (ADH) * curves.cc: grid calls rect for outmost lines (enables filling) * format.h: Re-design interface * eepic.cc, eepic.h, pst.cc, pst.h: Re-implement * glyph.cc, pen_fill.cc, pen_line.cc: Re-implement print_to * pen_arrow.cc: Generate own arrow head data * picture_data.cc: Reimplement print_to * pen_fill.h: Remove hatch angle members 2007-08.09 (ADH) Version 1.1.10 * mask_diamond.cc, mask_ellipse.cc, mask_rectangle.cc: (backing) Use plain backing color for edge * domain.cc: (resize1, resize2, resize3) Hack to avoid round-down 2007-08.08 (ADH) * curves.cc, curves.h: (line) Make num_pts argument unsigned * curves.cc: (line, triangle, quad, arrow) Sensitive to whether camera preserves lines * constants.h: New constants MAX_LOG_BASE, DEF_PRECISION, MAX_PRECISION 2007-08.07 (ADH) * frac.cc, frac.h: New files (rational number class) * pen_arrow.cc: (print_to) Use copy of label_state to print a dot * label_data.cc, label_data.h: (mask_color, text_color, align_to) New pass-through functions * markers.cc, markers.h: Label commands use label_data pass-through - Move axis and axis label functions to new file axis.cc * axis.cc, axis.h: New files (Coordinate axes, global functions) - New log label commands with same signature as Cartesian versions - New axes along sides of bounding box * eepic.cc, pst.cc: (pic_header, pic_footer, print_color) Print "%" at end of line 2007-08.06 (ADH) * state_data.h: Remove file * state.cc: Include style headers explicitly * pst.cc: (pic_footer, pic_header) Don't use pspicture* when cropping 2007-08.04 (ADH) * epix-lib.sh (ePiX_usage, ePiX_version): Update copyright, licence notices - Get script name from caller - (ePiX_bugreport) New function * elaps.in, epix.in, flix.in, laps.in: Specify script name for usage, version - Call ePiX_bugreport at end of help * triples.cc, triples.h: (Several binary operators) Pass first argument as value when implementation must copy anyway 2007-08.03 (ADH) Version 1.1.9 * flix.in: (flix_png) Pass tmax to bc, don't let shell evaluate * path_data.c: (photo) Print filled only if >= 3 non-null edges 2007-08.02 (ADH) * spline.cc: (data) Indexing errors; increase max indices by 1 * data_bins.cc: (plot) Use 20 intervals per spline - (bar_chart, histogram, plot): Check for sero population - (bar_chart) Bar height = frac of population in bin - (histogram) Box height = frac of pop per horizontal unit - (pop) Implement function * path_style.cc: (path_state(string)) Fix test for solidity * README-changes, README-porting: Removed 2007-08.01 (ADH) * functions.h: Remove "D", "I" aliases for Deriv, Integral * functions.cc: (recip) Return 1.0/x (sec, csc, tan have poles) * functions.cc, functions.h: Remove nine lowercase trig functions * plots.cc: D -> Deriv, I -> Integral * triples.h: Remove "triple" alias for P * triples.cc, triples.h: New member function is_valid() - (midpoint) Remove function * circle.cc: Replace P::midpoint * elaps.in: Keep eepic file, back up existing file if any - Unset EPIX_OUTFILE, EPIX_OUTROOT on loop exit - Print informative (but fake) lines on latex/dvips failure * curves.cc, curves.h: (spline(vector

, int)) New function * data_bins.cc: (plot) Draw piecewise-cubic spline, not n_spline 2007-07.31 (ADH) * crop_algorithms.h: (loopify) - Increment twice after insertion - Erase lone edge correctly * markers.cc, markers.h: (h_axis_tick, v_axis_tick) Alignment option - (h_axis, h_log_axis, v_axis, v_log_axis) Alignment option * label_data.cc, label_data.h: (label_data(P, mark_type)) Accepts alignment option * eepic.cc: (print_mark) Handle alignment * pst.cc: (print_mark) Handle alignment - (print_edges) Use pspolygon for closed paths * path_data.cc, path_data.h: New constructor from list of edge3d - (is_closed, is_filled) Move body to source file - vector

, list constructors do not fill unless closed * plot_algorithms.h: (plot_map_dom, euler_plot) Build plots from edges, not vertices - (plot_map_dom) Don't close or fill surface/solid plots 2007-07.30 (ADH) * circle.cc, circle.h, plane.cc, plane.h, segment.cc, segment.h, sphere.cc, sphere.h: - Remove intersection member operators - Add bool malformed member, constructor for malformed objects - Intersection operators do not throw * intersections.cc, intersections.h: New files, handle intersections of object classes * make_header: Add intersections.h 2007-07.29 (ADH) * errors.h: Remove error type enums * data_file.cc: (write(fmt)) Column indices reversed in try block * curves.cc: (ellipse_left, ellipse_right) Correct angle bounds * path.cc: Ellipse constructor creates path containing specified number of edges * markers.cc: marker(P, circ) calls circ - masked log axis labels - log axis labels accept optional base argument * eepic.cc, pst.cc: BOX and DOT, BBOX and DDOT of the same size - Label padding works more similarly to PSTricks * pst.cc: (print(label_state, string)) If no label border, set linestyle=none * glyph.cc: (print_to) Handle font face * constants.h: AVG_DOT=4 (was 2), AVG_TICK=3 (was 2) - Arrow head parameter bounds (MIN_AWIDTH, MIN_ARATIO, etc.) * arrow_style.cc, arrowhead_style.h: - Handle bounds on arrow head dimensions - (width, ratio, camber, fill) Return arrowhead_state& (not void) * state.cc: (dash_size) Pass unchecked argument to path_state - (dot_size, tick_size) Pass unchecked argument to marker_state * marker_style.cc: (dot_size, tick_size) - Handle unchecked arg - Return marker_style& (not void) * path_style.cc: (dash_size) Handle unchecked arg 2007-07.28 (ADH) Version 1.1.8 * eepic.cc: (print(label_state, string)): Fix masklabel padding * markers.cc: Don't pad axis labels with \phantom{-} * camera.cc: No warning if point is behind film plane * screen_data.cc: backing(), border() activate cropping * data_file.cc: (read) Don't try to read empty files - (column) Check for empty m_data 2007-07.22 (ADH) * data_mask.cc: (reverse) return *this * length.cc: (get_lengths) Initialize len1, len2 * crop_algorithms.h: (loopify) If only one edge is visible, return empty edge list. 2007-07.19 (ADH) * edge_data.h: Rename seen() -> is_seen(), null() -> is_null() * crop_algorithms.h, pen_fill.cc, pen_line.cc: seen() -> is_seen() * pen_arrow.cc, pen_arrow.h: Remove member m_at_base (unused) - (crop_to) Shaft visibility bug - (print_to) Draw ddot if head, tail project to same location * arrow_data.cc, arrow_data.h: Remove member m_at_base (unused) - Remove clip() function (constructor applies automatically) - seen() -> is_seen() * format.h, eepic.h, pst.h: (print_arrow) Omit alignment argument * eepic.cc, pst.cc: (print_arrow) Change signature, reimplement - seen() -> is_seen() * constants.h: Names in all caps - New constants MIN_CLIP, TWO_PI - BBOLD_WIDTH is 1.2pt (was 1.6pt) * angle_units.cc, hatching.cc, marker_style.cc, path_style.cc, state.cc: Use capitalized constants * camera.cc, camera.h: Use MIN_CLIP - Rename function to_front() -> clip_plane() 2007-07.17 (ADH) * crop_algorithms.h: New file for path-chopping templates * halfspace.cc, halfspace.h: Remove private member functions - Use crop_algorithms.h * screen_crop.cc, screen_crop.h: New files for crop_path_2nd, crop_loop_2nd (from edge_data.cc) * edge_data.h: Move crop_path_2nd, crop_loop_2nd to screen_crop.cc (file contains only template class and two typedefs) * edge_data.cc: Remove file 2007-07.16 (ADH) * state.cc: (fill(true)) Set fill color to White() if unset * halfspace.cc, halfspace.h: (clip_path) Out-of-order bug - Move constructor body from header. 2007-07.14 (ADH) Version 1.1.7 * eepic.cc, eepic.h, pst.cc, pst.h: Implement path styles - (print_edge, print_edges) New functions - (print_line) Implement in terms of print_edge - (print_verbatim): New function * verbatim.cc, verbatim.h: New files, implementing tile class for verbatim output to file * picture.cc, picture.h: (write, pre_write, post_write) New functions to write verbatim strings to output * screen.h: Declare global "write" function a friend * picture_data.cc, picture_data.h: Add support for pre- and post-written strings in output * constants.h: Default axis ticks 4pt long 2007-07.13 (ADH) * path_style.cc, path_style.h: Interface redesign - String-parsing implementation - Use constants.h * marker_style.cc: Use constants.h * state.cc: Reimplement path style functions - Use constants.h - (dash_size) New function - (dash_fill, dash_length) Functions removed - (pen(Color, double), base(Color, double)) New functions * label_data.cc: Constructors set tick mark color to line color * edge_data.h: (length) New member function 2007-07.08 (ADH) * markers.cc: (h_axis, h_axis_labels, v_axis, v_axis_labels) If no endpoints are specified, use dimensions of active screen * curves.cc: (grid, log_grid) If corners not specified, use corners of active screen * pst.cc: (print_arrow) Draw head manually (print_line) Use PSTricks border attribute in two-pen versions (update_base) Bug fixes * facet.cc, facet.h: New files * surface.cc: Factor out utility classes facet, by_distance - Support domain-dependent coloring * path_data.cc: (photo) Print unfilled paths in chunks of 250 points to ameliorate LaTeX overflow 2007-07.07 (ADH) Version 1.1.6 * surface.cc, surface.h: Support position-dependent coloring 2007-07.06 (ADH) * eepic.cc, pst.cc: (print(style, string)) Fix alignment bug (print_mark) No padding, border * screen.cc, screen.h, screen_data.cc, screen_data.h: (is_cropped) New function to add support for label cropping * format.h, eepic.cc, eepic.h: Change signature of pic_header * pst.cc, pst.h: Add support for label cropping * picture_data.cc: (print_to) Pass crop flag 2007-07.05 (ADH) * markers.h: (h_axis_log_labels, v_axis_log_labels) Align argument defaults to none * picture.cc, picture.h: (eepic, pst) New functions to set output format. (mp, pgf, svg stubs written.) * camera.cc: (to_front) Min clip distance is 0.01 * path_data.cc: (photo) Clip by camera.to_front() 2007-07.04 (ADH) * pst.cc, pst.h: New files * eepic.cc: Implement label borders and padding * state.cc, state.h: (new functions) - plain(Color), bold(Color), bbold(Color), set line Color/width - rgb(P), cmyk(P), use components as densities - New functions to set label attributes . label_color(Color); . label_pad(string); . label_border(Color, [string]), label_border(string); . no_label_border(); * curves.cc, curves.h: (draw_rect, swatch, rect(P, P, bool), draw_polar_grid) Remove functions * domain.cc, domain.h: - No default domain constructor - New constructor domain(P, P, mesh) - Inline 1-dim'l constructor moved to cc file - domain data members made private New functions corner1_x1(), coarse_n1(), etc. - "Net" typename removed * plot_algorithms.h, plots.cc, surface.cc: Use domain state functions * data_bins.cc, data_bins.h: (bar_chart) New function * data_file.cc, data_file.h: New global functions - plot(filename, mark_type, col1, col2, col3, [F]) plot(filename, mark_type, F, col1, col2, col3) - histogram, bar_chart 2007-07.03 (ADH) * dataplot.cc, dataplot.h: Break up and remove files * data_bins.cc, data_bins.h, data_file.cc, data_file.h, data_mask.cc, data_mask.h, interval.cc, interval.h: New files * samples: Remove sample document * doc: Update 2007-06.28 (ADH) * circle,cc, circle.h: - Rename class -> Circle - Remove m_filled data member, fill operator - Remove translation, scaling operators += and *= - (translate) Rename "shift" - (move_to) New function - Circle::draw() fills according to current paint style - (circle) New functions which draw automatically * sphere.cc, sphere.h: - Rename class -> Sphere - Remove translation, scaling operators += and *= - (shift, move_to, scale) New functions - (poles) Remove global function - (sphere) New functions which draw automatically * plane.cc, plane.h: - Rename class -> Plane - (shift, move_to) New functions - Remove translate, separates, parallel_to, contains, height functions - (draw) Reimplement * segment.cc, segment.h: - Rename class -> Segment - (shift, move_to, scale) New functions - Remove translation operator += * path.cc, path.h,path_data.cc, path_data.h: Update class names Circle, Plane, Segment, Sphere * polyhedron.cc, polyhedron.h: Remove files 2007-06.25 (ADH) * contrib: Remove package * surface.cc: (facet) Class contains a normal vector, (facet::front_facing) Use normal vector to test 2007-06.25 (ADH) * surface.cc: (facet::draw) Use "direction" to compute density * path.cc: (ellipse constructor) Don't close/fill automatically * curves.cc: (ellipse) Close/fill if appropriate * format.h, eepic.cc, eepic.h: (file_comment) New function * picture_data.cc, picture_data.h: (file_header) Move to format.h * path_data.cc, path_data.h: (draw) Implement base pen, draw filled regions with both pens * state.cc, state.h: Functions to control drawing state - pen(Color, [string]), base(Color, [string]) - fill(Color) * doc/manual.tex: Update 2007-06.20 (ADH) Version 1.1.5 * pen_arrow.cc, pen_arrow.h: Store shaft as edge, not as two pairs * format.h, eepic.cc, eepic.h: (print_arrow) Adjust call syntax * mask_diamond.cc, mask_ellipse.cc: (crop_to) Fix crop criterion * geometry.cc, geometry.h: Re-implement spherical geometry * sphere.cc, sphere.h: (latitude, longitude) Move to geometry.* * functions.cc, functions.h - Remove templates for id, zero, proj1, proj2, min, max (put id, proj1, proj2 in map.h) - Implement "zero" function with four call signatures * plots.cc: (shadeplot) Path closure bug * path.cc: (ellipse constructors) Close and fill if appropriate * markers.cc: (arrow) Re-implement labeled arrow * label_data.cc, label_data.h: Add visibility flag * glyph.cc: (print_to) Implement font_size * edge_data.cc: (crop_path_2nd) Loop processing bug 2007-06.19 (ADH) Version 1.1.4 Clipping and cropping work. Elliptical and diamond-shaped screen masks are implemented. 2007-06.03 (ADH) Version 1.1.3, first public release Implements ePiX-2's color capabilities, including named models (RGB, CMY, CMYK, and Gray), color blending, filtering, CMYK separation, limited transparency, color filling and colorable arrows in eepic, decorable screens, and page markup. The global parameters x_min, etc., should be replaced with function calls, e.g. xmin(), from now on. Aside from this, the syntax is backward compatible with Version 1.0.x. epix-1.2.21/Color.cc000066400000000000000000000153411417356203700141430ustar00rootroot00000000000000/* * Color.cc -- ePiX Color functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: November 12, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Base.h" #include "Color_Utils.h" #include "Color_CMY.h" #include "Color_CMYK.h" #include "Color_Gray.h" #include "Color_Neutral.h" #include "Color_RGB.h" #include "Color_Sep.h" #include "Color.h" namespace ePiX { Color::Color() : m_color(Neutral().m_color), m_alpha(1) { } Color::Color(const Color_Base& col) : m_color(col.clone()), m_alpha(1) { } Color::Color(const Color_Base* col) : m_color(col->clone()), m_alpha(1) { } Color::Color(const Color& col) : m_color(col.m_color->clone()), m_alpha(col.m_alpha) { } Color& Color::operator= (const Color& col) { if (*this != col) { Color_Base* tmp(col.m_color->clone()); delete m_color; m_color = tmp; m_alpha = col.m_alpha; } return *this; } Color::~Color() { delete m_color; } const Color_Base* Color::operator->() const { return m_color; } double Color::alpha() const { return m_alpha; } bool Color::is_unset() const { // we're Neutral() return (name() == ""); } // no effect if we or col are Neutral Color Color::filter(const Color& col) const { if (m_color->name() == "" || col.is_unset()) return col; else { Color_Base* fil(m_color->clone()); fil->filter(*(col.m_color)); Color val(fil); delete fil; return val; } } Color& Color::operator*= (double c) { (*m_color) *= c; return *this; } // Blending with Unset has no effect Color& Color::blend(const Color& col, double d) { if (!col.is_unset()) m_color->blend(*(col.m_color), d); return *this; } Color& Color::superpose(const Color& col) { if (!col.is_unset()) m_color->superpose(*(col.m_color)); return *this; } Color& Color::invert() { m_color->invert(); return *this; } Color& Color::alpha(double t) { m_alpha = t; return *this; } std::string Color::model() const { return m_color->model(); } std::string Color::name() const { return m_color->name(); } std::vector Color::densities() const { return m_color->densities(); } // non-member operators Color operator* (double c, const Color& col) { Color tmp(col); return tmp *= c; } const bool operator== (const Color& col1, const Color& col2) { return col1.name() == col2.name(); } const bool operator!= (const Color& col1, const Color& col2) { return col1.name() != col2.name(); } const bool operator< (const Color& col1, const Color& col2) { return col1.name() < col2.name(); } // Named constructors Color RGB(double r, double g, double b) { return Color(RGB_Color(r, g, b)); } Color CMY(double c, double m, double y) { return Color(CMY_Color(c, m, y)); } Color CMYK(double c, double m, double y, double k) { return Color(CMYK_Color(c, m, y, k)); } Color Gray(double d) { return Color(Gray_Color(d)); } /* * * Extended primaries in the global namespace * * */ Color Red(double d) { return RGB(clippy(d), clippy(-d), clippy(-d)); } Color Green(double d) { return RGB(clippy(-d), clippy(d), clippy(-d)); } Color Blue(double d) { return RGB(clippy(-d), clippy(-d), clippy(d)); } Color White(double d) { return RGB(clippy(d), clippy(d), clippy(d)); } Color Black(double d) { return RGB(clippy(1-d), clippy(1-d), clippy(1-d)); } /* * * CMY * * */ Color Cyan(double d) { return CMY_Color(clippy(d), clippy(-d), clippy(-d), true); } Color Magenta(double d) { return CMY_Color(clippy(-d), clippy(d), clippy(-d), true); } Color Yellow(double d) { return CMY_Color(clippy(-d), clippy(-d), clippy(d), true); } Color CMY_White(double d) { return CMY_Color(clippy(1-d), clippy(1-d), clippy(1-d), true); } Color CMY_Black(double d) { return CMY_Color(clippy(d), clippy(d), clippy(d), true); } /* * * CMYK * * */ Color CyanK(double d) { double c(clippy(d)); double m(clippy(-d)); double y(m); // [sic] double k(std::min(c,m)); // y=m return CMYK_Color(c-k, m-k, y-k, k, true); } Color MagentaK(double d) { double c(clippy(-d)); double m(clippy(d)); double y(c); double k(std::min(c,m)); // y=c return CMYK_Color(c-k, m-k, y-k, k, true); } Color YellowK(double d) { double c(clippy(-d)); double m(c); double y(clippy(d)); double k(std::min(c,y)); // m=c return CMYK_Color(c-k, m-k, y-k, k, true); } Color CMYK_White(double d) { return CMYK_Color(0, 0, 0, clippy(1-d), true); } Color CMYK_Black(double d) { return CMYK_Color(0, 0, 0, clippy(d), true); } Color C_Process(double d) { return Cyan_Layer(d); } Color M_Process(double d) { return Magenta_Layer(d); } Color Y_Process(double d) { return Yellow_Layer(d); } Color K_Process(double d) { return Black_Layer(d); } /* * * Neutral filters * * */ Color Neutral() { static Neutral_Color* neutral(new Neutral_Color()); return Color(*neutral); } Color RGB_Neutral() { static RGB_Color* rgb_neutral(new RGB_Color(1, 1, 1)); return Color(*rgb_neutral); } Color CMY_Neutral() { static CMY_Color* cmy_neutral(new CMY_Color(0, 0, 0, true)); return Color(*cmy_neutral); } Color CMYK_Neutral() { static CMYK_Color* cmyk_neutral(new CMYK_Color(0, 0, 0, 0, true)); return Color(*cmyk_neutral); } Color Gray_Neutral() { static Gray_Color* gray_neutral(new Gray_Color(1)); return Color(*gray_neutral); } } // end of namespace epix-1.2.21/Color.h000066400000000000000000000103631417356203700140040ustar00rootroot00000000000000/* * Color.h -- ePiX::Color class and helpers * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * Last Change: November 12, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file defines the ePiX Color user interface: * operator*= Modify intensity * blend(Color, double) Color mixing * filter(Color) Apply us as a filter * superpose(Color) Add colors, clip intensities * invert() Color negative * * - Named primary constructors * * Scaling and filtering are implemented by converting to the filter's * color model. Color model conversions come from the LaTeX xcolor * package documentation, V 1.11 (2044/05/09) by Uwe Kern. */ #ifndef EPIX_COLOR #define EPIX_COLOR #include #include namespace ePiX { class Color_Base; class Color { public: Color(); Color(const Color_Base*); Color(const Color_Base&); Color(const Color&); Color& operator= (const Color&); ~Color(); const Color_Base* operator->() const; double alpha() const; bool is_unset() const; Color filter(const Color&) const; Color& operator*= (double c); // scale the intensity Color& blend(const Color&, double); Color& superpose(const Color&); Color& invert(); Color& alpha(double); std::string model() const; std::string name() const; std::vector densities() const; private: Color_Base* m_color; double m_alpha; }; // end of class Color Color operator* (double, const Color&); const bool operator== (const Color&, const Color&); const bool operator!= (const Color&, const Color&); // for palette ordering const bool operator< (const Color&, const Color&); /* * * * Primary color functions in the global namespace * * * * * A primary color constructor accepts a numerical argument, which is * reduced mod 4, then interpreted as a color density as follows: * d = -2 or 2 : white * d = -1: full anti-saturation * d = 0: black * d = 1: full saturation (default) * * The primary changes continuously, and linearly on each interval * [-2,-1], [-1,0], [0,1], and [1,2]. * * Example: * Red(0.3) = rgb(0.3, 0, 0) = Red(-3.7) * Red(1.3) = rgb(1,0.3,0.3) = Red(-2.7) * Red(2.3) = rgb(0.7, 1, 1) = Red(-1.7) * Red(3.3) = rgb(0,0.7,0.7) = Red(-0.7) */ Color RGB(double r=0, double g=0, double b=0); Color CMY(double c=1, double m=1, double y=1); Color CMYK(double c=1, double m=1, double y=1, double k=0); // void same as CMYK(0,0,0,1); Color Gray(double d=0); Color Red(double d=1); Color Green(double d=1); Color Blue(double d=1); Color White(double d=1); Color Black(double d=1); Color Cyan(double d=1); Color Magenta(double d=1); Color Yellow(double d=1); Color CMY_White(double d=1); Color CMY_Black(double d=1); Color CyanK(double d=1); Color MagentaK(double d=1); Color YellowK(double d=1); Color CMYK_White(double d=1); Color CMYK_Black(double d=1); // color separation Color C_Process(double d=1); Color M_Process(double d=1); Color Y_Process(double d=1); Color K_Process(double d=1); // "conversion filters" Color Neutral(); Color RGB_Neutral(); Color CMY_Neutral(); Color CMYK_Neutral(); Color Gray_Neutral(); } // end of namespace #endif /* EPIX_COLOR */ epix-1.2.21/Color_Base.cc000066400000000000000000000027741417356203700151030ustar00rootroot00000000000000/* * Color_Base.cc -- ePiX Color_Base functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.3 * * Last Change: June 03, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "Color_Utils.h" #include "Color_Base.h" namespace ePiX { Color_Base::RGB_Densities::RGB_Densities(double r, double g, double b) : m_dens_red (make_r(r, g, b)), m_dens_green(make_g(r, g, b)), m_dens_blue (make_b(r, g, b)) { } bool Color_Base::operator== (const Color_Base& col) const { return (name() == col.name()); } } // end of namespace epix-1.2.21/Color_Base.h000066400000000000000000000044621417356203700147410ustar00rootroot00000000000000/* * Color_Base.h -- ePiX::Color interface * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_BASE #define EPIX_COLOR_BASE #include #include namespace ePiX { class Color_Base { protected: struct RGB_Densities { // ensures densities are in [0,1] RGB_Densities (double r, double g, double b); double m_dens_red, m_dens_green, m_dens_blue; }; public: virtual ~Color_Base() { } virtual Color_Base* clone() const = 0; // blending (all non-const) // apply us as filter virtual Color_Base& filter(const Color_Base&) = 0; // scale intensities virtual Color_Base& operator*= (double) = 0; // clip d to [0,1], then return (1-d)*this + d*col virtual Color_Base& blend(const Color_Base&, double) = 0; // add channels virtual Color_Base& superpose(const Color_Base&) = 0; // return negative color virtual Color_Base& invert() = 0; // internal colorname and densities virtual std::string model() const = 0; virtual std::string name() const = 0; virtual std::vector densities() const = 0; bool operator== (const Color_Base& col) const; virtual RGB_Densities to_rgb() const = 0; }; // end of class Color_Base } // end of namespace #endif /* EPIX_COLOR_BASE */ epix-1.2.21/Color_CMY.cc000066400000000000000000000076401417356203700146560ustar00rootroot00000000000000/* * Color_CMY.cc -- ePiX::CMY_Color functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: October 30, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Utils.h" #include "Color.h" #include "Color_CMY.h" namespace ePiX { CMY_Color::CMY_Color(double c, double m, double y) : cyan(make_r(c,m,y)), magenta(make_g(c,m,y)), yellow(make_b(c,m,y)) { } // private, no arg checking, bool unused CMY_Color::CMY_Color(double c, double m, double y, const bool arg) : cyan(c), magenta(m), yellow(y) { } CMY_Color::CMY_Color(const RGB_Densities& s) : cyan(1-s.m_dens_red), magenta(1-s.m_dens_green), yellow(1-s.m_dens_blue) { } Color_Base::RGB_Densities CMY_Color::to_rgb() const { // Use conventional formulas since our densities are already in [0,1] return Color_Base::RGB_Densities(1-cyan, 1-magenta, 1-yellow); } CMY_Color* CMY_Color::clone() const { return new CMY_Color(*this); } CMY_Color& CMY_Color::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); // filter in RGB; 1 - min(1-x, 1-y) = max(x, y) cyan = std::max(cyan, 1-s.m_dens_red); magenta = std::max(magenta, 1-s.m_dens_green); yellow = std::max(yellow, 1-s.m_dens_blue); return *this; } CMY_Color& CMY_Color::operator*= (double sc) { Color_Base::RGB_Densities s(to_rgb()); // scale in RGB double r(sc*(s.m_dens_red)); double g(sc*(s.m_dens_green)); double b(sc*(s.m_dens_blue)); cyan = 1 - make_r(r, g, b); magenta = 1 - make_g(r, g, b); yellow = 1 - make_b(r, g, b); return *this; } CMY_Color& CMY_Color::blend(const Color_Base& color, double d) { Color_Base::RGB_Densities s(color.to_rgb()); double wt(clip_to_unit(d)); // blending is a convex lin. comb., may as well do in CMY cyan += wt*(1 - cyan - s.m_dens_red); magenta += wt*(1 - magenta - s.m_dens_green); yellow += wt*(1 - yellow - s.m_dens_blue); return *this; } CMY_Color& CMY_Color::superpose(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); // add in RGB cyan = 1 - clip_to_unit(1 - cyan + s.m_dens_red); magenta = 1 - clip_to_unit(1 - magenta + s.m_dens_green); yellow = 1 - clip_to_unit(1 - yellow + s.m_dens_blue); return *this; } CMY_Color& CMY_Color::invert() { cyan = 1 - cyan; magenta = 1 - magenta; yellow = 1 - yellow; return *this; } std::string CMY_Color::model() const { return "cmy"; } std::string CMY_Color::name() const { std::ostringstream nm; nm << "cmy_" << dtohex(cyan) << dtohex(magenta) << dtohex(yellow); return nm.str(); } std::vector CMY_Color::densities() const { std::vector val(3); val.at(0) = rd(cyan); val.at(1) = rd(magenta); val.at(2) = rd(yellow); return val; } } // end of namespace epix-1.2.21/Color_CMY.h000066400000000000000000000044701417356203700145160ustar00rootroot00000000000000/* * Color_CMY.h -- ePiX::CMY_Color class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_CMY #define EPIX_COLOR_CMY #include #include #include "Color_Base.h" #include "Color.h" namespace ePiX { class CMY_Color : public Color_Base { public: explicit CMY_Color(double c=1, double m=1, double y=1); CMY_Color(const RGB_Densities&); CMY_Color* clone() const; CMY_Color& filter(const Color_Base&); CMY_Color& operator*= (double c); CMY_Color& blend(const Color_Base&, double); CMY_Color& superpose(const Color_Base&); CMY_Color& invert(); std::string model() const; std::string name() const; std::vector densities() const; RGB_Densities to_rgb() const; // These need to call our private constructor friend Color Cyan(double); friend Color Magenta(double); friend Color Yellow(double); friend Color CMY_White(double); friend Color CMY_Black(double); friend Color CMY_Neutral(); private: double cyan; double magenta; double yellow; // Construct a CMY color without checking arguments. Final argument // only changes call signature CMY_Color(double c, double m, double y, const bool); }; // end of class CMY_Color } // end of namespace #endif /* EPIX_COLOR_CMY */ epix-1.2.21/Color_CMYK.cc000066400000000000000000000131571417356203700147710ustar00rootroot00000000000000/* * Color_CMYK.cc -- ePiX::CMYK_Color functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: October 30, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Utils.h" #include "Color.h" #include "Color_CMYK.h" namespace ePiX { // Behaves "classically" if c+k, m+k, y+k are in [0,1] // Except as noted, CMYK methods enforce/preserve this condition CMYK_Color::CMYK_Color(double c, double m, double y, double k) : cyan(make_r(c+k, m+k, y+k)), magenta(make_g(c+k, m+k, y+k)), yellow(make_b(c+k, m+k, y+k)), black(std::min(std::min(cyan, magenta), yellow)) { /* conventional RGB densities double r(1 - std::min(1, c+k)); double g(1 - std::min(1, m+k)); double b(1 - std::min(1, y+k)); */ cyan -= black; magenta -= black; yellow -= black; } // private, no arg checking, bool unused CMYK_Color::CMYK_Color(double c, double m, double y, double k, const bool arg) : cyan(c), magenta(m), yellow(y), black(k) { } // black = min(c,m,y), following Uwe Kern's xcolor documentation // V 1.11, 2004/05/09, p. 31 CMYK_Color::CMYK_Color(const RGB_Densities& s) { // may assume densities are in [0,1] double c(1-s.m_dens_red), m(1-s.m_dens_green), y(1-s.m_dens_blue); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; } Color_Base::RGB_Densities CMYK_Color::to_rgb() const { // Use conventional formulas since our densities are already in [0,1]; // "min" for safety, should be unnecessary. return Color_Base::RGB_Densities(1 - std::min(1.0, cyan + black), 1 - std::min(1.0, magenta + black), 1 - std::min(1.0, yellow + black)); } CMYK_Color* CMYK_Color::clone() const { return new CMYK_Color(*this); } CMYK_Color& CMYK_Color::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); // arg Color_Base::RGB_Densities t(to_rgb()); // this // filter in RGB double c(1 - std::min(t.m_dens_red, s.m_dens_red)); double m(1 - std::min(t.m_dens_green, s.m_dens_green)); double y(1 - std::min(t.m_dens_blue, s.m_dens_blue)); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; return *this; } CMYK_Color& CMYK_Color::operator*= (double sc) { Color_Base::RGB_Densities s(to_rgb()); // scale in RGB double r(sc*(s.m_dens_red)); double g(sc*(s.m_dens_green)); double b(sc*(s.m_dens_blue)); // Necessary b/c sc may not be in [0,1] double c(1 - make_r(r, g, b)); double m(1 - make_g(r, g, b)); double y(1 - make_b(r, g, b)); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; return *this; } CMYK_Color& CMYK_Color::blend(const Color_Base& color, double d) { Color_Base::RGB_Densities s(color.to_rgb()); double wt(clip_to_unit(d)); double c((1-wt)*std::min(1.0, cyan+black) + wt*(1 - s.m_dens_red)); double m((1-wt)*std::min(1.0, magenta+black) + wt*(1 - s.m_dens_green)); double y((1-wt)*std::min(1.0, yellow+black) + wt*(1 - s.m_dens_blue)); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; return *this; } CMYK_Color& CMYK_Color::superpose(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); Color_Base::RGB_Densities t(to_rgb()); // add in RGB double c(1 - clip_to_unit(t.m_dens_red + s.m_dens_red)); double m(1 - clip_to_unit(t.m_dens_green + s.m_dens_green)); double y(1 - clip_to_unit(t.m_dens_blue + s.m_dens_blue)); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; return *this; } CMYK_Color& CMYK_Color::invert() { Color_Base::RGB_Densities s(to_rgb()); // invert in RGB double c(1 - s.m_dens_red); double m(1 - s.m_dens_green); double y(1 - s.m_dens_blue); black = std::min(std::min(c, m), y); cyan = c-black; magenta = m-black; yellow = y-black; return *this; } std::string CMYK_Color::model() const { return "cmyk"; } std::string CMYK_Color::name() const { std::ostringstream nm; nm << "cmyk_" << dtohex(cyan) << dtohex(magenta) << dtohex(yellow) << dtohex(black); return nm.str(); } std::vector CMYK_Color::densities() const { std::vector val(4); val.at(0) = rd(cyan); val.at(1) = rd(magenta); val.at(2) = rd(yellow); val.at(3) = rd(black); return val; } } // end of namespace epix-1.2.21/Color_CMYK.h000066400000000000000000000045761417356203700146400ustar00rootroot00000000000000/* * Color_CMYK.h -- ePiX::CMYK_Color class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_CMYK #define EPIX_COLOR_CMYK #include #include #include "Color_Base.h" #include "Color.h" namespace ePiX { class CMYK_Color : public Color_Base { public: CMYK_Color(double c=1, double m=1, double y=1, double k=1); CMYK_Color(const RGB_Densities&); CMYK_Color* clone() const; CMYK_Color& filter(const Color_Base&); CMYK_Color& operator*= (double c); CMYK_Color& blend(const Color_Base&, double); CMYK_Color& superpose(const Color_Base&); CMYK_Color& invert(); std::string model() const; std::string name() const; std::vector densities() const; RGB_Densities to_rgb() const; // These need to call our private constructor friend Color CyanK(double); friend Color MagentaK(double); friend Color YellowK(double); friend Color CMYK_White(double); friend Color CMYK_Black(double); friend Color CMYK_Neutral(); private: double cyan; double magenta; double yellow; double black; // Construct a CMYK color without checking arguments. Final argument // only changes call signature CMYK_Color(double c, double m, double y, double k, const bool); }; // end of class CMYK_Color } // end of namespace #endif /* EPIX_COLOR_CMYK */ epix-1.2.21/Color_Gray.cc000066400000000000000000000057161417356203700151320ustar00rootroot00000000000000/* * Color_Gray.cc -- ePiX::Gray_Color functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: October 30, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Utils.h" #include "Color_Gray.h" namespace ePiX { Gray_Color::Gray_Color(double d) : m_gray(clip_to_unit(d)) { } Gray_Color::Gray_Color(const RGB_Densities& s) : m_gray((1.0/3)*(s.m_dens_red+s.m_dens_green+s.m_dens_blue)) { } Color_Base::RGB_Densities Gray_Color::to_rgb() const { return Color_Base::RGB_Densities(m_gray, m_gray, m_gray); } Gray_Color* Gray_Color::clone() const { return new Gray_Color(*this); } Gray_Color& Gray_Color::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); m_gray = std::min(m_gray, (1.0/3)*(s.m_dens_red+s.m_dens_green+s.m_dens_blue)); return *this; } Gray_Color& Gray_Color::operator*= (double c) { m_gray = clip_to_unit(c*m_gray); return *this; } Gray_Color& Gray_Color::blend(const Color_Base& color, double d) { Color_Base::RGB_Densities s(color.to_rgb()); double wt(clip_to_unit(d)); m_gray += wt*((1.0/3)*(s.m_dens_red+s.m_dens_green+s.m_dens_blue)-m_gray); return *this; } Gray_Color& Gray_Color::superpose(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); m_gray = clip_to_unit((1.0/3)*(s.m_dens_red + s.m_dens_green + s.m_dens_blue) + m_gray); return *this; } Gray_Color& Gray_Color::invert() { m_gray = 1 - m_gray; return *this; } std::string Gray_Color::model() const { return "rgb"; } std::string Gray_Color::name() const { std::ostringstream nm; nm << "gray_" << dtohex(m_gray); return nm.str(); } std::vector Gray_Color::densities() const { std::vector val(3); val.at(0) = rd(m_gray); val.at(1) = rd(m_gray); val.at(2) = rd(m_gray); return val; } } // end of namespace epix-1.2.21/Color_Gray.h000066400000000000000000000035171417356203700147710ustar00rootroot00000000000000/* * Color_Gray.h -- ePiX::Gray_Color class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_GRAY #define EPIX_COLOR_GRAY #include #include #include "Color_Base.h" namespace ePiX { class Gray_Color : public Color_Base { public: Gray_Color(double dens=0); Gray_Color(const RGB_Densities&); Gray_Color* clone() const; Gray_Color& filter(const Color_Base&); Gray_Color& operator*= (double c); Gray_Color& blend(const Color_Base&, double); Gray_Color& superpose(const Color_Base&); Gray_Color& invert(); std::string model() const; std::string name() const; std::vector densities() const; RGB_Densities to_rgb() const; private: double m_gray; }; // end of class Gray_Color } // end of namespace #endif /* EPIX_COLOR_GRAY */ epix-1.2.21/Color_Neutral.cc000066400000000000000000000043011417356203700156270ustar00rootroot00000000000000/* * Color_Neutral.cc -- ePiX::Neutral_Color * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.18 * Last Change: September 14, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "Color.h" #include "Color_Neutral.h" namespace ePiX { Neutral_Color::Neutral_Color() { } Color_Base::RGB_Densities Neutral_Color::to_rgb() const { return Color_Base::RGB_Densities(1, 1, 1); } Neutral_Color* Neutral_Color::clone() const { return new Neutral_Color(*this); } Color_Base& Neutral_Color::filter(const Color_Base& color) { Color_Base* tmp(color.clone()); return *tmp; } Neutral_Color& Neutral_Color::operator*= (double c) { return *this; } Neutral_Color& Neutral_Color::blend(const Color_Base& color, double d) { return *this; } Neutral_Color& Neutral_Color::superpose(const Color_Base& color) { return *this; } Neutral_Color& Neutral_Color::invert() { return *this; } // string identifier -- not output-specific std::string Neutral_Color::name() const { return ""; } std::string Neutral_Color::model() const { return ""; } std::vector Neutral_Color::densities() const { std::vector value(0); return value; } } // end of namespace epix-1.2.21/Color_Neutral.h000066400000000000000000000036221417356203700154760ustar00rootroot00000000000000/* * Color_Neutral.h -- ePiX::Neutral ("unset") class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_NEUTRAL #define EPIX_COLOR_NEUTRAL #include #include "Color_Base.h" namespace ePiX { class Neutral_Color : public Color_Base { public: Neutral_Color(); Color_Base& filter(const Color_Base&); std::string name() const; private: // these functions are implemented, but should never be called RGB_Densities to_rgb() const; Neutral_Color* clone() const; Neutral_Color& operator*= (double c); Neutral_Color& blend(const Color_Base&, double); Neutral_Color& superpose(const Color_Base&); Neutral_Color& invert(); // not implemented, should never be called std::string model() const; std::vector densities() const; }; // end of class Neutral_Color } // end of namespace #endif /* EPIX_COLOR_NEUTRAL */ epix-1.2.21/Color_RGB.cc000066400000000000000000000064411417356203700146360ustar00rootroot00000000000000/* * Color_RGB.cc -- ePiX::RGB_Color * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: October 30, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Utils.h" #include "Color_RGB.h" namespace ePiX { RGB_Color::RGB_Color(double r, double g, double b) : red(make_r(r, g, b)), green(make_g(r, g, b)), blue(make_b(r, g, b)) { } RGB_Color::RGB_Color(const RGB_Densities& s) : red(s.m_dens_red), green(s.m_dens_green), blue(s.m_dens_blue) { } Color_Base::RGB_Densities RGB_Color::to_rgb() const { return Color_Base::RGB_Densities(red, green, blue); } RGB_Color* RGB_Color::clone() const { return new RGB_Color(*this); } RGB_Color& RGB_Color::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); red = std::min(red, s.m_dens_red); green = std::min(green, s.m_dens_green); blue = std::min(blue, s.m_dens_blue); return *this; } RGB_Color& RGB_Color::operator*= (double c) { double r(red*c); double g(green*c); double b(blue*c); red = make_r(r, g, b); green = make_g(r, g, b); blue = make_b(r, g, b); return *this; } RGB_Color& RGB_Color::blend(const Color_Base& color, double d) { Color_Base::RGB_Densities s(color.to_rgb()); double wt(clip_to_unit(d)); red += wt*(s.m_dens_red - red); green += wt*(s.m_dens_green - green); blue += wt*(s.m_dens_blue - blue); return *this; } RGB_Color& RGB_Color::superpose(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); red = clip_to_unit(red + s.m_dens_red); green = clip_to_unit(green + s.m_dens_green); blue = clip_to_unit(blue + s.m_dens_blue); return *this; } RGB_Color& RGB_Color::invert() { red = 1 - red; green = 1 - green; blue = 1 - blue; return *this; } std::string RGB_Color::model() const { return "rgb"; } std::string RGB_Color::name() const { std::ostringstream nm; nm << "rgb_" << dtohex(red) << dtohex(green) << dtohex(blue); return nm.str(); } std::vector RGB_Color::densities() const { std::vector val(3); val.at(0) = rd(red); val.at(1) = rd(green); val.at(2) = rd(blue); return val; } } // end of namespace epix-1.2.21/Color_RGB.h000066400000000000000000000035641417356203700145030ustar00rootroot00000000000000/* * Color_RGB.h -- ePiX::RGB_Color class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_RGB #define EPIX_COLOR_RGB #include #include #include "Color_Base.h" namespace ePiX { class RGB_Color : public Color_Base { public: RGB_Color(double r=0, double g=0, double b=0); RGB_Color(const RGB_Densities&); RGB_Color* clone() const; RGB_Color& filter(const Color_Base&); RGB_Color& operator*= (double c); RGB_Color& blend(const Color_Base&, double); RGB_Color& superpose(const Color_Base&); RGB_Color& invert(); std::string model() const; std::string name() const; std::vector densities() const; RGB_Densities to_rgb() const; private: double red; double green; double blue; }; // end of class RGB_Color } // end of namespace #endif /* EPIX_COLOR_RGB */ epix-1.2.21/Color_Sep.cc000066400000000000000000000147611417356203700147570ustar00rootroot00000000000000/* * Color_Sep.cc -- ePiX CMYK Color separation functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.2 * * Last Change: October 30, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include "Color_Utils.h" #include "Color.h" #include "Color_Sep.h" namespace ePiX { Cyan_Layer::Cyan_Layer(double arg) : m_dens(clip_to_unit(arg)) { } // Return Cyan channel of color Cyan_Layer& Cyan_Layer::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); if (Color(color).is_unset()) s = Color_Base::RGB_Densities(1,1,1); m_dens = std::min(m_dens, 1-s.m_dens_red); return *this; } Cyan_Layer* Cyan_Layer::clone() const { return new Cyan_Layer(*this); } Color_Base::RGB_Densities Cyan_Layer::to_rgb() const { return Color_Base::RGB_Densities(1-m_dens, 1, 1); } std::string Cyan_Layer::model() const { return "cmyk"; } std::string Cyan_Layer::name() const { std::ostringstream nm; nm << "c_proc_" << dtohex(m_dens); return nm.str(); } std::vector Cyan_Layer::densities() const { std::vector val(4); val.at(0) = rd(m_dens); val.at(1) = 0; val.at(2) = 0; val.at(3) = 0; return val; } // Magenta_Layer Magenta_Layer::Magenta_Layer(double arg) : m_dens(clip_to_unit(arg)) { } // Return Magenta channel of color Magenta_Layer& Magenta_Layer::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); if (Color(color).is_unset()) s = Color_Base::RGB_Densities(1,1,1); m_dens = std::min(m_dens, 1-s.m_dens_green); return *this; } Magenta_Layer* Magenta_Layer::clone() const { return new Magenta_Layer(*this); } Color_Base::RGB_Densities Magenta_Layer::to_rgb() const { return Color_Base::RGB_Densities(1, 1-m_dens, 1); } std::string Magenta_Layer::model() const { return "cmyk"; } std::string Magenta_Layer::name() const { std::ostringstream nm; nm << "m_proc_" << dtohex(m_dens); return nm.str(); } std::vector Magenta_Layer::densities() const { std::vector val(4); val.at(0) = 0; val.at(1) = rd(m_dens); val.at(2) = 0; val.at(3) = 0; return val; } // Yellow_Layer Yellow_Layer::Yellow_Layer(double arg) : m_dens(clip_to_unit(arg)) { } // Return Yellow channel of color Yellow_Layer& Yellow_Layer::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); if (Color(color).is_unset()) s = Color_Base::RGB_Densities(1,1,1); m_dens = std::min(m_dens, 1-s.m_dens_blue); return *this; } Yellow_Layer* Yellow_Layer::clone() const { return new Yellow_Layer(*this); } Color_Base::RGB_Densities Yellow_Layer::to_rgb() const { return Color_Base::RGB_Densities(1, 1, 1-m_dens); } std::string Yellow_Layer::model() const { return "cmyk"; } std::string Yellow_Layer::name() const { std::ostringstream nm; nm << "y_proc_" << dtohex(m_dens); return nm.str(); } std::vector Yellow_Layer::densities() const { std::vector val(4); val.at(0) = 0; val.at(1) = 0; val.at(2) = rd(m_dens); val.at(3) = 0; return val; } // Black_Layer Black_Layer::Black_Layer(double arg) : m_dens(clip_to_unit(arg)) { } // Return Black channel of color Black_Layer& Black_Layer::filter(const Color_Base& color) { Color_Base::RGB_Densities s(color.to_rgb()); if (Color(color).is_unset()) s = Color_Base::RGB_Densities(1,1,1); double c(1-s.m_dens_red), m(1-s.m_dens_green), y(1-s.m_dens_blue); double k(std::min(std::min(c, m), y)); m_dens = std::min(m_dens, k); return *this; } Black_Layer* Black_Layer::clone() const { return new Black_Layer(*this); } Color_Base::RGB_Densities Black_Layer::to_rgb() const { return Color_Base::RGB_Densities(1-m_dens, 1-m_dens, 1-m_dens); } std::string Black_Layer::model() const { return "cmyk"; } std::string Black_Layer::name() const { std::ostringstream nm; nm << "k_proc_" << dtohex(m_dens); return nm.str(); } std::vector Black_Layer::densities() const { std::vector val(4); val.at(0) = 0; val.at(1) = 0; val.at(2) = 0; val.at(3) = rd(m_dens); return val; } // null operations Cyan_Layer& Cyan_Layer::operator*= (double x) { return *this; } Cyan_Layer& Cyan_Layer::blend(const Color_Base& col, double d) { return *this; } Cyan_Layer& Cyan_Layer::superpose(const Color_Base& col) { return *this; } Cyan_Layer& Cyan_Layer::invert() { return *this; } Magenta_Layer& Magenta_Layer::operator*= (double x) { return *this; } Magenta_Layer& Magenta_Layer::blend(const Color_Base& col, double d) { return *this; } Magenta_Layer& Magenta_Layer::superpose(const Color_Base& col) { return *this; } Magenta_Layer& Magenta_Layer::invert() { return *this; } Yellow_Layer& Yellow_Layer::operator*= (double x) { return *this; } Yellow_Layer& Yellow_Layer::blend(const Color_Base& col, double d) { return *this; } Yellow_Layer& Yellow_Layer::superpose(const Color_Base& col) { return *this; } Yellow_Layer& Yellow_Layer::invert() { return *this; } Black_Layer& Black_Layer::operator*= (double x) { return *this; } Black_Layer& Black_Layer::blend(const Color_Base& col, double d) { return *this; } Black_Layer& Black_Layer::superpose(const Color_Base& col) { return *this; } Black_Layer& Black_Layer::invert() { return *this; } } // end of namespace epix-1.2.21/Color_Sep.h000066400000000000000000000071131417356203700146120ustar00rootroot00000000000000/* * Color_Sep.h -- ePiX CMYK Color separation classes * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * Last Change: September 13, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_SEP #define EPIX_COLOR_SEP #include #include #include "Color_Base.h" namespace ePiX { class Cyan_Layer : public Color_Base { public: Cyan_Layer(double dens=1); // Return Cyan channel of input Cyan_Layer& filter(const Color_Base&); Cyan_Layer* clone() const; RGB_Densities to_rgb() const; // returns RGB(0,1,1) std::string model() const; std::string name() const; std::vector densities() const; private: double m_dens; // null operations Cyan_Layer& operator*= (double); Cyan_Layer& blend(const Color_Base&, double); Cyan_Layer& superpose(const Color_Base&); Cyan_Layer& invert(); }; class Magenta_Layer : public Color_Base { public: Magenta_Layer(double dens=1); // Return Magenta channel of input Magenta_Layer& filter(const Color_Base&); Magenta_Layer* clone() const; RGB_Densities to_rgb() const; // returns RGB(0,1,1) std::string model() const; std::string name() const; std::vector densities() const; private: double m_dens; // null operations Magenta_Layer& operator*= (double); Magenta_Layer& blend(const Color_Base&, double); Magenta_Layer& superpose(const Color_Base&); Magenta_Layer& invert(); }; class Yellow_Layer : public Color_Base { public: Yellow_Layer(double dens=1); // Return Yellow channel of input Yellow_Layer& filter(const Color_Base&); Yellow_Layer* clone() const; RGB_Densities to_rgb() const; // returns RGB(0,1,1) std::string model() const; std::string name() const; std::vector densities() const; private: double m_dens; // null operations Yellow_Layer& operator*= (double); Yellow_Layer& blend(const Color_Base&, double); Yellow_Layer& superpose(const Color_Base&); Yellow_Layer& invert(); }; class Black_Layer : public Color_Base { public: Black_Layer(double dens=1); // Return Black channel of input Black_Layer& filter(const Color_Base&); Black_Layer* clone() const; RGB_Densities to_rgb() const; // returns RGB(0,1,1) std::string model() const; std::string name() const; std::vector densities() const; private: double m_dens; // null operations Black_Layer& operator*= (double); Black_Layer& blend(const Color_Base&, double); Black_Layer& superpose(const Color_Base&); Black_Layer& invert(); }; } // end of namespace #endif /* EPIX_COLOR_SEP */ epix-1.2.21/Color_Utils.cc000066400000000000000000000056111417356203700153220ustar00rootroot00000000000000/* * Color_Utils.cc -- Functions for manipulating color densities * These functions are not normally available to users. * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * * Last Change: September 14, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include "Color_Utils.h" namespace ePiX { // Magic number: 8-bits per color channel const int COLORS(0xFF); // Force double to [0,1] double clip_to_unit(double t) { if (t < 0) return 0; else if (t > 1) return 1; else return t; } double rd(double arg) // may assume arg in [0,1] { return floor(COLORS*arg)/COLORS; // round down to nearest 8-bit } // represent a double in [0,1] by an 8-bit hex string std::string dtohex(double arg) // assumes arg>0 { using std::ios_base; int dens((int) floor(arg*COLORS)); std::ostringstream value; value.setf(ios_base::hex, ios_base::basefield); if (dens <= 0xF) // pad value << "0"; value << dens; return value.str(); } // saw2th:R -> [-2,2] is (1) a sawtooth function; (2) the identity on [-2,2] double saw2th(double x) { return x - 4*floor((x+2)/4); } /* * clippy(x): * 1.... ____ if (x >= 0) * .\ /. . return x <= 1 ? x : 1; * . \ / . . * 0......\____/ . . else * -2 -1 0 1 2 --> x return x >= -1 ? 0 : -1-x; */ double clippy(double x) { x = saw2th(x); return (x >= 0) ? ( x <= 1 ? x : 1 ) : ( x >= -1 ? 0 : -1-x ); } double make_r(double r, double g, double b) { return clip_to_unit(clippy( r) + clippy(-g) + clippy(-b)); } double make_g(double r, double g, double b) { return clip_to_unit(clippy(-r) + clippy( g) + clippy(-b)); } double make_b(double r, double g, double b) { return clip_to_unit(clippy(-r) + clippy(-g) + clippy( b)); } } // end of namespace epix-1.2.21/Color_Utils.h000066400000000000000000000040621417356203700151630ustar00rootroot00000000000000/* * Color_Utils.h -- Functions for manipulating color densities * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.17 * * Last Change: September 14, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_COLOR_UTILS #define EPIX_COLOR_UTILS #include namespace ePiX { double clip_to_unit(double t); // 0 if t<0, 1 if t>1, t otherwise double rd(double); // assumes arg is in [0,1] // represent a double in [0,1] by an 8-bit hex string std::string dtohex(double arg); // assumes arg>0 // saw2th:R -> [-2,2] is (1) a sawtooth function; (2) the identity on [-2,2] double saw2th(double x); /* * clippy(x): * 1.... ____ if (x >= 0) * .\ /. . return x <= 1 ? x : 1; * . \ / . . * 0......\____/ . . else * -2 -1 0 1 2 --> x return x >= -1 ? 0 : -1-x; */ double clippy(double x); double make_r(double r, double g, double b); double make_g(double r, double g, double b); double make_b(double r, double g, double b); } // end of namespace #endif /* EPIX_COLOR_UTILS */ epix-1.2.21/Complex.cc000066400000000000000000000130051417356203700144670ustar00rootroot00000000000000/* * Complex.cc -- ePiX::Complex number class implementation * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.18 * Last Change: March 21, 2020 * * * Copyright (C) 2007, 2008, 2017, 2020 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include "constants.h" #include "functions.h" #include "angle_units.h" #include "state.h" #include "Complex.h" namespace ePiX { Complex::Complex(double real, double imag) : m_real(real), m_imag(imag) { } Complex& Complex::operator += (const Complex& arg) { m_real += arg.m_real; m_imag += arg.m_imag; return *this; } Complex& Complex::operator -= (const Complex& arg) { m_real -= arg.m_real; m_imag -= arg.m_imag; return *this; } Complex& Complex::operator *= (const Complex& arg) { double tmp_re(m_real*arg.m_real - m_imag*arg.m_imag); double tmp_im(m_real*arg.m_imag + m_imag*arg.m_real); m_real = tmp_re; m_imag = tmp_im; return *this; } Complex& Complex::operator /= (const Complex& arg) { double tmp_re( m_real*arg.m_real + m_imag*arg.m_imag); double tmp_im(-m_real*arg.m_imag + m_imag*arg.m_real); double tmp_denom(pow(hypot(arg.m_real, arg.m_imag), 2)); m_real = tmp_re/tmp_denom; m_imag = tmp_im/tmp_denom; return *this; } Complex& Complex::conj() { m_imag *= -1; return *this; } const bool Complex::operator == (const Complex& arg) const { return m_real == arg.m_real && m_imag == arg.m_imag; } const bool Complex::operator != (const Complex& arg) const { return *this != arg; } double Complex::re() const { return m_real; } double Complex::im() const { return m_imag; } double Complex::Arg(int branch) const { if (norm() > EPIX_EPSILON) return atan2(m_imag, m_real)/the_angle_style().to_radians(1) + branch*full_turn(); else return 0; // arg(0, 0) = 0 } double Complex::norm() const { return hypot(m_real, m_imag); } //// non-member functions //// const Complex operator+ (Complex arg1, const Complex& arg2) { return arg1 += arg2; } const Complex operator- (Complex arg1, const Complex& arg2) { return arg1 -= arg2; } const Complex operator- (Complex arg) { return arg *= -1; } const Complex operator* (Complex arg1, const Complex& arg2) { return arg1 *= arg2; } const Complex operator/ (Complex arg1, const Complex& arg2) { return arg1 /= arg2; } double Arg(const Complex& arg, int branch) { return arg.Arg(branch); } double norm(const Complex& arg) { return arg.norm(); } Complex expC(const Complex& arg) { double rad(exp(arg.re())); return Complex(rad*Cos(arg.im()), rad*Sin(arg.im())); } Complex logC(const Complex& arg, int branch) { return Complex(log(arg.norm()), arg.Arg(branch)); } Complex sqrtC(const Complex& arg, int branch) { double rad(sqrt(arg.norm())), th(0.5*Arg(arg)); return Complex(rad*Cos(th), rad*Sin(th)); } Complex rootC(const Complex& arg, int order, int branch) { bool neg(order<0); double pwr(neg ? -1.0/order : 1.0/order); // nan if order == 0 double rad(pow(arg.norm(), pwr)), th(arg.Arg(branch) * pwr); if (neg) { rad = 1.0/rad; th = -th; } return Complex(rad*Cos(th), rad*Sin(th)); } Complex powC(const Complex& arg, int n) { bool neg(n<0); if (neg) n = -n; Complex tmp(1,0); while (n > 0) { tmp *= arg; --n; } return (neg ? Complex(1,0)/tmp : tmp); } Complex SinC(const Complex& arg) { return Complex(Sin(arg.re())*cosh(arg.im()), Cos(arg.re())*sinh(arg.im())); } Complex CosC(const Complex& arg) { return Complex(Cos(arg.re())*cosh(arg.im()), -Sin(arg.re())*sinh(arg.im())); } Complex TanC(const Complex& arg) { return SinC(arg)/CosC(arg); } Complex CotC(const Complex& arg) { return CosC(arg)/SinC(arg); } Complex SecC(const Complex& arg) { return Complex(1)/CosC(arg); } Complex CscC(const Complex& arg) { return Complex(1)/SinC(arg); } Complex SinhC(const Complex& arg) { return Complex(-Cos(arg.im())*sinh(arg.re()), Sin(arg.im())*cosh(arg.re())); } Complex CoshC(const Complex& arg) { return Complex(Cos(arg.im())*cosh(arg.re()), Sin(arg.im())*sinh(arg.re())); } Complex TanhC(const Complex& arg) { return SinhC(arg)/CoshC(arg); } Complex CothC(const Complex& arg) { return CoshC(arg)/SinhC(arg); } Complex SechC(const Complex& arg) { return Complex(1)/CoshC(arg); } Complex CschC(const Complex& arg) { return Complex(1)/SinhC(arg); } } // end of namespace epix-1.2.21/Complex.h000066400000000000000000000053731417356203700143420ustar00rootroot00000000000000/* * Complex.h -- ePiX::Complex number class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.18 * Last Change: September 17, 2017 * * * Copyright (C) 2007, 2008, 2017 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef EPIX_COMPLEX #define EPIX_COMPLEX namespace ePiX { class Complex { public: Complex(double real=0, double imag=0); Complex& operator += (const Complex& arg); Complex& operator -= (const Complex& arg); Complex& operator *= (const Complex& arg); Complex& operator /= (const Complex& arg); Complex& conj(); const bool operator == (const Complex& arg) const; const bool operator != (const Complex& arg) const; double re() const; double im() const; double Arg(int branch = 0) const; // Arg(0, 0) = 0; double norm() const; private: double m_real; double m_imag; }; // end of class Complex const Complex operator+ (Complex arg1, const Complex& arg2); const Complex operator- (Complex arg1, const Complex& arg2); const Complex operator- (Complex arg); const Complex operator* (Complex arg1, const Complex& arg2); const Complex operator/ (Complex arg1, const Complex& arg2); double Arg(const Complex& arg, int branch = 0); double norm(const Complex& arg); Complex expC(const Complex&); Complex logC(const Complex&, int branch=0); Complex sqrtC(const Complex&, int branch=0); Complex rootC(const Complex&, int order, int branch=0); Complex powC(const Complex&, int); Complex SinC(const Complex&); Complex CosC(const Complex&); Complex TanC(const Complex&); Complex CotC(const Complex&); Complex SecC(const Complex&); Complex CscC(const Complex&); Complex SinhC(const Complex&); Complex CoshC(const Complex&); Complex TanhC(const Complex&); Complex CothC(const Complex&); Complex SechC(const Complex&); Complex CschC(const Complex&); } // end of namespace #endif /* EPIX_COMPLEX */ epix-1.2.21/INSTALL000066400000000000000000000224501417356203700136060ustar00rootroot00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 6. Often, you can also type `make uninstall' to remove the installed files again. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. epix-1.2.21/Makefile.am000066400000000000000000000074511417356203700146150ustar00rootroot00000000000000## epix-1.x Makefile.am for top-level directory ## ## Process this file with automake to produce Makefile.in #if BUILD_CONTRIB # Must be in this order! # MAYBE_DIRS = contrib contrib/doc #endif # SUBDIRS = . samples doc $(MAYBE_DIRS) SUBDIRS = . samples doc # Now stuff for this directory specifically bin_SCRIPTS = epix elaps flix laps pkglib_LIBRARIES = libepix.a pkgdata_DATA = epix-lib.sh include_HEADERS = epix.h libepix_a_CXXSOURCES = active_screen.cc affine.cc angle_units.cc \ arrow_data.cc arrow_style.cc axis.cc camera.cc circle.cc clipping.cc \ Color_Base.cc Color.cc Color_CMY.cc Color_CMYK.cc Color_Gray.cc \ Color_Neutral.cc Color_RGB.cc Color_Sep.cc Color_Utils.cc \ Complex.cc cropping.cc curves.cc \ data_bins.cc data_file.cc data_mask.cc domain.cc \ eepic.cc facet.cc format.cc frac.cc frame.cc functions.cc \ geometry.cc glyph.cc halfspace.cc hatching.cc \ intersections.cc interval.cc label_data.cc label_style.cc \ legend.cc legend_item.cc legend_tile.cc \ length.cc lens.cc markers.cc marker_style.cc \ mask_diamond.cc mask_ellipse.cc mask_rectangle.cc \ paint_style.cc pairs.cc path.cc path_data.cc \ path_style.cc pen_arrow.cc pen_data.cc pen_fill.cc pen_line.cc \ picture.cc picture_data.cc plane.cc plots.cc pst.cc \ screen.cc screen_crop.cc screen_data.cc screen_mask.cc \ segment.cc Sline.cc spline.cc sphere.cc \ state.cc surface.cc tikz.cc tile.cc \ triples.cc utils.cc verbatim.cc # polygon.cc libepix_a_HDRS = $(libepix_a_CXXSOURCES:.cc=.h) constants.h \ crop_algorithms.h deriv.h edge_data.h enums.h errors.h \ map.h plot_algorithms.h spline_data.h libepix_a_SOURCES = $(libepix_a_CXXSOURCES) $(libepix_a_HDRS) libepix_a_LIBADD = $(libepix_a_CXXSOURCES:.cc=.o) pkginclude_HEADERS = $(libepix_a_HDRS) man_MANS = epix.1 elaps.1 flix.1 laps.1 if ENABLE_EPIX_EL EPIX_EL = epix.el endif EPIX_CONFFILES = bash_completions $(EPIX_EL) EPIX_NOTEFILES = AUTHORS BUGS ChangeLog COPYING INSTALL NEWS POST-INSTALL \ README THANKS VERSION EXTRA_DIST = $(bin_SCRIPTS) $(man_MANS) $(EPIX_CONFFILES) $(EPIX_NOTEFILES) \ $(pkgdata_DATA) CLEANFILES = *~ $(libepix_a_OBJECTS) $(bin_SCRIPTS) $(bin_SCRIPTS:=-local) \ epix.h epix.1 epix.el # Headers epix.h: $(libepix_a_HDRS) ./make_header # Scripts; we create local variants which will work during the build process epix elaps flix laps: %: %.in epix.el sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \ -e 's%@bindir\@%$(bindir)%;' \ -e 's%@pkglibdir\@%$(pkglibdir)%;' \ -e 's%@pkgdatadir\@%$(pkgdatadir)%;' \ -e 's%@includedir\@%$(includedir)%;' \ -e 's%@RUNTIME_COMPILER\@%$(RUNTIME_COMPILER)%;' $< > $@ sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \ -e 's%@bindir\@%$(CURDIR)%;' \ -e 's%@pkglibdir\@%$(CURDIR)%;' \ -e 's%@pkgdatadir\@%$(CURDIR)%;' \ -e 's%@includedir\@%$(CURDIR)%;' \ -e 's%@RUNTIME_COMPILER\@%$(CXX)%;' $< > $@-local chmod a+x $@ $@-local # libepix.a libepix.a: $(libepix_a_OBJECTS) ar -ru libepix.a $(libepix_a_OBJECTS) $(RANLIB) libepix.a # object file dependencies $(libepix_a_LIBADD): %.o: %.cc %.h # Manpage epix.1: epix.1.in sed -e 's%@docdir\@%$(docdir)%;' $< > $@ # emacs mode epix.el: epix.el.in sed -e 's%@infodir\@%$(infodir)%;' \ -e 's%@bashpath\@%$(BASH_PATH)%;' \ -e 's%@bindir\@%$(bindir)%;' $< > $@ # Extra things to install install-data-local: @echo; echo "Installing notes and configuration files" $(mkinstalldirs) $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config $(INSTALL_DATA) $(EPIX_NOTEFILES) $(DESTDIR)$(docdir)/notes $(INSTALL_DATA) $(EPIX_CONFFILES) $(DESTDIR)$(docdir)/config # This is being installed by install-exec, but should not be executable # install-exec-local: install-pkgdataDATA # chmod a-x $(DESTDIR)$(pkgdatadir)/epix-lib.sh uninstall-local: -rm -rf $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config -rmdir $(DESTDIR)$(docdir) epix-1.2.21/Makefile.in000066400000000000000000001564361417356203700146360ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(include_HEADERS) $(pkginclude_HEADERS) \ $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdatadir)" \ "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)" LIBRARIES = $(pkglib_LIBRARIES) AR = ar ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libepix_a_AR = $(AR) $(ARFLAGS) am__DEPENDENCIES_1 = active_screen.o affine.o angle_units.o \ arrow_data.o arrow_style.o axis.o camera.o circle.o clipping.o \ Color_Base.o Color.o Color_CMY.o Color_CMYK.o Color_Gray.o \ Color_Neutral.o Color_RGB.o Color_Sep.o Color_Utils.o \ Complex.o cropping.o curves.o data_bins.o data_file.o \ data_mask.o domain.o eepic.o facet.o format.o frac.o frame.o \ functions.o geometry.o glyph.o halfspace.o hatching.o \ intersections.o interval.o label_data.o label_style.o legend.o \ legend_item.o legend_tile.o length.o lens.o markers.o \ marker_style.o mask_diamond.o mask_ellipse.o mask_rectangle.o \ paint_style.o pairs.o path.o path_data.o path_style.o \ pen_arrow.o pen_data.o pen_fill.o pen_line.o picture.o \ picture_data.o plane.o plots.o pst.o screen.o screen_crop.o \ screen_data.o screen_mask.o segment.o Sline.o spline.o \ sphere.o state.o surface.o tikz.o tile.o triples.o utils.o \ verbatim.o libepix_a_DEPENDENCIES = $(am__DEPENDENCIES_1) am__objects_1 = active_screen.$(OBJEXT) affine.$(OBJEXT) \ angle_units.$(OBJEXT) arrow_data.$(OBJEXT) \ arrow_style.$(OBJEXT) axis.$(OBJEXT) camera.$(OBJEXT) \ circle.$(OBJEXT) clipping.$(OBJEXT) Color_Base.$(OBJEXT) \ Color.$(OBJEXT) Color_CMY.$(OBJEXT) Color_CMYK.$(OBJEXT) \ Color_Gray.$(OBJEXT) Color_Neutral.$(OBJEXT) \ Color_RGB.$(OBJEXT) Color_Sep.$(OBJEXT) Color_Utils.$(OBJEXT) \ Complex.$(OBJEXT) cropping.$(OBJEXT) curves.$(OBJEXT) \ data_bins.$(OBJEXT) data_file.$(OBJEXT) data_mask.$(OBJEXT) \ domain.$(OBJEXT) eepic.$(OBJEXT) facet.$(OBJEXT) \ format.$(OBJEXT) frac.$(OBJEXT) frame.$(OBJEXT) \ functions.$(OBJEXT) geometry.$(OBJEXT) glyph.$(OBJEXT) \ halfspace.$(OBJEXT) hatching.$(OBJEXT) intersections.$(OBJEXT) \ interval.$(OBJEXT) label_data.$(OBJEXT) label_style.$(OBJEXT) \ legend.$(OBJEXT) legend_item.$(OBJEXT) legend_tile.$(OBJEXT) \ length.$(OBJEXT) lens.$(OBJEXT) markers.$(OBJEXT) \ marker_style.$(OBJEXT) mask_diamond.$(OBJEXT) \ mask_ellipse.$(OBJEXT) mask_rectangle.$(OBJEXT) \ paint_style.$(OBJEXT) pairs.$(OBJEXT) path.$(OBJEXT) \ path_data.$(OBJEXT) path_style.$(OBJEXT) pen_arrow.$(OBJEXT) \ pen_data.$(OBJEXT) pen_fill.$(OBJEXT) pen_line.$(OBJEXT) \ picture.$(OBJEXT) picture_data.$(OBJEXT) plane.$(OBJEXT) \ plots.$(OBJEXT) pst.$(OBJEXT) screen.$(OBJEXT) \ screen_crop.$(OBJEXT) screen_data.$(OBJEXT) \ screen_mask.$(OBJEXT) segment.$(OBJEXT) Sline.$(OBJEXT) \ spline.$(OBJEXT) sphere.$(OBJEXT) state.$(OBJEXT) \ surface.$(OBJEXT) tikz.$(OBJEXT) tile.$(OBJEXT) \ triples.$(OBJEXT) utils.$(OBJEXT) verbatim.$(OBJEXT) am__objects_2 = am__objects_3 = $(am__objects_2) am_libepix_a_OBJECTS = $(am__objects_1) $(am__objects_3) libepix_a_OBJECTS = $(am_libepix_a_OBJECTS) SCRIPTS = $(bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/Color.Po ./$(DEPDIR)/Color_Base.Po \ ./$(DEPDIR)/Color_CMY.Po ./$(DEPDIR)/Color_CMYK.Po \ ./$(DEPDIR)/Color_Gray.Po ./$(DEPDIR)/Color_Neutral.Po \ ./$(DEPDIR)/Color_RGB.Po ./$(DEPDIR)/Color_Sep.Po \ ./$(DEPDIR)/Color_Utils.Po ./$(DEPDIR)/Complex.Po \ ./$(DEPDIR)/Sline.Po ./$(DEPDIR)/active_screen.Po \ ./$(DEPDIR)/affine.Po ./$(DEPDIR)/angle_units.Po \ ./$(DEPDIR)/arrow_data.Po ./$(DEPDIR)/arrow_style.Po \ ./$(DEPDIR)/axis.Po ./$(DEPDIR)/camera.Po \ ./$(DEPDIR)/circle.Po ./$(DEPDIR)/clipping.Po \ ./$(DEPDIR)/cropping.Po ./$(DEPDIR)/curves.Po \ ./$(DEPDIR)/data_bins.Po ./$(DEPDIR)/data_file.Po \ ./$(DEPDIR)/data_mask.Po ./$(DEPDIR)/domain.Po \ ./$(DEPDIR)/eepic.Po ./$(DEPDIR)/facet.Po \ ./$(DEPDIR)/format.Po ./$(DEPDIR)/frac.Po ./$(DEPDIR)/frame.Po \ ./$(DEPDIR)/functions.Po ./$(DEPDIR)/geometry.Po \ ./$(DEPDIR)/glyph.Po ./$(DEPDIR)/halfspace.Po \ ./$(DEPDIR)/hatching.Po ./$(DEPDIR)/intersections.Po \ ./$(DEPDIR)/interval.Po ./$(DEPDIR)/label_data.Po \ ./$(DEPDIR)/label_style.Po ./$(DEPDIR)/legend.Po \ ./$(DEPDIR)/legend_item.Po ./$(DEPDIR)/legend_tile.Po \ ./$(DEPDIR)/length.Po ./$(DEPDIR)/lens.Po \ ./$(DEPDIR)/marker_style.Po ./$(DEPDIR)/markers.Po \ ./$(DEPDIR)/mask_diamond.Po ./$(DEPDIR)/mask_ellipse.Po \ ./$(DEPDIR)/mask_rectangle.Po ./$(DEPDIR)/paint_style.Po \ ./$(DEPDIR)/pairs.Po ./$(DEPDIR)/path.Po \ ./$(DEPDIR)/path_data.Po ./$(DEPDIR)/path_style.Po \ ./$(DEPDIR)/pen_arrow.Po ./$(DEPDIR)/pen_data.Po \ ./$(DEPDIR)/pen_fill.Po ./$(DEPDIR)/pen_line.Po \ ./$(DEPDIR)/picture.Po ./$(DEPDIR)/picture_data.Po \ ./$(DEPDIR)/plane.Po ./$(DEPDIR)/plots.Po ./$(DEPDIR)/pst.Po \ ./$(DEPDIR)/screen.Po ./$(DEPDIR)/screen_crop.Po \ ./$(DEPDIR)/screen_data.Po ./$(DEPDIR)/screen_mask.Po \ ./$(DEPDIR)/segment.Po ./$(DEPDIR)/sphere.Po \ ./$(DEPDIR)/spline.Po ./$(DEPDIR)/state.Po \ ./$(DEPDIR)/surface.Po ./$(DEPDIR)/tikz.Po ./$(DEPDIR)/tile.Po \ ./$(DEPDIR)/triples.Po ./$(DEPDIR)/utils.Po \ ./$(DEPDIR)/verbatim.Po am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libepix_a_SOURCES) DIST_SOURCES = $(libepix_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) DATA = $(pkgdata_DATA) HEADERS = $(include_HEADERS) $(pkginclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \ INSTALL NEWS README THANKS TODO compile config.guess \ config.sub depcomp install-sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASH_PATH = @BASH_PATH@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ 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@ RUNTIME_COMPILER = @RUNTIME_COMPILER@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ 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@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # MAYBE_DIRS = contrib contrib/doc #endif # SUBDIRS = . samples doc $(MAYBE_DIRS) SUBDIRS = . samples doc # Now stuff for this directory specifically bin_SCRIPTS = epix elaps flix laps pkglib_LIBRARIES = libepix.a pkgdata_DATA = epix-lib.sh include_HEADERS = epix.h libepix_a_CXXSOURCES = active_screen.cc affine.cc angle_units.cc \ arrow_data.cc arrow_style.cc axis.cc camera.cc circle.cc clipping.cc \ Color_Base.cc Color.cc Color_CMY.cc Color_CMYK.cc Color_Gray.cc \ Color_Neutral.cc Color_RGB.cc Color_Sep.cc Color_Utils.cc \ Complex.cc cropping.cc curves.cc \ data_bins.cc data_file.cc data_mask.cc domain.cc \ eepic.cc facet.cc format.cc frac.cc frame.cc functions.cc \ geometry.cc glyph.cc halfspace.cc hatching.cc \ intersections.cc interval.cc label_data.cc label_style.cc \ legend.cc legend_item.cc legend_tile.cc \ length.cc lens.cc markers.cc marker_style.cc \ mask_diamond.cc mask_ellipse.cc mask_rectangle.cc \ paint_style.cc pairs.cc path.cc path_data.cc \ path_style.cc pen_arrow.cc pen_data.cc pen_fill.cc pen_line.cc \ picture.cc picture_data.cc plane.cc plots.cc pst.cc \ screen.cc screen_crop.cc screen_data.cc screen_mask.cc \ segment.cc Sline.cc spline.cc sphere.cc \ state.cc surface.cc tikz.cc tile.cc \ triples.cc utils.cc verbatim.cc # polygon.cc libepix_a_HDRS = $(libepix_a_CXXSOURCES:.cc=.h) constants.h \ crop_algorithms.h deriv.h edge_data.h enums.h errors.h \ map.h plot_algorithms.h spline_data.h libepix_a_SOURCES = $(libepix_a_CXXSOURCES) $(libepix_a_HDRS) libepix_a_LIBADD = $(libepix_a_CXXSOURCES:.cc=.o) pkginclude_HEADERS = $(libepix_a_HDRS) man_MANS = epix.1 elaps.1 flix.1 laps.1 @ENABLE_EPIX_EL_TRUE@EPIX_EL = epix.el EPIX_CONFFILES = bash_completions $(EPIX_EL) EPIX_NOTEFILES = AUTHORS BUGS ChangeLog COPYING INSTALL NEWS POST-INSTALL \ README THANKS VERSION EXTRA_DIST = $(bin_SCRIPTS) $(man_MANS) $(EPIX_CONFFILES) $(EPIX_NOTEFILES) \ $(pkgdata_DATA) CLEANFILES = *~ $(libepix_a_OBJECTS) $(bin_SCRIPTS) $(bin_SCRIPTS:=-local) \ epix.h epix.1 epix.el all: all-recursive .SUFFIXES: .SUFFIXES: .cc .o .obj am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): install-pkglibLIBRARIES: $(pkglib_LIBRARIES) @$(NORMAL_INSTALL) @list='$(pkglib_LIBRARIES)'; test -n "$(pkglibdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ $(INSTALL_DATA) $$list2 "$(DESTDIR)$(pkglibdir)" || exit $$?; } @$(POST_INSTALL) @list='$(pkglib_LIBRARIES)'; test -n "$(pkglibdir)" || list=; \ for p in $$list; do \ if test -f $$p; then \ $(am__strip_dir) \ echo " ( cd '$(DESTDIR)$(pkglibdir)' && $(RANLIB) $$f )"; \ ( cd "$(DESTDIR)$(pkglibdir)" && $(RANLIB) $$f ) || exit $$?; \ else :; fi; \ done uninstall-pkglibLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LIBRARIES)'; test -n "$(pkglibdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkglibdir)'; $(am__uninstall_files_from_dir) clean-pkglibLIBRARIES: -test -z "$(pkglib_LIBRARIES)" || rm -f $(pkglib_LIBRARIES) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_Base.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_CMY.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_CMYK.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_Gray.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_Neutral.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_RGB.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_Sep.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Color_Utils.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Complex.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Sline.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/active_screen.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/affine.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/angle_units.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrow_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrow_style.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/axis.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/camera.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/circle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clipping.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cropping.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curves.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_bins.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_mask.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eepic.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/facet.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frac.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/functions.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geometry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glyph.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/halfspace.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hatching.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intersections.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interval.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/label_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/label_style.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legend.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legend_item.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legend_tile.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/length.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lens.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/marker_style.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/markers.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mask_diamond.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mask_ellipse.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mask_rectangle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paint_style.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pairs.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path_style.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pen_arrow.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pen_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pen_fill.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pen_line.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/picture.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/picture_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plane.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plots.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pst.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/screen.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/screen_crop.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/screen_data.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/screen_mask.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/segment.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sphere.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spline.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/state.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/surface.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tikz.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tile.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/triples.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/verbatim.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) install-pkgincludeHEADERS: $(pkginclude_HEADERS) @$(NORMAL_INSTALL) @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ done uninstall-pkgincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) $(SCRIPTS) $(MANS) $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-pkglibLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f ./$(DEPDIR)/Color.Po -rm -f ./$(DEPDIR)/Color_Base.Po -rm -f ./$(DEPDIR)/Color_CMY.Po -rm -f ./$(DEPDIR)/Color_CMYK.Po -rm -f ./$(DEPDIR)/Color_Gray.Po -rm -f ./$(DEPDIR)/Color_Neutral.Po -rm -f ./$(DEPDIR)/Color_RGB.Po -rm -f ./$(DEPDIR)/Color_Sep.Po -rm -f ./$(DEPDIR)/Color_Utils.Po -rm -f ./$(DEPDIR)/Complex.Po -rm -f ./$(DEPDIR)/Sline.Po -rm -f ./$(DEPDIR)/active_screen.Po -rm -f ./$(DEPDIR)/affine.Po -rm -f ./$(DEPDIR)/angle_units.Po -rm -f ./$(DEPDIR)/arrow_data.Po -rm -f ./$(DEPDIR)/arrow_style.Po -rm -f ./$(DEPDIR)/axis.Po -rm -f ./$(DEPDIR)/camera.Po -rm -f ./$(DEPDIR)/circle.Po -rm -f ./$(DEPDIR)/clipping.Po -rm -f ./$(DEPDIR)/cropping.Po -rm -f ./$(DEPDIR)/curves.Po -rm -f ./$(DEPDIR)/data_bins.Po -rm -f ./$(DEPDIR)/data_file.Po -rm -f ./$(DEPDIR)/data_mask.Po -rm -f ./$(DEPDIR)/domain.Po -rm -f ./$(DEPDIR)/eepic.Po -rm -f ./$(DEPDIR)/facet.Po -rm -f ./$(DEPDIR)/format.Po -rm -f ./$(DEPDIR)/frac.Po -rm -f ./$(DEPDIR)/frame.Po -rm -f ./$(DEPDIR)/functions.Po -rm -f ./$(DEPDIR)/geometry.Po -rm -f ./$(DEPDIR)/glyph.Po -rm -f ./$(DEPDIR)/halfspace.Po -rm -f ./$(DEPDIR)/hatching.Po -rm -f ./$(DEPDIR)/intersections.Po -rm -f ./$(DEPDIR)/interval.Po -rm -f ./$(DEPDIR)/label_data.Po -rm -f ./$(DEPDIR)/label_style.Po -rm -f ./$(DEPDIR)/legend.Po -rm -f ./$(DEPDIR)/legend_item.Po -rm -f ./$(DEPDIR)/legend_tile.Po -rm -f ./$(DEPDIR)/length.Po -rm -f ./$(DEPDIR)/lens.Po -rm -f ./$(DEPDIR)/marker_style.Po -rm -f ./$(DEPDIR)/markers.Po -rm -f ./$(DEPDIR)/mask_diamond.Po -rm -f ./$(DEPDIR)/mask_ellipse.Po -rm -f ./$(DEPDIR)/mask_rectangle.Po -rm -f ./$(DEPDIR)/paint_style.Po -rm -f ./$(DEPDIR)/pairs.Po -rm -f ./$(DEPDIR)/path.Po -rm -f ./$(DEPDIR)/path_data.Po -rm -f ./$(DEPDIR)/path_style.Po -rm -f ./$(DEPDIR)/pen_arrow.Po -rm -f ./$(DEPDIR)/pen_data.Po -rm -f ./$(DEPDIR)/pen_fill.Po -rm -f ./$(DEPDIR)/pen_line.Po -rm -f ./$(DEPDIR)/picture.Po -rm -f ./$(DEPDIR)/picture_data.Po -rm -f ./$(DEPDIR)/plane.Po -rm -f ./$(DEPDIR)/plots.Po -rm -f ./$(DEPDIR)/pst.Po -rm -f ./$(DEPDIR)/screen.Po -rm -f ./$(DEPDIR)/screen_crop.Po -rm -f ./$(DEPDIR)/screen_data.Po -rm -f ./$(DEPDIR)/screen_mask.Po -rm -f ./$(DEPDIR)/segment.Po -rm -f ./$(DEPDIR)/sphere.Po -rm -f ./$(DEPDIR)/spline.Po -rm -f ./$(DEPDIR)/state.Po -rm -f ./$(DEPDIR)/surface.Po -rm -f ./$(DEPDIR)/tikz.Po -rm -f ./$(DEPDIR)/tile.Po -rm -f ./$(DEPDIR)/triples.Po -rm -f ./$(DEPDIR)/utils.Po -rm -f ./$(DEPDIR)/verbatim.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-includeHEADERS install-man \ install-pkgdataDATA install-pkgincludeHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-pkglibLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f ./$(DEPDIR)/Color.Po -rm -f ./$(DEPDIR)/Color_Base.Po -rm -f ./$(DEPDIR)/Color_CMY.Po -rm -f ./$(DEPDIR)/Color_CMYK.Po -rm -f ./$(DEPDIR)/Color_Gray.Po -rm -f ./$(DEPDIR)/Color_Neutral.Po -rm -f ./$(DEPDIR)/Color_RGB.Po -rm -f ./$(DEPDIR)/Color_Sep.Po -rm -f ./$(DEPDIR)/Color_Utils.Po -rm -f ./$(DEPDIR)/Complex.Po -rm -f ./$(DEPDIR)/Sline.Po -rm -f ./$(DEPDIR)/active_screen.Po -rm -f ./$(DEPDIR)/affine.Po -rm -f ./$(DEPDIR)/angle_units.Po -rm -f ./$(DEPDIR)/arrow_data.Po -rm -f ./$(DEPDIR)/arrow_style.Po -rm -f ./$(DEPDIR)/axis.Po -rm -f ./$(DEPDIR)/camera.Po -rm -f ./$(DEPDIR)/circle.Po -rm -f ./$(DEPDIR)/clipping.Po -rm -f ./$(DEPDIR)/cropping.Po -rm -f ./$(DEPDIR)/curves.Po -rm -f ./$(DEPDIR)/data_bins.Po -rm -f ./$(DEPDIR)/data_file.Po -rm -f ./$(DEPDIR)/data_mask.Po -rm -f ./$(DEPDIR)/domain.Po -rm -f ./$(DEPDIR)/eepic.Po -rm -f ./$(DEPDIR)/facet.Po -rm -f ./$(DEPDIR)/format.Po -rm -f ./$(DEPDIR)/frac.Po -rm -f ./$(DEPDIR)/frame.Po -rm -f ./$(DEPDIR)/functions.Po -rm -f ./$(DEPDIR)/geometry.Po -rm -f ./$(DEPDIR)/glyph.Po -rm -f ./$(DEPDIR)/halfspace.Po -rm -f ./$(DEPDIR)/hatching.Po -rm -f ./$(DEPDIR)/intersections.Po -rm -f ./$(DEPDIR)/interval.Po -rm -f ./$(DEPDIR)/label_data.Po -rm -f ./$(DEPDIR)/label_style.Po -rm -f ./$(DEPDIR)/legend.Po -rm -f ./$(DEPDIR)/legend_item.Po -rm -f ./$(DEPDIR)/legend_tile.Po -rm -f ./$(DEPDIR)/length.Po -rm -f ./$(DEPDIR)/lens.Po -rm -f ./$(DEPDIR)/marker_style.Po -rm -f ./$(DEPDIR)/markers.Po -rm -f ./$(DEPDIR)/mask_diamond.Po -rm -f ./$(DEPDIR)/mask_ellipse.Po -rm -f ./$(DEPDIR)/mask_rectangle.Po -rm -f ./$(DEPDIR)/paint_style.Po -rm -f ./$(DEPDIR)/pairs.Po -rm -f ./$(DEPDIR)/path.Po -rm -f ./$(DEPDIR)/path_data.Po -rm -f ./$(DEPDIR)/path_style.Po -rm -f ./$(DEPDIR)/pen_arrow.Po -rm -f ./$(DEPDIR)/pen_data.Po -rm -f ./$(DEPDIR)/pen_fill.Po -rm -f ./$(DEPDIR)/pen_line.Po -rm -f ./$(DEPDIR)/picture.Po -rm -f ./$(DEPDIR)/picture_data.Po -rm -f ./$(DEPDIR)/plane.Po -rm -f ./$(DEPDIR)/plots.Po -rm -f ./$(DEPDIR)/pst.Po -rm -f ./$(DEPDIR)/screen.Po -rm -f ./$(DEPDIR)/screen_crop.Po -rm -f ./$(DEPDIR)/screen_data.Po -rm -f ./$(DEPDIR)/screen_mask.Po -rm -f ./$(DEPDIR)/segment.Po -rm -f ./$(DEPDIR)/sphere.Po -rm -f ./$(DEPDIR)/spline.Po -rm -f ./$(DEPDIR)/state.Po -rm -f ./$(DEPDIR)/surface.Po -rm -f ./$(DEPDIR)/tikz.Po -rm -f ./$(DEPDIR)/tile.Po -rm -f ./$(DEPDIR)/triples.Po -rm -f ./$(DEPDIR)/utils.Po -rm -f ./$(DEPDIR)/verbatim.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS uninstall-includeHEADERS \ uninstall-local uninstall-man uninstall-pkgdataDATA \ uninstall-pkgincludeHEADERS uninstall-pkglibLIBRARIES uninstall-man: uninstall-man1 .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles am--refresh check check-am clean clean-cscope \ clean-generic clean-pkglibLIBRARIES cscope cscopelist-am ctags \ ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \ dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-compile distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-binSCRIPTS \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-includeHEADERS install-info \ install-info-am install-man install-man1 install-pdf \ install-pdf-am install-pkgdataDATA install-pkgincludeHEADERS \ install-pkglibLIBRARIES install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-binSCRIPTS \ uninstall-includeHEADERS uninstall-local uninstall-man \ uninstall-man1 uninstall-pkgdataDATA \ uninstall-pkgincludeHEADERS uninstall-pkglibLIBRARIES .PRECIOUS: Makefile #if BUILD_CONTRIB # Must be in this order! # Headers epix.h: $(libepix_a_HDRS) ./make_header # Scripts; we create local variants which will work during the build process epix elaps flix laps: %: %.in epix.el sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \ -e 's%@bindir\@%$(bindir)%;' \ -e 's%@pkglibdir\@%$(pkglibdir)%;' \ -e 's%@pkgdatadir\@%$(pkgdatadir)%;' \ -e 's%@includedir\@%$(includedir)%;' \ -e 's%@RUNTIME_COMPILER\@%$(RUNTIME_COMPILER)%;' $< > $@ sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \ -e 's%@bindir\@%$(CURDIR)%;' \ -e 's%@pkglibdir\@%$(CURDIR)%;' \ -e 's%@pkgdatadir\@%$(CURDIR)%;' \ -e 's%@includedir\@%$(CURDIR)%;' \ -e 's%@RUNTIME_COMPILER\@%$(CXX)%;' $< > $@-local chmod a+x $@ $@-local # libepix.a libepix.a: $(libepix_a_OBJECTS) ar -ru libepix.a $(libepix_a_OBJECTS) $(RANLIB) libepix.a # object file dependencies $(libepix_a_LIBADD): %.o: %.cc %.h # Manpage epix.1: epix.1.in sed -e 's%@docdir\@%$(docdir)%;' $< > $@ # emacs mode epix.el: epix.el.in sed -e 's%@infodir\@%$(infodir)%;' \ -e 's%@bashpath\@%$(BASH_PATH)%;' \ -e 's%@bindir\@%$(bindir)%;' $< > $@ # Extra things to install install-data-local: @echo; echo "Installing notes and configuration files" $(mkinstalldirs) $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config $(INSTALL_DATA) $(EPIX_NOTEFILES) $(DESTDIR)$(docdir)/notes $(INSTALL_DATA) $(EPIX_CONFFILES) $(DESTDIR)$(docdir)/config # This is being installed by install-exec, but should not be executable # install-exec-local: install-pkgdataDATA # chmod a-x $(DESTDIR)$(pkgdatadir)/epix-lib.sh uninstall-local: -rm -rf $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config -rmdir $(DESTDIR)$(docdir) # 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: epix-1.2.21/NEWS000066400000000000000000000066621417356203700132630ustar00rootroot00000000000000ePiX-1.2 -- NEWS Last Change: September 12, 2007 Please consult the following files as appropriate: INSTALL -- Detailed installation instructions NEWS (this file) -- Recent major changes (see ChangeLog for code changes) README -- General overview and information If you are new to ePiX, you may safely ignore this file. OVERVIEW ePiX 1.2.x has been written almost entirely from scratch. The drawing model is unchanged, and some old files will compile as is, but there are a few changes of syntax. SYNTAX CHANGES Generally, global variables have been deprecated or removed, and should be replaced by function calls in new files. * (Recommended) The global size variables x_min, x_max, y_min, y_max, x_size, and y_size should be replaced by the function calls xmin(), etc. (No underscores.) * (Mandatory) The global variable tix in a flix file must be manipulated through the function tix(). * (Suggested) The camera may be accessed through the function the_camera(). * (Mandatory) Camera orientation is controlled with functions named tilt, pan, and roll; each rotates the camera about an axis through the viewpoint, not through the target. * (Suggested) The size and bounding box may be given in one command, such as picture(P(-1,0), P(1,1), "4x3in"). The old syntax will be retained indefinitely. * (Mandatory) The command use_pstricks() is obsolete. * (Mandatory) Deprecated aliases no longer exist: triple (for the P class), D (for Deriv), and I (for Integral). Lowercase trig function names conflicted with the standard namespace and have been removed. * (Mandatory) The geometric object commands (circle, plane, segment, sphere) which used to create class objects now perform drawing. The classes are available with capitalized names (Circle, Plane, Segment, Sphere). NEW FEATURES * Output is cleanly separated from the internal representation. Figures may be written with a choice of macros---PSTricks, tikz, and eepic at present---and new output types are easily coded so long as the format supports arbitrary line segments, color, and the ability to place a LaTeX box at a specified location. * Colors are a manipulable data type, available in RGB, CMY, CMYK, and Gray models. xcolor-style operations, such as color model conversion, blending, superposition, and inversion are provided. The camera has a filter which affects the colors of all scene elements. Filters performing CMYK separation are provided. * Color filling is controlled with declarations, similarly to line colors in ePiX 1.0.x. Arrows and markers of type spot, dot, ddot, and~circ are now colored like other markers. Shaded surfaces may be colored with position-dependent functions. If a figure contains many shaded elements, a color-capable output format (PSTricks or tikz) should be used for efficiency. Filled regions are implemented as fine hatching in eepic. * An axis class provides coordinate axes with labels in a variety of styles: decimals or scientific notation of specified precision, fractions, trig fractions, logarithmic labels in arbitrary (integer) base, and user-supplied styles. * ePiX 1.2.x performs page layout. Sub-figures may be manipulated flexibly. The sample files give several applications. * Non-member intersection operators for Circles, Planes, Segments, and Spheres are provided. A ``non-generic'' intersection does not throw an exception, but instead returns an undrawable ``malformed'' object. epix-1.2.21/POST-INSTALL000066400000000000000000000102741417356203700143720ustar00rootroot00000000000000ePiX-1.2 -- POST-INSTALL Last Change: September 12, 2007 This file contains post-install configuration instructions for users. Please consult the following files as appropriate: INSTALL -- Detailed installation instructions NEWS -- Recent major changes (see ChangeLog for code changes) README -- General overview and information CONVENTIONS Lines starting with a "%" denote commands typed at a shell prompt. Lines starting with a "#" denote commands run as root. Don't type the prompt characters "%" or "#". :) "$(prefix)" stands for the complete path to the install directory, e.g. "/usr/local" or "/home/pootle/epix". Files mentioned below are installed in $(prefix)/share/doc/epix/config/ PROGRAMMABLE COMPLETION in bash If you type "epix c[TAB]", bash normally displays all files and directories whose name starts with "c". If programmable completion is enabled, bash will show only those files whose name starts with "c" *and* whose extension is that of an epix input file. Programmable completion in bash is available only with Version 2.05 and later, and you must install Ian MacDonald's bash completion package. Do a search for "bash programmable completion" at http://freshmeat.net The file "$(prefix)/share/doc/epix/config/bash_completions" contains programmable completion code for ePiX's shell scripts. These lines should be put into your bash config file (~/.bashrc) just after the line that includes the system-wide bash completion config file (q.v.). EMACS MODE Jay Belanger has kindly provided an emacs mode (epix.el) for working with epix source files. To use epix mode, put a copy of the file "epix.el" in your emacs load path; under GNU/Linux, an appropriate system directory is /usr/share/emacs. If you are not the superuser, use a directory such as ${HOME}/share/emacs: % mkdir -p ~/share/emacs % cp $(prefix)/share/doc/epix/config/epix.el ~/share/emacs/ Then add these lines to your .emacs file: ---(snip)--- (setq load-path (cons "~/share/emacs/" load-path)) (setq auto-mode-alist (cons '("\\.xp" . epix-mode) auto-mode-alist)) (autoload 'epix-mode "epix" "ePiX editing mode" t) (setq epix-mark-files-as-epix t) (setq epix-insert-template-in-empty-buffer t) (autoload 'flix-mode "epix" "ePiX editing mode" t) (setq auto-mode-alist (cons '("\\.flx" . flix-mode) auto-mode-alist)) ---(snip)--- Change "~/share/emacs/" in the first line as appropriate. If you open a new file with extension ".xp" or ".flx", emacs will automatically insert a matching preamble template and enter epix-mode or flix-mode, respectively. You can then compile and preview ePiX source files with emacs commands, or read the info file; please see epix.el for more details. If necessary (for instance, if your source file must have extension ".cc" for some reason), you can enter epix mode manually by typing M-x epix-mode in emacs. (The notation "M-x" means the emacs META key, usually ESC, followed by "x".) OTHER CONFIG FILES The files ~/.dvipsrc and ~/.epixrc affect the behavior of epix, elaps, and laps. The use of .epixrc is documented in the tutorial. Neither file is required in order to use ePiX. SETTING the PATH If you've installed ePiX but receive a "command not found" error message when trying to compile figures, you probably need to set your PATH, the shell environment variable listing the directories to be searched for executable code. As above, $(prefix) stands for the directory in which ePiX has been installed and "%" denotes a prompt. Below, $(prefix) must be replaced with the actual path. Issue the command % echo $PATH If $(prefix)/bin is not shown, you must determine what shell you're using and edit the appropriate shell configuration file. Do % ? If the response is: Put this line: Into the file: ------------------- -------------- -------------- bash: ?: command not found export PATH=$PATH:$(prefix)/bin ~/.bashrc ?: no match setenv PATH $PATH:$(prefix)/bin ~/.cshrc In the first case, do not put spaces around the equals sign. If the response is something else, please consult your system administrator for assistance. Now re-load the appropriate configuration file and try an ePiX command: % source ~/.bashrc % epix --help If this still doesn't work, please consult your system administrator. epix-1.2.21/README000066400000000000000000000073171417356203700134420ustar00rootroot00000000000000ePiX -- README Last Change: September 12, 2007 Please consult the following files as appropriate: INSTALL -- Detailed installation instructions NEWS -- Recent major changes (see ChangeLog for code changes) README (this file) -- General overview and information DESCRIPTION ePiX (pronounced like "epic" with a soft "k", playing on "TeX"), a collection of command line utilities for *nix, creates mathematically accurate figures, plots, and movies using easy-to-learn syntax. The output is expressly designed for use with LaTeX. The user interface resembles that of LaTeX itself: You prepare a short scene description in a text editor, then compile the input file into a picture. LaTeX- and web-compatible output types include a LaTeX picture-like environment written with PSTricks, tikz, or eepic macros; vector images (eps, ps, and pdf); and bitmap images (png, mng, gif). INSTALLATION Please see the "INSTALL" file. OVERVIEW ePiX's command-line conversion utilities are * epix: ePiX to eepic * elaps: ePiX and eepic to eps or pdf * laps: (La)TeX to PostScript * flix: ePiX to png or mng Each script prints a detailed help message when invoked with the option "-h" (help) DOCUMENTATION ePiX documentation is installed in $(prefix)/share/doc/epix, by default /usr/local/share/doc/epix. The manual, a complete description of ePiX's features and use, is installed as PostScript (for printing), hyperlinked PDF (for online reading), GNU info (for reference within emacs), and as LaTeX sources. DEVELOPER FILES The header files are installed in $(pkgincludedir), by default $(prefix)/include/epix. INTERNET DOWNLOAD SITES * http://math.holycross.edu/~ahwang/epix/ePiX.html Links to currently available packages and documentation, general information, sample images and animations, and summaries of the latest developments. * http://freshmeat.net/projects/epix Announcements of recent releases, project stats, and links. * http://www.ctan.org/tex-archive/graphics/epix/ Stable releases with synchronized documentation. * http://savannah.nongnu.org/cgi-bin/viewcvs/epix/1.2 The very latest source code by CVS. As with all free (GPL) software, the source code can be obtained on a floppy disk from the author by post ("snail mail"), in this case from: Andrew D. Hwang Dept. of Mathematics and Computer Science College of the Holy Cross Worcester, MA, 01610-2395, USA PYEPIX Though ePiX can be compiled and run using CygWin, Windows users may be more interested in Andrew Sterian's Pyepix package, an implementation of ePiX-1.0.4 in Python. Pyepix is available from http://claymore.engineer.gvsu.edu/~steriana/Python/index.html and requires Python 2.2 or newer. MAILING LIST There are two mailing lists, for users and for development issues. Please visit http://savannah.nongnu.org/mail/?group=epix to subscribe. COPYLEFT and DISTRIBUTION ePiX and its documentation are distributed under the terms of the GNU GPL. This program and its documentation come with ABSOLUTELY NO WARRANTY OF ANY KIND, INCLUDING ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. This is the same guarantee granted by all common software, including expensive, proprietary software whose quality you have no way to verify directly, and whose license you tacitly accept merely by opening the package. Feedback about this program (suggestions for features, etc.) is welcome. If you find this program useful, please consider making a contribution to the Free Software Foundation; see http://www.fsf.org --- Contact Information --- Andrew D. ("Andy") Hwang Dept. of Mathematics and Computer Science College of the Holy Cross Worcester, MA, 01610-2395, USA epix-1.2.21/Sline.cc000066400000000000000000000075471417356203700141500ustar00rootroot00000000000000/* * Sline.cc -- ePiX::Sline class (spherical arc) * * This file is part of ePiX, a preprocessor for creating high-quality * line figures in LaTeX * * Version 1.2.17 * Last Change: June 30, 2017 */ /* * Copyright (C) 2017 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "constants.h" #include "errors.h" #include "triples.h" #include "geometry.h" #include "Sline.h" namespace ePiX { Sline::Sline(const P& tail, const P& head) : m_tail(tail), m_head(head), m_malformed(false) { double mt(norm(tail)), mh(norm(head)); if (fabs(mt - 1) > EPIX_EPSILON) { epix_warning("First argument of Sline is not a unit vector"); if (EPIX_EPSILON < mt && mt < EPIX_INFTY) m_tail *= 1.0/mt; else m_malformed = true; } if (fabs(mh - 1) > EPIX_EPSILON) { epix_warning("Second argument of Sline is not a unit vector"); if (EPIX_EPSILON < mh && mh < EPIX_INFTY) m_head *= 1.0/mh; else m_malformed = true; } m_pole = m_tail * m_head; double mp(norm(m_pole)); if (mp < EPIX_EPSILON) { epix_warning("Collinear arguments in Sline"); m_pole = P(0,0,0); m_malformed = true; } else // well-formed; normalize pole m_pole *= 1.0/mp; } // end of Sline::Sline bool Sline::malformed() const { return m_malformed; } P Sline::pole() const { if (m_malformed) epix_warning("Pole of malformed Sline requested"); return m_pole; } double Sline::cosine() const { return (m_tail | m_head); } P Sline::operator * (const Sline& arg) const { if (m_malformed || arg.m_malformed) { epix_warning("Malformed argument(s) in Sline intersection"); return P(0,0,0); } else if (this -> collinear(arg)) { epix_warning("Collinear argument(s) in Sline intersection"); return P(0,0,0); } // else P val(m_pole * arg.m_pole); val *= 1.0/norm(val); if (0 < (m_tail | val)) return val; else return -val; } P Sline::reflect(const P& arg) const { return arg - 2*(m_pole | arg)*m_pole; } Sline Sline::reflect(const Sline& arg) const { return Sline(this -> reflect(arg.m_tail), this -> reflect(arg.m_head)); } bool Sline::collinear(const Sline& arg) const { return m_malformed || arg.m_malformed || norm(m_pole * arg.m_pole) < EPIX_EPSILON; } bool Sline::cuts(const Sline& arg) const // we and arg cross { return ((m_tail | arg.m_pole)*(m_head | arg.m_pole) < 0 && (m_pole | arg.m_tail)*(m_pole | arg.m_head) < 0); } void Sline::draw() const { this -> draw_front(); this -> draw_back(); } void Sline::draw_front() const // front arc { front_arc(m_tail, m_head); } void Sline::draw_back() const // back arc { back_arc(m_tail, m_head); } void Sline::draw_line() const { this -> line_back(); this -> line_front(); } void Sline::line_front() const { front_line(m_tail, m_head); } void Sline::line_back() const // back line { back_line(m_tail, m_head); } } // end of namespace epix-1.2.21/Sline.h000066400000000000000000000040171417356203700137770ustar00rootroot00000000000000/* * Sline.h -- ePiX::Sline class (spherical arc) * * This file is part of ePiX, a preprocessor for creating high-quality * line figures in LaTeX * * Version 1.2.17 * Last Change: June 29, 2017 */ /* * Copyright (C) 2017 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_SLINE #define EPIX_SLINE #include "frame.h" #include "sphere.h" namespace ePiX { class P; class Sline { public: Sline(const P& tail, const P& head); bool malformed() const; P pole() const; // normalization of tail * head double cosine() const; // cosine of subtended arc P operator * (const Sline&) const; // this.pole() * pole() P reflect(const P&) const; Sline reflect(const Sline&) const; bool collinear(const Sline&) const; bool cuts(const Sline&) const; // we cross arg void draw() const; // entire arc void draw_front() const; // front arc void draw_back() const; // back arc void draw_line() const; // entire line void line_front() const; // front line void line_back() const; // back line private: P m_tail; P m_head; P m_pole; bool m_malformed; // tail, head collinear }; // end of Sline class } // end of namespace #endif /* EPIX_SLINE */ epix-1.2.21/THANKS000066400000000000000000000043351417356203700134720ustar00rootroot00000000000000ePiX -- THANKS ePiX is built on the work of many people (unfortunately, most of whom I am unaware). A few of the obvious ones are, in alphabetical order: Donald E. Knuth TeX, and so much more Conrad Kwok eepic Leslie Lamport LaTeX Tim Morgan tpic Piet van Oostrum eepic Sunil Podar the epic style Richard M. Stallman the GNU project Till Tantau pgf/tikz Herbert Voß PSTricks Timothy Van Zandt ---------------------------------------------------------------------- Special thanks to: For: Jay Belanger The emacs mode Robin Blume-Kohout Design suggestions Svend Daugaard Pedersen Extended coordinate systems and plotting capability Julian Gilbey Getting ePiX to work with the GNU autotools Guido Gonzato Creating and maintaining the RPM Marcus Hanwell Data plotting and manipulation code Yvon Henel French translation of the manual Jean-Michel Sarlat http://melusine.eu.org/syracuse/epix/ Andrew Sterian Pyepix and its Windows package --- Ports contributors and maintainers: Crux: Younčs Hafri http://yhafri.club.fr/crux/index.html Debian: http://packages.debian.org/unstable/tex/epix Julian Gilbey FreeBSD: http://www.freshports.org/graphics/epix/ Tsuguru Kato Gentoo: http://packages.gentoo.org/search/?sstring=epix Markus Dittrich Danny van Dyk Christian Faulhammer Olivier Fisette Chris Gianelloni Michael Hanselmann Marcus Hanwell David Holm Peter Johanson Patrick Kursawe Tobias Scherbaum Markus Ullmann T2: http://www.t2-project.org/packages/epix.html René Rebe ---------------------------------------------------------------------- Many thanks to the following people, who have helped publicize ePiX or reported and/or patched bugs (in both code and documentation) Maik Beckmann Jay Belanger Felipe Paulo Guazzi Bergo Karl Berry Robin Blume-Kohout Aran Clauson Patrick Cousot Kjell Magne Fauske Stephen Gibson Julian Gilbey Dov Grobgeld Bob Grover Jim Hefferon Yvon Henel Hartmut Henkel Herng-Jeng Jou Walter A. Kehowski Paul T. Kornman Jacques L'helgoualc'h Kevin McKormick Ross Moore Mike Protts Thorsten Riess Jean-Michel Sarlat Neel Smith Michael Somos Andrew Sterian Ryszard Tanas Ben Tillman Kai Trukenmueller Torbjorn Vik Wenguang Wang Gabe Weaver Mariusz Wodzicki epix-1.2.21/TODO000066400000000000000000000000001417356203700132300ustar00rootroot00000000000000epix-1.2.21/VERSION000066400000000000000000000000071417356203700136170ustar00rootroot000000000000001.2.21 epix-1.2.21/active_screen.cc000066400000000000000000000036661417356203700157060ustar00rootroot00000000000000/* * active_screen.cc -- ePiX screen_broker class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.11 * Last Change: August 15, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "screen.h" #include "picture_data.h" #include "picture.h" #include "active_screen.h" namespace ePiX { screen_broker::screen_broker() { m_screens.push_front(&the_picture().the_canvas); } screen* screen_broker::active() const { return *(m_screens.begin()); } void screen_broker::push(screen& scr) { m_screens.push_front(&scr); } screen* screen_broker::pop() { std::list::const_iterator sp(m_screens.begin()); screen* val(*sp); if (++sp != m_screens.end()) m_screens.pop_front(); return val; } // global functions screen_broker& the_screen_stack() { static screen_broker* the_screen_broker(new screen_broker()); return *the_screen_broker; } screen* active_screen() { return the_screen_stack().active(); } } // end of namespace epix-1.2.21/active_screen.h000066400000000000000000000037231417356203700155420ustar00rootroot00000000000000/* * active_screen.h -- ePiX screen_broker class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.11 * Last Change: August 15, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * A screen_broker is a simple stack of screen*, permitting client code * to activate a screen then restore the state later. No attempt is made * to handle concurrent threads, but the global "deactivate" function * in picture.h prints a warning if its argument is not active. */ #ifndef EPIX_ACTIVE_SCREEN #define EPIX_ACTIVE_SCREEN #include namespace ePiX { class screen; class screen_broker { public: screen_broker(); // no need for destructor; we don't manage resources screen* active() const; void push(screen&); screen* pop(); private: std::list m_screens; // forbid copying screen_broker(const screen_broker&); screen_broker& operator= (const screen_broker&); }; screen_broker& the_screen_stack(); screen* active_screen(); } // end of namespace #endif /* EPIX_ACTIVE_SCREEN */ epix-1.2.21/affine.cc000066400000000000000000000150161417356203700143140ustar00rootroot00000000000000/* * affine.cc -- ePiX::affine class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.21 * Last Change: September 23, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "errors.h" #include "constants.h" #include "pairs.h" #include "triples.h" #include "functions.h" #include "affine.h" namespace ePiX { // rotate/reflect about (0,0) static pair __epix_rotate(double Cs, double Sn, const pair& arg) { double x(arg.x1()), y(arg.x2()); return pair(Cs*x - Sn*y, Sn*x + Cs*y); } static pair __epix_reflect(double Cs, double Sn, const pair& arg) { double x(arg.x1()), y(arg.x2()); return pair(Cs*x + Sn*y, Sn*x - Cs*y); } // identity affine::affine() : m_00(0,0), m_10(1,0), m_01(0,1) { } // images of (1,0), (0,1), (0,0) affine::affine(const pair& pr1, const pair& pr2, const pair& loc) : m_00(loc), m_10(pr1), m_01(pr2) { } affine::affine(const P& pr1, const P& pr2, const P& loc) : m_00(loc.x1(), loc.x2()), m_10(pr1.x1(), pr1.x2()), m_01(pr2.x1(), pr2.x2()) { } affine& affine::shift(const pair& arg) { m_00 += arg; m_10 += arg; m_01 += arg; return *this; } affine& affine::shift(const P& arg) { return shift(pair(arg.x1(), arg.x2())); } affine& affine::rotate(double theta, const pair& ctr) { const double Cs(Cos(theta)); const double Sn(Sin(theta)); // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; // rotate about origin and shift back m_00 = __epix_rotate(Cs, Sn, m_00) + ctr; m_10 = __epix_rotate(Cs, Sn, m_10) + ctr; m_01 = __epix_rotate(Cs, Sn, m_01) + ctr; return *this; } affine& affine::rotate(double theta, const P& ctr) { return rotate(theta, pair(ctr.x1(), ctr.x2())); } affine& affine::reflect(double theta, const pair& ctr) { const double Cs(Cos(2*theta)); const double Sn(Sin(2*theta)); // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; // reflect about origin and shift back m_00 = __epix_reflect(Cs, Sn, m_00) + ctr; m_10 = __epix_reflect(Cs, Sn, m_10) + ctr; m_01 = __epix_reflect(Cs, Sn, m_01) + ctr; return *this; } affine& affine::reflect(double theta, const P& ctr) { return reflect(theta, pair(ctr.x1(), ctr.x2())); } affine& affine::h_scale(double sc, const pair& ctr) { m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; const pair scale(sc, 1); m_00 = (m_00 & scale) + ctr; m_10 = (m_10 & scale) + ctr; m_01 = (m_01 & scale) + ctr; return *this; } affine& affine::h_scale(double sc, const P& ctr) { return h_scale(sc, pair(ctr.x1(), ctr.x2())); } affine& affine::v_scale(double sc, const pair& ctr) { // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; const pair scale(1, sc); m_00 = (m_00 & scale) + ctr; m_10 = (m_10 & scale) + ctr; m_01 = (m_01 & scale) + ctr; return *this; } affine& affine::v_scale(double sc, const P& ctr) { return v_scale(sc, pair(ctr.x1(), ctr.x2())); } affine& affine::scale(double sc, const pair& ctr) { // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; const pair scale(sc, sc); m_00 = (m_00 & scale) + ctr; m_10 = (m_10 & scale) + ctr; m_01 = (m_01 & scale) + ctr; return *this; } affine& affine::scale(double sc, const P& ctr) { return scale(sc, pair(ctr.x1(), ctr.x2())); } affine& affine::h_shear(double sc, const pair& ctr) { // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; m_00 += pair(sc*m_00.x2(), 0) + ctr; m_10 += pair(sc*m_10.x2(), 0) + ctr; m_01 += pair(sc*m_01.x2(), 0) + ctr; return *this; } affine& affine::h_shear(double sc, const P& ctr) { return h_shear(sc, pair(ctr.x1(), ctr.x2())); } affine& affine::v_shear(double sc, const pair& ctr) { // shift m_00 -= ctr; m_10 -= ctr; m_01 -= ctr; m_00 += pair(0, sc*m_00.x1()) + ctr; m_10 += pair(0, sc*m_10.x1()) + ctr; m_01 += pair(0, sc*m_01.x1()) + ctr; return *this; } affine& affine::v_shear(double sc, const P& ctr) { return v_shear(sc, pair(ctr.x1(), ctr.x2())); } affine& affine::postcomp(const affine& af) { m_00 = af(m_00); m_10 = af(m_10); m_01 = af(m_01); return *this; } affine& affine::invert() { m_10 -= m_00; m_01 -= m_00; const double denom(m_10.x1()*m_01.x2() - m_10.x2()*m_01.x1()); if (fabs(denom) < EPIX_EPSILON) { // restore m_10 += m_00; m_01 += m_00; epix_warning("affine not invertible, no action"); return *this; } // else compute inverse entries const double a11( m_01.x2()/denom); const double a12(-m_01.x1()/denom); const double a21(-m_10.x2()/denom); const double a22( m_10.x1()/denom); pair tmp_00(-a11*m_00.x1() + a12*m_00.x2(), a21*m_00.x1() - a22*m_00.x2()); m_00 = tmp_00; m_10 = m_00 + pair(a11, a21); m_01 = m_00 + pair(a12, a22); return *this; } // evaluation pair affine::operator() (const pair& arg) const { return m_00 + arg.x1()*(m_10 - m_00) + arg.x2()*(m_01 - m_00); } pair affine::operator() (const P& arg) const { return m_00 + arg.x1()*(m_10 - m_00) + arg.x2()*(m_01 - m_00); } // pre-composition affine affine::operator() (const affine& af) const { return affine(this->operator()(af.m_10), this->operator()(af.m_01), this->operator()(af.m_00)); } bool affine::reverses_orientation() const { const pair col1(m_10 - m_00); const pair col2(m_01 - m_00); return (col1.x1()*col2.x2() - col1.x2()*col2.x1() < -EPIX_EPSILON); } } // end of namespace epix-1.2.21/affine.h000066400000000000000000000065141417356203700141610ustar00rootroot00000000000000/* * affine.h -- ePiX::affine class (affine screen maps) * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.21 * Last Change: September 23, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * An affine map is constructed from the images of the "standard * triple" (0,0), (1,0), and (0,1). * * An affine map may be (post)-composed with translation, rotation, * reflection, scaling along either or both coordinate axes, shearing, * and may be inverted. An optional pair argument, defaulting to * (0,0), gives the center of the operation (if appropriate). * * An affine map may be post-composed via member function, and * pre-composed with operator syntax. The evaluation operator * returns the image of the argument. */ #ifndef EPIX_AFFINE #define EPIX_AFFINE #include "pairs.h" #include "triples.h" namespace ePiX { class affine { public: // the identity map affine(); // images of (1,0), (0,1), (0,0) affine(const pair&, const pair&, const pair& loc=pair(0,0)); affine(const P&, const P&, const P& loc=P(0,0)); // post-operations // translate by arg affine& shift(const pair& arg); affine& shift(const P& arg); // rotate by theta about ctr affine& rotate(double theta, const pair& ctr = pair(0,0)); affine& rotate(double theta, const P& ctr); // reflect in angle-theta line through ctr affine& reflect(double theta, const pair& ctr = pair(0,0)); affine& reflect(double theta, const P& ctr); // scale coord direction(s) fixing ctr affine& h_scale(double, const pair& ctr=pair(0,0)); affine& v_scale(double, const pair& ctr=pair(0,0)); affine& scale(double, const pair& ctr=pair(0,0)); affine& h_scale(double, const P& ctr); affine& v_scale(double, const P& ctr); affine& scale(double, const P& ctr); // shear, fixing ctr affine& h_shear(double, const pair& ctr=pair(0,0)); affine& v_shear(double, const pair& ctr=pair(0,0)); affine& h_shear(double, const P& ctr); affine& v_shear(double, const P& ctr); // post-compose affine& postcomp(const affine&); affine& invert(); // evaluation pair operator() (const pair&) const; pair operator() (const P&) const; // pre-compose affine operator() (const affine&) const; bool reverses_orientation() const; private: pair m_00; pair m_10; pair m_01; }; } // end of ePiX namespace #endif /* EPIX_AFFINE */ epix-1.2.21/angle_units.cc000066400000000000000000000044231417356203700153740ustar00rootroot00000000000000/* * angle_units.cc -- Implementation of ePiX's angular units * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.22 * Last Change: September 24, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "constants.h" #include "angle_units.h" namespace ePiX { angle_state::angle_state() : m_rad_per_unit(1.0), m_unit_per_deg(PI_180), m_rev_per_unit(1.0/TWO_PI) { } void angle_state::set_radians_mode() { m_rad_per_unit = 1.0; m_unit_per_deg = PI_180; m_rev_per_unit = 1.0/TWO_PI; } void angle_state::set_degrees_mode() { m_rad_per_unit = PI_180; m_unit_per_deg = 1.0; m_rev_per_unit = 1.0/360; } void angle_state::set_revolutions_mode() { m_rad_per_unit = TWO_PI; m_unit_per_deg = 1.0/360; m_rev_per_unit = 1.0; } double angle_state::to_radians(double t) { return t *= m_rad_per_unit; } // result lies in (-180, 180] double angle_state::to_degrees(double t) { t *= m_rev_per_unit; t -= 0.5; // shift half a turn t -= ceil(t); // map to (-1,0] t += 0.5; // shift to (-0.5, 0.5] return t *= 360.0; } double angle_state::from_degrees(double t) { return t *= m_unit_per_deg; } angle_state& the_angle_style() { static angle_state* the_angle_state(new angle_state()); return *the_angle_state; } } // end of namespace epix-1.2.21/angle_units.h000066400000000000000000000041211417356203700152310ustar00rootroot00000000000000/* * angle_units.h -- Implementation of ePiX's angular units * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.22 * Last Change: September 24, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file contains: * * [] angle_state * Angular mode (radians, degrees, revolutions) * * The class in this file implements backend for user-level global * functions defined in state.h. This header is not part of epix.h. */ #ifndef EPIX_ANGLE_UNITS #define EPIX_ANGLE_UNITS #include namespace ePiX { class angle_state { public: angle_state(); void set_radians_mode(); void set_degrees_mode(); void set_revolutions_mode(); // convert to radians, for angle-sensitive trig functions double to_radians(double t); // current angle units to/from degrees, for label_style double to_degrees(double t); double from_degrees(double t); private: // store state redundantly; small overhead, saves conversion double m_rad_per_unit; double m_unit_per_deg; double m_rev_per_unit; }; // end of class angle_state angle_state& the_angle_style(); } // end of namespace #endif /* EPIX_ANGLE_UNITS */ epix-1.2.21/arrow_data.cc000066400000000000000000000064511417356203700152120ustar00rootroot00000000000000/* * arrow_data.cc -- ePiX arrow class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.0-2 * Last Change: September 26, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include "triples.h" #include "functions.h" #include "camera.h" #include "edge_data.h" #include "path_data.h" #include "clipping.h" #include "arrow_style.h" #include "pen_data.h" #include "paint_style.h" #include "halfspace.h" #include "pen_line.h" #include "pen_arrow.h" #include "screen_data.h" #include "screen.h" #include "active_screen.h" #include "arrow_data.h" namespace ePiX { arrow_data::arrow_data(const std::vector

& pv, const P& base, const P& tip, double scale) : m_base(base), m_tip(tip), m_scale(scale), m_head_seen(!the_clip_box().clips(m_tip)) { for (unsigned int i=0; i edges; for (std::list::const_iterator p=tmp_data.m_shaft.begin(); p != tmp_data.m_shaft.end(); ++p) { edge2d tmp(mycam((*p).tail()), mycam((*p).head()), (*p).is_seen()); if (!tmp.is_null()) // endpoints not equal edges.push_back(tmp); } // draw shaft scr.m_screen->add_tile(pen_line(line.seen_through(mycam), under.seen_through(mycam), edges)); // and arrowhead if (m_head_seen) { const P dir(m_tip-m_base); const P to_cam(mycam.viewpt()-m_base); const double sin_th(norm(dir*to_cam)/(norm(dir)*norm(to_cam))); scr.m_screen->add_tile(pen_arrow(mycam(m_base), mycam(m_tip), line.seen_through(mycam), under.seen_through(mycam), m_scale, sin_th, m_head_seen)); } } void arrow_data::draw() const { photo(*active_screen(), cam(), the_paint_style().line_pen(), the_paint_style().base_pen()); } void arrow_data::draw(const pen_data& p1, const pen_data& p2) const { photo(*active_screen(), cam(), p1, p2); } } // end of namespace epix-1.2.21/arrow_data.h000066400000000000000000000037101417356203700150470ustar00rootroot00000000000000/* * arrow_data.h -- ePiX implementation class for arrows * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.8 * Last Change: July 19, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_ARROW_DATA #define EPIX_ARROW_DATA #include #include #include "triples.h" #include "edge_data.h" namespace ePiX { class Camera; class Color; class halfspace; class pen_data; class screen; // sequence of vertices class arrow_data { public: arrow_data(const std::vector

&, const P& base, const P& tip, double scale=1); arrow_data& clip(); arrow_data& clip_to(const halfspace&); void photo(screen&, const Camera&, const pen_data&, const pen_data&) const; void draw() const; void draw(const pen_data&, const pen_data&) const; private: // head data P m_base, m_tip; double m_scale; // size multiplier bool m_head_seen; // shaft std::list m_shaft; }; // end of class arrow_data } // end of namespace #endif /* EPIX_ARROW_DATA */ epix-1.2.21/arrow_style.cc000066400000000000000000000047171417356203700154440ustar00rootroot00000000000000/* * arrow_atyle.cc -- ePiX's arrowhead parameters * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.15 * Last Change: September 08, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * The class in this file implements backend for user-level global * functions defined in state.h. This header is not part of epix.h. */ #include #include "constants.h" #include "functions.h" // for snip_to #include "arrow_style.h" namespace ePiX { arrowhead_state::arrowhead_state() : m_width(0.5*AVG_AWIDTH), m_ratio(AVG_ARATIO), m_inset(AVG_INSET), m_fill(false) { } // set arrowhead_state& arrowhead_state::width(double w) { m_width = fabs(0.5*snip_to(w, MIN_AWIDTH, MAX_AWIDTH)); return *this; } arrowhead_state& arrowhead_state::ratio(double r) { m_ratio = fabs(snip_to(r, MIN_ARATIO, MAX_ARATIO)); return *this; } arrowhead_state& arrowhead_state::inset(double arg) { m_inset = snip_to(arg, MIN_INSET, MAX_INSET); return *this; } arrowhead_state& arrowhead_state::fill(bool fill) { m_fill = fill; return *this; } // get double arrowhead_state::width() const { return m_width; } double arrowhead_state::ratio() const { return m_ratio; } double arrowhead_state::inset() const { return m_inset; } bool arrowhead_state::fill() const { return m_fill; } arrowhead_state& the_arrowhead_style() { static arrowhead_state* the_arrowhead_state(new arrowhead_state()); return *the_arrowhead_state; } } // end of namespace epix-1.2.21/arrow_style.h000066400000000000000000000040641417356203700153010ustar00rootroot00000000000000/* * arrow_style.h -- ePiX's arrowhead parameters * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.15 * Last Change: September 08, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * The class in this file implements backend for user-level global * functions defined in state.h. This header is not part of epix.h. */ #ifndef EPIX_ARROW_STYLE #define EPIX_ARROW_STYLE namespace ePiX { // arrowhead parameters // Magic numbers: initialization constants class arrowhead_state { public: arrowhead_state(); // set arrowhead_state& width(double w); arrowhead_state& ratio(double r); arrowhead_state& inset(double arg); arrowhead_state& fill(bool); // get double width() const; double ratio() const; double inset() const; bool fill() const; private: double m_width; // Half-width of arrowheads in pt double m_ratio; // 2*Length/width ratio of arrowheads double m_inset; // Base indentation (frac of width*ratio) bool m_fill; }; // end of class arrowhead_state arrowhead_state& the_arrowhead_style(); } // end of namespace #endif /* EPIX_ARROW_STYLE */ epix-1.2.21/axis.cc000066400000000000000000000533411417356203700140330ustar00rootroot00000000000000/* * axis.cc -- ePiX axis class and global compatibility functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.5 * Last Change: May 11, 2008 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include "errors.h" #include "constants.h" #include "triples.h" #include "pairs.h" #include "frac.h" #include "functions.h" #include "utils.h" // for truncate #include "length.h" #include "picture.h" #include "camera.h" #include "screen.h" #include "active_screen.h" #include "curves.h" #include "label_data.h" #include "markers.h" #include "axis.h" namespace ePiX { // functions to get axis label from position double __epix_coord1(const P&); double __epix_coord2(const P&); double __epix_coord3(const P&); // string representations of double std::string __epix_coord_as_double(double x, unsigned int digits, unsigned int base); std::string __epix_coord_as_frac(double x, unsigned int digits, unsigned int base); std::string __epix_coord_as_trig_frac(double x, unsigned int digits, unsigned int base); std::string __epix_coord_as_log(double x, unsigned int digits, unsigned int base); std::string __epix_coord_as_log_sci(double x, unsigned int digits, unsigned int base); std::string __epix_coord_as_sci(double x, unsigned int digits, unsigned int base); //// Member functions //// // Constructor automatically selects coordinate function from endpoints axis::axis(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN) : m_tail(tail), m_head(head), m_major_segs(n), m_minor_segs(n), m_tick_ratio(0.5), m_align_ticks(c), m_offset(offset), m_align_labels(POSN), m_log_base(10), m_log(false), m_precision(DEF_PRECISION), m_coord(__epix_coord1), m_rep(__epix_coord_as_double) { m_log_tags.insert(1); int count(fabs(head.x1() - tail.x1()) < EPIX_EPSILON ? 0 : 1); if (EPIX_EPSILON < fabs(head.x2() - tail.x2())) { ++count; m_coord = __epix_coord2; } if (EPIX_EPSILON < fabs(head.x3() - tail.x3())) { ++count; m_coord = __epix_coord3; } if (1 < count) epix_warning("Axis not parallel to a Cartesian axis"); else if (count == 0) epix_warning("Degenerate coordinate axis"); } axis& axis::frac() { m_rep = __epix_coord_as_frac; return *this; } axis& axis::trig() { m_rep = __epix_coord_as_trig_frac; m_log = false; return *this; } axis& axis::sci() { if (m_log) m_rep = __epix_coord_as_log_sci; else m_rep = __epix_coord_as_sci; return *this; } // f(x, precision, base) returns a string representing x axis& axis::label_rep(std::string f(double, unsigned int, unsigned int)) { m_rep = f; return *this; } axis& axis::unmark(double arg) { m_omitted.insert(arg); return *this; } axis& axis::log(unsigned int base) { if (m_rep == __epix_coord_as_sci) // preserve sci notation m_rep = __epix_coord_as_log_sci; else m_rep = __epix_coord_as_log; if (2 <= base && base <= MAX_LOG_BASE) m_log_base = base; else epix_warning("axis::log base out of range, ignoring"); m_log = true; return *this; } // add logarithmic labels axis& axis::tag(double arg) { if (0 < arg && 2 < m_log_base) { int k((int) ceil(-std::log(arg)/std::log((double)m_log_base))); // arg != b^-k if (k == (int) floor(1 - std::log(arg)/std::log((double)m_log_base))) m_log_tags.insert(arg*pow(m_log_base, k)); } return *this; } axis& axis::tag235() { if (m_log_base == 10) { m_log_tags.insert(2); m_log_tags.insert(3); m_log_tags.insert(5); } return *this; } axis& axis::tags() { for (unsigned int i=1; i::const_iterator mp(m_omitted.begin()); while (mp != m_omitted.end() && EPIX_EPSILON < (fabs(tmp_lbl - *mp))) // keep label? ++mp; if (mp != m_omitted.end()) continue; // else label_data mk(loc, m_offset, m_rep(tmp_lbl, m_precision, m_log_base)); mk.align_to(m_align_labels).draw(); } else if (2 < m_log_base) // m_log { const double denom(std::log((double)m_log_base)); for (unsigned int i=0; i < m_major_segs; ++i) for (std::set::const_iterator tp=m_log_tags.begin(); tp != m_log_tags.end(); ++tp) { double dx(std::log(*tp)/denom); const P posn(m_tail + (i + dx)*major_step); label_data mk(posn, m_offset, m_rep(m_coord(posn), m_precision, m_log_base)); mk.align_to(m_align_labels).draw(); } // final label label_data mk(m_head, m_offset, m_rep(m_coord(m_head), m_precision, m_log_base)); mk.align_to(m_align_labels).draw(); } } void axis::draw() const { draw_ticks(); draw_labels(); } //// Misc utilities for global functions //// // raw Cartesian coordinates std::string __epix_axis_label(double x) { std::stringstream obuf; obuf << "$" << x << "$"; return obuf.str(); } std::string __epix_axis1_label(double x, double y) { return __epix_axis_label(x); } std::string __epix_axis2_label(double x, double y) { return __epix_axis_label(y); } // log coordinates std::string __epix_log_label(double x, const unsigned int base) { std::stringstream obuf; int N((int) ceil(x)); double k(pow(base, x - N)); // obuf.precision(2); obuf << "$"; if (k != 1.0) { k *= base; N -= 1; obuf << k << "\\times"; } obuf << base << "^{" << N << "}$"; return obuf.str(); } std::string __epix_log_axis1_label(double x, double y, const unsigned int base=10) { return __epix_log_label(x, base); } std::string __epix_log_axis2_label(double x, double y, const unsigned int base=10) { return __epix_log_label(y, base); } //// Global functions //// // Draws n+1 equally-spaced axis labels between and . // Uses the string-valued function f to generate label text. void __epix_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, std::string f(double, double), bool masked) { const P step((1.0/n)*(head - tail)); // get mask color, if any Color my_mask(masked ? the_label_style().mask_color() : Neutral()); if (masked && my_mask.is_unset()) my_mask = White(); for (unsigned int i=0; i<= n; ++i) { label_data mk(tail+i*step, offset, f); mk.mask_color(my_mask).align_to(POSN).draw(); } } //// User-visible commands //// // Not implemented with the axis class because masking behavior differs. void h_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(tail, head, n, offset, POSN, __epix_axis1_label, false); } void v_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(tail, head, n, offset, POSN, __epix_axis2_label, false); } void h_axis_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(tail, head, n, offset, POSN, __epix_axis1_label, true); } void v_axis_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(tail, head, n, offset, POSN, __epix_axis2_label, true); } // automatic endpoints void h_axis_labels(unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(P(active_screen()->h_min(), 0), P(active_screen()->h_max(), 0), n, offset, POSN, __epix_axis1_label, false); } void h_axis_masklabels(unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(P(active_screen()->h_min(), 0), P(active_screen()->h_max(), 0), n, offset, POSN, __epix_axis1_label, true); } void v_axis_labels(unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(P(0, active_screen()->v_min()), P(0, active_screen()->v_max()), n, offset, POSN, __epix_axis2_label, false); } void v_axis_masklabels(unsigned int n, const P& offset, epix_label_posn POSN) { __epix_axis_labels(P(0, active_screen()->v_min()), P(0, active_screen()->v_max()), n, offset, POSN, __epix_axis2_label, true); } // log axis labels void __epix_log_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, std::string f(double, double, unsigned int), bool masked, unsigned int base=10) { const P step((1.0/n)*(head - tail)); // get mask color, if any Color my_mask(masked ? the_label_style().mask_color() : Neutral()); if (masked && my_mask.is_unset()) my_mask = White(); for (unsigned int i=0; i<= n; ++i) { P here(tail+i*step); std::string text(f(here.x1(), here.x2(), base)); label_data mk(here, offset, text); mk.mask_color(my_mask).align_to(POSN).draw(); } } // number of labels specified void h_axis_log_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, unsigned int base) { __epix_log_axis_labels(tail, head, n, offset, POSN, __epix_log_axis1_label, false, base); } void v_axis_log_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, unsigned int base) { __epix_log_axis_labels(tail, head, n, offset, POSN, __epix_log_axis2_label, false, base); } // put labels at integer coordinates void h_axis_log_labels(const P& tail, const P& head, const P& offset, epix_label_posn POSN, unsigned int base) { if (EPIX_EPSILON < (tail.x2() - head.x2()) ) // non-horizontal axis return; const double my_y(tail.x2()); // get integers in horiz interval const int k_lo((int) ceil(min(tail.x1(), head.x1()))); const int k_hi((int) floor(max(tail.x1(), head.x1()))); h_axis_log_labels(P(k_lo, my_y), P(k_hi, my_y), k_hi - k_lo, offset, POSN, base); } void v_axis_log_labels(const P& tail, const P& head, const P& offset, epix_label_posn POSN, unsigned int base) { if (EPIX_EPSILON < (tail.x1() - head.x1()) ) // non-vertical axis return; const double my_x(tail.x1()); // get integers in vert interval const int k_lo((int) ceil(min(tail.x2(), head.x2()))); const int k_hi((int) floor(max(tail.x2(), head.x2()))); v_axis_log_labels(P(my_x, k_lo), P(my_x, k_hi), k_hi - k_lo, offset, POSN, base); } //// masked versions void h_axis_log_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, unsigned int base) { __epix_log_axis_labels(tail, head, n, offset, POSN, __epix_log_axis1_label, true, base); } void v_axis_log_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN, unsigned int base) { __epix_log_axis_labels(tail, head, n, offset, POSN, __epix_log_axis2_label, true, base); } // put labels at integer coordinates void h_axis_log_masklabels(const P& tail, const P& head, const P& offset, epix_label_posn POSN, unsigned int base) { if (EPIX_EPSILON < (tail.x2() - head.x2()) ) // non-horizontal axis return; const double my_y(tail.x2()); // get integers in horiz interval const int k_lo((int) ceil(min(tail.x1(), head.x1()))); const int k_hi((int) floor(max(tail.x1(), head.x1()))); h_axis_log_masklabels(P(k_lo, my_y), P(k_hi, my_y), k_hi - k_lo, offset, POSN, base); } void v_axis_log_masklabels(const P& tail, const P& head, const P& offset, epix_label_posn POSN, unsigned int base) { if (EPIX_EPSILON < (tail.x1() - head.x1()) ) // non-vertical axis return; const double my_x(tail.x1()); // get integers in vert interval const int k_lo((int) ceil(min(tail.x2(), head.x2()))); const int k_hi((int) floor(max(tail.x2(), head.x2()))); v_axis_log_masklabels(P(my_x, k_lo), P(my_x, k_hi), k_hi - k_lo, offset, POSN, base); } // Coordinate axes void h_axis(const P& tail, const P& head, unsigned int n, epix_label_posn AL) { line(tail, head); const P step((1.0/n)*(head - tail)); for (unsigned int i=0; i <= n; ++i) h_axis_tick(tail + i*step, AL); } void v_axis(const P& tail, const P& head, unsigned int n, epix_label_posn AL) { line(tail, head); const P step((1.0/n)*(head - tail)); for (unsigned int i=0; i <= n; ++i) v_axis_tick(tail + i*step, AL); } // n+1 = #ticks, num_pts = #segments used to draw void h_axis(unsigned int n, epix_label_posn AL) { h_axis(P(active_screen()->h_min(), 0), P(active_screen()->h_max(), 0), n, AL); } void v_axis(unsigned int n, epix_label_posn AL) { v_axis(P(0, active_screen()->v_min()), P(0, active_screen()->v_max()), n, AL); } void h_log_axis(const P& tail, const P& head, unsigned int segs, epix_label_posn AL, unsigned int base) { line(tail, head, 0, segs); const P step((1.0/segs)*(head - tail)); const double denom(log(base)); for (unsigned int i=0; i < segs; ++i) for (unsigned int j=1; jtl(), active_screen()->tr(), n, offset, POSN); A.align(b); return A; } axis bottom_axis(unsigned int n, const P& offset, epix_label_posn POSN) { axis A(active_screen()->bl(), active_screen()->br(), n, offset, POSN); A.align(t); return A; } axis left_axis(unsigned int n, const P& offset, epix_label_posn POSN) { axis A(active_screen()->bl(), active_screen()->tl(), n, offset, POSN); A.align(r); return A; } axis right_axis(unsigned int n, const P& offset, epix_label_posn POSN) { axis A(active_screen()->br(), active_screen()->tr(), n, offset, POSN); A.align(l); return A; } //// Formatting functions for ePiX::axis //// // standard functions to get axis label from position double __epix_coord1(const P& arg) { return arg.x1(); } double __epix_coord2(const P& arg) { return arg.x2(); } double __epix_coord3(const P& arg) { return arg.x3(); } // String representations of double // triples separated by commas std::string __epix_coord_as_double(double x, unsigned int digits, unsigned int base) { std::stringstream obuf; obuf.precision(digits); obuf << "$" << x << "$"; if (fabs(x) < 1000) return obuf.str(); // else insert commas std::string val(obuf.str()); std::string::size_type i(val.find_first_of(".")); if (i == std::string::npos) i = val.size()-1; while (4 < i) { i -= 3; val.insert(i, ","); } return val; } // [-]\frac{p}{q} std::string __epix_coord_as_frac(double x, unsigned int digits, unsigned int base) { ePiX::frac xfrac(x); std::stringstream obuf; obuf.precision(digits); obuf << "$"; if (xfrac.is_int()) obuf << xfrac.num() << "$"; else { if (xfrac.num() < 0) // x may have rounded to zero obuf << "-"; obuf << "\\frac{" << abs(xfrac.num()) << "}" << "{" << xfrac.denom() << "}$"; } return obuf.str(); } // [-]\frac{p\pi}{q} std::string __epix_coord_as_trig_frac(double x, unsigned int digits, unsigned int base) { ePiX::frac xfrac(x/M_PI); int xnum(xfrac.num()); std::stringstream obuf; obuf.precision(digits); obuf << "$"; if (xfrac.is_int()) { if (xnum == 0) obuf << 0 << "$"; else if (xnum == 1) obuf << "\\pi$"; else if (xnum == -1) obuf << "-\\pi$"; else obuf << xfrac.num() << "\\pi$"; } else // xfrac not an int { if (xfrac.num() < 0) obuf << "-"; if (abs(xnum) == 1) obuf << "\\frac{\\pi}{" << xfrac.denom() << "}$"; else obuf << "\\frac{" << abs(xnum) << "\\pi}" << "{" << xfrac.denom() << "}$"; } return obuf.str(); } // b^x std::string __epix_coord_as_log(double x, unsigned int digits, unsigned int base) { std::stringstream obuf; obuf.precision(digits); obuf << "$" << pow(base, x) << "$"; return obuf.str(); } // x = N + k, write as eval(b^k) \times b^N std::string __epix_coord_as_log_sci(double x, unsigned int digits, unsigned int base) { std::stringstream obuf; obuf.precision(digits); int N((int) ceil(x)); double k(pow(base, x - N)); obuf << "$"; if (k != 1.0) { k *= base; N -= 1; obuf << k << "\\times"; } obuf << base << "^{" << N << "}$"; return obuf.str(); } std::string __epix_coord_as_sci(double x, unsigned int digits, unsigned int base) { std::stringstream obuf; obuf.precision(digits); int sgn(x < 0 ? -1 : 1); x = fabs(x); if (x < EPIX_EPSILON) return "$0$"; // else const double tmp(log10(x)/log10(base)); int N((int) floor(tmp)); double k(pow(base, tmp - N)); obuf << "$"; if (sgn < 0) obuf << "-"; if (k != 1.0) obuf << k << "\\times"; obuf << base << "^{" << N << "}$"; return obuf.str(); } } // end of namespace epix-1.2.21/axis.h000066400000000000000000000150011417356203700136640ustar00rootroot00000000000000/* * axis.h -- Decorable coordinate axis class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.13 * Last Change: August 23, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_AXIS #define EPIX_AXIS #include #include #include "enums.h" #include "triples.h" namespace ePiX { class axis { public: axis(const P&, const P&, unsigned int n, const P& offset = P(0,0), epix_label_posn POSN=none); // attribute-setting axis& dec(); // default axis& frac(); // fractional labels axis& trig(); // fractions times pi axis& sci(); // scientific notation // f(x, precision, base) returns a string representing x axis& label_rep(std::string f(double, unsigned int, unsigned int)); // unmark selected location (non-log labels only) axis& unmark(double arg=0); // add or remove logarithmic tags ("sublabels") axis& log(unsigned int base=10); // log ticks and labels axis& tag(double); // put label at arg in log mode axis& tag235(); // tags at 2, 3, 5 in log10 mode axis& tags(); // tags at 2, ..., b-1 in logb mode axis& untag(); // remove all log tags axis& untag(double); // remove selected tag axis& align_labels(epix_label_posn); axis& align(epix_label_posn); // align tick marks // number of minor ticks per segment axis& subdivide(unsigned int); // set length of minor ticks axis& tick_ratio(double); // set precision for axis labels axis& precision(unsigned int digits=0); // 0: reset to default void draw_ticks() const; void draw_labels() const; void draw() const; private: P m_tail; P m_head; unsigned int m_major_segs; unsigned int m_minor_segs; double m_tick_ratio; epix_label_posn m_align_ticks; P m_offset; epix_label_posn m_align_labels; unsigned int m_log_base; bool m_log; unsigned int m_precision; double (*m_coord)(const P&); // value to place at arg // represent arg as string std::string (*m_rep)(double arg, unsigned int prec, unsigned int base); std::set m_omitted; std::set m_log_tags; }; // end of axis class // axes along sides of bounding box, ticks automatically aligned axis top_axis(unsigned int n, const P& offset=P(0,0), epix_label_posn POSN=t); axis bottom_axis(unsigned int n, const P& offset=P(0,0), epix_label_posn POSN=b); axis left_axis(unsigned int n, const P& offset=P(0,0), epix_label_posn POSN=l); axis right_axis(unsigned int n, const P& offset=P(0,0), epix_label_posn POSN=r); // Global functions from Version 1.0 void h_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none); void v_axis_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none); void h_axis_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none); void v_axis_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none); // Axis labels with default endpoints void h_axis_labels(unsigned int n, const P& offset, epix_label_posn POSN=none); void h_axis_masklabels(unsigned int n, const P& offset, epix_label_posn POSN=none); void v_axis_labels(unsigned int n, const P& offset, epix_label_posn POSN=none); void v_axis_masklabels(unsigned int n, const P& offset, epix_label_posn POSN=none); //// logarithmic labels //// // labels written $k x base^i$ at i + log_b(k) void h_axis_log_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void v_axis_log_labels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none, unsigned int base=10); // labels written $base^i$ at coord i void h_axis_log_labels(const P& tail, const P& head, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void v_axis_log_labels(const P& tail, const P& head, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void h_axis_log_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void v_axis_log_masklabels(const P& tail, const P& head, unsigned int n, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void h_axis_log_masklabels(const P& tail, const P& head, const P& offset, epix_label_posn POSN=none, unsigned int base=10); void v_axis_log_masklabels(const P& tail, const P& head, const P& offset, epix_label_posn POSN=none, unsigned int base=10); // Coordinate axes, specified by initial and final points, number of // tick marks. h/v_axis are identical except for style of tick marks. // n subintervals void h_axis(const P& tail, const P& head, unsigned int n, epix_label_posn align=c); void v_axis(const P& tail, const P& head, unsigned int n, epix_label_posn align=c); // Default endpoints (xmin(), 0), xmax(), 0), etc. void h_axis(unsigned int n = xsize(), epix_label_posn align=c); void v_axis(unsigned int n = ysize(), epix_label_posn align=c); void h_log_axis(const P& tail, const P& head, unsigned int segs, epix_label_posn align=c, unsigned int base=10); void v_log_axis(const P& tail, const P& head, unsigned int segs, epix_label_posn align=c, unsigned int base=10); } // end of namespace #endif /* EPIX_AXIS */ epix-1.2.21/bash_completions000066400000000000000000000005351417356203700160310ustar00rootroot00000000000000# If you use Ian MacDonald's bash completion package, put these # lines in either /etc/bash_completions or $HOME/.bashrc to use # programmable completion with ePiX. # complete -f -X '!*.@(xp|flx|cc|c|C|cpp)' epix complete -f -X '!*.@(tex|dtx|ltx)' laps complete -f -X '!*.@(xp|flx|cc|c|C|cpp|eepic)' elaps complete -f -X '!*.@(flx|cc|c|C|cpp)' flix epix-1.2.21/camera.cc000066400000000000000000000152311417356203700143130ustar00rootroot00000000000000/* * camera.cc -- ePiX::camera functions * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.21 * Last Change: September 22, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "errors.h" #include "constants.h" #include "pairs.h" #include "triples.h" #include "frame.h" #include "functions.h" #include "halfspace.h" #include "lens.h" #include "camera.h" namespace ePiX { // Need to initialize frame argument for Apple gcc; otherwise cam() // gets null vectors in frame()... Camera::Camera() : the_viewpt(P(0,0,EPIX_INFTY)), the_target(P(0,0,0)), the_orient(frame(E_1, E_2, E_3)), the_distance(EPIX_INFTY), the_clip_range(MIN_CLIP), the_filter(Neutral()), the_lens(new Perspective()) { } // viewpt, target, orient Camera::Camera(const P& vpt) : the_viewpt(vpt), the_target(P(0,0,0)), the_clip_range(MIN_CLIP), the_filter(Neutral()) { if (the_viewpt == P(0,0,0)) { epix_warning("Cannot initialize Camera at Origin, using (0, 0, oo)"); the_viewpt = P(0, 0, EPIX_INFTY); } P viewer(the_viewpt - the_target); the_distance = norm(viewer); viewer *= recip(norm(viewer)); // viewer is "eye", if possible E_3 is "sky" P tmp_sea(E_3*viewer); if (norm(tmp_sea) < EPIX_EPSILON) // we're on the "z-axis through vpt" tmp_sea = E_1; // eye*sea = sky the_orient = frame(tmp_sea, viewer*tmp_sea, viewer); adjust(); the_lens = new Perspective(); } Camera::Camera(const Camera& cam) : the_viewpt(cam.the_viewpt), the_target(cam.the_target), the_orient(cam.the_orient), the_distance(cam.the_distance), the_clip_range(cam.the_clip_range), the_filter(cam.the_filter), the_lens(cam.the_lens->clone()) { } Camera& Camera::operator= (const Camera& cam) { Lens* tmp_lens(cam.the_lens->clone()); the_lens = tmp_lens; the_viewpt = cam.the_viewpt; the_target = cam.the_target; the_orient =cam.the_orient; the_distance = cam.the_distance; the_clip_range = cam.the_distance; the_filter = cam.the_filter; return *this; } Camera::~Camera() { delete the_lens; } // rotate up/down Camera& Camera::tilt(double angle) { the_orient.rot1(-angle); the_target = the_viewpt + (-the_distance)*the_orient.eye(); return *this; } // rotate left/right Camera& Camera::pan(double angle) { the_orient.rot2(-angle); the_target = the_viewpt + (-the_distance)*the_orient.eye(); return *this; } // rotate about viewing axis Camera& Camera::roll(double angle) { the_orient.rot3(-angle); // target unchanged return *this; } // fix target, move viewpt radially along eye() Camera& Camera::range(double d) { if (d == 0) d = EPIX_INFTY; the_distance = d; the_viewpt = the_target + d*the_orient.eye(); return *this; } // fix viewpt, move target radially along eye() Camera& Camera::focus(double d) { if (d == 0) d = EPIX_INFTY; the_distance = d; the_target = the_viewpt - d*the_orient.eye(); return *this; } // clip everything behind this Camera& Camera::clip_range(double dist) { the_clip_range = (dist < MIN_CLIP ? MIN_CLIP : dist); return *this; } // fix target, set viewpt Camera& Camera::at(const P& vpt) { the_viewpt = vpt; adjust(); return *this; } // fix viewpt, set target Camera& Camera::look_at(const P& tgt) { the_target = tgt; adjust(); return *this; } Camera& Camera::at(double x1, double x2, double x3) { the_viewpt = P(x1, x2, x3); adjust(); return *this; } // fix viewpt, set target Camera& Camera::look_at(double x1, double x2, double x3) { the_target = P(x1, x2, x3); adjust(); return *this; } Camera& Camera::filter(const Color& filter) { the_filter=filter; return *this; } Camera& Camera::perspective() { delete the_lens; the_lens = new Perspective; return *this; } Camera& Camera::orthog() { delete the_lens; the_lens = new Orthog; return *this; } Camera& Camera::fisheye() { delete the_lens; the_lens = new Fisheye; return *this; } Camera& Camera::bubble() { delete the_lens; the_lens = new Bubble; return *this; } Color Camera::operator() (const Color& in_color) const { Color temp = the_filter; return temp.filter(in_color); } // lens interface pair Camera::operator() (const P& arg) const { return (*the_lens)(arg, the_orient, the_viewpt, the_distance); } bool Camera::is_linear() const { return (*the_lens).is_linear(); } bool Camera::needs_clip() const { return (*the_lens).needs_clip(); } halfspace Camera::clip_plane() const { const P N(-the_orient.eye()); return halfspace(the_viewpt + the_clip_range*N, N); } P Camera::eye() const { return the_orient.eye(); } P Camera::viewpt() const { return the_viewpt; } // private function void Camera::adjust() { P temp(the_target - the_viewpt); the_distance = norm(temp); if (the_distance < EPIX_EPSILON) { epix_warning("Cannot make viewpoint and target the same, no action"); return; } // else temp *= -1.0/the_distance; // reverse direction double z_ht(temp|E_3); // too close to "z-axis" through target? if (sqrt((1-z_ht)*(1+z_ht)) < EPIX_EPSILON) { if (z_ht >= 0) the_orient = frame(); else // z_ht < 0 the_orient = frame(-E_1, E_2, -E_3); } else // far enough from axis the_orient = frame(P(-temp.x2(), temp.x1(), 0), E_3, temp); } Camera& cam() { static Camera* the_camera(new Camera()); return *the_camera; } Camera& camera(cam()); } // end of namespace epix-1.2.21/camera.h000066400000000000000000000074331417356203700141620ustar00rootroot00000000000000/* * camera.h -- ePiX::Camera * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.21 * Last Change: September 22, 2007 * * * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA * * * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * A Camera has a location, orientation, lens, and color filter. The * viewer sits at given from the , in the direction * of the . The vectors and point horizontally to the * right and vertically upward on the screen. The viewing angle is * controlled by changing the viewer, target, and/or the distance * between them. * * The implementation data comprise: * - a frame ({sea, sky, eye}, with the intuitive meanings:) * - a viewpoint * - a target (at the center of the field of view) * - the distance from the viewpoint to the target * - a "filter" color, Neutral by default, for color separation, etc. * - a Lens * * A Lens is a mapping P -> pair. In the implementation, the Camera * ("body") passes the orientation, target, and distance to the Lens * operator. */ #ifndef EPIX_CAMERA #define EPIX_CAMERA #include "triples.h" #include "frame.h" #include "Color.h" namespace ePiX { class halfspace; class Lens; class pair; class Camera { public: Camera(); Camera(const P& vpt); Camera(const Camera&); Camera& operator= (const Camera&); ~Camera(); // rotate Camera& tilt(double angle); // up/down (pitch) Camera& pan(double angle); // left/right (yaw) Camera& roll(double angle); // about viewing axis // fix target, move viewpt radially along eye() Camera& range(double); // fix viewpt, move target radially along eye() Camera& focus(double); // set clip distance Camera& clip_range(double); Camera& at(const P& arg); // fix target, set viewpt Camera& look_at(const P& arg); // fix viewpt, set target // alternative syntax Camera& at(double, double, double); Camera& look_at(double, double, double); Camera& filter(const Color&); // set lens Camera& perspective(); // default Camera& orthog(); // faster Camera& fisheye(); Camera& bubble(); // Functions for internal use // Camera maps Color operator() (const Color&) const; // filter pair operator() (const P&) const; // lens map bool is_linear() const; // lens preserves lines? bool needs_clip() const; // lens needs scene pre-clipping halfspace clip_plane() const; // situation P eye() const; P viewpt() const; private: P the_viewpt; // center of projection P the_target; // mapped to Screen origin frame the_orient; // our {sea, sky, eye} double the_distance; double the_clip_range; Color the_filter; void adjust(); // re-orient according to target, viewpt Lens* the_lens; }; // end of class Camera // global Camera Camera& cam(); extern Camera& camera; } // end of namespace #endif /* EPIX_CAMERA */ epix-1.2.21/circle.cc000066400000000000000000000100061417356203700143170ustar00rootroot00000000000000/* * circle.cc -- ePiX::Circle class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.9 * Last Change: July 30, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "errors.h" #include "constants.h" #include "triples.h" #include "state.h" #include "segment.h" #include "frame.h" #include "camera.h" #include "path.h" #include "paint_style.h" #include "intersections.h" #include "circle.h" namespace ePiX { static const double EPS(EPIX_EPSILON); Circle::Circle(const P& ctr, const double rad, const P& perp) : m_center(ctr), m_radius(rad), m_perp(perp), m_malformed(false) { double temp(norm(perp)); if (temp < EPS) { epix_warning("Degenerate circle normal, using (0,0,1)"); m_perp=E_3; } else m_perp *= (1.0/temp); // normalize } // point-and-center constructor -- parallel to (x1,x2,0)-plane Circle::Circle(const P& ctr, const P& pt) : m_center(ctr), m_radius(norm(pt - ctr)), m_perp(E_3), m_malformed(false) { if (fabs(E_3|(pt - ctr)) > EPS) epix_warning("Circle requested with point not in (x,y) plane"); } // three-point circle constructor Circle::Circle(const P& pt1, const P& pt2, const P& pt3) : m_malformed(false) { P D21(pt2-pt1), D31(pt3-pt1), D32(pt3-pt2), N(D21*D31); if (norm(D21) < EPS || norm(D31) < EPS || norm(D32) < EPS || norm(N) < EPS) { epix_warning("Collinear points in Circle constructor"); m_malformed = true; } else { m_perp = (1.0/norm(N))*N; P q2(0.5*(pt1+pt2)); P dir2(m_perp*(q2-pt1)); P q3(0.5*(pt1+pt3)); P dir3(m_perp*(q3-pt1)); m_center = Segment(q2, q2+dir2)*Segment(q3, q3+dir3); m_radius = norm(m_center - pt1); } } Circle::Circle(bool tag) : m_malformed(true) { } P Circle::center() const { return m_center; } double Circle::radius() const { return m_radius; } P Circle::perp() const { return m_perp; } bool Circle::malformed() const { return m_malformed; } // translation Circle& Circle::shift(const P& arg) { if (!m_malformed) m_center += arg; return *this; } Circle& Circle::move_to(const P& arg) { if (!m_malformed) m_center = arg; return *this; } // scale radius Circle& Circle::scale(const double c) { if (!m_malformed) m_radius *= c; return *this; } // project to screen by camera void Circle::draw() const { if (m_malformed) return; // else double r(m_radius); P N(m_perp); frame axes; // standard basis if (EPS <= norm(N*E_3)) axes = frame(E_3*N, E_3, N); path data(m_center, r*(axes.sea()), r*(axes.sky()), 0, full_turn()); data.close().fill(the_paint_style().fill_flag()); data.draw(); } //// global functions //// void circle(const P& ctr, const double rad, const P& perp) { Circle C(ctr, rad, perp); C.draw(); } void circle(const P& ctr, const P& pt) { Circle C(ctr, pt); C.draw(); } void circle(const P& pt1, const P& pt2, const P& pt3) { Circle C(pt1, pt2, pt3); C.draw(); } } // end of namespace epix-1.2.21/circle.h000066400000000000000000000052111417356203700141630ustar00rootroot00000000000000/* * circle.h -- ePiX::Circle class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.9 * Last Change: July 30, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file provides: * * The Circle class (center, radius, unit normal). * * - Circle() (defaults to origin, unit radius, in (x1,x2,0)-plane * - Circle(ctr, pt) (parallel to (x1,x2,0)-plane, center ctr, through pt) * - Circle(pt1, pt2, pt3) (arbitrary non-collinear points) * - center(), radius(), perp() * - affine operations: shift(P), move_to(P), scale(double) * - draw() (ePiX ellipse) */ #ifndef EPIX_CIRCLE #define EPIX_CIRCLE #include "triples.h" namespace ePiX { class Circle { public: // defaults to unit circle in (x1,x2,0) plane Circle(const P& ctr=P(0,0,0), double rad=1, const P& perp=E_3); Circle(const P& ctr, const P& pt); // center, and point, normal = E_3 Circle(const P& pt1, const P& pt2, const P& pt3); // three points Circle(bool); // malformed Circle for intersection operators P center() const; double radius() const; P perp() const; bool malformed() const; // translate Circle& shift(const P&); Circle& move_to(const P&); // scale radius by c Circle& scale(double c); void draw() const; private: P m_center; double m_radius; P m_perp; // unit normal, even if rad = 0 bool m_malformed; }; // end of Circle class // global object-drawing commands void circle(const P& ctr=P(0,0,0), double rad=1, const P& perp=E_3); void circle(const P& ctr, const P& pt); // center, and point, normal = E_3 void circle(const P& pt1, const P& pt2, const P& pt3); // three points } // end of namespace #endif /* EPIX_CIRCLE */ epix-1.2.21/clipping.cc000066400000000000000000000074351417356203700146770ustar00rootroot00000000000000/* * clipping.cc -- Implementation of ePiX's current drawing state * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.13 * Last Change: August 23, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "constants.h" #include "triples.h" #include "functions.h" #include "clipping.h" namespace ePiX { typedef std::list::const_iterator Hp; static const double INF(EPIX_INFTY); clip_state::clip_state(const P& arg1, const P& arg2) { double min1(min(arg1.x1(), arg2.x1())), max1(max(arg1.x1(), arg2.x1())); double min2(min(arg1.x2(), arg2.x2())), max2(max(arg1.x2(), arg2.x2())); double min3(min(arg1.x3(), arg2.x3())), max3(max(arg1.x3(), arg2.x3())); double avg1(0.5*(min1+max1)), avg2(0.5*(min2+max2)), avg3(0.5*(min3+max3)); // inward-pointing faces of clip_box m_walls.push_back(halfspace(P(max1,avg2,avg3), P(-1, 0, 0))); m_walls.push_back(halfspace(P(min1,avg2,avg3), P( 1, 0, 0))); m_walls.push_back(halfspace(P(avg1,max2,avg3), P( 0,-1, 0))); m_walls.push_back(halfspace(P(avg1,min2,avg3), P( 0, 1, 0))); m_walls.push_back(halfspace(P(avg1,avg2,max3), P( 0, 0,-1))); m_walls.push_back(halfspace(P(avg1,avg2,min3), P( 0, 0, 1))); } clip_state::clip_state() { m_walls.push_back(halfspace(P( INF, 0, 0), P(-1, 0, 0))); m_walls.push_back(halfspace(P(-INF, 0, 0), P( 1, 0, 0))); m_walls.push_back(halfspace(P( 0, INF, 0), P( 0,-1, 0))); m_walls.push_back(halfspace(P( 0,-INF, 0), P( 0, 1, 0))); m_walls.push_back(halfspace(P( 0, 0, INF), P( 0, 0,-1))); m_walls.push_back(halfspace(P( 0, 0,-INF), P( 0, 0, 1))); } clip_state& clip_state::add_face(const P& loc, const P& perp) { if (EPIX_EPSILON < norm(perp)) m_extras.push_back(halfspace(loc, perp)); return *this; } clip_state& clip_state::clear_extras() { m_extras.clear(); return *this; } bool clip_state::clips(const P& arg) const { for (Hp p=m_walls.begin(); p != m_walls.end(); ++p) if ( (*p).clips(arg) ) return true; for (Hp p=m_extras.begin(); p != m_extras.end(); ++p) if ( (*p).clips(arg) ) return true; return false; } // return reference to clipped argument std::list& clip_state::clip_path(std::list& L) const { for (Hp p=m_walls.begin(); p != m_walls.end(); ++p) (*p).clip_path(L); for (Hp p=m_extras.begin(); p != m_extras.end(); ++p) (*p).clip_path(L); return L; } std::list& clip_state::clip_loop(std::list& L) const { for (Hp p=m_walls.begin(); p != m_walls.end(); ++p) (*p).clip_loop(L); for (Hp p=m_extras.begin(); p != m_extras.end(); ++p) (*p).clip_loop(L); return L; } clip_state& the_clip_box() { static clip_state* the_clip_state(new clip_state()); return *the_clip_state; } } // end of namespace epix-1.2.21/clipping.h000066400000000000000000000041111417356203700145250ustar00rootroot00000000000000/* * clipping.h -- ePiX's clip box * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.13 * Last Change: August 23, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * The class in this file implements backend for user-level global * functions defined in state.h. This header is not part of epix.h. */ #ifndef EPIX_CLIPPING #define EPIX_CLIPPING #include #include "edge_data.h" #include "halfspace.h" namespace ePiX { class P; class clip_state { public: // create inward-pointing faces of clip_box clip_state(const P& arg1, const P& arg2); clip_state(); // very large box by default // add and remove faces clip_state& add_face(const P& loc, const P& perp); clip_state& clear_extras(); bool clips(const P&) const; // return reference to clipped argument std::list& clip_path(std::list&) const; std::list& clip_loop(std::list&) const; private: std::list m_walls; // always present std::list m_extras; // user-added }; // end of class clip_state clip_state& the_clip_box(); } // end of namespace #endif /* EPIX_CLIPPING */ epix-1.2.21/config.guess000077500000000000000000001260511417356203700150770ustar00rootroot00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2006-02-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS_NT-*:*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[345]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[345]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: epix-1.2.21/config.sub000077500000000000000000000771301417356203700145450ustar00rootroot00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2006-02-23' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m32c) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; m32c-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: epix-1.2.21/configure000077500000000000000000005455571417356203700145060ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for epix 1.2.21. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 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='epix' PACKAGE_TARNAME='epix' PACKAGE_VERSION='1.2.21' PACKAGE_STRING='epix 1.2.21' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="utils.h" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC RUNTIME_COMPILER BASH_PATH ENABLE_EPIX_EL_FALSE ENABLE_EPIX_EL_TRUE RANLIB LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__nodep 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_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking enable_epix_el with_bash with_runtime ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures epix 1.2.21 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/epix] --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 _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of epix 1.2.21:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-epix-el Install emacs mode for ePiX files Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-bash= The path to bash --with-runtime= The runtime compiler Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF epix configure 1.2.21 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_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_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func 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 epix $as_me 1.2.21, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='epix' VERSION='1.2.21' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi { $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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done 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='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi { $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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi { $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 # Check whether --enable-epix-el was given. if test "${enable_epix_el+set}" = set; then : enableval=$enable_epix_el; enable_epix_el=${enableval-yes} else enable_epix_el=yes fi if test "$enable_epix_el" = yes; then ENABLE_EPIX_EL_TRUE= ENABLE_EPIX_EL_FALSE='#' else ENABLE_EPIX_EL_TRUE='#' ENABLE_EPIX_EL_FALSE= fi # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_BASH_PATH+:} false; then : $as_echo_n "(cached) " >&6 else case $BASH_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_BASH_PATH="$BASH_PATH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_BASH_PATH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_BASH_PATH" && ac_cv_path_BASH_PATH="/bin/bash" ;; esac fi BASH_PATH=$ac_cv_path_BASH_PATH if test -n "$BASH_PATH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_PATH" >&5 $as_echo "$BASH_PATH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --with-bash was given. if test "${with_bash+set}" = set; then : withval=$with_bash; BASH_PATH=$withval fi # Extract the first word of "g++", so it can be a program name with args. set dummy g++; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_RUNTIME_COMPILER+:} false; then : $as_echo_n "(cached) " >&6 else case $RUNTIME_COMPILER in [\\/]* | ?:[\\/]*) ac_cv_path_RUNTIME_COMPILER="$RUNTIME_COMPILER" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RUNTIME_COMPILER="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_RUNTIME_COMPILER" && ac_cv_path_RUNTIME_COMPILER="g++" ;; esac fi RUNTIME_COMPILER=$ac_cv_path_RUNTIME_COMPILER if test -n "$RUNTIME_COMPILER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTIME_COMPILER" >&5 $as_echo "$RUNTIME_COMPILER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --with-runtime was given. if test "${with_runtime+set}" = set; then : withval=$with_runtime; RUNTIME_COMPILER=$withval fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac for ac_func in strtod do : ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod" if test "x$ac_cv_func_strtod" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRTOD 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile samples/Makefile doc/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_EPIX_EL_TRUE}" && test -z "${ENABLE_EPIX_EL_FALSE}"; then as_fn_error $? "conditional \"ENABLE_EPIX_EL\" 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 : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by epix $as_me 1.2.21, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ epix config.status 1.2.21 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --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" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_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" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$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 ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; 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 epix-1.2.21/configure.ac000066400000000000000000000031141417356203700150370ustar00rootroot00000000000000dnl Process this file with autoconf 2.60 or later dnl to produce a configure script. AC_INIT(epix, 1.2.21) AC_PREREQ(2.60) AC_CONFIG_SRCDIR(utils.h) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE dnl Checks for programs. AC_PROG_CXX AC_PROG_LN_S AC_PROG_RANLIB AC_PROG_MAKE_SET AC_PROG_INSTALL dnl User may request epix.el non-installation AC_ARG_ENABLE(epix-el, AS_HELP_STRING([--enable-epix-el], [Install emacs mode for ePiX files]), enable_epix_el=${enableval-yes}, enable_epix_el=yes) AM_CONDITIONAL(ENABLE_EPIX_EL, [test "$enable_epix_el" = yes]) dnl For all shell scripts AC_PATH_PROG(BASH_PATH, bash, /bin/bash) AC_ARG_WITH(bash, AS_HELP_STRING([--with-bash=], [The path to bash]), BASH_PATH=$withval) dnl For epix and flix AC_PATH_PROG(RUNTIME_COMPILER, g++, g++) AC_ARG_WITH(runtime, AS_HELP_STRING([--with-runtime=], [The runtime compiler]), RUNTIME_COMPILER=$withval) dnl AC_ARG_WITH(contrib, dnl AS_HELP_STRING([--with-contrib], dnl [Build contributed code and docs])) dnl AM_CONDITIONAL(BUILD_CONTRIB, [test "$with_contrib" = yes]) dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE dnl Checks for library functions. AC_CHECK_FUNCS(strtod) AC_CONFIG_FILES([Makefile samples/Makefile doc/Makefile]) dnl contrib/Makefile contrib/doc/Makefile]) AC_OUTPUT epix-1.2.21/constants.h000066400000000000000000000060261417356203700147430ustar00rootroot00000000000000/* * constants.h -- ePiX's hidden compile-time constants * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.5 * Last Change: June 14, 2008 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_CONSTANTS #define EPIX_CONSTANTS #include "length.h" namespace ePiX { // See lengths.cc for units conversion factors //// Style Parameters -- min, default, max //// // standard pen widths const length PLAIN_WIDTH("0.4pt"); const length BOLD_WIDTH("0.8pt"); const length BBOLD_WIDTH("1.2pt"); // dot diam in pt const double MIN_DOT(1); const double AVG_DOT(4); const double MAX_DOT(36); // page length of dash pattern in pt const double MIN_SEP(4); const double AVG_SEP(12); const double MAX_SEP(36); // axis tick half-lengths const double MIN_TICK(1); const double AVG_TICK(3); const double MAX_TICK(8); // arrow head parameters const double MIN_AWIDTH(1); const double AVG_AWIDTH(3); const double MAX_AWIDTH(12); const double MIN_ARATIO(1); const double AVG_ARATIO(5.5); const double MAX_ARATIO(8); const double MIN_INSET(-1); const double AVG_INSET(0); const double MAX_INSET(0.95); // not 1, so head can be hatched // too small/large const double EPIX_EPSILON(0.000001); // 10^-6 const double EPIX_INFTY(100000.0); // 10^5 // Numerical constants const double PI_180(0.01745329251994329577); const double TWO_PI(6.28318530717958647692); // smallest distance from camera to clipping plane const double MIN_CLIP(0.01); // No more than this many minor ticks per segment in log axis const unsigned int MAX_LOG_BASE(100); // For output const unsigned int DEF_PRECISION(6); const unsigned int MAX_PRECISION(20); // In calculus plotting, the interval between adjacent points is too large // for accuracy. Divide each such interval into this many subintervals const unsigned int EPIX_ITERATIONS(200); // Output-formatting constants: const unsigned int EPIX_NUM_PTS(120); // # of points in ellipses, splines const unsigned int EPIX_FILE_WIDTH(70); // Width of output file } // end of namespace #endif /* EPIX_CONSTANTS */ epix-1.2.21/crop_algorithms.h000066400000000000000000000131571417356203700161260ustar00rootroot00000000000000/* * crop_algorithms.h -- clipping/cropping templates * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.9 * Last Change: July 31, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file defines list manipulating template functions and * associated utilities. Each chop function returns a reference to its * list argument. * * double height(perp, base, arg) * PT cut_location(perp, base, tail, head) * cull(edges) // remove edges whose tail and head are equal * loopify(edges) // replace contiguous unseen edges with one seen edge * chop_path(perp, base, edges) // cull to a halfspace/halfplane * chop_loop(perp, base, edges) // same, for loops */ #ifndef EPIX_CROP_ALGO #define EPIX_CROP_ALGO #include #include "constants.h" namespace ePiX { // perp assumed to be *unit* template double height(const PT& perp, const PT& base, const PT& arg) { // return (perp|(operator-(arg, base))); return (perp|(arg - base)); } // no check for parallel template PT cut_location(const PT& perp, const PT& base, const PT& p1, const PT& p2) { // PT dir(operator-(p2, p1)); // -dir to base // return p1 + (((operator-(base, p1))|perp)/(dir|perp))*dir; PT dir(p2 - p1); // -dir to base return p1 + (((base - p1)|perp)/(dir|perp))*dir; } // remove edges whose tail, head are equal template std::list >& cull(std::list >& edges) { typename std::list >::iterator ep(edges.begin()); while (ep != edges.end()) { if ((*ep).is_null()) ep = edges.erase(ep); else ++ep; } return edges; } template std::list >& loopify(std::list >& edges) { if (edges.begin() == edges.end()) return edges; typename std::list >::iterator ep(edges.begin()); bool in_path(false); // currently in a visible sublist? // After first pass, ep points to first visible edge while (ep != edges.end()) { if (!(*ep).is_seen()) // invisible edge { ep=edges.erase(ep); in_path=false; continue; } // else visible edge if (in_path) { ++ep; continue; } // else in_path=true; if (ep != edges.begin()) // join our tail to previous head { typename std::list >::iterator prev(ep); --prev; ep = edges.insert(ep, edge_data((*prev).head(), (*ep).tail(), true)); ++ep; ++ep; } } // all edges examined; if we contain multiple edges, close final cut ep = edges.begin(); // contains at most one edge if (ep == edges.end()) ; // return below else if (++ep == edges.end()) edges.erase(edges.begin()); else { ep = edges.end(); --ep; edges.push_back(edge_data((*ep).head(), (*edges.begin()).tail(), true)); } return edges; } // end of loopify() // return result of clipping edges to half space/plane through base // with unit inward normal perp template std::list >& chop_path(const PT& perp, const PT& base, std::list >& edges) { typename std::list >::iterator ep(edges.begin()); while(ep != edges.end()) { if (!(*ep).is_seen()) { ++ep; continue; } // else const PT tail((*ep).tail()); const PT head((*ep).head()); const double ht_tail(height(perp, base, tail)); const double ht_head(height(perp, base, head)); // non-crossings: // unclipped if (-EPIX_EPSILON < ht_tail && -EPIX_EPSILON < ht_head) { ++ep; continue; } // clipped else if (ht_tail <= 0 && ht_head <= 0) { (*ep).seen(false); ++ep; continue; } // else one end below -EPS, one above 0; split edge const PT crossing(cut_location(perp, base, tail, head)); // visibility of segments bool vis_tail(false), vis_head(true); if (0 < ht_tail) { vis_tail=true; vis_head=false; } ep = edges.erase(ep); ep=edges.insert(ep, edge_data(crossing, head, vis_head)); ep=edges.insert(ep, edge_data(tail, crossing, vis_tail)); ++ep; ++ep; } // all edges examined return cull(edges); } // end of chop_path() template std::list >& chop_loop(const PT& perp, const PT& base, std::list >& edges) { return loopify(chop_path(perp, base, edges)); } } // end of namespace #endif /* EPIX_CROP_ALGO */ epix-1.2.21/cropping.cc000066400000000000000000000043301417356203700147020ustar00rootroot00000000000000/* * state_data.cc -- Implementation of ePiX's current drawing state * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.4 * Last Change: June 17, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file defines (wrapper functions for) static objects that hold * the current drawing state */ #include #include "constants.h" #include "screen_mask.h" #include "mask_ellipse.h" #include "mask_rectangle.h" #include "cropping.h" namespace ePiX { crop_state::crop_state(const crop_state& cs) : crop_state_mask(cs.crop_state_mask->clone()) { } crop_state& crop_state::operator= (const crop_state& cs) { if (this != &cs) { screen_mask* tmp(cs.crop_state_mask->clone()); delete crop_state_mask; crop_state_mask=tmp; } return *this; } crop_state::~crop_state() { delete crop_state_mask; } std::list& crop_state::crop_path(std::list& L) const { return crop_state_mask->crop_path(L); } std::list& crop_state::crop_loop(std::list& L) const { return crop_state_mask->crop_loop(L); } crop_state& the_crop_box() { const pair M(EPIX_INFTY, EPIX_INFTY); static crop_state* current_crop_box(new crop_state(mask_rectangle(-M,M))); return *current_crop_box; } } // end of namespace epix-1.2.21/cropping.h000066400000000000000000000035411417356203700145470ustar00rootroot00000000000000/* * cropping.h -- Implementation of ePiX's current drawing state. * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.0.23 * Last Change: January 07, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * The class in this file implements backend for user-level global * functions defined in state.h. This header is not part of epix.h. */ #ifndef EPIX_CROPPING #define EPIX_CROPPING #include #include "edge_data.h" #include "screen_mask.h" namespace ePiX { class crop_state { public: crop_state(const screen_mask& M) : crop_state_mask(M.clone()) { } crop_state(const crop_state&); crop_state& operator= (const crop_state&); ~crop_state(); std::list& crop_path(std::list&) const; std::list& crop_loop(std::list&) const; private: screen_mask* crop_state_mask; }; // end of class crop_state } // end of namespace #endif /* EPIX_CROPPING */ epix-1.2.21/curves.cc000066400000000000000000000406251417356203700143770ustar00rootroot00000000000000/* * curves.cc -- polygons, ellipses, circular arcs, splines * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.6 * Last Change: January 31, 2009 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "constants.h" #include "triples.h" #include "errors.h" #include "functions.h" #include "pairs.h" #include "camera.h" #include "active_screen.h" #include "screen.h" #include "paint_style.h" #include "state.h" #include "domain.h" #include "arrow_data.h" #include "path.h" #include "picture.h" #include "spline.h" #include "spline_data.h" #include "curves.h" namespace ePiX { // Simple geometric objects // Lines take a stretch factor, roughly in percent void line(const P& tail, const P& head, double expand) { unsigned int num_pts(cam().is_linear() ? 1 : EPIX_NUM_PTS); path data(tail, head, expand, num_pts); data.draw(); } void line(const P& tail, const P& head, double expand, unsigned int num_pts) { if (!cam().is_linear()) num_pts = (unsigned int) max(num_pts, EPIX_NUM_PTS); path data(tail, head, expand, num_pts); data.draw(); } // Line(p1, p2) -- draw uncropped portion of long line through p1, p2 void Line(const P& arg1, const P& arg2) { P dir(arg2-arg1); const double denom(norm(dir)); if (EPIX_EPSILON < denom) { // CAUTION: Magic numbers dir *= 1/denom; line(arg1-100*dir, arg1+100*dir, 0, cam().is_linear() ? 1 : 400); } } // end of Line // point-slope form void Line(const P& tail, double slope) { Line(tail, tail+P(1, slope, 0)); } void triangle(const P& p1, const P& p2, const P& p3) { path data; if (cam().is_linear()) data.pt(p1).pt(p2).pt(p3); else { // Magic number 60 const unsigned int N(60); const double dt(1.0/N); const P step12(dt*(p2-p1)); const P step23(dt*(p3-p2)); const P step31(dt*(p1-p3)); for (unsigned int i=0; i quad has 240 pts, is printed in one segment const unsigned int N(60); const double dt(1.0/N); const P step12(dt*(p2-p1)); const P step23(dt*(p3-p2)); const P step34(dt*(p4-p3)); const P step41(dt*(p1-p4)); for (unsigned int i=0; i shaft(2); shaft.at(0) = tail; shaft.at(1) = head; arrow_data data(shaft, tail, head, scale); data.draw(); } void ellipse(const P& center, const P& radius) { ellipse(center, radius.x1()*E_1, radius.x2()*E_2); } // Standard half-ellipse functions void ellipse_left (const P& center, const P& radius) { ellipse(center, radius.x1()*E_1, radius.x2()*E_2, 0.25*full_turn(), 0.75*full_turn()); } void ellipse_right (const P& center, const P& radius) { ellipse(center, radius.x1()*E_1, radius.x2()*E_2, -0.25*full_turn(), 0.25*full_turn()); } void ellipse_top (const P& center, const P& radius) { ellipse(center, radius.x1()*E_1, radius.x2()*E_2, 0, 0.5*full_turn()); } void ellipse_bottom (const P& center, const P& radius) { ellipse(center, radius.x1()*E_1, radius.x2()*E_2, -0.5*full_turn(), 0); } void arc(const P& center, double r, double start, double finish) { ellipse(center, r*E_1, r*E_2, start, finish); } void arrow(const P& center, const P& axis1, const P& axis2, double t_min, double t_max, double scale) { // EPIX_NUM_PTS pts = one full turn; scale accordingly double frac(fabs(t_max-t_min)/full_turn()); unsigned int num_pts((unsigned int) max(2, ceil(frac*EPIX_NUM_PTS))); const double dt((t_max - t_min)/num_pts); std::vector

shaft(num_pts+1); for (unsigned int i=0; i <= num_pts; ++i) { double t(t_min + i*dt); shaft.at(i) = center + ((Cos(t)*axis1)+(Sin(t)*axis2)); } arrow_data data(shaft, shaft.at(num_pts-1), shaft.at(num_pts), scale); data.draw(); } // circular arcs parallel to (x,y)-plane void arc_arrow(const P& center, double r, double start, double finish, double scale) { arrow(center, r*E_1, r*E_2, start, finish, scale); } // quadratic spline void spline(const P& p1, const P& p2, const P& p3, unsigned int num_pts) { path data(p1, p2, p3, num_pts); data.draw(); } void spline(const P& p1, const P& p2, const P& p3) { spline(p1, p2, p3, EPIX_NUM_PTS); } void arrow(const P& p1, const P& p2, const P& p3, double scale) { const unsigned int num_pts(EPIX_NUM_PTS); const double dt(1.0/num_pts); std::vector

shaft(num_pts+1); for (unsigned int i=0; i <= num_pts; ++i) shaft.at(i) = spl_pt(p1, p2, p3, i*dt); arrow_data data(shaft, shaft.at(num_pts-1), shaft.at(num_pts), scale); data.draw(); } // cubic spline void spline(const P& p1, const P& p2, const P& p3, const P& p4, unsigned int num_pts) { path data(p1, p2, p3, p4, num_pts); data.draw(); } void spline(const P& p1, const P& p2, const P& p3, const P& p4) { spline(p1, p2, p3, p4, EPIX_NUM_PTS); } // natural spline through points void spline(const std::vector

& data, unsigned int num_pts) { n_spline tmp(data, data.at(0) == data.at(data.size()-1)); path trace(tmp.data(num_pts)); trace.draw(); } void arrow(const P& p1, const P& p2, const P& p3, const P& p4, double scale) { const unsigned int num_pts(EPIX_NUM_PTS); const double dt(1.0/num_pts); std::vector

shaft(num_pts+1); for (unsigned int i=0; i <= num_pts; ++i) shaft.at(i) = spl_pt(p1, p2, p3, p4, i*dt); arrow_data data(shaft, shaft.at(num_pts-1), shaft.at(num_pts), scale); data.draw(); } // n1 x n2 Cartesian grid, where coarse = (n1, n2) void grid(const P& p1, const P& p2, mesh coarse, mesh fine) { P diagonal(p2 - p1); P jump1, jump2; // sides of grid int perp_count(0); int N1(coarse.n1()); int N2(coarse.n2()); // count coordinate axes diagonal is perp to and flag normal if (fabs(diagonal|E_1) < EPIX_EPSILON) { ++perp_count; jump1 = E_2&diagonal; jump2 = E_3&diagonal; } if (fabs(diagonal|E_2) < EPIX_EPSILON) { ++perp_count; jump1 = E_3&diagonal; jump2 = E_1&diagonal; } if (fabs(diagonal|E_3) < EPIX_EPSILON) { ++perp_count; jump1 = E_1&diagonal; jump2 = E_2&diagonal; } if (perp_count != 1) epix_warning("Ignoring degenerate coordinate grid"); else { // grid line spacing P grid_step1((1.0/N1)*jump1); P grid_step2((1.0/N2)*jump2); // makes grid subject to filling rect(p1, p1 + jump1 + jump2); for (int i=1; i < N1; ++i) line(p1+i*grid_step1, p1+i*grid_step1+jump2, 0, fine.n2()); for (int j=1; j < N2; ++j) line(p1+j*grid_step2, p1+j*grid_step2+jump1, 0, fine.n1()); } } // Grids that fill bounding_box with default camera void grid(const P& p1, const P& p2, unsigned int n1, unsigned int n2) { grid(p1, p2, mesh(n1, n2), mesh(1,1)); } void grid(unsigned int n1, unsigned int n2) { grid(active_screen()->bl(), active_screen()->tr(), n1, n2); } // polar grid with specified radius, mesh (rings and sectors), and resolution void polar_grid(double radius, mesh coarse, mesh fine) { for (int i=1; i <= coarse.n1(); ++i) ellipse(P(0,0,0), (i*radius/coarse.n1())*E_1, (i*radius/coarse.n1())*E_2, 0, full_turn(), fine.n2()); for (int j=0; j < coarse.n2(); ++j) line(P(0,0,0), polar(radius, j*(full_turn())/coarse.n2()), 0, 2*fine.n1()); } void polar_grid(double radius, unsigned int n1, unsigned int n2) { polar_grid(radius, mesh(n1,n2), mesh(n1,EPIX_NUM_PTS)); } // logarithmic grids // local helpers void grid_lines1_log(double x_lo, double x_hi, double y_lo, double y_hi, unsigned int segs, unsigned int base) { if (segs == 0) return; const double dx((x_hi-x_lo)/segs); // "major grid" steps const double denom(log(base)); // "minor"/log grid scale factor for (unsigned int i=0; i < segs; ++i) for (unsigned int j=1; jh_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs1, base1); grid_lines2_log(active_screen()->h_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs2, base2); } void log1_grid(unsigned int segs1, unsigned int segs2, unsigned int base1) { grid_lines1_log(active_screen()->h_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs1, base1); grid_lines2_log(active_screen()->h_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs2, 2); } void log2_grid(unsigned int segs1, unsigned int segs2, unsigned int base2) { grid_lines1_log(active_screen()->h_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs1, 2); grid_lines2_log(active_screen()->h_min(), active_screen()->h_max(), active_screen()->v_min(), active_screen()->v_max(), segs2, base2); } // fractal generation // // The basic recursion unit is a piecewise-linear path whose segments // are parallel to spokes on a wheel, labelled modulo . // Recursively up to , each segment is replaced by a copy of the // recursion unit, scaled and rotated in order to join p to q. // // Kludge: pre_seed[0] = spokes, pre_seed[1] = length of seed; // // Sample data for _/\_ standard Koch snowflake: // const int seed[] = {6, 4, 0, 1, -1, 0}; P jump(int spokes, int length, const std::vector& seed) { P sum(P(0,0)); for (int i=0; i< length; ++i) sum += cis(seed.at(i)*(full_turn())/spokes); return sum; } void fractal(const P& p, const P& q, const int depth, const int *pre_seed) { int spokes(pre_seed[0]); int seed_length(pre_seed[1]); std::vector seed(seed_length); // extract seed from pre_seed for (int i=0; i sequence add up to P scale(jump(spokes, seed_length, seed)); // Number of points in final fractal int length(1+(int)pow(seed_length, depth)); std::vector dir(length); // stepping information std::vector

data(length); // vertices // dir[] starts out [0, 1, -1, 0, ..., 0] (seed_length^depth entries) // then take repeated "Kronecker sum" with seed = [0, 1, -1, 0] for(int i=0; i 1-depth double radius(pow(norm(scale), 1-depth)); for(int i=0; i * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_CURVES #define EPIX_CURVES #include #include "constants.h" namespace ePiX { class P; class mesh; // lines can be "stretched" by double parameter void line(const P& tail, const P& head, double expand=0); void line(const P& tail, const P& head, double expand, unsigned int num_pts); // "Visible" portion of the line through p1, p2 void Line(const P& tail, const P& head); // point-slope form void Line(const P&, double); void triangle(const P&, const P&, const P&); void quad(const P&, const P&, const P&, const P&); void rect(const P&, const P&); void rect(const P&, const P&, bool solid); // arrows void arrow(const P& tail, const P& head, double scale=1); void dart(const P& tail, const P& head); // double-tipped void aarrow(const P& tail, const P& head, double scale=1); // arbitrary elliptical arc void arrow(const P& center, const P& axis1, const P& axis2, double t_min, double t_max, double scale=1); // Algebraic curves (elliptical and circular arcs, splines) void ellipse(const P& center, const P& axis1, const P& axis2); // full turn void ellipse(const P& center, const P& axis1, const P& axis2, double t_min, double t_max); // angle range void ellipse(const P& center, const P& axis1, const P& axis2, double t_min, double t_max, unsigned int num_pts); // for backward compatibility void ellipse_arc(const P& center, const P& axis1, const P& axis2, double t_min, double t_max); // old style "center and polyradius" void ellipse (const P& center, const P& radius); // Standard half-ellipse functions void ellipse_left (const P&, const P&); void ellipse_right (const P&, const P&); void ellipse_top (const P&, const P&); void ellipse_bottom (const P&, const P&); // Circular arcs parallel to (x,y)-plane void arc(const P& center, double r, double start, double finish); void arc_arrow (const P& center, double r, double start, double finish, double scale=1); // Quadratic and cubic splines/spline arrows void spline(const P& p1, const P& p2, const P& p3, unsigned int num_pts); void spline(const P& p1, const P& p2, const P& p3); void arrow(const P& p1, const P& p2, const P& p3, double scale=1); void spline (const P& p1, const P& p2, const P& p3, const P& p4, unsigned int num_pts); void spline (const P& p1, const P& p2, const P& p3, const P& p4); void arrow(const P&, const P&, const P&, const P&, double scale=1); // natural spline void spline(const std::vector

&, unsigned int num_pts); // A "mesh" is an ordered pair of positive integers, and is used to // specify the "fineness" of a grid. Grids, like parametric surface // meshes, have a "coarse mesh" -- the numbers of grid intervals in // each direction, and a "fine mesh" -- the numbers of points used // to render the grid lines. Since an ePiX camera does not always // map lines in object space to lines on the screen, grid lines cannot // generally be drawn using only two points. // A grid may look strange unless each component of fine is a multiple // of the corresponding entry of coarse, of course. :) // Cartesian grid of specified size, mesh, and resolution void grid(const P& arg1, const P& arg2, mesh coarse, mesh fine); // coarse = fine = (n1,n2) void grid(const P& arg1, const P& arg2, unsigned int n1=1, unsigned int n2=1); void grid(unsigned int n1=1, unsigned int n2=1); // polar grid of specified radius, mesh (rings and sectors), and resolution void polar_grid(double r, mesh coarse, mesh fine); // polar grid with n1 rings and n2 sectors void polar_grid(double r, unsigned int n1, unsigned int n2); // (semi-)logarithmic grids specified by corners and numbers of orders of // magnitude or grid divisions in each direction. Optional arguments // specify the log base (10 by default). If corners are omitted, the grid // fills the bounding box. void log_grid(const P& arg1, const P& arg2, unsigned int segs1, unsigned int segs2, unsigned int base1=10, unsigned int base2=10); void log1_grid(const P& arg1, const P& arg2, unsigned int segs1, unsigned int segs2, unsigned int base1=10); void log2_grid(const P& arg1, const P& arg2, unsigned int segs1, unsigned int segs2, unsigned int base2=10); void log_grid(unsigned int segs1, unsigned int segs2, unsigned int base1=10, unsigned int base2=10); void log1_grid(unsigned int segs1, unsigned int segs2, unsigned int base1=10); void log2_grid(unsigned int segs1, unsigned int segs2, unsigned int base2=10); // fractal generation // // The basic "level-1" recursion unit is a piecewise-linear path whose // segments are parallel to spokes on a wheel, labelled modulo . // Recursively up to , each segment is replaced by a copy of the // recursion unit. // // Sample data for _/\_ standard Koch snowflake: // const int pre_seed[] = {6, 4, 0, 1, -1, 0}; // pre_seed[0] = spokes, pre_seed[1] = seed_length; void fractal (const P& p, const P& q, const int depth, const int *pre_seed); } // end of namespace #endif /* EPIX_CURVES */ epix-1.2.21/data_bins.cc000066400000000000000000000222601417356203700150070ustar00rootroot00000000000000/* * data_bins.cc -- ePiX::data_bins class for histogram data * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.0-2 * Last Change: September 26, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include "errors.h" #include "constants.h" #include "functions.h" #include "triples.h" #include "path.h" #include "spline.h" #include "curves.h" #include "data_bins.h" namespace ePiX { // print summary statistics static void __epix_out_of_range(const std::string& fcn, unsigned int lo, unsigned int hi, unsigned int hits) { if (0 == lo + hi && 0 == hits) return; // else if (0 < lo + hi) { std::stringstream buf; buf << fcn << " has " << lo + hi << " point(s) out of range: "; bool need_comma(false); if (0 < lo) { buf << lo << " below"; need_comma = true; } if (0 < hi) { if (need_comma) buf << ", "; buf << hi << " above"; } epix_warning(buf.str()); } if (0 < hits) { std::stringstream buf; buf << fcn << " has " << hits/2 << " point(s) on cuts"; epix_warning(buf.str()); } } //// histogram data bin //// class d_bin { public: d_bin(double low, double high) : m_lo(low), m_hi(high), m_dbl_count(0) { } double add_datum(double x) { if (x < m_lo || m_hi < x) return 0.0; else if (m_lo < x && x < m_hi) { m_dbl_count += 2; return 1.0; } else // x == m_lo || x == m_hi { ++m_dbl_count; return 0.5; } } // draw rectangle; height = scale*population void draw_ht(double scale) const { rect(P(m_lo,0), P(m_hi, 0.5*scale*m_dbl_count)); } // area = scale*population void draw_area(double scale) const { if (EPIX_EPSILON < m_hi - m_lo) rect(P(m_lo,0), P(m_hi, 0.5*scale*m_dbl_count/(m_hi - m_lo))); } double lo() const { return m_lo; } double hi() const { return m_hi; } double ht(double scale) const { return 0.5*scale*m_dbl_count; } P loc(double scale) const { return P(0.5*(m_lo + m_hi), 0.5*scale*m_dbl_count); } d_bin* clone() const { return new d_bin(*this); } private: double m_lo, m_hi; // end values // twice the number of elements; endpoint hits count as 1 unsigned int m_dbl_count; }; // end of class d_bin //// data_bins functions //// data_bins::data_bins(double lo, double hi, unsigned int n) : m_lo_val(min(lo, hi)), m_hi_val(max(lo, hi)), m_lo_ct(0), m_hi_ct(0), m_pop(0), m_cut_hits(0), m_cuts_locked(false) { // divide [lo, hi] into n pieces (n>0), or into unit pieces (n=0) unsigned int ct(n>0 ? n : (unsigned int)(m_hi_val - m_lo_val)); const double dx((m_hi_val - m_lo_val)/ct); for (unsigned int i=0; i<=ct; ++i) m_cuts.push_back(m_lo_val + i*dx); } data_bins::data_bins(const data_bins& db) : m_lo_val(db.m_lo_val), m_hi_val(db.m_hi_val), m_lo_ct(db.m_lo_ct), m_hi_ct(db.m_hi_ct), m_pop(db.m_pop), m_cut_hits(db.m_cut_hits), m_cuts_locked(db.m_cuts_locked), m_cuts(db.m_cuts) { for (std::list::const_iterator p=db.m_bins.begin(); p != db.m_bins.end(); ++p) m_bins.push_back((*p)->clone()); } data_bins& data_bins::operator= (const data_bins& db) { if (this != &db) { std::list tmp; for (std::list::const_iterator p=db.m_bins.begin(); p!=db.m_bins.end(); ++p) tmp.push_back((*p)->clone()); // assign data m_lo_val = db.m_lo_val; m_hi_val = db.m_hi_val; m_lo_ct = db.m_lo_ct; m_hi_ct = db.m_hi_ct; m_pop = db.m_pop; m_cut_hits = db.m_cut_hits; m_cuts_locked = db.m_cuts_locked; // deallocate memory for (std::list::iterator p=m_bins.begin(); p!=m_bins.end(); ++p) delete *p; m_cuts = db.m_cuts; swap(m_bins, tmp); } return *this; } data_bins::~data_bins() { for (std::list::iterator p=m_bins.begin(); p!=m_bins.end(); ++p) delete *p; } data_bins& data_bins::cut(double x) { if (m_cuts_locked) epix_warning("cut() called on locked data_bins, no action"); else if (x < m_lo_val || m_hi_val < x) epix_warning("cut() out of range, no action"); else m_cuts.push_back(x); return *this; } data_bins& data_bins::read(const std::vector& data) { if (0 < data.size()) { if (!m_cuts_locked) initialize(); for (std::vector::const_iterator p=data.begin(); p != data.end(); ++p) insert(*p); } return *this; } unsigned int data_bins::pop() const { return m_pop; } // rectangles void data_bins::histogram(double scale) const { if (m_pop == 0) return; // else __epix_out_of_range("histogram", m_lo_ct, m_hi_ct, m_cut_hits); // const double denom((m_hi_val - m_lo_val)/m_pop); const double adj(scale/m_pop); for (std::list::const_iterator p=m_bins.begin(); p != m_bins.end(); ++p) (*p)->draw_area(adj); } void data_bins::bar_chart(double scale) const { if (m_pop == 0) return; // else __epix_out_of_range("bar_chart", m_lo_ct, m_hi_ct, m_cut_hits); const double adj(scale/m_pop); // scale=1 -> ht=frac of pop in bin for (std::list::const_iterator p=m_bins.begin(); p != m_bins.end(); ++p) (*p)->draw_ht(adj); } // piecewise-cubic interpolation of bar_chart void data_bins::plot(double scale) const { if (m_pop == 0) return; // else __epix_out_of_range("data_bins::plot", m_lo_ct, m_hi_ct, m_cut_hits); // get rectangle corners std::vector

vertices; std::list::const_iterator bn(m_bins.begin()); vertices.push_back(P((*bn)->lo(),0)); for (bn = m_bins.begin(); bn != m_bins.end(); ++bn) { vertices.push_back(P((*bn)->lo(), (*bn)->ht(scale/m_pop))); vertices.push_back(P((*bn)->hi(), (*bn)->ht(scale/m_pop))); } --bn; // last bin vertices.push_back(P((*bn)->hi(),0)); const unsigned int N(vertices.size()); // draw piecewise cubic interpolation line(vertices.at(0), 0.5*(vertices.at(0) + vertices.at(1))); // Magic number 20 to reduce file size for (unsigned int i=1; i< N-1; ++i) spline(0.5*(vertices.at(i-1) + vertices.at(i)), vertices.at(i), vertices.at(i), 0.5*(vertices.at(i) + vertices.at(i+1)), 20); line(0.5*(vertices.at(N-2) + vertices.at(N-1)), vertices.at(N-1)); } // end of plot(scale) // private bookkeeping functions void data_bins::initialize() { if (!m_cuts_locked) // defensive redundancy { // sort list of cuts, remove duplicates, and lock m_cuts.sort(); m_cuts.unique(); m_cuts_locked=true; // allocate d_bins for (std::list::const_iterator curr = m_cuts.begin(); curr != m_cuts.end(); ++curr) { std::list::const_iterator next(curr); ++next; if (next != m_cuts.end() && *curr != *next) m_bins.push_back(new d_bin(*curr, *next)); else if (*curr != m_hi_val) m_bins.push_back(new d_bin(*curr, m_hi_val)); } } } // Ideally no data lies on a cut, but we'll cope as well as possible // otherwise. Data on an end cut is "out of range". Data on an interior // cut contributes 1/2 to the population of each adjacent bin. void data_bins::insert(double x) { ++m_pop; std::list::iterator p(m_bins.begin()); // check end bins first if (x <= m_lo_val) { ++m_lo_ct; if (fabs(x - m_lo_val) < EPIX_EPSILON) { (*p)->add_datum(x); m_cut_hits += 2; } return; } if (m_hi_val <= x) { ++m_hi_ct; if (fabs(x - m_hi_val) < EPIX_EPSILON) { p = m_bins.end(); --p; (*p)->add_datum(x); m_cut_hits += 2; } return; } // else double success(0.0); p = m_bins.begin(); // try "normal" bins serially while (success < 0.75 && p!=m_bins.end()) // success is a half-integer { double ct((*p++)->add_datum(x)); // 1 for yes, 0.5 for endpt, 0 for no success += ct; if (fabs(ct - 0.5) < EPIX_EPSILON) ++m_cut_hits; } if (success < 0.75) // still not added! epix_warning("data_bin::insert() internal error"); } } // end of namespace epix-1.2.21/data_bins.h000066400000000000000000000061671417356203700146610ustar00rootroot00000000000000/* * data_bins.h -- ePiX::data_bins class for histogram data * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.19 * Last Change: September 17, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * This file provides the "data_bins" class. * * An object of type data_bins models a closed interval [lo, hi] * divided into subintervals (not necessarily of equal length). Each * subinterval is a "d_bin", whose endpoints are "cuts". A data_bins * can read and sort numerical data, count how many numbers lie in * each bin, and print the result as a bar chart (rectangle height * proportional to population), histogram (area proportional to * population), or as a spline interpolation. * * Ideally no data lies outside (lo, hi) or on a cut. Data on an end * cut is "out of range", data on an interior cut contributes 1/2 to * the population of each adjacent bin. A summary statistic warning is * printed if any points are out of range or lie on a cut. */ #ifndef EPIX_DATA_BINS #define EPIX_DATA_BINS #include #include namespace ePiX { class d_bin; class data_bins { public: data_bins(double lo, double hi, unsigned int n=1); data_bins(const data_bins&); data_bins& operator= (const data_bins&); ~data_bins(); data_bins& cut(double); // add a cut data_bins& read(const std::vector&); unsigned int pop() const; // current population // draw rectangles void histogram(double scale=1) const; // area prop to pop void bar_chart(double scale=1) const; // height prop to pop void plot(double scale=1) const; // smooth interpolation private: double m_lo_val; double m_hi_val; unsigned int m_lo_ct; // population smaller than m_lo_val unsigned int m_hi_ct; // population larger than m_hi_val unsigned int m_pop; // current total population unsigned int m_cut_hits; // number of data on a cut bool m_cuts_locked; // true once we read data std::list m_cuts; std::list m_bins; // bookkeeping void initialize(); // convert cuts to bins and lock void insert(double); // add data point }; // end of class data_bins } // end of namespace #endif /* EPIX_DATA_BINS */ epix-1.2.21/data_file.cc000066400000000000000000000412251417356203700147750ustar00rootroot00000000000000/* * data_file.cc -- ePiX::data_file class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.2.0-2 * Last Change: September 26, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include #include "errors.h" #include "functions.h" #include "triples.h" #include "path.h" #include "spline.h" #include "label_data.h" #include "curves.h" #include "interval.h" #include "data_bins.h" #include "data_mask.h" #include "data_file.h" namespace ePiX { const std::string default_delim("\t"); const std::string default_commt("%"); // magic number -- precision for data_file.write() const unsigned int PRECISION(6); double truncate(double arg, const unsigned int n) { if (fabs(arg) < pow(0.1, n)) return 0; return arg; } // warning message for data_file::tokenize void non_parsable(const std::string& msg) { std::stringstream obuf; obuf << "data_file::tokenise():" << std::endl << " Non-parsable input \"" << msg << "\", setting value to 0"; epix_warning(obuf.str()); } //// private data_file functions //// // returns # of columns, i.e. # of entries in first parsable row unsigned int data_file::entries(const char* filename) { std::ifstream input(filename); if (!input) { epix_warning("Cannot open file \""+std::string(filename)+"\""); return(0); } // else std::string linebuf; std::vector tmp; while (getline(input, linebuf) && tmp.size() == 0) { // strip comments linebuf = linebuf.substr(0, linebuf.find_first_of(m_commt)); if (linebuf.length() > 0) tmp = tokenise(linebuf); } input.close(); if (tmp.size() == 0) { std::stringstream obuf; // solely for code readability :) obuf << "File \"" << std::string(filename) << "\" contains no parsable data"; epix_warning(obuf.str()); } return tmp.size(); } // end of entries(const char*) // private function: // Tokenise line using our delimiter, return a vector of doubles std::vector data_file::tokenise(std::string line) { size_t pos(line.find(m_delim, 0)); // first delimiter std::string tmpStr; // current chunk of input double tmpDbl; // current parsed chunk std::vector tmpVec; // output found so far // read current line into a vector of doubles while(pos != std::string::npos) { tmpStr = line.substr(0, pos); line.erase(0, pos+1); std::istringstream convStr(tmpStr); if (!(convStr >> tmpDbl)) { tmpDbl = 0; non_parsable(convStr.str()); } tmpVec.push_back(tmpDbl); pos = line.find(m_delim, 0); } if (line.size()) // There's input remaining { std::istringstream convStr(line); if (!(convStr >> tmpDbl)) { tmpDbl = 0; non_parsable(convStr.str()); } else tmpVec.push_back(tmpDbl); } return tmpVec; } //// public data_file functions //// data_file::data_file(unsigned int n) : m_precision(PRECISION), m_data(n), m_delim(default_delim), m_commt(default_commt) { } // provide two version to avoid exposing default delim, commt data_file::data_file(const char* filename, const std::string& delim, const std::string& commt ) : m_precision(PRECISION), m_delim(delim), m_commt(commt) { // get number of columns by parsing first line of file const unsigned int N(entries(filename)); m_data.resize(N); if (N > 0) // file contains data read(filename); } // end of data_file() // filename-only version data_file::data_file(const char* filename) : m_precision(PRECISION), m_delim(default_delim), m_commt(default_commt) { // get number of columns by parsing first line of file const unsigned int N(entries(filename)); m_data.resize(N); if (N > 0) // file contains data read(filename); } // end of data_file(const char*) // file made from components data_file::data_file(double f(double), double t_min, double t_max, unsigned int num_pts) : m_precision(PRECISION), m_data(1), m_delim(default_delim), m_commt(default_commt) { const double dt((t_max - t_min)/num_pts); for (unsigned int i=0; i<= num_pts; ++i) m_data.at(0).push_back(f(t_min+i*dt)); } data_file::data_file(double f1(double), double f2(double), double t_min, double t_max, unsigned int num_pts) : m_precision(PRECISION), m_data(2), m_delim(default_delim), m_commt(default_commt) { const double dt((t_max - t_min)/num_pts); for (unsigned int i=0; i<= num_pts; ++i) { m_data.at(0).push_back(f1(t_min+i*dt)); m_data.at(1).push_back(f2(t_min+i*dt)); } } data_file::data_file(double f1(double), double f2(double), double f3(double), double t_min, double t_max, unsigned int num_pts) : m_precision(PRECISION), m_data(3), m_delim(default_delim), m_commt(default_commt) { const double dt((t_max - t_min)/num_pts); for (unsigned int i=0; i<= num_pts; ++i) { m_data.at(0).push_back(f1(t_min+i*dt)); m_data.at(1).push_back(f2(t_min+i*dt)); m_data.at(2).push_back(f3(t_min+i*dt)); } } data_file& data_file::read(const char* filename) { unsigned int columns(entries(filename)); if (columns != m_data.size()) { std::stringstream msg; msg << "Column count mismatch in file " << filename; epix_warning(msg.str()); } else if (0 < columns) { std::ifstream input(filename); std::string linebuf; std::vector line; bool warned(false); while (getline(input, linebuf)) { // strip comments linebuf = linebuf.substr(0, linebuf.find_first_of(m_commt)); if (linebuf.length() > 0) { line = tokenise(linebuf); if (line.size() > m_data.size()) { if (!warned) { epix_warning("File has more columns than allocated"); warned = true; } } else if (line.size() < m_data.size()) { if (!warned) { epix_warning("File has fewer columns than allocated"); warned = true; } } else { for (unsigned int i = 0; i < m_data.size(); i++) m_data.at(i).push_back(line.at(i)); } } // linebuf non-empty } // end of file input.close(); } return *this; } // end of data_file::read(const char*, const std::string&) // transform column(s) data_file& data_file::transform(double f(double), unsigned int col) { unsigned int rows(m_data.at(0).size()); if (0 < col) // apply to selected column for (unsigned int i=0; i::iterator> iter(m_data.size()); for (unsigned int i = 0; i < m_data.size(); i++) iter.at(i) = m_data.at(i).begin(); while (iter.at(0) != m_data.at(0).end()) { if ( dm.masks(*iter.at(col-1)) ) for (unsigned int j = 0; j < m_data.size(); j++) m_data.at(j).erase(iter.at(j)); else for (unsigned int j = 0; j < m_data.size(); j++) iter.at(j)++; } return *this; } data_file& data_file::prune(const interval& range, const unsigned int col) { data_mask dm(range); return prune(dm, col); } data_file& data_file::prune(double rmin, double rmax, const unsigned int col) { data_mask dm(rmin, rmax); return prune(dm, col); } // (col1|col2) double data_file::dot(unsigned int col1, unsigned int col2) const { double sum(0); if ((col1 > m_data.size()) || (col2 > m_data.size()) ) epix_warning("Invalid column index in dot product"); else for (unsigned int i=0; i < m_data.at(0).size(); ++i) sum += m_data.at(col1-1).at(i)*m_data.at(col2-1).at(i); return sum; } // end of dot // avg (mean) of col1 double data_file::avg(unsigned int col1) const { double sum(0); if (col1 > m_data.size()) epix_warning("Invalid column index in mean"); else for (unsigned int i=0; i < m_data.at(0).size(); ++i) sum += m_data.at(col1-1).at(i); return sum/m_data.at(0).size(); } // end of avg // variance (x|x) - n*\bar{x}^2 double data_file::var(unsigned int col1) const { double mean(avg(col1)); return dot(col1, col1) - mean*mean*m_data.at(0).size(); } // end of var // covariance (x|y) - n*\bar{x}*\bar{y} double data_file::covar(unsigned int col1, unsigned int col2) const { return dot(col1, col2) - (m_data.at(0).size())*avg(col1)*avg(col2); } // end of covar void data_file::regression(unsigned int col1, unsigned int col2) const { Line(P(avg(col1), avg(col2)), covar(col1, col2)/var(col1)); } //// Output functions //// // return selected column std::vector data_file::column(unsigned int n) const { if (1 <= n && n <= m_data.size()) return m_data.at(n-1); else { if (0 < m_data.size()) { epix_warning("Out of range argument to data_file::column()"); return m_data.at(0); } else { epix_warning("data_file::column() requested for empty file"); std::vector err_val(1, 0); return err_val; } } } // apply f to selected column std::vector data_file::column(double f(double), unsigned int n) const { // must copy data std::vector value(m_data.at(0).size()); unsigned int col(n); if (col < 1 || m_data.size() < col) { if (0 < m_data.size()) { epix_warning("Out of range argument to data_file::column()"); col=1; } else { epix_warning("data_file::column() requested for empty file"); std::vector err_val(1, 0); return err_val; } } for (unsigned int i=0; i data(num_entries); // create path for (unsigned int i=0; i < num_entries; ++i) try { if (col3 == 0) data.at(i) = f(m_data.at(col1-1).at(i), m_data.at(col2-1).at(i), 0); else data.at(i) = f(m_data.at(col1-1).at(i), m_data.at(col2-1).at(i), m_data.at(col3-1).at(i)); } catch (std::out_of_range) { epix_warning("data_file::plot(): Invalid column index"); return; } // and write it if (PATH == TYPE) // N.B. Unaffected by "select" { path temp(data, false, false); // not closed or filled temp.draw(); } else for (unsigned int i=0; i < num_entries; ++i) { // if (m_select(data.at(i))) label_data temp(data.at(i), TYPE); temp.draw(); } } void data_file::plot(epix_mark_type TYPE, P f(double, double, double), unsigned int col1, unsigned int col2, unsigned int col3) const { plot(TYPE, col1, col2, col3, f); } //// global functions //// void plot(const char* filename, epix_mark_type TYPE, unsigned int col1, unsigned int col2, unsigned int col3, P f(double, double, double)) { data_file temp(filename); temp.plot(TYPE, col1, col2, col3, f); } void plot(const char* filename, epix_mark_type TYPE, P f(double, double, double), unsigned int col1, unsigned int col2, unsigned int col3) { data_file temp(filename); temp.plot(TYPE, col1, col2, col3, f); } // pass 3rd arg by value void histogram(const char* filename, unsigned int col, data_bins db, double scale) { data_file temp(filename); db.read(temp.column(col)); db.histogram(scale); } void bar_chart(const char* filename, unsigned int col, data_bins db, double scale) { data_file temp(filename); db.read(temp.column(col)); db.bar_chart(scale); } } // end of namespace epix-1.2.21/data_file.h000066400000000000000000000127661417356203700146470ustar00rootroot00000000000000/* * data_file.h -- ePiX::data_file class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.6 * Last Change: July 04, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_DATA_FILE #define EPIX_DATA_FILE #include #include #include "enums.h" namespace ePiX { class data_bins; class data_mask; class interval; class data_file { public: explicit data_file(unsigned int n=2); // get size from first line of file; // provide two versions to avoid exposing default delim/commt strings data_file(const char* filename, const std::string& delim, const std::string& commt); explicit data_file(const char* filename); // file made from components data_file(double f(double), double t_min, double t_max, unsigned int num_pts); data_file(double f1(double), double f2(double), double t_min, double t_max, unsigned int num_pts); data_file(double f1(double), double f2(double), double f3(double), double t_min, double t_max, unsigned int num_pts); // input data_file& read(const char*); // transform column(s) data_file& transform(double f(double), unsigned int col=0); // apply f to selected columns; components of image go back to columns data_file& transform(P f(double, double), unsigned int col1=1, unsigned int col2=2); data_file& transform(P f(double, double, double), unsigned int col1, unsigned int col2); data_file& transform(P f(double, double, double), unsigned int col1, unsigned int col2, unsigned int col3); // remove rows where specified entry is masked or outside interval/range data_file& prune(const data_mask&, const unsigned int col); data_file& prune(const interval&, const unsigned int col); data_file& prune(double, double, const unsigned int col); // basic statistical operations on columns double dot(unsigned int col1, unsigned int col2) const; // dot product double avg(unsigned int col1) const; // mean double var(unsigned int col1) const; // |x|^2 - n*avg^2 double covar(unsigned int col1, unsigned int col2) const; void regression(unsigned int col1, unsigned int col2) const; // output functions // extract column std::vector column(unsigned int) const; // apply f to values std::vector column(double f(double), unsigned int) const; // set C++ output precision for write void precision(unsigned int n=6) const; // Setters and getters for delimiter and comment character void delimiter(const char* delim) { m_delim = delim; } std::string delimiter() const { return m_delim; } void comment(const char* commt) { m_commt = commt; } std::string comment() const { return m_commt; } // write raw data to file void write(const char* filename) const; // write selected columns formatted by string-valued function void write(const char* filename, std::string pt_out(double, double), unsigned int col1=1, unsigned int col2=2) const; // LaTeX tabular environment void tabular(const char* filename, const std::string& alignment, const std::string& legend="") const; /* // (un)set cropping criterion for plotting void select(bool Fsel(P)); void select(const selection&); // e.g. select(all()); */ // scatter plots; f applied to selected columns void plot(epix_mark_type TYPE, unsigned int col1=1, unsigned int col2=2, unsigned int col3=0, P f(double, double, double) = xyz) const; void plot(epix_mark_type TYPE, P f(double, double, double), unsigned int col1=1, unsigned int col2=2, unsigned int col3=0) const; private: std::vector tokenise(std::string line); unsigned int entries(const char* filename); mutable unsigned int m_precision; // selection m_select; std::vector > m_data; std::string m_delim; // Field delimiter std::string m_commt; // Comment character }; // end of class data_file //// Global functions that use file_data, data_bins //// void plot(const char* filename, epix_mark_type TYPE, unsigned int col1=1, unsigned int col2=2, unsigned int col3=0, P f(double, double, double) = xyz); void plot(const char* filename, epix_mark_type TYPE, P f(double, double, double), unsigned int col1=1, unsigned int col2=2, unsigned int col3=0); // pass 3rd arg by value void histogram(const char* filename, unsigned int col, data_bins, double scale=1); void bar_chart(const char* filename, unsigned int col, data_bins, double scale=1); } // end of namespace #endif /* EPIX_DATA_FILE */ epix-1.2.21/data_mask.cc000066400000000000000000000042571417356203700150150ustar00rootroot00000000000000/* * data_mask.cc -- ePiX::data_mask class * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.8 * Last Change: July 22, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "functions.h" #include "interval.h" #include "data_mask.h" namespace ePiX { double identity(double x) { return x; } data_mask::data_mask(std::string arg) : m_range(arg), m_filter(identity), m_reverse(false) { } data_mask::data_mask(std::string arg, double f(double)) : m_range(arg), m_filter(f), m_reverse(false) { } data_mask::data_mask(const interval& range) : m_range(range), m_filter(identity), m_reverse(false) { } data_mask::data_mask(const interval& range, double f(double)) : m_range(range), m_filter(f), m_reverse(false) { } data_mask::data_mask(double arg1, double arg2) : m_range(arg1, arg2), m_filter(identity), m_reverse(false) { } data_mask::data_mask(double arg1, double arg2, double f(double)) : m_range(arg1, arg2), m_filter(f), m_reverse(false) { } data_mask& data_mask::reverse() { m_reverse = !m_reverse; return *this; } bool data_mask::masks(double x) const { bool masked(!m_range.contains(m_filter(x))); if (m_reverse) masked = !masked; return masked; } } // end of namespace epix-1.2.21/data_mask.h000066400000000000000000000035341417356203700146540ustar00rootroot00000000000000/* * data_mask.h -- ePiX::data_mask, for selective row removal from data_file * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.1.6 * Last Change: July 3, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_DATA_MASK #define EPIX_DATA_MASK #include #include "interval.h" namespace ePiX { class data_mask { public: data_mask(std::string); data_mask(std::string, double f(double)); data_mask(const interval& range); data_mask(const interval& range, double f(double)); data_mask(double range_min, double range_max); data_mask(double range_min, double range_max, double f(double)); data_mask& reverse(); // negate mask criterion bool masks(double) const; // true if we mask arg private: interval m_range; double (*m_filter)(double); // filter criterion bool m_reverse; }; // end of data_mask } // end of namespace #endif /* EPIX_DATA_MASK */ epix-1.2.21/debug.h000066400000000000000000000012551417356203700140140ustar00rootroot00000000000000#ifndef EPIX_DEBUG #define EPIX_DEBUG #include #include #include #include #include "pairs.h" #include "triples.h" #include "errors.h" namespace ePiX { inline void debug_msg(const std::string& msg) { std::cerr << msg << std::endl; } inline void debug_print(const pair& arg, const std::string& msg="") { std::cerr << msg << " (" << arg.x1() << ", " << arg.x2() << ")" << std::endl; } inline void debug_print(const P& arg, const std::string& msg="") { std::cerr << msg << " (" << arg.x1() << ", " << arg.x2() << ", " << arg.x3() << ")" << std::endl; } } #endif /* EPIX_DEBUG */ epix-1.2.21/depcomp000077500000000000000000000427131417356203700141360ustar00rootroot00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: epix-1.2.21/deriv.h000066400000000000000000000026701417356203700140410ustar00rootroot00000000000000/* * deriv.h -- ePiX derivative function template * * This file is part of ePiX, a C++ library for creating high-quality * figures in LaTeX * * Version 1.0.23 * Last Change: January 06, 2007 */ /* * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 * Andrew D. Hwang * Department of Mathematics and Computer Science * College of the Holy Cross * Worcester, MA, 01610-2395, USA */ /* * ePiX is free software; you can 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. * * ePiX is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public License * along with ePiX; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef EPIX_DERIV #define EPIX_DERIV #include "constants.h" namespace ePiX { // moved from functions.h to hide global constant EPIX_EPSILON template T deriv(T f(double), double t, double dt=EPIX_EPSILON) { return (1.0/dt)*(f(t+0.5*dt) - f(t-0.5*dt)); } } // end of namespace #endif /* EPIX_DERIV */ epix-1.2.21/doc/000077500000000000000000000000001417356203700133175ustar00rootroot00000000000000epix-1.2.21/doc/Makefile.am000066400000000000000000000022571417356203700153610ustar00rootroot00000000000000# Makefile.am for ePiX v1.x "doc" directory # EPIXFLAGS = --no-defaults -I.. -L.. -lepix -v %.eepic: %.xp ../epix-local $(EPIXFLAGS) $< XPS = $(wildcard *.xp) EEPICS = $(XPS:.xp=.eepic) CLEANFILES = *~ *.aux *.dvi *.log *.out *.toc \ *.idx *.ilg *.ind \ manual_src.tar manual.pdf manual.ps \ manual_src.tar.gz manual.pdf.gz manual.ps.gz manual-stamp MAINTAINERCLEANFILES = *.eepic *.aux *.dvi *.log *.out *.toc \ *.idx *.ilg *.ind ## Targets ## doc_DATA = manual.pdf.gz manual.ps.gz manual_src.tar.gz info_TEXINFOS = epix.texi # tar up tex, xp, and eepic files; build ps, pdf manual-stamp: manual.tex $(XPS) $(EEPICS) latex -interaction=nonstopmode manual latex -interaction=nonstopmode manual makeindex manual.idx ../laps-local --pdf --verbose manual.tex touch manual-stamp manual_src.tar.gz: manual-stamp tar -cf manual_src.tar manual.aux manual.ind manual.tex manual.toc \ $(XPS) $(EEPICS) gzip -9 manual_src.tar #PS manual.ps.gz: manual-stamp gzip -9 -c manual.ps > manual.ps.gz #PDF manual.pdf.gz: manual-stamp gzip -9 -c manual.pdf > manual.pdf.gz epix.info: manual-stamp epix.texi makeinfo epix.texi epix.info.bz2: manual-stamp epix.info bzip2 -fk epix.info epix-1.2.21/doc/Makefile.in000066400000000000000000000611031417356203700153650ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile.am for ePiX v1.x "doc" directory # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = AM_V_DVIPS = $(am__v_DVIPS_@AM_V@) am__v_DVIPS_ = $(am__v_DVIPS_@AM_DEFAULT_V@) am__v_DVIPS_0 = @echo " DVIPS " $@; am__v_DVIPS_1 = AM_V_MAKEINFO = $(am__v_MAKEINFO_@AM_V@) am__v_MAKEINFO_ = $(am__v_MAKEINFO_@AM_DEFAULT_V@) am__v_MAKEINFO_0 = @echo " MAKEINFO" $@; am__v_MAKEINFO_1 = AM_V_INFOHTML = $(am__v_INFOHTML_@AM_V@) am__v_INFOHTML_ = $(am__v_INFOHTML_@AM_DEFAULT_V@) am__v_INFOHTML_0 = @echo " INFOHTML" $@; am__v_INFOHTML_1 = AM_V_TEXI2DVI = $(am__v_TEXI2DVI_@AM_V@) am__v_TEXI2DVI_ = $(am__v_TEXI2DVI_@AM_DEFAULT_V@) am__v_TEXI2DVI_0 = @echo " TEXI2DVI" $@; am__v_TEXI2DVI_1 = AM_V_TEXI2PDF = $(am__v_TEXI2PDF_@AM_V@) am__v_TEXI2PDF_ = $(am__v_TEXI2PDF_@AM_DEFAULT_V@) am__v_TEXI2PDF_0 = @echo " TEXI2PDF" $@; am__v_TEXI2PDF_1 = AM_V_texinfo = $(am__v_texinfo_@AM_V@) am__v_texinfo_ = $(am__v_texinfo_@AM_DEFAULT_V@) am__v_texinfo_0 = -q am__v_texinfo_1 = AM_V_texidevnull = $(am__v_texidevnull_@AM_V@) am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) am__v_texidevnull_0 = > /dev/null am__v_texidevnull_1 = INFO_DEPS = $(srcdir)/epix.info am__TEXINFO_TEX_DIR = $(srcdir) DVIS = epix.dvi PDFS = epix.pdf PSS = epix.ps HTMLS = epix.html TEXINFOS = epix.texi TEXI2DVI = texi2dvi TEXI2PDF = $(TEXI2DVI) --pdf --batch MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) DVIPS = dvips am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(docdir)" am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(doc_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/mkinstalldirs \ texinfo.tex DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASH_PATH = @BASH_PATH@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ 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@ RUNTIME_COMPILER = @RUNTIME_COMPILER@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ 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@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EPIXFLAGS = --no-defaults -I.. -L.. -lepix -v XPS = $(wildcard *.xp) EEPICS = $(XPS:.xp=.eepic) CLEANFILES = *~ *.aux *.dvi *.log *.out *.toc \ *.idx *.ilg *.ind \ manual_src.tar manual.pdf manual.ps \ manual_src.tar.gz manual.pdf.gz manual.ps.gz manual-stamp MAINTAINERCLEANFILES = *.eepic *.aux *.dvi *.log *.out *.toc \ *.idx *.ilg *.ind doc_DATA = manual.pdf.gz manual.ps.gz manual_src.tar.gz info_TEXINFOS = epix.texi all: all-am .SUFFIXES: .SUFFIXES: .dvi .html .info .pdf .ps .texi $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): .texi.info: $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \ am__cwd=`pwd` && $(am__cd) $(srcdir) && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$$am__cwd"; \ if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ -o $@ $<; \ then \ rc=0; \ $(am__cd) $(srcdir); \ else \ rc=$$?; \ $(am__cd) $(srcdir) && \ $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ fi; \ rm -rf $$backupdir; exit $$rc .texi.dvi: $(AM_V_TEXI2DVI)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ $(TEXI2DVI) $(AM_V_texinfo) --build-dir=$(@:.dvi=.t2d) -o $@ $(AM_V_texidevnull) \ $< .texi.pdf: $(AM_V_TEXI2PDF)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ $(TEXI2PDF) $(AM_V_texinfo) --build-dir=$(@:.pdf=.t2p) -o $@ $(AM_V_texidevnull) \ $< .texi.html: $(AM_V_MAKEINFO)rm -rf $(@:.html=.htp) $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ -o $(@:.html=.htp) $<; \ then \ rm -rf $@ && mv $(@:.html=.htp) $@; \ else \ rm -rf $(@:.html=.htp); exit 1; \ fi $(srcdir)/epix.info: epix.texi epix.dvi: epix.texi epix.pdf: epix.texi epix.html: epix.texi .dvi.ps: $(AM_V_DVIPS)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ $(DVIPS) $(AM_V_texinfo) -o $@ $< uninstall-dvi-am: @$(NORMAL_UNINSTALL) @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ rm -f "$(DESTDIR)$(dvidir)/$$f"; \ done uninstall-html-am: @$(NORMAL_UNINSTALL) @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ done uninstall-info-am: @$(PRE_UNINSTALL) @if test -d '$(DESTDIR)$(infodir)' && $(am__can_run_installinfo); then \ list='$(INFO_DEPS)'; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \ done; \ else :; fi @$(NORMAL_UNINSTALL) @list='$(INFO_DEPS)'; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ else :; fi); \ done uninstall-pdf-am: @$(NORMAL_UNINSTALL) @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ done uninstall-ps-am: @$(NORMAL_UNINSTALL) @list='$(PSS)'; test -n "$(psdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ rm -f "$(DESTDIR)$(psdir)/$$f"; \ done dist-info: $(INFO_DEPS) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; \ for base in $$list; do \ case $$base in \ $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ esac; \ if test -f $$base; then d=.; else d=$(srcdir); fi; \ base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \ for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ if test -f $$file; then \ relfile=`expr "$$file" : "$$d/\(.*\)"`; \ test -f "$(distdir)/$$relfile" || \ cp -p $$file "$(distdir)/$$relfile"; \ else :; fi; \ done; \ done mostlyclean-aminfo: -rm -rf epix.t2d epix.t2p clean-aminfo: -test -z "epix.dvi epix.pdf epix.ps epix.html" \ || rm -rf epix.dvi epix.pdf epix.ps epix.html maintainer-clean-aminfo: @list='$(INFO_DEPS)'; for i in $$list; do \ i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \ echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \ rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \ done install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-info check-am: all-am check: check-am all-am: Makefile $(INFO_DEPS) $(DATA) installdirs: for dir in "$(DESTDIR)$(infodir)" "$(DESTDIR)$(docdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-aminfo clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: $(DVIS) html: html-am html-am: $(HTMLS) info: info-am info-am: $(INFO_DEPS) install-data-am: install-docDATA install-info-am install-dvi: install-dvi-am install-dvi-am: $(DVIS) @$(NORMAL_INSTALL) @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dvidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dvidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \ done install-exec-am: install-html: install-html-am install-html-am: $(HTMLS) @$(NORMAL_INSTALL) @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ $(am__strip_dir) \ d2=$$d$$p; \ if test -d "$$d2"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ echo " $(INSTALL_DATA) '$$d2'/* '$(DESTDIR)$(htmldir)/$$f'"; \ $(INSTALL_DATA) "$$d2"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \ else \ list2="$$list2 $$d2"; \ fi; \ done; \ test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done; } install-info: install-info-am install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(infodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(infodir)" || exit 1; \ fi; \ for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ esac; \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ if test -f $$ifile; then \ echo "$$ifile"; \ else : ; fi; \ done; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done @$(POST_INSTALL) @if $(am__can_run_installinfo); then \ list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\ done; \ else : ; fi install-man: install-pdf: install-pdf-am install-pdf-am: $(PDFS) @$(NORMAL_INSTALL) @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pdfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pdfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done install-ps: install-ps-am install-ps-am: $(PSS) @$(NORMAL_INSTALL) @list='$(PSS)'; test -n "$(psdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(psdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(psdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-aminfo \ maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-aminfo mostlyclean-generic pdf: pdf-am pdf-am: $(PDFS) ps: ps-am ps-am: $(PSS) uninstall-am: uninstall-docDATA uninstall-dvi-am uninstall-html-am \ uninstall-info-am uninstall-pdf-am uninstall-ps-am .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-aminfo clean-generic \ cscopelist-am ctags-am dist-info distclean distclean-generic \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-docDATA \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-aminfo \ maintainer-clean-generic mostlyclean mostlyclean-aminfo \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-docDATA uninstall-dvi-am \ uninstall-html-am uninstall-info-am uninstall-pdf-am \ uninstall-ps-am .PRECIOUS: Makefile %.eepic: %.xp ../epix-local $(EPIXFLAGS) $< # tar up tex, xp, and eepic files; build ps, pdf manual-stamp: manual.tex $(XPS) $(EEPICS) latex -interaction=nonstopmode manual latex -interaction=nonstopmode manual makeindex manual.idx ../laps-local --pdf --verbose manual.tex touch manual-stamp manual_src.tar.gz: manual-stamp tar -cf manual_src.tar manual.aux manual.ind manual.tex manual.toc \ $(XPS) $(EEPICS) gzip -9 manual_src.tar #PS manual.ps.gz: manual-stamp gzip -9 -c manual.ps > manual.ps.gz #PDF manual.pdf.gz: manual-stamp gzip -9 -c manual.pdf > manual.pdf.gz epix.info: manual-stamp epix.texi makeinfo epix.texi epix.info.bz2: manual-stamp epix.info bzip2 -fk epix.info # 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: epix-1.2.21/doc/alignment.eepic000066400000000000000000000012151417356203700163030ustar00rootroot00000000000000%% Generated from alignment.xp on Fri Jan 7 14:18:43 EST 2005 by %% ePiX-1.0.3 %% %% Cartesian bounding box: [-1,1] x [-1,1] %% Actual size: 72pt x 24pt %% Figure offset: right by 0pt, up by 0pt %% \setlength{\unitlength}{1pt} \begin{picture}(72,24)(-0,-0) %% --- \path(0.00140226,12)(12.001,12)(24.0006,12)(36.0002,12)(47.9998,12) (59.9994,12)(71.999,12) \path(36,0.00046742)(36,12.0001)(36,23.9997) \put(36,12){\makebox(0,0)[bl]{\texttt{[tr]}}} \put(36,12){\makebox(0,0)[c]{{\circle*{3}}}} \put(36,12){\makebox(0,0)[br]{\texttt{[tl]}}} \put(36,12){\makebox(0,0)[tl]{\texttt{[br]}}} \put(36,12){\makebox(0,0)[tr]{\texttt{[bl]}}} \end{picture} epix-1.2.21/doc/alignment.xp000066400000000000000000000006531417356203700156520ustar00rootroot00000000000000/* -*-ePiX-*- */ /* alignment.c -- ePiX's reverse-LaTeX label alignment option */ #include "epix.h" using namespace ePiX; P O(0,0); int main() { bounding_box(P(-1,-1), P(1,1)); picture(P(72,24)); unitlength("1pt"); begin(); Line(O, E_1); Line(O, E_2); font_face("tt"); dot(O, P(0,0), "[tr]", tr); label(O, P(0,0), "[tl]", tl); label(O, P(0,0), "[br]", br); label(O, P(0,0), "[bl]", bl); end(); } epix-1.2.21/doc/alignment_lr.eepic000066400000000000000000000010471417356203700170030ustar00rootroot00000000000000%% Generated from alignment_lr.xp on Fri Jan 7 14:18:31 EST 2005 by %% ePiX-1.0.3 %% %% Cartesian bounding box: [-1,1] x [-1,1] %% Actual size: 72pt x 24pt %% Figure offset: right by 0pt, up by 0pt %% \setlength{\unitlength}{1pt} \begin{picture}(72,24)(-0,-0) %% --- \put(0,12){\makebox(0,0)[r]{\texttt{[l]}}} \put(0,12){\makebox(0,0)[c]{{\circle*{3}}}} \put(0,12){\makebox(0,0)[l]{\texttt{[r]}}} \put(72,12){\makebox(0,0)[b]{\texttt{[t]}}} \put(72,12){\makebox(0,0)[c]{{\circle*{3}}}} \put(72,12){\makebox(0,0)[t]{\texttt{[b]}}} \end{picture} epix-1.2.21/doc/alignment_lr.xp000066400000000000000000000006261417356203700163470ustar00rootroot00000000000000/* -*-ePiX-*- */ /* alignment_lr.c -- ePiX's reverse-LaTeX label alignment option */ #include "epix.h" using namespace ePiX; P p1(-1,0), p2(1,0); int main() { bounding_box(P(-1,-1), P(1,1)); picture(P(72,24)); unitlength("1pt"); begin(); font_face("tt"); dot(p1, P(0,0), "[l]", l); label(p1, P(0,0), "[r]", r); dot(p2, P(0,0), "[t]", t); label(p2, P(0,0), "[b]", b); end(); } epix-1.2.21/doc/arrow.eepic000066400000000000000000000026361417356203700154670ustar00rootroot00000000000000%% Generated from arrow.xp on Sat Aug 6 12:20:57 EDT 2011 by %% ePiX-1.2.4 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 24 x 12pt %% Figure offset: left by 0pt, down by 0pt %% %% usepackages epic,eepic,xcolor %% \xdefinecolor{rgb_000000}{rgb}{0,0,0}% \setlength{\unitlength}{1pt}% \begin{picture}(24,12)(0,0)% \path(0,6)(24,6) \path(15.75,4.875)(17.8125,4.875) \path(15.75,5.25)(19.875,5.25) \path(15.75,5.625)(21.9375,5.625) \path(15.75,6)(24,6) \path(15.75,6.375)(21.9375,6.375) \path(15.75,6.75)(19.875,6.75) \path(15.75,7.125)(17.8125,7.125) \path(23.6071,5.92857)(23.6071,6.07143) \path(23.2143,5.85714)(23.2143,6.14286) \path(22.8214,5.78571)(22.8214,6.21429) \path(22.4286,5.71429)(22.4286,6.28571) \path(22.0357,5.64286)(22.0357,6.35714) \path(21.6429,5.57143)(21.6429,6.42857) \path(21.25,5.5)(21.25,6.5) \path(20.8571,5.42857)(20.8571,6.57143) \path(20.4643,5.35714)(20.4643,6.64286) \path(20.0714,5.28571)(20.0714,6.71429) \path(19.6786,5.21429)(19.6786,6.78571) \path(19.2857,5.14286)(19.2857,6.85714) \path(18.8929,5.07143)(18.8929,6.92857) \path(18.5,5)(18.5,7) \path(18.1071,4.92857)(18.1071,7.07143) \path(17.7143,4.85714)(17.7143,7.14286) \path(17.3214,4.78571)(17.3214,7.21429) \path(16.9286,4.71429)(16.9286,7.28571) \path(16.5357,4.64286)(16.5357,7.35714) \path(16.1429,4.57143)(16.1429,7.42857) \path(15.75,4.5)(15.75,7.5) \path(15.75,6)(15.75,4.5)(24,6)(15.75,7.5)(15.75,6) \end{picture}% epix-1.2.21/doc/arrow.xp000066400000000000000000000002511417356203700150200ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; int main() { picture(P(-2,-1),P(2,1), "24x12pt"); begin(); arrow(P(xmin(),0), P(xmax(),0)); end(); } epix-1.2.21/doc/arrow25.eepic000066400000000000000000000031361417356203700156320ustar00rootroot00000000000000%% Generated from arrow25.xp on Sat Aug 6 12:21:00 EDT 2011 by %% ePiX-1.2.4 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 24 x 12pt %% Figure offset: left by 0pt, down by 0pt %% %% usepackages epic,eepic,xcolor %% \xdefinecolor{rgb_000000}{rgb}{0,0,0}% \setlength{\unitlength}{1pt}% \begin{picture}(24,12)(0,0)% \path(0,6)(24,6) \path(16.2656,4.875)(17.8125,4.875) \path(16.7813,5.25)(19.875,5.25) \path(17.2969,5.625)(21.9375,5.625) \path(17.8125,6)(24,6) \path(17.2969,6.375)(21.9375,6.375) \path(16.7813,6.75)(19.875,6.75) \path(16.2656,7.125)(17.8125,7.125) \path(23.6071,5.92857)(23.6071,6.07143) \path(23.2143,5.85714)(23.2143,6.14286) \path(22.8214,5.78571)(22.8214,6.21429) \path(22.4286,5.71429)(22.4286,6.28571) \path(22.0357,5.64286)(22.0357,6.35714) \path(21.6429,5.57143)(21.6429,6.42857) \path(21.25,5.5)(21.25,6.5) \path(20.8571,5.42857)(20.8571,6.57143) \path(20.4643,5.35714)(20.4643,6.64286) \path(20.0714,5.28571)(20.0714,6.71429) \path(19.6786,5.21429)(19.6786,6.78571) \path(19.2857,5.14286)(19.2857,6.85714) \path(18.8929,5.07143)(18.8929,6.92857) \path(18.5,5)(18.5,7) \path(18.1071,4.92857)(18.1071,7.07143) \path(17.7143,4.85714)(17.7143,5.92857) \path(17.7143,6.07143)(17.7143,7.14286) \path(17.3214,4.78571)(17.3214,5.64286) \path(17.3214,6.35714)(17.3214,7.21429) \path(16.9286,4.71429)(16.9286,5.35714) \path(16.9286,6.64286)(16.9286,7.28571) \path(16.5357,4.64286)(16.5357,5.07143) \path(16.5357,6.92857)(16.5357,7.35714) \path(16.1429,4.57143)(16.1429,4.78571) \path(16.1429,7.21429)(16.1429,7.42857) \path(17.8125,6)(15.75,4.5)(24,6)(15.75,7.5)(17.8125,6) \end{picture}% epix-1.2.21/doc/arrow25.xp000066400000000000000000000002771417356203700151770ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; int main() { picture(P(-2,-1),P(2,1), "24x12pt"); begin(); arrow_inset(0.25); arrow(P(xmin(),0), P(xmax(),0)); end(); } epix-1.2.21/doc/arrow25_old.eepic000066400000000000000000000011601417356203700164630ustar00rootroot00000000000000%% Generated from arrows.xp on Mon Jul 2 20:38:23 EDT 2007 by %% ePiX-1.1.6 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 24 x 12pt %% Figure offset: left by 0pt, down by 0pt %% \xdefinecolor{rgb_000000}{rgb}{0,0,0} \setlength{\unitlength}{1pt} \begin{picture}(24,12)(-0,-0) \path(0,6)(24,6) %% \path(17.8125,4.875)(16.2656,4.875) \path(19.875,5.25)(16.7813,5.25) \path(21.9375,5.625)(17.2969,5.625) \path(24,6)(17.8125,6) \path(21.9375,6.375)(17.2969,6.375) \path(19.875,6.75)(16.7813,6.75) \path(17.8125,7.125)(16.2656,7.125) \path(17.8125,6)(15.75,4.5)(24,6)(15.75,7.5)(17.8125,6) %% \end{picture} epix-1.2.21/doc/arrow50.eepic000066400000000000000000000034251417356203700156310ustar00rootroot00000000000000%% Generated from arrow50.xp on Sat Aug 6 12:21:03 EDT 2011 by %% ePiX-1.2.4 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 24 x 12pt %% Figure offset: left by 0pt, down by 0pt %% %% usepackages epic,eepic,xcolor %% \xdefinecolor{rgb_000000}{rgb}{0,0,0}% \setlength{\unitlength}{1pt}% \begin{picture}(24,12)(0,0)% \path(0,6)(24,6) \path(16.7813,4.875)(17.8125,4.875) \path(17.8125,5.25)(19.875,5.25) \path(18.8438,5.625)(21.9375,5.625) \path(19.875,6)(24,6) \path(18.8438,6.375)(21.9375,6.375) \path(17.8125,6.75)(19.875,6.75) \path(16.7813,7.125)(17.8125,7.125) \path(23.6071,5.92857)(23.6071,6.07143) \path(23.2143,5.85714)(23.2143,6.14286) \path(22.8214,5.78571)(22.8214,6.21429) \path(22.4286,5.71429)(22.4286,6.28571) \path(22.0357,5.64286)(22.0357,6.35714) \path(21.6429,5.57143)(21.6429,6.42857) \path(21.25,5.5)(21.25,6.5) \path(20.8571,5.42857)(20.8571,6.57143) \path(20.4643,5.35714)(20.4643,6.64286) \path(20.0714,5.28571)(20.0714,6.71429) \path(19.6786,5.21429)(19.6786,5.92857) \path(19.6786,6.07143)(19.6786,6.78571) \path(19.2857,5.14286)(19.2857,5.78571) \path(19.2857,6.21429)(19.2857,6.85714) \path(18.8929,5.07143)(18.8929,5.64286) \path(18.8929,6.35714)(18.8929,6.92857) \path(18.5,5)(18.5,5.5) \path(18.5,6.5)(18.5,7) \path(18.1071,4.92857)(18.1071,5.35714) \path(18.1071,6.64286)(18.1071,7.07143) \path(17.7143,4.85714)(17.7143,5.21429) \path(17.7143,6.78571)(17.7143,7.14286) \path(17.3214,4.78571)(17.3214,5.07143) \path(17.3214,6.92857)(17.3214,7.21429) \path(16.9286,4.71429)(16.9286,4.92857) \path(16.9286,7.07143)(16.9286,7.28571) \path(16.5357,4.64286)(16.5357,4.78571) \path(16.5357,7.21429)(16.5357,7.35714) \path(16.1429,4.57143)(16.1429,4.64286) \path(16.1429,7.35714)(16.1429,7.42857) \path(19.875,6)(15.75,4.5)(24,6)(15.75,7.5)(19.875,6) \end{picture}% epix-1.2.21/doc/arrow50.xp000066400000000000000000000002761417356203700151740ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; int main() { picture(P(-2,-1),P(2,1), "24x12pt"); begin(); arrow_inset(0.5); arrow(P(xmin(),0), P(xmax(),0)); end(); } epix-1.2.21/doc/arrow50_old.eepic000066400000000000000000000011551417356203700164650ustar00rootroot00000000000000%% Generated from arrows.xp on Mon Jul 2 20:38:34 EDT 2007 by %% ePiX-1.1.6 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 24 x 12pt %% Figure offset: left by 0pt, down by 0pt %% \xdefinecolor{rgb_000000}{rgb}{0,0,0} \setlength{\unitlength}{1pt} \begin{picture}(24,12)(-0,-0) \path(0,6)(24,6) %% \path(17.8125,4.875)(16.7813,4.875) \path(19.875,5.25)(17.8125,5.25) \path(21.9375,5.625)(18.8438,5.625) \path(24,6)(19.875,6) \path(21.9375,6.375)(18.8438,6.375) \path(19.875,6.75)(17.8125,6.75) \path(17.8125,7.125)(16.7813,7.125) \path(19.875,6)(15.75,4.5)(24,6)(15.75,7.5)(19.875,6) %% \end{picture} epix-1.2.21/doc/basepoint.eepic000066400000000000000000000007071417356203700163160ustar00rootroot00000000000000%% Generated from basepoint.xp on Tue Jan 4 15:32:04 EST 2005 by %% ePiX-1.0.3 %% %% Cartesian bounding box: [0,3.75] x [0,1] %% Actual size: 3.75pc x 1pc %% Figure offset: right by 0pc, up by 0pc %% \setlength{\unitlength}{1pc} \begin{picture}(3.75,1)(-0,-0) %% --- \path(0,-0.375)(3.75,-0.375)(3.75,1)(0,1)(0,-0.375) \allinethickness{0.15pt}% \path(0,0)(3.75,0) \put(0,0){$y=f(x)$} \put(0,0){\makebox(0,0)[c]{{\circle*{0.111111}}}} \end{picture} epix-1.2.21/doc/basepoint.xp000066400000000000000000000010411417356203700156500ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; int main() { bounding_box(P(0,0),P(3.75,1)); unitlength("1pc"); picture(3.75,1); // offset(-0.5,0); begin(); rect(P(x_min, y_min-0.375), P(x_max, y_max)); pen(0.15); line(P(x_min,0), P(x_max,0)); dot_size(2); // std::cout << "\n\\LARGE"; /* label(P(0,0), P(0,0), "$b$"); ddot(P(0,0)); label(P(1,0), P(0,0), "$f$"); ddot(P(1,0)); label(P(2,0), P(0,0), "$p$"); ddot(P(2,0)); */ label(P(0,0), P(0,0), "$y=f(x)$"); ddot(P(0,0)); end(); } epix-1.2.21/doc/camera.eepic000066400000000000000000000301521417356203700155570ustar00rootroot00000000000000%% Generated from camera.xp on Sat Sep 22 17:10:34 EDT 2007 by %% ePiX-1.2.0 %% %% Cartesian bounding box: [-3.5,3.5] x [-3.5,2.5] %% Actual size: 2.625 x 2.25in %% Figure offset: left by 0in, down by 0in %% %% usepackages epic,eepic,xcolor %% \xdefinecolor{rgb_000000}{rgb}{0,0,0}% \xdefinecolor{rgb_7f7f7f}{rgb}{0.498039,0.498039,0.498039}% \xdefinecolor{rgb_e5e5e5}{rgb}{0.898039,0.898039,0.898039}% \xdefinecolor{rgb_ffffff}{rgb}{1,1,1}% \setlength{\unitlength}{1in}% \begin{picture}(2.625,2.25)(0,0)% \path(1.42243,1.30711)(1.4086,1.26997)(1.29561,1.27568) \path(1.3125,1.3125)(1.4523,1.30564)(1.59359,1.29871) \path(1.3125,1.3125)(1.3125,1.44704)(1.3125,1.58496) \path(0.307912,0.721822)(0.173332,2.09409)(2.55902,2.04543) (2.39965,0.566596)(0.307912,0.721822) \put(1.58249,0.490175){\makebox(0,0)[l]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize \textbf{Sea}}}}} \put(0.937572,1.11972){\makebox(0,0)[b]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize \textbf{Sky}}}}} \put(0.735053,0.174015){\makebox(0,0)[r]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize \textbf{Eye}}}}} \put(0.929482,0.537641){\makebox(0,0)[r]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize Viewpoint}}}} \put(0.957156,0.537641){\color{rgb_000000}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(2.476,2.01776){\makebox(0,0)[tr]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize Canvas}}}} \path(0.957156,0.537641)(1.17567,1.01413)(1.3125,1.3125) \color{rgb_7f7f7f}% \path(1.83216,0.911179)(1.84054,0.911179) \path(1.82052,0.916691)(1.83729,0.916691) \path(1.80888,0.922203)(1.83404,0.922203) \path(1.79724,0.927715)(1.83079,0.927715) \path(1.7856,0.933227)(1.82754,0.933227) \path(1.77396,0.938739)(1.82429,0.938739) \path(1.76232,0.944251)(1.82104,0.944251) \path(1.75068,0.949763)(1.81779,0.949763) \path(1.73904,0.955275)(1.81454,0.955275) \path(1.7274,0.960787)(1.81129,0.960787) \path(1.71576,0.966299)(1.80804,0.966299) \path(1.70412,0.971811)(1.80479,0.971811) \path(1.69248,0.977323)(1.80154,0.977323) \path(1.68084,0.982835)(1.79829,0.982835) \path(1.6692,0.988347)(1.79503,0.988347) \path(1.65756,0.993859)(1.79178,0.993859) \path(1.64592,0.999371)(1.78853,0.999371) \path(1.63428,1.00488)(1.78528,1.00488) \path(1.62264,1.0104)(1.78203,1.0104) \path(1.611,1.01591)(1.77878,1.01591) \path(1.60612,1.02142)(1.77553,1.02142) \path(1.60892,1.02693)(1.77228,1.02693) \path(1.61172,1.03244)(1.76903,1.03244) \path(1.61452,1.03796)(1.76578,1.03796) \path(1.61732,1.04347)(1.76253,1.04347) \path(1.62012,1.04898)(1.75928,1.04898) \path(1.62292,1.05449)(1.75603,1.05449) \path(1.62572,1.06)(1.75278,1.06) \path(1.62852,1.06551)(1.74952,1.06551) \path(1.63132,1.07103)(1.74627,1.07103) \path(1.63412,1.07654)(1.74302,1.07654) \path(1.63692,1.08205)(1.73977,1.08205) \path(1.63972,1.08756)(1.73652,1.08756) \path(1.64252,1.09307)(1.73327,1.09307) \path(1.64532,1.09859)(1.73002,1.09859) \path(1.64812,1.1041)(1.72677,1.1041) \path(1.65091,1.10961)(1.72352,1.10961) \path(1.65371,1.11512)(1.72027,1.11512) \path(1.65651,1.12063)(1.71702,1.12063) \path(1.65931,1.12615)(1.71377,1.12615) \path(1.66211,1.13166)(1.71052,1.13166) \path(1.66491,1.13717)(1.70726,1.13717) \path(1.66771,1.14268)(1.70401,1.14268) \path(1.67051,1.14819)(1.70076,1.14819) \path(1.67331,1.15371)(1.69751,1.15371) \path(1.67611,1.15922)(1.69426,1.15922) \path(1.67891,1.16473)(1.69101,1.16473) \path(1.68171,1.17024)(1.68776,1.17024) \path(1.83836,0.908239)(1.83836,0.914877) \path(1.83293,0.910811)(1.83293,0.924087) \path(1.8275,0.913384)(1.8275,0.933297) \path(1.82207,0.915956)(1.82207,0.942506) \path(1.81664,0.918528)(1.81664,0.951716) \path(1.81121,0.9211)(1.81121,0.960926) \path(1.80577,0.923672)(1.80577,0.970136) \path(1.80034,0.926244)(1.80034,0.979345) \path(1.79491,0.928816)(1.79491,0.988555) \path(1.78948,0.931388)(1.78948,0.997765) \path(1.78405,0.93396)(1.78405,1.00697) \path(1.77862,0.936532)(1.77862,1.01618) \path(1.77319,0.939104)(1.77319,1.02539) \path(1.76775,0.941676)(1.76775,1.0346) \path(1.76232,0.944248)(1.76232,1.04381) \path(1.75689,0.94682)(1.75689,1.05302) \path(1.75146,0.949392)(1.75146,1.06223) \path(1.74603,0.951964)(1.74603,1.07144) \path(1.7406,0.954536)(1.7406,1.08065) \path(1.73517,0.957108)(1.73517,1.08986) \path(1.72973,0.95968)(1.72973,1.09907) \path(1.7243,0.962252)(1.7243,1.10828) \path(1.71887,0.964824)(1.71887,1.11749) \path(1.71344,0.967396)(1.71344,1.1267) \path(1.70801,0.969968)(1.70801,1.13591) \path(1.70258,0.97254)(1.70258,1.14512) \path(1.69715,0.975112)(1.69715,1.15433) \path(1.69171,0.977684)(1.69171,1.16354) \path(1.68628,0.980256)(1.68628,1.17275) \path(1.68085,0.982828)(1.68085,1.16855) \path(1.67542,0.9854)(1.67542,1.15786) \path(1.66999,0.987972)(1.66999,1.14716) \path(1.66456,0.990544)(1.66456,1.13647) \path(1.65912,0.993116)(1.65912,1.12577) \path(1.65369,0.995689)(1.65369,1.11508) \path(1.64826,0.998261)(1.64826,1.10439) \path(1.64283,1.00083)(1.64283,1.09369) \path(1.6374,1.0034)(1.6374,1.083) \path(1.63197,1.00598)(1.63197,1.07231) \path(1.62654,1.00855)(1.62654,1.06161) \path(1.6211,1.01112)(1.6211,1.05092) \path(1.61567,1.01369)(1.61567,1.04022) \path(1.61024,1.01626)(1.61024,1.02953) \color{rgb_000000}% \path(1.68451,1.17575)(1.8438,0.905667)(1.60481,1.01884)(1.68451,1.17575) \path(1.55858,1.06528)(1.62462,1.12321)(1.68451,1.17575) \path(1.64966,0.825085)(1.75291,0.867943)(1.8438,0.905667) \path(1.42984,0.888834)(1.52409,0.958865)(1.60481,1.01884) \path(0.957156,0.537641)(1.4039,0.929569)(1.68451,1.17575) \path(0.957156,0.537641)(1.50556,0.765274)(1.8438,0.905667) \path(0.957156,0.537641)(1.35769,0.835234)(1.60481,1.01884) \color{rgb_e5e5e5}% \path(1.64572,0.826226)(1.5548,1.06009) \path(1.63918,0.828123)(1.55101,1.0549) \path(1.63264,0.830021)(1.54722,1.04971) \path(1.6261,0.831918)(1.54344,1.04452) \path(1.61955,0.833815)(1.53965,1.03933) \path(1.61301,0.835712)(1.53586,1.03414) \path(1.60647,0.837609)(1.53208,1.02895) \path(1.59993,0.839507)(1.52829,1.02376) \path(1.59339,0.841404)(1.5245,1.01857) \path(1.58684,0.843301)(1.52072,1.01338) \path(1.5803,0.845198)(1.51693,1.00819) \path(1.57376,0.847095)(1.51314,1.003) \path(1.56722,0.848993)(1.50936,0.997814) \path(1.56068,0.85089)(1.50557,0.992624) \path(1.55413,0.852787)(1.50178,0.987435) \path(1.54759,0.854684)(1.498,0.982245) \path(1.54105,0.856581)(1.49421,0.977056) \path(1.53451,0.858479)(1.49042,0.971866) \path(1.52797,0.860376)(1.48664,0.966677) \path(1.52142,0.862273)(1.48285,0.961487) \path(1.51488,0.86417)(1.47906,0.956298) \path(1.50834,0.866067)(1.47528,0.951108) \path(1.5018,0.867965)(1.47149,0.945919) \path(1.49526,0.869862)(1.4677,0.940729) \path(1.48871,0.871759)(1.46392,0.93554) \path(1.48217,0.873656)(1.46013,0.93035) \path(1.47563,0.875553)(1.45634,0.925161) \path(1.46909,0.877451)(1.45256,0.919971) \path(1.46255,0.879348)(1.44877,0.914781) \path(1.456,0.881245)(1.44498,0.909592) \path(1.44946,0.883142)(1.4412,0.904402) \path(1.44292,0.885039)(1.43741,0.899213) \path(1.43638,0.886937)(1.43362,0.894023) \path(1.56052,1.06017)(1.55261,1.05709) \path(1.56246,1.05506)(1.54664,1.04891) \path(1.5644,1.04995)(1.54066,1.04072) \path(1.56633,1.04484)(1.53469,1.03253) \path(1.56827,1.03973)(1.52872,1.02435) \path(1.57021,1.03461)(1.52274,1.01616) \path(1.57215,1.0295)(1.51677,1.00797) \path(1.57409,1.02439)(1.5108,0.999787) \path(1.57602,1.01928)(1.50482,0.991601) \path(1.57796,1.01417)(1.49885,0.983414) \path(1.5799,1.00906)(1.49288,0.975228) \path(1.58184,1.00395)(1.4869,0.967042) \path(1.58377,0.998841)(1.48093,0.958855) \path(1.58571,0.993731)(1.47496,0.950669) \path(1.58765,0.988621)(1.46898,0.942483) \path(1.58959,0.98351)(1.46301,0.934296) \path(1.59152,0.9784)(1.45704,0.92611) \path(1.59346,0.973289)(1.45106,0.917923) \path(1.5954,0.968179)(1.44509,0.909737) \path(1.59734,0.963068)(1.43911,0.901551) \path(1.59928,0.957958)(1.43314,0.893364) \path(1.60121,0.952847)(1.43369,0.887715) \path(1.60315,0.947737)(1.44233,0.88521) \path(1.60509,0.942626)(1.45097,0.882705) \path(1.60703,0.937516)(1.45961,0.880199) \path(1.60896,0.932405)(1.46825,0.877694) \path(1.6109,0.927295)(1.47689,0.875189) \path(1.61284,0.922184)(1.48552,0.872684) \path(1.61478,0.917074)(1.49416,0.870179) \path(1.61672,0.911963)(1.5028,0.867673) \path(1.61865,0.906853)(1.51144,0.865168) \path(1.62059,0.901742)(1.52008,0.862663) \path(1.62253,0.896632)(1.52872,0.860158) \path(1.62447,0.891521)(1.53736,0.857653) \path(1.6264,0.886411)(1.54599,0.855147) \path(1.62834,0.8813)(1.55463,0.852642) \path(1.63028,0.87619)(1.56327,0.850137) \path(1.63222,0.871079)(1.57191,0.847632) \path(1.63416,0.865969)(1.58055,0.845127) \path(1.63609,0.860858)(1.58919,0.842621) \path(1.63803,0.855748)(1.59783,0.840116) \path(1.63997,0.850637)(1.60646,0.837611) \path(1.64191,0.845527)(1.6151,0.835106) \path(1.64384,0.840416)(1.62374,0.8326) \path(1.64578,0.835306)(1.63238,0.830095) \path(1.64772,0.830195)(1.64102,0.82759) \color{rgb_000000}% \path(1.55858,1.06528)(1.64966,0.825085)(1.42984,0.888834)(1.55858,1.06528) \path(1.69177,1.3845)(1.6229,1.16677)(1.54714,0.927292) \put(1.69177,1.3845){\makebox(0,0)[b]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize Object}}}} \path(2.05075,0.923554)(1.88188,0.980517)(1.71366,1.03726) \put(2.05075,0.923554){\makebox(0,0)[l]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize Shadow}}}} \put(1.12218,1.68556){\makebox(0,0)[b]{\colorbox{rgb_ffffff}{\hbox{\color{rgb_000000}\footnotesize Target}}}} \path(1.12218,1.68556)(1.29391,1.34894) \path(1.27634,1.40359)(1.2621,1.39054) \path(1.27896,1.39892)(1.26528,1.38638) \path(1.28062,1.39336)(1.26846,1.38222) \path(1.28229,1.38781)(1.27164,1.37806) \path(1.28395,1.38226)(1.27482,1.3739) \path(1.28561,1.3767)(1.278,1.36974) \path(1.28727,1.37115)(1.28118,1.36558) \path(1.28893,1.3656)(1.28437,1.36142) \path(1.29059,1.36005)(1.28755,1.35726) \path(1.29225,1.35449)(1.29073,1.3531) \path(1.25949,1.39395)(1.29061,1.35998) \path(1.26348,1.39703)(1.28731,1.37102) \path(1.26812,1.39939)(1.28401,1.38205) \path(1.27276,1.40176)(1.28071,1.39309) \path(1.26816,1.39941)(1.25892,1.3947)(1.29391,1.34894) (1.2774,1.40413)(1.26816,1.39941) \put(1.3125,1.3125){\color{rgb_000000}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.8pt}% \path(0.957156,0.537641)(1.55482,0.490175) \allinethickness{0.0055348in}% \path(1.4989,0.489651)(1.50786,0.485229) \path(1.49933,0.495061)(1.51726,0.486218) \path(1.49976,0.500472)(1.52665,0.487207) \path(1.50454,0.503736)(1.53604,0.488197) \path(1.52968,0.496955)(1.54543,0.489186) \path(1.54888,0.489549)(1.54985,0.491516) \path(1.54293,0.488923)(1.54487,0.492858) \path(1.53699,0.488297)(1.5399,0.494199) \path(1.53104,0.487671)(1.53493,0.495541) \path(1.5251,0.487045)(1.52995,0.496882) \path(1.51916,0.486419)(1.52498,0.498223) \path(1.51321,0.485792)(1.52001,0.499565) \path(1.50727,0.485166)(1.51504,0.500906) \path(1.50133,0.48454)(1.51006,0.502247) \path(1.49903,0.491318)(1.50509,0.503589) \allinethickness{0.8pt}% \path(1.49929,0.494585)(1.49847,0.48424)(1.55482,0.490175) (1.50012,0.50493)(1.49929,0.494585) \path(0.957156,0.537641)(0.790401,0.174015) \allinethickness{0.0055348in}% \path(0.807364,0.192334)(0.808098,0.200697) \path(0.80171,0.186228)(0.803178,0.202954) \path(0.796055,0.180122)(0.798257,0.20521) \path(0.807022,0.201191)(0.793617,0.202367) \path(0.810836,0.196084)(0.793081,0.197642) \path(0.806749,0.19167)(0.792545,0.192917) \path(0.802662,0.187256)(0.792009,0.188191) \path(0.798575,0.182843)(0.791473,0.183466) \path(0.794488,0.178429)(0.790937,0.178741) \allinethickness{0.8pt}% \path(0.803586,0.202767)(0.794153,0.207092)(0.790401,0.174015) (0.813019,0.198441)(0.803586,0.202767) \path(0.957156,0.537641)(0.937572,1.09205) \allinethickness{0.0055348in}% \path(0.938782,1.08718)(0.936611,1.08655) \path(0.939993,1.08231)(0.935649,1.08104) \path(0.941204,1.07743)(0.934688,1.07554) \path(0.942414,1.07256)(0.933727,1.07003) \path(0.943625,1.06769)(0.932765,1.06453) \path(0.944835,1.06282)(0.931804,1.05902) \path(0.946046,1.05794)(0.930842,1.05352) \path(0.947256,1.05307)(0.929881,1.04801) \path(0.948467,1.0482)(0.929251,1.04261) \path(0.931094,1.05496)(0.934635,1.0428) \path(0.933253,1.06732)(0.940334,1.043) \path(0.935413,1.07969)(0.946034,1.0432) \allinethickness{0.8pt}% \path(0.939306,1.04296)(0.949677,1.04333)(0.937572,1.09205) (0.928935,1.0426)(0.939306,1.04296) \end{picture}% epix-1.2.21/doc/camera.xp000066400000000000000000000032611417356203700151220ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; const double ht(4); const P target(0,0,0); const P observer(0,-4,0); const P dtarg(-0.5,0,1); const double dx(0.375); // location of label const P obj_loc(1,0,0.25); P F(P arg) { double x(arg.x2()); return (ht/(ht+x))*P(arg.x1(), 0, arg.x3()); } P P1(0.75, -1, -0.25); P P2(1, -1.25, -0.75); P P3(0.5, -1.5, -0.5 ); P midpt((1.0/3)*(P1+P2+P3)); int main() { bounding_box(P(-3.5,-3.5),P(3.5,2.5)); unitlength("0.375in"); picture(P(7,6)); begin(); camera.at(P(1.5,-10,3.5)); camera.range(10); font_size("footnotesize"); right_angle(target, E_1, -E_2); line(target, target+2*dx*E_1); line(target, target+2*dx*E_3); // grid(P(-3,0,-2), P(3,0,2), 6, 8); grid(P(-3,0,-2), P(3,0,2)); masklabel(observer+E_1, P(2,0), "\\textbf{Sea}", r); masklabel(observer+E_3, P(0,2), "\\textbf{Sky}", t); masklabel(observer-E_2, P(-4,0), "\\textbf{Eye}", l); masklabel(observer, P(-2,0), "Viewpoint", l); dot(observer); masklabel(P(3,0,2), P(-6,-2), "Canvas", bl); line(observer, target); fill(Black(0.5)); triangle(F(P1), F(P2), F(P3)); line(P1, F(P1)); line(P2, F(P2)); line(P3, F(P3)); line(observer, F(P1)); line(observer, F(P2)); line(observer, F(P3)); fill(Black(0.1)); triangle(P1, P2, P3); line(obj_loc, midpt); masklabel(obj_loc, P(0,0), "Object", t); line(P(2,0,-1), F(midpt)); masklabel(P(2,0,-1), P(0,0), "Shadow", r); masklabel(target+dtarg, P(0,0), "Target", t); arrow(target+dtarg, target+0.1*dtarg, 0.5); dot(target); bold(); arrow(observer, observer+E_1, 0.5); arrow(observer, observer-E_2, 0.5); arrow(observer, observer+E_3, 0.5); end(); } epix-1.2.21/doc/cb.eepic000066400000000000000000000015141417356203700147130ustar00rootroot00000000000000%% Generated from cb.xp on Tue Jan 4 15:32:10 EST 2005 by %% ePiX-1.0.3 %% %% Cartesian bounding box: [-2,2] x [-1,1] %% Actual size: 1.5in x 0.75in %% Figure offset: right by 0in, up by 0in %% \setlength{\unitlength}{1in} \begin{picture}(1.5,0.75)(-0,-0) %% --- \path(0,0.375)(1.5,0.375) \put(0,0.375){\makebox(0,0)[c]{\rule{0.5pt}{4pt}}} \put(0.375,0.375){\makebox(0,0)[c]{\rule{0.5pt}{4pt}}} \put(0.75,0.375){\makebox(0,0)[c]{\rule{0.5pt}{4pt}}} \put(1.125,0.375){\makebox(0,0)[c]{\rule{0.5pt}{4pt}}} \put(1.5,0.375){\makebox(0,0)[c]{\rule{0.5pt}{4pt}}} %% --- \path(0.75,0)(0.75,0.75) \put(0.75,0){\makebox(0,0)[c]{\rule{4pt}{0.5pt}}} \put(0.75,0.75){\makebox(0,0)[c]{\rule{4pt}{0.5pt}}} %% --- \thicklines \path(0,0.375)(0.375,0.75)(0.75,0.375)(1.125,0.75)(1.5,0.375) \put(0.75,-0.055348){\makebox(0,0)[t]{\code{cb}}} \end{picture} epix-1.2.21/doc/cb.xp000066400000000000000000000004361417356203700142570ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; int main() { bounding_box(P(-2,-1),P(2,1)); unitlength("1in"); picture(1.5,0.75); begin(); h_axis(4); v_axis(1); bold(); plot(cb, x_min, x_max, 4); label(P(0,y_min), P(0,-4), "\\code{cb}", b); end(); } epix-1.2.21/doc/color_density.eepic000066400000000000000000000106461417356203700172120ustar00rootroot00000000000000%% Generated from color_density.xp on Thu Jul 5 10:01:14 EDT 2007 by %% ePiX-1.1.6 %% %% Cartesian bounding box: [-2,2] x [0,1.375] %% Actual size: 4 x 1.5in %% Figure offset: left by 0in, down by 0in %% \newrgbcolor{rgb_000000}{0 0 0} \newrgbcolor{rgb_005454}{0 0.329412 0.329412} \newrgbcolor{rgb_00a9a9}{0 0.662745 0.662745} \newrgbcolor{rgb_00fefe}{0 0.996078 0.996078} \newrgbcolor{rgb_00ffff}{0 1 1} \newrgbcolor{rgb_540000}{0.329412 0 0} \newrgbcolor{rgb_54ffff}{0.329412 1 1} \newrgbcolor{rgb_a90000}{0.662745 0 0} \newrgbcolor{rgb_a9ffff}{0.662745 1 1} \newrgbcolor{rgb_fe0000}{0.996078 0 0} \newrgbcolor{rgb_feffff}{0.996078 1 1} \newrgbcolor{rgb_ff0000}{1 0 0} \newrgbcolor{rgb_ff5454}{1 0.329412 0.329412} \newrgbcolor{rgb_ffa9a9}{1 0.662745 0.662745} \newrgbcolor{rgb_fffefe}{1 0.996078 0.996078} \psset{unit=1in,linewidth=0.4pt} \begin{pspicture}(4,1.5)(-0,-0) \psset{fillcolor=rgb_feffff}% \psline[fillstyle=solid] (-0.123,1.22727)(0.127,1.22727)(0.127,1.5)(-0.123,1.5)(-0.123,1.22727) %% \psline(-0.123,1.22727)(0.127,1.22727)(0.127,1.5)(-0.123,1.5)(-0.123,1.22727) %% \psset{fillcolor=rgb_a9ffff}% \psline[fillstyle=solid] (0.21,1.22727)(0.46,1.22727)(0.46,1.5)(0.21,1.5)(0.21,1.22727) %% \psline(0.21,1.22727)(0.46,1.22727)(0.46,1.5)(0.21,1.5)(0.21,1.22727) %% \psset{fillcolor=rgb_54ffff}% \psline[fillstyle=solid] (0.543,1.22727)(0.793,1.22727)(0.793,1.5)(0.543,1.5)(0.543,1.22727) %% \psline(0.543,1.22727)(0.793,1.22727)(0.793,1.5)(0.543,1.5)(0.543,1.22727) %% \psset{fillcolor=rgb_00fefe}% \psline[fillstyle=solid] (0.876,1.22727)(1.126,1.22727)(1.126,1.5)(0.876,1.5)(0.876,1.22727) %% \psline(0.876,1.22727)(1.126,1.22727)(1.126,1.5)(0.876,1.5)(0.876,1.22727) %% \psset{fillcolor=rgb_00a9a9}% \psline[fillstyle=solid] (1.209,1.22727)(1.459,1.22727)(1.459,1.5)(1.209,1.5)(1.209,1.22727) %% \psline(1.209,1.22727)(1.459,1.22727)(1.459,1.5)(1.209,1.5)(1.209,1.22727) %% \psset{fillcolor=rgb_005454}% \psline[fillstyle=solid] (1.542,1.22727)(1.792,1.22727)(1.792,1.5)(1.542,1.5)(1.542,1.22727) %% \psline(1.542,1.22727)(1.792,1.22727)(1.792,1.5)(1.542,1.5)(1.542,1.22727) %% \psset{fillcolor=rgb_000000}% \psline[fillstyle=solid] (1.875,1.22727)(2.125,1.22727)(2.125,1.5)(1.875,1.5)(1.875,1.22727) %% \psline(1.875,1.22727)(2.125,1.22727)(2.125,1.5)(1.875,1.5)(1.875,1.22727) %% \psset{fillcolor=rgb_540000}% \psline[fillstyle=solid] (2.208,1.22727)(2.458,1.22727)(2.458,1.5)(2.208,1.5)(2.208,1.22727) %% \psline(2.208,1.22727)(2.458,1.22727)(2.458,1.5)(2.208,1.5)(2.208,1.22727) %% \psset{fillcolor=rgb_a90000}% \psline[fillstyle=solid] (2.541,1.22727)(2.791,1.22727)(2.791,1.5)(2.541,1.5)(2.541,1.22727) %% \psline(2.541,1.22727)(2.791,1.22727)(2.791,1.5)(2.541,1.5)(2.541,1.22727) %% \psset{fillcolor=rgb_fe0000}% \psline[fillstyle=solid] (2.874,1.22727)(3.124,1.22727)(3.124,1.5)(2.874,1.5)(2.874,1.22727) %% \psline(2.874,1.22727)(3.124,1.22727)(3.124,1.5)(2.874,1.5)(2.874,1.22727) %% \psset{fillcolor=rgb_ff5454}% \psline[fillstyle=solid] (3.207,1.22727)(3.457,1.22727)(3.457,1.5)(3.207,1.5)(3.207,1.22727) %% \psline(3.207,1.22727)(3.457,1.22727)(3.457,1.5)(3.207,1.5)(3.207,1.22727) %% \psset{fillcolor=rgb_ffa9a9}% \psline[fillstyle=solid] (3.54,1.22727)(3.79,1.22727)(3.79,1.5)(3.54,1.5)(3.54,1.22727) %% \psline(3.54,1.22727)(3.79,1.22727)(3.79,1.5)(3.54,1.5)(3.54,1.22727) %% \psset{fillcolor=rgb_fffefe}% \psline[fillstyle=solid] (3.873,1.22727)(4.123,1.22727)(4.123,1.5)(3.873,1.5)(3.873,1.22727) %% \psline(3.873,1.22727)(4.123,1.22727)(4.123,1.5)(3.873,1.5)(3.873,1.22727) %% \psline(0,0)(4,0) %% \rput(0,0){\makebox(0,0){{$\rule{0.5pt}{4pt}$}}} \rput(1,0){\makebox(0,0){{$\rule{0.5pt}{4pt}$}}} \rput(2,0){\makebox(0,0){{$\rule{0.5pt}{4pt}$}}} \rput(3,0){\makebox(0,0){{$\rule{0.5pt}{4pt}$}}} \rput(4,0){\makebox(0,0){{$\rule{0.5pt}{4pt}$}}} \psline(2,0)(2,1.09091) %% \rput(2,0){\makebox(0,0){{$\rule{4pt}{0.5pt}$}}} \rput(2,1.09091){\makebox(0,0){{$\rule{4pt}{0.5pt}$}}} \rput(0,-0.055348){\makebox(0,0)[t]{{$-2$}}} \rput(1,-0.055348){\makebox(0,0)[t]{{$-1$}}} \rput(2,-0.055348){\makebox(0,0)[t]{{$\phantom{-}0$}}} \rput(3,-0.055348){\makebox(0,0)[t]{{$\phantom{-}1$}}} \rput(4,-0.055348){\makebox(0,0)[t]{{$\phantom{-}2$}}} \psset{linecolor=rgb_00ffff}% \psline(0,1.09091)(1,1.09091) %% \psline(1,1.09091)(2,0) %% \psline(2,0)(3,0) %% \psline(3,0)(4,1.09091) %% \psset{linewidth=0.8pt}% \psset{linecolor=rgb_ff0000}% \psline (0,1.09091)(1,0) %% \psline(1,0)(2,0) %% \psline(2,0)(3,1.09091) %% \psline(3,1.09091)(4,1.09091) %% \end{pspicture} epix-1.2.21/doc/color_density.xp000066400000000000000000000012231417356203700165430ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; double dX(0.125), dY(0.25); int main() { picture(P(-2, 0), P(2, 1.125 + dY), "4 x 1.5in"); begin(); fill(); for (int i=-6; i<=6; ++i) { const double x(0.333*i); fill(Red(x)); rect(P(x-dX, 1.125), P(x+dX, 1.125+dY)); } nofill(); h_axis(4); v_axis(P(0,0), P(0,1), 1); h_axis_labels(4, P(0,-4), b); red(-1); line(P(-2,1), P(-1,1)); line(P(-1,1), P(0,0)); line(P(0,0), P(1,0)); line(P(1,0), P(2,1)); red(); bold(); line(P(-2,1), P(-1,0)); line(P(-1,0), P(0,0)); line(P(0,0), P(1,1)); line(P(1,1), P(2,1)); pst_format(); end(); } epix-1.2.21/doc/dots.eepic000066400000000000000000000011561417356203700153020ustar00rootroot00000000000000%% Generated from dots.xp on Tue Jan 4 15:32:12 EST 2005 by %% ePiX-1.0.3 %% %% Cartesian bounding box: [0,8] x [0,1] %% Actual size: 72pt x 12pt %% Figure offset: right by 10pt, up by 2pt %% \setlength{\unitlength}{1pt} \begin{picture}(72,12)(-10,-2) %% --- \put(0,0){\makebox(0,0)[c]{{\circle*{4.5}}}} \put(9,0){\makebox(0,0)[c]{{\circle*{3}}}} \put(18,0){\makebox(0,0)[c]{{\circle*{2}}}} \put(36,0){\makebox(0,0)[c]{\rule{3pt}{3pt}}} \put(45,0){\makebox(0,0)[c]{\rule{2pt}{2pt}}} \path(58.5,0)(78.75,0) \put(63,0){\makebox(0,0)[c]{{\circle{4.5}}}} \whiten\put(72,0){\makebox(0,0)[c]{{\circle{3}}}} \end{picture} epix-1.2.21/doc/dots.xp000066400000000000000000000005521417356203700146430ustar00rootroot00000000000000/* -*-ePiX-*- */ /* dots.c -- Dot primitives */ #include "epix.h" using namespace ePiX; int main() { unitlength("1pt"); bounding_box(P(0,0), P(8,1)); picture(P(72,12)); offset(P(10,2)); begin(); spot(P(0,0)); dot(P(1,0)); ddot(P(2,0)); box(P(4,0)); bbox(P(5,0)); line(P(6.5,0), P(8.75,0)); ring(P(7,0)); circ(P(8,0)); end(); } epix-1.2.21/doc/ePiX.eepic000066400000000000000000001650571417356203700152110ustar00rootroot00000000000000%% Generated from ePiX.xp on Sat Sep 22 20:16:03 EDT 2007 by %% ePiX-1.2.0 %% %% Cartesian bounding box: [-0.5,5.75] x [2,10] %% Actual size: 4 x 7.5in %% Figure offset: left by 0in, down by 0in %% %% usepackages epic,eepic,xcolor %% \xdefinecolor{cmy_000019}{cmyk}{0,0,0.0980392,0}% \xdefinecolor{rgb_0000ff}{rgb}{0,0,1}% \xdefinecolor{rgb_009800}{rgb}{0,0.596078,0}% \xdefinecolor{rgb_7f7f7f}{rgb}{0.498039,0.498039,0.498039}% \xdefinecolor{rgb_ff0000}{rgb}{1,0,0}% \setlength{\unitlength}{1in}% \begin{picture}(4,7.5)(0,0)% \color{rgb_7f7f7f}% \path(0.32,7.03125)(0.96,7.03125) \path(0.902922,7.02606)(0.931461,7.02606) \path(0.902922,7.03125)(0.96,7.03125) \path(0.902922,7.03644)(0.931461,7.03644) \path(0.954811,7.03031)(0.954811,7.03219) \path(0.949622,7.02936)(0.949622,7.03314) \path(0.944433,7.02842)(0.944433,7.03408) \path(0.939244,7.02748)(0.939244,7.03502) \path(0.934056,7.02653)(0.934056,7.03597) \path(0.928867,7.02559)(0.928867,7.03691) \path(0.923678,7.02465)(0.923678,7.03785) \path(0.918489,7.0237)(0.918489,7.0388) \path(0.9133,7.02276)(0.9133,7.03974) \path(0.908111,7.02182)(0.908111,7.04068) \path(0.902922,7.02087)(0.902922,7.04163) \path(0.902922,7.03125)(0.902922,7.02087)(0.96,7.03125) (0.902922,7.04163)(0.902922,7.03125) \put(0.32,7.0866){\makebox(0,0)[b]{\hbox{\color{rgb_7f7f7f}\footnotesize \texttt{xp}, \texttt{flx}}}} \put(0.32,7.03125){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(0.97999,7.08981){\makebox(0,0)[b]{\hbox{\color{rgb_7f7f7f}\footnotesize \texttt{eepic}}}} \put(0.96,7.03125){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(0.96,7.03125)(0.963187,7.03115)(0.966347,7.03086) (0.969482,7.03039)(0.972591,7.02972)(0.975676,7.02888) (0.978736,7.02785)(0.981772,7.02665)(0.984785,7.02528) (0.987774,7.02374)(0.990741,7.02203)(0.993685,7.02016) (0.996608,7.01813)(0.999509,7.01594)(1.00239,7.0136) (1.00525,7.01111)(1.00809,7.00847)(1.01091,7.00569) (1.01371,7.00277)(1.01649,6.99972)(1.01926,6.99653) (1.02201,6.99321)(1.02474,6.98976)(1.02745,6.98619)(1.03014,6.9825) (1.03282,6.97869)(1.03549,6.97477)(1.03814,6.97074)(1.04077,6.9666) (1.04339,6.96235)(1.046,6.95801)(1.04859,6.95356)(1.05117,6.94903) (1.05374,6.9444)(1.0563,6.93968)(1.05884,6.93488)(1.06138,6.93) (1.0639,6.92504)(1.06641,6.92)(1.06891,6.9149)(1.07141,6.90972) (1.07389,6.90448)(1.07637,6.89918)(1.07884,6.89382)(1.0813,6.8884) (1.08375,6.88293)(1.0862,6.87742)(1.08864,6.87185)(1.09107,6.86625) (1.0935,6.86061)(1.09593,6.85493)(1.09835,6.84921)(1.10076,6.84347) (1.10317,6.8377)(1.10558,6.83191)(1.10799,6.8261)(1.1104,6.82028) (1.1128,6.81444)(1.1152,6.80859)(1.1176,6.80273)(1.12,6.79688) (1.1224,6.79102)(1.1248,6.78516)(1.1272,6.77931)(1.1296,6.77347) (1.13201,6.76765)(1.13442,6.76184)(1.13683,6.75605) (1.13924,6.75028)(1.14165,6.74454)(1.14407,6.73882)(1.1465,6.73314) (1.14893,6.7275)(1.15136,6.7219)(1.1538,6.71633)(1.15625,6.71082) (1.1587,6.70535)(1.16116,6.69993)(1.16363,6.69457)(1.16611,6.68927) (1.16859,6.68403)(1.17109,6.67885)(1.17359,6.67375)(1.1761,6.66871) (1.17862,6.66375)(1.18116,6.65887)(1.1837,6.65407)(1.18626,6.64935) (1.18883,6.64472)(1.19141,6.64019)(1.194,6.63574)(1.19661,6.6314) (1.19923,6.62715)(1.20186,6.62301)(1.20451,6.61898) (1.20718,6.61506)(1.20986,6.61125)(1.21255,6.60756) (1.21526,6.60399)(1.21799,6.60054)(1.22074,6.59722) (1.22351,6.59403)(1.22629,6.59098)(1.22909,6.58806) (1.23191,6.58528)(1.23475,6.58264)(1.23761,6.58015) (1.24049,6.57781)(1.24339,6.57562)(1.24631,6.57359) (1.24926,6.57172)(1.25223,6.57001)(1.25522,6.56847)(1.25823,6.5671) (1.26126,6.5659)(1.26432,6.56487)(1.26741,6.56403)(1.27052,6.56336) (1.27365,6.56289)(1.27681,6.5626)(1.28,6.5625) \path(1.28,6.5625)(1.6,6.5625) \allinethickness{0.0055348in}% \path(1.59481,6.56156)(1.59402,6.56359) \path(1.58962,6.56061)(1.58804,6.56467) \path(1.58443,6.55967)(1.58207,6.56576) \path(1.57924,6.55873)(1.57609,6.56685) \path(1.57406,6.55778)(1.57011,6.56793) \path(1.56887,6.55684)(1.56413,6.56902) \path(1.56368,6.5559)(1.55815,6.57011) \path(1.55849,6.55495)(1.55217,6.5712) \path(1.5533,6.55401)(1.5462,6.57228) \path(1.54811,6.55307)(1.54292,6.56641) \path(1.55244,6.57115)(1.54292,6.56745) \path(1.56195,6.56942)(1.54292,6.56202) \path(1.57146,6.56769)(1.54292,6.55659) \path(1.58097,6.56596)(1.54755,6.55296) \path(1.59049,6.56423)(1.57377,6.55773) \allinethickness{1.2pt}% \path(1.54292,6.5625)(1.54292,6.55212)(1.6,6.5625)(1.54292,6.57288)(1.54292,6.5625) \path(1.6,6.5625)(2.24,6.5625) \allinethickness{0.0055348in}% \path(2.18926,6.57172)(2.18292,6.56591) \path(2.19561,6.57057)(2.18292,6.55895) \path(2.20195,6.56942)(2.1831,6.55216) \path(2.20829,6.56827)(2.19259,6.55388) \path(2.21463,6.56711)(2.20207,6.5556) \path(2.22097,6.56596)(2.21155,6.55733) \path(2.22732,6.56481)(2.22103,6.55905) \path(2.23366,6.56365)(2.23052,6.56078) \path(2.18292,6.5602)(2.18926,6.55328) \path(2.18292,6.56827)(2.19561,6.55443) \path(2.18674,6.57218)(2.20195,6.55558) \path(2.19562,6.57057)(2.20829,6.55673) \path(2.20449,6.56896)(2.21463,6.55789) \path(2.21337,6.56734)(2.22097,6.55904) \path(2.22225,6.56573)(2.22732,6.56019) \path(2.23112,6.56411)(2.23366,6.56135) \allinethickness{1.2pt}% \path(2.18292,6.5625)(2.18292,6.55212)(2.24,6.5625) (2.18292,6.57288)(2.18292,6.5625) \put(1.6,6.61785){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\footnotesize \texttt{dvi}}}}} \put(1.6,6.5625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(2.21793,6.59482){\makebox(0,0)[br]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\footnotesize \texttt{ps}}}}} \put(2.24,6.5625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(0.96,6.09375)(0.963187,6.09385)(0.966347,6.09414) (0.969482,6.09461)(0.972591,6.09528)(0.975676,6.09612) (0.978736,6.09715)(0.981772,6.09835)(0.984785,6.09972) (0.987774,6.10126)(0.990741,6.10297)(0.993685,6.10484) (0.996608,6.10687)(0.999509,6.10906)(1.00239,6.1114) (1.00525,6.11389)(1.00809,6.11653)(1.01091,6.11931) (1.01371,6.12223)(1.01649,6.12528)(1.01926,6.12847) (1.02201,6.13179)(1.02474,6.13524)(1.02745,6.13881)(1.03014,6.1425) (1.03282,6.14631)(1.03549,6.15023)(1.03814,6.15426)(1.04077,6.1584) (1.04339,6.16265)(1.046,6.16699)(1.04859,6.17144)(1.05117,6.17597) (1.05374,6.1806)(1.0563,6.18532)(1.05884,6.19012)(1.06138,6.195) (1.0639,6.19996)(1.06641,6.205)(1.06891,6.2101)(1.07141,6.21528) (1.07389,6.22052)(1.07637,6.22582)(1.07884,6.23118)(1.0813,6.2366) (1.08375,6.24207)(1.0862,6.24758)(1.08864,6.25315)(1.09107,6.25875) (1.0935,6.26439)(1.09593,6.27007)(1.09835,6.27579)(1.10076,6.28153) (1.10317,6.2873)(1.10558,6.29309)(1.10799,6.2989)(1.1104,6.30472) (1.1128,6.31056)(1.1152,6.31641)(1.1176,6.32227)(1.12,6.32812) (1.1224,6.33398)(1.1248,6.33984)(1.1272,6.34569)(1.1296,6.35153) (1.13201,6.35735)(1.13442,6.36316)(1.13683,6.36895) (1.13924,6.37472)(1.14165,6.38046)(1.14407,6.38618)(1.1465,6.39186) (1.14893,6.3975)(1.15136,6.4031)(1.1538,6.40867)(1.15625,6.41418) (1.1587,6.41965)(1.16116,6.42507)(1.16363,6.43043)(1.16611,6.43573) (1.16859,6.44097)(1.17109,6.44615)(1.17359,6.45125)(1.1761,6.45629) (1.17862,6.46125)(1.18116,6.46613)(1.1837,6.47093)(1.18626,6.47565) (1.18883,6.48028)(1.19141,6.48481)(1.194,6.48926)(1.19661,6.4936) (1.19923,6.49785)(1.20186,6.50199)(1.20451,6.50602) (1.20718,6.50994)(1.20986,6.51375)(1.21255,6.51744) (1.21526,6.52101)(1.21799,6.52446)(1.22074,6.52778) (1.22351,6.53097)(1.22629,6.53402)(1.22909,6.53694) (1.23191,6.53972)(1.23475,6.54236)(1.23761,6.54485) (1.24049,6.54719)(1.24339,6.54938)(1.24631,6.55141) (1.24926,6.55328)(1.25223,6.55499)(1.25522,6.55653)(1.25823,6.5579) (1.26126,6.5591)(1.26432,6.56013)(1.26741,6.56097)(1.27052,6.56164) (1.27365,6.56211)(1.27681,6.5624)(1.28,6.5625) \put(0.97999,6.03519){\makebox(0,0)[t]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\footnotesize \texttt{tex}}}}} \put(0.96,6.09375){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.24,6.5625)(2.24533,6.55472)(2.25067,6.54701)(2.256,6.53936) (2.26133,6.53177)(2.26667,6.52425)(2.272,6.5168)(2.27733,6.50941) (2.28267,6.50208)(2.288,6.49482)(2.29333,6.48763)(2.29867,6.4805) (2.304,6.47344)(2.30933,6.46644)(2.31467,6.45951)(2.32,6.45264) (2.32533,6.44583)(2.33067,6.4391)(2.336,6.43242)(2.34133,6.42581) (2.34667,6.41927)(2.352,6.41279)(2.35733,6.40638)(2.36267,6.40003) (2.368,6.39375)(2.37333,6.38753)(2.37867,6.38138)(2.384,6.37529) (2.38933,6.36927)(2.39467,6.36331)(2.4,6.35742)(2.40533,6.3516) (2.41067,6.34583)(2.416,6.34014)(2.42133,6.33451)(2.42667,6.32894) (2.432,6.32344)(2.43733,6.318)(2.44267,6.31263)(2.448,6.30732) (2.45333,6.30208)(2.45867,6.29691)(2.464,6.2918)(2.46933,6.28675) (2.47467,6.28177)(2.48,6.27686)(2.48533,6.27201)(2.49067,6.26722) (2.496,6.2625)(2.50133,6.25785)(2.50667,6.25326)(2.512,6.24873) (2.51733,6.24427)(2.52267,6.23988)(2.528,6.23555)(2.53333,6.23128) (2.53867,6.22708)(2.544,6.22295)(2.54933,6.21888)(2.55467,6.21488) (2.56,6.21094)(2.56533,6.20706)(2.57067,6.20326)(2.576,6.19951) (2.58133,6.19583)(2.58667,6.19222)(2.592,6.18867)(2.59733,6.18519) (2.60267,6.18177)(2.608,6.17842)(2.61333,6.17513)(2.61867,6.17191) (2.624,6.16875)(2.62933,6.16566)(2.63467,6.16263)(2.64,6.15967) (2.64533,6.15677)(2.65067,6.15394)(2.656,6.15117)(2.66133,6.14847) (2.66667,6.14583)(2.672,6.14326)(2.67733,6.14076)(2.68267,6.13831) (2.688,6.13594)(2.69333,6.13363)(2.69867,6.13138)(2.704,6.1292) (2.70933,6.12708)(2.71467,6.12503)(2.72,6.12305)(2.72533,6.12113) (2.73067,6.11927)(2.736,6.11748)(2.74133,6.11576)(2.74667,6.1141) (2.752,6.1125)(2.75733,6.11097)(2.76267,6.10951)(2.768,6.10811) (2.77333,6.10677)(2.77867,6.1055)(2.784,6.1043)(2.78933,6.10316) (2.79467,6.10208)(2.8,6.10107)(2.80533,6.10013)(2.81067,6.09925) (2.816,6.09844)(2.82133,6.09769)(2.82667,6.09701)(2.832,6.09639) (2.83733,6.09583)(2.84267,6.09535)(2.848,6.09492)(2.85333,6.09456) (2.85867,6.09427)(2.864,6.09404)(2.86933,6.09388)(2.87467,6.09378)(2.88,6.09375) \allinethickness{0.0055348in}% \path(2.82289,6.08916)(2.83102,6.08515) \path(2.82293,6.09461)(2.83919,6.08659) \path(2.82296,6.10005)(2.84735,6.08802) \path(2.82634,6.10385)(2.85551,6.08945) \path(2.84423,6.10048)(2.86367,6.09088) \path(2.86211,6.09712)(2.87184,6.09232) \path(2.8738,6.09266)(2.87482,6.09473) \path(2.8676,6.09157)(2.86963,6.0957) \path(2.8614,6.09048)(2.86445,6.09668) \path(2.8552,6.0894)(2.85927,6.09765) \path(2.84899,6.08831)(2.85408,6.09863) \path(2.84279,6.08722)(2.8489,6.0996) \path(2.83659,6.08613)(2.84372,6.10058) \path(2.83039,6.08504)(2.83854,6.10155) \path(2.82419,6.08395)(2.83335,6.10253) \path(2.82292,6.09285)(2.82817,6.1035) \allinethickness{1.2pt}% \path(2.82292,6.0941)(2.82286,6.08372)(2.88,6.09375) (2.82299,6.10448)(2.82292,6.0941) \put(2.93535,6.09375){\makebox(0,0)[l]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\footnotesize \texttt{pdf}}}}} \put(2.88,6.09375){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.4pt}% \color{rgb_7f7f7f}% \path(2.24,6.5625)(2.24533,6.57028)(2.25067,6.57799)(2.256,6.58564) (2.26133,6.59323)(2.26667,6.60075)(2.272,6.6082)(2.27733,6.61559) (2.28267,6.62292)(2.288,6.63018)(2.29333,6.63737)(2.29867,6.6445) (2.304,6.65156)(2.30933,6.65856)(2.31467,6.66549)(2.32,6.67236) (2.32533,6.67917)(2.33067,6.6859)(2.336,6.69258)(2.34133,6.69919) (2.34667,6.70573)(2.352,6.71221)(2.35733,6.71862)(2.36267,6.72497) (2.368,6.73125)(2.37333,6.73747)(2.37867,6.74362)(2.384,6.74971) (2.38933,6.75573)(2.39467,6.76169)(2.4,6.76758)(2.40533,6.7734) (2.41067,6.77917)(2.416,6.78486)(2.42133,6.79049)(2.42667,6.79606) (2.432,6.80156)(2.43733,6.807)(2.44267,6.81237)(2.448,6.81768) (2.45333,6.82292)(2.45867,6.82809)(2.464,6.8332)(2.46933,6.83825) (2.47467,6.84323)(2.48,6.84814)(2.48533,6.85299)(2.49067,6.85778) (2.496,6.8625)(2.50133,6.86715)(2.50667,6.87174)(2.512,6.87627) (2.51733,6.88073)(2.52267,6.88512)(2.528,6.88945)(2.53333,6.89372) (2.53867,6.89792)(2.544,6.90205)(2.54933,6.90612)(2.55467,6.91012) (2.56,6.91406)(2.56533,6.91794)(2.57067,6.92174)(2.576,6.92549) (2.58133,6.92917)(2.58667,6.93278)(2.592,6.93633)(2.59733,6.93981) (2.60267,6.94323)(2.608,6.94658)(2.61333,6.94987)(2.61867,6.95309) (2.624,6.95625)(2.62933,6.95934)(2.63467,6.96237)(2.64,6.96533) (2.64533,6.96823)(2.65067,6.97106)(2.656,6.97383)(2.66133,6.97653) (2.66667,6.97917)(2.672,6.98174)(2.67733,6.98424)(2.68267,6.98669) (2.688,6.98906)(2.69333,6.99137)(2.69867,6.99362)(2.704,6.9958) (2.70933,6.99792)(2.71467,6.99997)(2.72,7.00195)(2.72533,7.00387) (2.73067,7.00573)(2.736,7.00752)(2.74133,7.00924)(2.74667,7.0109) (2.752,7.0125)(2.75733,7.01403)(2.76267,7.01549)(2.768,7.01689) (2.77333,7.01823)(2.77867,7.0195)(2.784,7.0207)(2.78933,7.02184) (2.79467,7.02292)(2.8,7.02393)(2.80533,7.02487)(2.81067,7.02575) (2.816,7.02656)(2.82133,7.02731)(2.82667,7.02799)(2.832,7.02861) (2.83733,7.02917)(2.84267,7.02965)(2.848,7.03008)(2.85333,7.03044) (2.85867,7.03073)(2.864,7.03096)(2.86933,7.03112)(2.87467,7.03122)(2.88,7.03125) \path(2.87464,7.03024)(2.87481,7.03216) \path(2.86927,7.02923)(2.86961,7.03307) \path(2.86391,7.02822)(2.86442,7.03399) \path(2.85855,7.02721)(2.85922,7.0349) \path(2.85318,7.02621)(2.85403,7.03581) \path(2.84782,7.0252)(2.84883,7.03672) \path(2.84246,7.02419)(2.84364,7.03763) \path(2.8371,7.02318)(2.83844,7.03854) \path(2.83173,7.02217)(2.83325,7.03946) \path(2.82637,7.02116)(2.82805,7.04037) \path(2.87938,7.03113)(2.82289,7.03609) \path(2.86058,7.0276)(2.82292,7.0309) \path(2.84178,7.02406)(2.82296,7.02571) \path(2.82292,7.0309)(2.82299,7.02052)(2.88,7.03125) (2.82286,7.04128)(2.82292,7.0309) \put(2.86001,7.08981){\makebox(0,0)[b]{\hbox{\color{rgb_7f7f7f}\footnotesize \texttt{eps}}}} \put(2.88,7.03125){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.88,7.03125)(3.52,7.03125) \path(3.47434,7.03955)(3.46292,7.03623) \path(3.48575,7.03748)(3.46292,7.03083) \path(3.49717,7.0354)(3.46292,7.02543) \path(3.50858,7.03333)(3.4706,7.02227) \path(3.46292,7.03964)(3.46811,7.02182) \path(3.46808,7.04069)(3.4733,7.02276) \path(3.47385,7.03964)(3.47849,7.0237) \path(3.47962,7.03859)(3.48368,7.02465) \path(3.48539,7.03754)(3.48887,7.02559) \path(3.49116,7.03649)(3.49406,7.02653) \path(3.49692,7.03545)(3.49924,7.02748) \path(3.50269,7.0344)(3.50443,7.02842) \path(3.50846,7.03335)(3.50962,7.02936) \path(3.51423,7.0323)(3.51481,7.03031) \path(3.46292,7.03125)(3.46292,7.02087)(3.52,7.03125) (3.46292,7.04163)(3.46292,7.03125) \put(3.57535,7.03125){\makebox(0,0)[l]{\hbox{\color{rgb_7f7f7f}\footnotesize \begin{minipage}{0.225in}\texttt{png mng gif}\end{minipage}}}} \put(3.52,7.03125){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(1.92,6.09375){\makebox(0,0)[c]{\hbox{\color{rgb_009800}\texttt{\Large laps}}}} \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(0.32,5.15625)(0.96,5.15625) \allinethickness{0.0055348in}% \path(0.902922,5.15435)(0.90863,5.14691) \path(0.902922,5.16284)(0.914338,5.14795) \path(0.907102,5.16587)(0.920046,5.14899) \path(0.914659,5.16449)(0.925753,5.15002) \path(0.922216,5.16312)(0.931461,5.15106) \path(0.929773,5.16175)(0.937169,5.1521) \path(0.93733,5.16037)(0.942877,5.15314) \path(0.944886,5.159)(0.948584,5.15417) \path(0.952443,5.15762)(0.954292,5.15521) \path(0.948429,5.15415)(0.952865,5.15755) \path(0.936859,5.15204)(0.945731,5.15884) \path(0.925288,5.14994)(0.938596,5.16014) \path(0.913717,5.14783)(0.931461,5.16144) \path(0.902922,5.14633)(0.924326,5.16274) \path(0.902922,5.15309)(0.917192,5.16403) \path(0.902922,5.15986)(0.910057,5.16533) \allinethickness{1.2pt}% \path(0.902922,5.15625)(0.902922,5.14587)(0.96,5.15625) (0.902922,5.16663)(0.902922,5.15625) \put(0.32,5.2116){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{xp}, \texttt{flx}}}}}} \put(0.32,5.15625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(0.97999,5.21481){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{eepic}}}}}} \put(0.96,5.15625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.4pt}% \color{rgb_7f7f7f}% \path(0.96,5.15625)(0.963187,5.15615)(0.966347,5.15586) (0.969482,5.15539)(0.972591,5.15472)(0.975676,5.15388) (0.978736,5.15285)(0.981772,5.15165)(0.984785,5.15028) (0.987774,5.14874)(0.990741,5.14703)(0.993685,5.14516) (0.996608,5.14313)(0.999509,5.14094)(1.00239,5.1386) (1.00525,5.13611)(1.00809,5.13347)(1.01091,5.13069) (1.01371,5.12777)(1.01649,5.12472)(1.01926,5.12153) (1.02201,5.11821)(1.02474,5.11476)(1.02745,5.11119)(1.03014,5.1075) (1.03282,5.10369)(1.03549,5.09977)(1.03814,5.09574)(1.04077,5.0916) (1.04339,5.08735)(1.046,5.08301)(1.04859,5.07856)(1.05117,5.07403) (1.05374,5.0694)(1.0563,5.06468)(1.05884,5.05988)(1.06138,5.055) (1.0639,5.05004)(1.06641,5.045)(1.06891,5.0399)(1.07141,5.03472) (1.07389,5.02948)(1.07637,5.02418)(1.07884,5.01882)(1.0813,5.0134) (1.08375,5.00793)(1.0862,5.00242)(1.08864,4.99685)(1.09107,4.99125) (1.0935,4.98561)(1.09593,4.97993)(1.09835,4.97421)(1.10076,4.96847) (1.10317,4.9627)(1.10558,4.95691)(1.10799,4.9511)(1.1104,4.94528) (1.1128,4.93944)(1.1152,4.93359)(1.1176,4.92773)(1.12,4.92188) (1.1224,4.91602)(1.1248,4.91016)(1.1272,4.90431)(1.1296,4.89847) (1.13201,4.89265)(1.13442,4.88684)(1.13683,4.88105) (1.13924,4.87528)(1.14165,4.86954)(1.14407,4.86382)(1.1465,4.85814) (1.14893,4.8525)(1.15136,4.8469)(1.1538,4.84133)(1.15625,4.83582) (1.1587,4.83035)(1.16116,4.82493)(1.16363,4.81957)(1.16611,4.81427) (1.16859,4.80903)(1.17109,4.80385)(1.17359,4.79875)(1.1761,4.79371) (1.17862,4.78875)(1.18116,4.78387)(1.1837,4.77907)(1.18626,4.77435) (1.18883,4.76972)(1.19141,4.76519)(1.194,4.76074)(1.19661,4.7564) (1.19923,4.75215)(1.20186,4.74801)(1.20451,4.74398) (1.20718,4.74006)(1.20986,4.73625)(1.21255,4.73256) (1.21526,4.72899)(1.21799,4.72554)(1.22074,4.72222) (1.22351,4.71903)(1.22629,4.71598)(1.22909,4.71306) (1.23191,4.71028)(1.23475,4.70764)(1.23761,4.70515) (1.24049,4.70281)(1.24339,4.70063)(1.24631,4.69859) (1.24926,4.69672)(1.25223,4.69501)(1.25522,4.69347)(1.25823,4.6921) (1.26126,4.6909)(1.26432,4.68987)(1.26741,4.68903)(1.27052,4.68836) (1.27365,4.68789)(1.27681,4.6876)(1.28,4.6875) \path(1.28,4.6875)(1.6,4.6875) \path(1.59287,4.6862)(1.59429,4.68854) \path(1.58575,4.68491)(1.58858,4.68958) \path(1.57862,4.68361)(1.58288,4.69061) \path(1.5715,4.68232)(1.57717,4.69165) \path(1.56437,4.68102)(1.57146,4.69269) \path(1.55725,4.67973)(1.56575,4.69373) \path(1.55012,4.67843)(1.56005,4.69476) \path(1.543,4.67714)(1.55434,4.6958) \path(1.54292,4.68744)(1.54863,4.69684) \path(1.59185,4.68602)(1.58488,4.69025) \path(1.58369,4.68453)(1.56976,4.693) \path(1.57554,4.68305)(1.55464,4.69575) \path(1.56738,4.68157)(1.54292,4.69643) \path(1.55923,4.68009)(1.54292,4.68999) \path(1.55108,4.6786)(1.54292,4.68356) \path(1.54292,4.6875)(1.54292,4.67712)(1.6,4.6875)(1.54292,4.69788)(1.54292,4.6875) \path(1.6,4.6875)(2.24,4.6875) \path(2.22632,4.68501)(2.18292,4.69269) \path(2.21185,4.68238)(2.18292,4.6875) \path(2.19739,4.67975)(2.18292,4.68231) \path(2.18811,4.69693)(2.18466,4.67744) \path(2.1933,4.69599)(2.1902,4.67844) \path(2.19849,4.69505)(2.19573,4.67945) \path(2.20368,4.6941)(2.20126,4.68046) \path(2.20887,4.69316)(2.2068,4.68146) \path(2.21406,4.69222)(2.21233,4.68247) \path(2.21924,4.69127)(2.21787,4.68348) \path(2.22443,4.69033)(2.2234,4.68448) \path(2.22962,4.68939)(2.22893,4.68549) \path(2.23481,4.68844)(2.23447,4.68649) \path(2.18292,4.6875)(2.18292,4.67712)(2.24,4.6875) (2.18292,4.69788)(2.18292,4.6875) \put(1.6,4.74285){\makebox(0,0)[b]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{dvi}}}}} \put(1.6,4.6875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(2.21793,4.71982){\makebox(0,0)[br]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{ps}}}}} \put(2.24,4.6875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(0.96,4.21875)(0.963187,4.21885)(0.966347,4.21914) (0.969482,4.21961)(0.972591,4.22028)(0.975676,4.22112) (0.978736,4.22215)(0.981772,4.22335)(0.984785,4.22472) (0.987774,4.22626)(0.990741,4.22797)(0.993685,4.22984) (0.996608,4.23188)(0.999509,4.23406)(1.00239,4.2364) (1.00525,4.23889)(1.00809,4.24153)(1.01091,4.24431) (1.01371,4.24723)(1.01649,4.25028)(1.01926,4.25347) (1.02201,4.25679)(1.02474,4.26024)(1.02745,4.26381)(1.03014,4.2675) (1.03282,4.27131)(1.03549,4.27523)(1.03814,4.27926)(1.04077,4.2834) (1.04339,4.28765)(1.046,4.29199)(1.04859,4.29644)(1.05117,4.30097) (1.05374,4.3056)(1.0563,4.31032)(1.05884,4.31512)(1.06138,4.32) (1.0639,4.32496)(1.06641,4.33)(1.06891,4.3351)(1.07141,4.34028) (1.07389,4.34552)(1.07637,4.35082)(1.07884,4.35618)(1.0813,4.3616) (1.08375,4.36707)(1.0862,4.37258)(1.08864,4.37815)(1.09107,4.38375) (1.0935,4.38939)(1.09593,4.39507)(1.09835,4.40079)(1.10076,4.40653) (1.10317,4.4123)(1.10558,4.41809)(1.10799,4.4239)(1.1104,4.42972) (1.1128,4.43556)(1.1152,4.44141)(1.1176,4.44727)(1.12,4.45312) (1.1224,4.45898)(1.1248,4.46484)(1.1272,4.47069)(1.1296,4.47653) (1.13201,4.48235)(1.13442,4.48816)(1.13683,4.49395) (1.13924,4.49972)(1.14165,4.50546)(1.14407,4.51118)(1.1465,4.51686) (1.14893,4.5225)(1.15136,4.5281)(1.1538,4.53367)(1.15625,4.53918) (1.1587,4.54465)(1.16116,4.55007)(1.16363,4.55543)(1.16611,4.56073) (1.16859,4.56597)(1.17109,4.57115)(1.17359,4.57625)(1.1761,4.58129) (1.17862,4.58625)(1.18116,4.59113)(1.1837,4.59593)(1.18626,4.60065) (1.18883,4.60528)(1.19141,4.60981)(1.194,4.61426)(1.19661,4.6186) (1.19923,4.62285)(1.20186,4.62699)(1.20451,4.63102) (1.20718,4.63494)(1.20986,4.63875)(1.21255,4.64244) (1.21526,4.64601)(1.21799,4.64946)(1.22074,4.65278) (1.22351,4.65597)(1.22629,4.65902)(1.22909,4.66194) (1.23191,4.66472)(1.23475,4.66736)(1.23761,4.66985) (1.24049,4.67219)(1.24339,4.67437)(1.24631,4.67641) (1.24926,4.67828)(1.25223,4.67999)(1.25522,4.68153)(1.25823,4.6829) (1.26126,4.6841)(1.26432,4.68513)(1.26741,4.68597)(1.27052,4.68664) (1.27365,4.68711)(1.27681,4.6874)(1.28,4.6875) \put(0.97999,4.16019){\makebox(0,0)[t]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{tex}}}}} \put(0.96,4.21875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.24,4.6875)(2.24533,4.67972)(2.25067,4.67201)(2.256,4.66436) (2.26133,4.65677)(2.26667,4.64925)(2.272,4.6418)(2.27733,4.63441) (2.28267,4.62708)(2.288,4.61982)(2.29333,4.61263)(2.29867,4.6055) (2.304,4.59844)(2.30933,4.59144)(2.31467,4.58451)(2.32,4.57764) (2.32533,4.57083)(2.33067,4.5641)(2.336,4.55742)(2.34133,4.55081) (2.34667,4.54427)(2.352,4.53779)(2.35733,4.53138)(2.36267,4.52503) (2.368,4.51875)(2.37333,4.51253)(2.37867,4.50638)(2.384,4.50029) (2.38933,4.49427)(2.39467,4.48831)(2.4,4.48242)(2.40533,4.4766) (2.41067,4.47083)(2.416,4.46514)(2.42133,4.45951)(2.42667,4.45394) (2.432,4.44844)(2.43733,4.443)(2.44267,4.43763)(2.448,4.43232) (2.45333,4.42708)(2.45867,4.42191)(2.464,4.4168)(2.46933,4.41175) (2.47467,4.40677)(2.48,4.40186)(2.48533,4.39701)(2.49067,4.39222) (2.496,4.3875)(2.50133,4.38285)(2.50667,4.37826)(2.512,4.37373) (2.51733,4.36927)(2.52267,4.36488)(2.528,4.36055)(2.53333,4.35628) (2.53867,4.35208)(2.544,4.34795)(2.54933,4.34388)(2.55467,4.33988) (2.56,4.33594)(2.56533,4.33206)(2.57067,4.32826)(2.576,4.32451) (2.58133,4.32083)(2.58667,4.31722)(2.592,4.31367)(2.59733,4.31019) (2.60267,4.30677)(2.608,4.30342)(2.61333,4.30013)(2.61867,4.29691) (2.624,4.29375)(2.62933,4.29066)(2.63467,4.28763)(2.64,4.28467) (2.64533,4.28177)(2.65067,4.27894)(2.656,4.27617)(2.66133,4.27347) (2.66667,4.27083)(2.672,4.26826)(2.67733,4.26576)(2.68267,4.26331) (2.688,4.26094)(2.69333,4.25863)(2.69867,4.25638)(2.704,4.2542) (2.70933,4.25208)(2.71467,4.25003)(2.72,4.24805)(2.72533,4.24613) (2.73067,4.24427)(2.736,4.24248)(2.74133,4.24076)(2.74667,4.2391) (2.752,4.2375)(2.75733,4.23597)(2.76267,4.23451)(2.768,4.23311) (2.77333,4.23177)(2.77867,4.2305)(2.784,4.2293)(2.78933,4.22816) (2.79467,4.22708)(2.8,4.22607)(2.80533,4.22513)(2.81067,4.22425) (2.816,4.22344)(2.82133,4.22269)(2.82667,4.22201)(2.832,4.22139) (2.83733,4.22083)(2.84267,4.22035)(2.848,4.21992)(2.85333,4.21956) (2.85867,4.21927)(2.864,4.21904)(2.86933,4.21888)(2.87467,4.21878)(2.88,4.21875) \path(2.82416,4.22925)(2.82805,4.20963) \path(2.82975,4.2282)(2.83325,4.21054) \path(2.83533,4.22715)(2.83844,4.21146) \path(2.84091,4.2261)(2.84364,4.21237) \path(2.8465,4.22505)(2.84883,4.21328) \path(2.85208,4.224)(2.85403,4.21419) \path(2.85767,4.22295)(2.85922,4.2151) \path(2.86325,4.2219)(2.86442,4.21601) \path(2.86883,4.22085)(2.86961,4.21693) \path(2.87442,4.2198)(2.87481,4.21784) \path(2.82289,4.21293)(2.86575,4.22143) \path(2.82292,4.21845)(2.85149,4.22411) \path(2.82295,4.22396)(2.83724,4.22679) \path(2.82292,4.2191)(2.82286,4.20872)(2.88,4.21875) (2.82299,4.22948)(2.82292,4.2191) \put(2.93535,4.21875){\makebox(0,0)[l]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{pdf}}}}} \put(2.88,4.21875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.24,4.6875)(2.24533,4.69528)(2.25067,4.70299)(2.256,4.71064) (2.26133,4.71823)(2.26667,4.72575)(2.272,4.7332)(2.27733,4.74059) (2.28267,4.74792)(2.288,4.75518)(2.29333,4.76237)(2.29867,4.7695) (2.304,4.77656)(2.30933,4.78356)(2.31467,4.79049)(2.32,4.79736) (2.32533,4.80417)(2.33067,4.8109)(2.336,4.81758)(2.34133,4.82419) (2.34667,4.83073)(2.352,4.83721)(2.35733,4.84362)(2.36267,4.84997) (2.368,4.85625)(2.37333,4.86247)(2.37867,4.86862)(2.384,4.87471) (2.38933,4.88073)(2.39467,4.88669)(2.4,4.89258)(2.40533,4.8984) (2.41067,4.90417)(2.416,4.90986)(2.42133,4.91549)(2.42667,4.92106) (2.432,4.92656)(2.43733,4.932)(2.44267,4.93737)(2.448,4.94268) (2.45333,4.94792)(2.45867,4.95309)(2.464,4.9582)(2.46933,4.96325) (2.47467,4.96823)(2.48,4.97314)(2.48533,4.97799)(2.49067,4.98278) (2.496,4.9875)(2.50133,4.99215)(2.50667,4.99674)(2.512,5.00127) (2.51733,5.00573)(2.52267,5.01012)(2.528,5.01445)(2.53333,5.01872) (2.53867,5.02292)(2.544,5.02705)(2.54933,5.03112)(2.55467,5.03512) (2.56,5.03906)(2.56533,5.04294)(2.57067,5.04674)(2.576,5.05049) (2.58133,5.05417)(2.58667,5.05778)(2.592,5.06133)(2.59733,5.06481) (2.60267,5.06823)(2.608,5.07158)(2.61333,5.07487)(2.61867,5.07809) (2.624,5.08125)(2.62933,5.08434)(2.63467,5.08737)(2.64,5.09033) (2.64533,5.09323)(2.65067,5.09606)(2.656,5.09883)(2.66133,5.10153) (2.66667,5.10417)(2.672,5.10674)(2.67733,5.10924)(2.68267,5.11169) (2.688,5.11406)(2.69333,5.11637)(2.69867,5.11862)(2.704,5.1208) (2.70933,5.12292)(2.71467,5.12497)(2.72,5.12695)(2.72533,5.12887) (2.73067,5.13073)(2.736,5.13252)(2.74133,5.13424)(2.74667,5.1359) (2.752,5.1375)(2.75733,5.13903)(2.76267,5.14049)(2.768,5.14189) (2.77333,5.14323)(2.77867,5.1445)(2.784,5.1457)(2.78933,5.14684) (2.79467,5.14792)(2.8,5.14893)(2.80533,5.14987)(2.81067,5.15075) (2.816,5.15156)(2.82133,5.15231)(2.82667,5.15299)(2.832,5.15361) (2.83733,5.15417)(2.84267,5.15465)(2.848,5.15508)(2.85333,5.15544) (2.85867,5.15573)(2.864,5.15596)(2.86933,5.15612)(2.87467,5.15622)(2.88,5.15625) \path(2.86706,5.15382)(2.87286,5.1575) \path(2.85412,5.15138)(2.86572,5.15876) \path(2.84118,5.14895)(2.85857,5.16001) \path(2.82824,5.14651)(2.85143,5.16126) \path(2.82297,5.14896)(2.84429,5.16252) \path(2.82293,5.15473)(2.83715,5.16377) \path(2.8229,5.1605)(2.83,5.16503) \path(2.8743,5.15518)(2.87281,5.15751) \path(2.8686,5.1541)(2.86563,5.15877) \path(2.8629,5.15303)(2.85844,5.16003) \path(2.85719,5.15196)(2.85126,5.1613) \path(2.85149,5.15089)(2.84407,5.16256) \path(2.84579,5.14981)(2.83688,5.16382) \path(2.84009,5.14874)(2.8297,5.16508) \path(2.83439,5.14767)(2.82286,5.16579) \path(2.82869,5.1466)(2.82292,5.15566) \path(2.82292,5.1559)(2.82299,5.14552)(2.88,5.15625) (2.82286,5.16628)(2.82292,5.1559) \put(2.86001,5.21481){\makebox(0,0)[b]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{eps}}}}} \put(2.88,5.15625){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.88,5.15625)(3.52,5.15625) \path(3.51287,5.15495)(3.50817,5.1584) \path(3.50573,5.15366)(3.49634,5.16055) \path(3.4986,5.15236)(3.48451,5.1627) \path(3.49146,5.15106)(3.47268,5.16485) \path(3.48433,5.14976)(3.46292,5.16548) \path(3.47719,5.14847)(3.46292,5.15895) \path(3.47006,5.14717)(3.46292,5.15241) \path(3.46863,5.16559)(3.46292,5.15782) \path(3.47434,5.16455)(3.46292,5.14901) \path(3.48005,5.16351)(3.46773,5.14675) \path(3.48575,5.16248)(3.4752,5.1481) \path(3.49146,5.16144)(3.48267,5.14946) \path(3.49717,5.1604)(3.49013,5.15082) \path(3.50288,5.15936)(3.4976,5.15218) \path(3.50858,5.15833)(3.50507,5.15353) \path(3.51429,5.15729)(3.51253,5.15489) \path(3.46292,5.15625)(3.46292,5.14587)(3.52,5.15625) (3.46292,5.16663)(3.46292,5.15625) \put(3.57535,5.15625){\makebox(0,0)[l]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \begin{minipage}{0.225in}\texttt{png mng gif}\end{minipage}}}}} \put(3.52,5.15625){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(1.92,4.21875){\makebox(0,0)[c]{\hbox{\color{rgb_009800}\texttt{\Large epix}}}} \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(0.32,3.28125)(0.96,3.28125) \allinethickness{0.0055348in}% \path(0.908111,3.29068)(0.902922,3.27138) \path(0.9133,3.28974)(0.9085,3.27189) \path(0.918489,3.2888)(0.914223,3.27293) \path(0.923678,3.28785)(0.919945,3.27397) \path(0.928867,3.28691)(0.925667,3.27501) \path(0.934056,3.28597)(0.931389,3.27605) \path(0.939244,3.28502)(0.937111,3.27709) \path(0.944433,3.28408)(0.942833,3.27813) \path(0.949622,3.28314)(0.948556,3.27917) \path(0.954811,3.28219)(0.954278,3.28021) \path(0.902922,3.27602)(0.914338,3.27295) \path(0.902922,3.28116)(0.925753,3.27502) \path(0.902922,3.28631)(0.937169,3.2771) \path(0.902922,3.29145)(0.948584,3.27917) \allinethickness{1.2pt}% \path(0.902922,3.28125)(0.902922,3.27087)(0.96,3.28125) (0.902922,3.29163)(0.902922,3.28125) \put(0.32,3.3366){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{xp}, \texttt{flx}}}}}} \put(0.32,3.28125){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(0.97999,3.33981){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{eepic}}}}}} \put(0.96,3.28125){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(0.96,3.28125)(0.963187,3.28115)(0.966347,3.28086) (0.969482,3.28039)(0.972591,3.27972)(0.975676,3.27888) (0.978736,3.27785)(0.981772,3.27665)(0.984785,3.27528) (0.987774,3.27374)(0.990741,3.27203)(0.993685,3.27016) (0.996608,3.26813)(0.999509,3.26594)(1.00239,3.2636) (1.00525,3.26111)(1.00809,3.25847)(1.01091,3.25569) (1.01371,3.25277)(1.01649,3.24972)(1.01926,3.24653) (1.02201,3.24321)(1.02474,3.23976)(1.02745,3.23619)(1.03014,3.2325) (1.03282,3.22869)(1.03549,3.22477)(1.03814,3.22074)(1.04077,3.2166) (1.04339,3.21235)(1.046,3.20801)(1.04859,3.20356)(1.05117,3.19903) (1.05374,3.1944)(1.0563,3.18968)(1.05884,3.18488)(1.06138,3.18) (1.0639,3.17504)(1.06641,3.17)(1.06891,3.1649)(1.07141,3.15972) (1.07389,3.15448)(1.07637,3.14918)(1.07884,3.14382)(1.0813,3.1384) (1.08375,3.13293)(1.0862,3.12742)(1.08864,3.12185)(1.09107,3.11625) (1.0935,3.11061)(1.09593,3.10493)(1.09835,3.09921)(1.10076,3.09347) (1.10317,3.0877)(1.10558,3.08191)(1.10799,3.0761)(1.1104,3.07028) (1.1128,3.06444)(1.1152,3.05859)(1.1176,3.05273)(1.12,3.04688) (1.1224,3.04102)(1.1248,3.03516)(1.1272,3.02931)(1.1296,3.02347) (1.13201,3.01765)(1.13442,3.01184)(1.13683,3.00605) (1.13924,3.00028)(1.14165,2.99454)(1.14407,2.98882)(1.1465,2.98314) (1.14893,2.9775)(1.15136,2.9719)(1.1538,2.96633)(1.15625,2.96082) (1.1587,2.95535)(1.16116,2.94993)(1.16363,2.94457)(1.16611,2.93927) (1.16859,2.93403)(1.17109,2.92885)(1.17359,2.92375)(1.1761,2.91871) (1.17862,2.91375)(1.18116,2.90887)(1.1837,2.90407)(1.18626,2.89935) (1.18883,2.89472)(1.19141,2.89019)(1.194,2.88574)(1.19661,2.8814) (1.19923,2.87715)(1.20186,2.87301)(1.20451,2.86898) (1.20718,2.86506)(1.20986,2.86125)(1.21255,2.85756) (1.21526,2.85399)(1.21799,2.85054)(1.22074,2.84722) (1.22351,2.84403)(1.22629,2.84098)(1.22909,2.83806) (1.23191,2.83528)(1.23475,2.83264)(1.23761,2.83015) (1.24049,2.82781)(1.24339,2.82563)(1.24631,2.82359) (1.24926,2.82172)(1.25223,2.82001)(1.25522,2.81847)(1.25823,2.8171) (1.26126,2.8159)(1.26432,2.81487)(1.26741,2.81403)(1.27052,2.81336) (1.27365,2.81289)(1.27681,2.8126)(1.28,2.8125) \path(1.28,2.8125)(1.6,2.8125) \allinethickness{0.0055348in}% \path(1.54292,2.80731)(1.59652,2.81313) \path(1.54292,2.8125)(1.57865,2.81638) \path(1.54292,2.81769)(1.56079,2.81963) \path(1.59481,2.81156)(1.5946,2.81348) \path(1.58962,2.81061)(1.5892,2.81446) \path(1.58443,2.80967)(1.58381,2.81544) \path(1.57924,2.80873)(1.57841,2.81643) \path(1.57406,2.80778)(1.57301,2.81741) \path(1.56887,2.80684)(1.56761,2.81839) \path(1.56368,2.8059)(1.56221,2.81937) \path(1.55849,2.80495)(1.55682,2.82035) \path(1.5533,2.80401)(1.55142,2.82133) \path(1.54811,2.80307)(1.54602,2.82231) \allinethickness{1.2pt}% \path(1.54292,2.8125)(1.54292,2.80212)(1.6,2.8125)(1.54292,2.82288)(1.54292,2.8125) \path(1.6,2.8125)(2.24,2.8125) \allinethickness{0.0055348in}% \path(2.23481,2.81156)(2.23373,2.81364) \path(2.22962,2.81061)(2.22746,2.81478) \path(2.22443,2.80967)(2.22119,2.81592) \path(2.21924,2.80873)(2.21492,2.81706) \path(2.21406,2.80778)(2.20864,2.8182) \path(2.20887,2.80684)(2.20237,2.81934) \path(2.20368,2.8059)(2.1961,2.82048) \path(2.19849,2.80495)(2.18983,2.82162) \path(2.1933,2.80401)(2.18356,2.82276) \path(2.18811,2.80307)(2.18292,2.81306) \path(2.19108,2.8214)(2.18292,2.81716) \path(2.19923,2.81991)(2.18292,2.81144) \path(2.20738,2.81843)(2.18292,2.80573) \path(2.21554,2.81695)(2.18919,2.80326) \path(2.22369,2.81547)(2.20612,2.80634) \path(2.23185,2.81398)(2.22306,2.80942) \allinethickness{1.2pt}% \path(2.18292,2.8125)(2.18292,2.80212)(2.24,2.8125) (2.18292,2.82288)(2.18292,2.8125) \put(1.6,2.86785){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{dvi}}}}}} \put(1.6,2.8125){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(2.21793,2.84482){\makebox(0,0)[br]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{ps}}}}}} \put(2.24,2.8125){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.4pt}% \color{rgb_7f7f7f}% \path(0.96,2.34375)(0.963187,2.34385)(0.966347,2.34414) (0.969482,2.34461)(0.972591,2.34528)(0.975676,2.34612) (0.978736,2.34715)(0.981772,2.34835)(0.984785,2.34972) (0.987774,2.35126)(0.990741,2.35297)(0.993685,2.35484) (0.996608,2.35688)(0.999509,2.35906)(1.00239,2.3614) (1.00525,2.36389)(1.00809,2.36653)(1.01091,2.36931) (1.01371,2.37223)(1.01649,2.37528)(1.01926,2.37847) (1.02201,2.38179)(1.02474,2.38524)(1.02745,2.38881)(1.03014,2.3925) (1.03282,2.39631)(1.03549,2.40023)(1.03814,2.40426)(1.04077,2.4084) (1.04339,2.41265)(1.046,2.41699)(1.04859,2.42144)(1.05117,2.42597) (1.05374,2.4306)(1.0563,2.43532)(1.05884,2.44012)(1.06138,2.445) (1.0639,2.44996)(1.06641,2.455)(1.06891,2.4601)(1.07141,2.46528) (1.07389,2.47052)(1.07637,2.47582)(1.07884,2.48118)(1.0813,2.4866) (1.08375,2.49207)(1.0862,2.49758)(1.08864,2.50315)(1.09107,2.50875) (1.0935,2.51439)(1.09593,2.52007)(1.09835,2.52579)(1.10076,2.53153) (1.10317,2.5373)(1.10558,2.54309)(1.10799,2.5489)(1.1104,2.55472) (1.1128,2.56056)(1.1152,2.56641)(1.1176,2.57227)(1.12,2.57812) (1.1224,2.58398)(1.1248,2.58984)(1.1272,2.59569)(1.1296,2.60153) (1.13201,2.60735)(1.13442,2.61316)(1.13683,2.61895) (1.13924,2.62472)(1.14165,2.63046)(1.14407,2.63618)(1.1465,2.64186) (1.14893,2.6475)(1.15136,2.6531)(1.1538,2.65867)(1.15625,2.66418) (1.1587,2.66965)(1.16116,2.67507)(1.16363,2.68043)(1.16611,2.68573) (1.16859,2.69097)(1.17109,2.69615)(1.17359,2.70125)(1.1761,2.70629) (1.17862,2.71125)(1.18116,2.71613)(1.1837,2.72093)(1.18626,2.72565) (1.18883,2.73028)(1.19141,2.73481)(1.194,2.73926)(1.19661,2.7436) (1.19923,2.74785)(1.20186,2.75199)(1.20451,2.75602) (1.20718,2.75994)(1.20986,2.76375)(1.21255,2.76744) (1.21526,2.77101)(1.21799,2.77446)(1.22074,2.77778) (1.22351,2.78097)(1.22629,2.78402)(1.22909,2.78694) (1.23191,2.78972)(1.23475,2.79236)(1.23761,2.79485) (1.24049,2.79719)(1.24339,2.79937)(1.24631,2.80141) (1.24926,2.80328)(1.25223,2.80499)(1.25522,2.80653)(1.25823,2.8079) (1.26126,2.8091)(1.26432,2.81013)(1.26741,2.81097)(1.27052,2.81164) (1.27365,2.81211)(1.27681,2.8124)(1.28,2.8125) \put(0.97999,2.28519){\makebox(0,0)[t]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{tex}}}}} \put(0.96,2.34375){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(2.24,2.8125)(2.24533,2.80472)(2.25067,2.79701)(2.256,2.78936) (2.26133,2.78177)(2.26667,2.77425)(2.272,2.7668)(2.27733,2.75941) (2.28267,2.75208)(2.288,2.74482)(2.29333,2.73763)(2.29867,2.7305) (2.304,2.72344)(2.30933,2.71644)(2.31467,2.70951)(2.32,2.70264) (2.32533,2.69583)(2.33067,2.6891)(2.336,2.68242)(2.34133,2.67581) (2.34667,2.66927)(2.352,2.66279)(2.35733,2.65638)(2.36267,2.65003) (2.368,2.64375)(2.37333,2.63753)(2.37867,2.63138)(2.384,2.62529) (2.38933,2.61927)(2.39467,2.61331)(2.4,2.60742)(2.40533,2.6016) (2.41067,2.59583)(2.416,2.59014)(2.42133,2.58451)(2.42667,2.57894) (2.432,2.57344)(2.43733,2.568)(2.44267,2.56263)(2.448,2.55732) (2.45333,2.55208)(2.45867,2.54691)(2.464,2.5418)(2.46933,2.53675) (2.47467,2.53177)(2.48,2.52686)(2.48533,2.52201)(2.49067,2.51722) (2.496,2.5125)(2.50133,2.50785)(2.50667,2.50326)(2.512,2.49873) (2.51733,2.49427)(2.52267,2.48988)(2.528,2.48555)(2.53333,2.48128) (2.53867,2.47708)(2.544,2.47295)(2.54933,2.46888)(2.55467,2.46488) (2.56,2.46094)(2.56533,2.45706)(2.57067,2.45326)(2.576,2.44951) (2.58133,2.44583)(2.58667,2.44222)(2.592,2.43867)(2.59733,2.43519) (2.60267,2.43177)(2.608,2.42842)(2.61333,2.42513)(2.61867,2.42191) (2.624,2.41875)(2.62933,2.41566)(2.63467,2.41263)(2.64,2.40967) (2.64533,2.40677)(2.65067,2.40394)(2.656,2.40117)(2.66133,2.39847) (2.66667,2.39583)(2.672,2.39326)(2.67733,2.39076)(2.68267,2.38831) (2.688,2.38594)(2.69333,2.38363)(2.69867,2.38138)(2.704,2.3792) (2.70933,2.37708)(2.71467,2.37503)(2.72,2.37305)(2.72533,2.37113) (2.73067,2.36927)(2.736,2.36748)(2.74133,2.36576)(2.74667,2.3641) (2.752,2.3625)(2.75733,2.36097)(2.76267,2.35951)(2.768,2.35811) (2.77333,2.35677)(2.77867,2.3555)(2.784,2.3543)(2.78933,2.35316) (2.79467,2.35208)(2.8,2.35107)(2.80533,2.35013)(2.81067,2.34925) (2.816,2.34844)(2.82133,2.34769)(2.82667,2.34701)(2.832,2.34639) (2.83733,2.34583)(2.84267,2.34535)(2.848,2.34492)(2.85333,2.34456) (2.85867,2.34427)(2.864,2.34404)(2.86933,2.34388)(2.87467,2.34378)(2.88,2.34375) \allinethickness{0.0055348in}% \path(2.82869,2.3534)(2.82294,2.34686) \path(2.83439,2.35233)(2.82289,2.33925) \path(2.84009,2.35126)(2.82501,2.3341) \path(2.84579,2.35019)(2.83287,2.33548) \path(2.85149,2.34911)(2.84072,2.33686) \path(2.85719,2.34804)(2.84858,2.33823) \path(2.8629,2.34697)(2.85643,2.33961) \path(2.8686,2.3459)(2.86429,2.34099) \path(2.8743,2.34482)(2.87214,2.34237) \path(2.8229,2.34038)(2.82921,2.33484) \path(2.82294,2.34704)(2.83556,2.33595) \path(2.82298,2.35369)(2.84191,2.33706) \path(2.83154,2.35287)(2.84826,2.33818) \path(2.84123,2.35104)(2.8546,2.33929) \path(2.85092,2.34922)(2.86095,2.34041) \path(2.86062,2.3474)(2.8673,2.34152) \path(2.87031,2.34557)(2.87365,2.34264) \allinethickness{1.2pt}% \path(2.82292,2.3441)(2.82286,2.33372)(2.88,2.34375) (2.82299,2.35448)(2.82292,2.3441) \put(2.93535,2.34375){\makebox(0,0)[l]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{pdf}}}}}} \put(2.88,2.34375){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.24,2.8125)(2.24533,2.82028)(2.25067,2.82799)(2.256,2.83564) (2.26133,2.84323)(2.26667,2.85075)(2.272,2.8582)(2.27733,2.86559) (2.28267,2.87292)(2.288,2.88018)(2.29333,2.88737)(2.29867,2.8945) (2.304,2.90156)(2.30933,2.90856)(2.31467,2.91549)(2.32,2.92236) (2.32533,2.92917)(2.33067,2.9359)(2.336,2.94258)(2.34133,2.94919) (2.34667,2.95573)(2.352,2.96221)(2.35733,2.96862)(2.36267,2.97497) (2.368,2.98125)(2.37333,2.98747)(2.37867,2.99362)(2.384,2.99971) (2.38933,3.00573)(2.39467,3.01169)(2.4,3.01758)(2.40533,3.0234) (2.41067,3.02917)(2.416,3.03486)(2.42133,3.04049)(2.42667,3.04606) (2.432,3.05156)(2.43733,3.057)(2.44267,3.06237)(2.448,3.06768) (2.45333,3.07292)(2.45867,3.07809)(2.464,3.0832)(2.46933,3.08825) (2.47467,3.09323)(2.48,3.09814)(2.48533,3.10299)(2.49067,3.10778) (2.496,3.1125)(2.50133,3.11715)(2.50667,3.12174)(2.512,3.12627) (2.51733,3.13073)(2.52267,3.13512)(2.528,3.13945)(2.53333,3.14372) (2.53867,3.14792)(2.544,3.15205)(2.54933,3.15612)(2.55467,3.16012) (2.56,3.16406)(2.56533,3.16794)(2.57067,3.17174)(2.576,3.17549) (2.58133,3.17917)(2.58667,3.18278)(2.592,3.18633)(2.59733,3.18981) (2.60267,3.19323)(2.608,3.19658)(2.61333,3.19987)(2.61867,3.20309) (2.624,3.20625)(2.62933,3.20934)(2.63467,3.21237)(2.64,3.21533) (2.64533,3.21823)(2.65067,3.22106)(2.656,3.22383)(2.66133,3.22653) (2.66667,3.22917)(2.672,3.23174)(2.67733,3.23424)(2.68267,3.23669) (2.688,3.23906)(2.69333,3.24137)(2.69867,3.24362)(2.704,3.2458) (2.70933,3.24792)(2.71467,3.24997)(2.72,3.25195)(2.72533,3.25387) (2.73067,3.25573)(2.736,3.25752)(2.74133,3.25924)(2.74667,3.2609) (2.752,3.2625)(2.75733,3.26403)(2.76267,3.26549)(2.768,3.26689) (2.77333,3.26823)(2.77867,3.2695)(2.784,3.2707)(2.78933,3.27184) (2.79467,3.27292)(2.8,3.27393)(2.80533,3.27487)(2.81067,3.27575) (2.816,3.27656)(2.82133,3.27731)(2.82667,3.27799)(2.832,3.27861) (2.83733,3.27917)(2.84267,3.27965)(2.848,3.28008)(2.85333,3.28044) (2.85867,3.28073)(2.864,3.28096)(2.86933,3.28112)(2.87467,3.28122)(2.88,3.28125) \allinethickness{0.0055348in}% \path(2.82295,3.27579)(2.83249,3.27231) \path(2.82292,3.28106)(2.84199,3.2741) \path(2.82289,3.28633)(2.85149,3.27589) \path(2.82456,3.29098)(2.861,3.27767) \path(2.85228,3.28612)(2.8705,3.27946) \path(2.87406,3.28013)(2.87481,3.28216) \path(2.86813,3.27902)(2.86961,3.28307) \path(2.86219,3.2779)(2.86442,3.28399) \path(2.85626,3.27678)(2.85922,3.2849) \path(2.85032,3.27567)(2.85403,3.28581) \path(2.84439,3.27455)(2.84883,3.28672) \path(2.83845,3.27343)(2.84364,3.28763) \path(2.83252,3.27232)(2.83844,3.28854) \path(2.82658,3.2712)(2.83325,3.28946) \path(2.82295,3.27639)(2.82805,3.29037) \allinethickness{1.2pt}% \path(2.82292,3.2809)(2.82299,3.27052)(2.88,3.28125) (2.82286,3.29128)(2.82292,3.2809) \put(2.86001,3.33981){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{eps}}}}}} \put(2.88,3.28125){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.4pt}% \color{rgb_7f7f7f}% \path(2.88,3.28125)(3.52,3.28125) \path(3.51481,3.28031)(3.51477,3.2822) \path(3.50962,3.27936)(3.50954,3.28315) \path(3.50443,3.27842)(3.50432,3.2841) \path(3.49924,3.27748)(3.49909,3.28505) \path(3.49406,3.27653)(3.49386,3.286) \path(3.48887,3.27559)(3.48863,3.28695) \path(3.48368,3.27465)(3.4834,3.2879) \path(3.47849,3.2737)(3.47818,3.28885) \path(3.4733,3.27276)(3.47295,3.2898) \path(3.46811,3.27182)(3.46772,3.29076) \path(3.48855,3.28697)(3.46292,3.28644) \path(3.51417,3.28231)(3.46292,3.28125) \path(3.49512,3.27673)(3.46292,3.27606) \path(3.46292,3.28125)(3.46292,3.27087)(3.52,3.28125) (3.46292,3.29163)(3.46292,3.28125) \put(3.57535,3.28125){\makebox(0,0)[l]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \begin{minipage}{0.225in}\texttt{png mng gif}\end{minipage}}}}} \put(3.52,3.28125){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(1.92,2.34375){\makebox(0,0)[c]{\hbox{\color{rgb_009800}\texttt{\Large elaps}}}} \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(0.32,1.40625)(0.96,1.40625) \allinethickness{0.0055348in}% \path(0.912435,1.4149)(0.902922,1.41097) \path(0.921948,1.41317)(0.902922,1.40531) \path(0.931461,1.41144)(0.902922,1.39966) \path(0.940974,1.40971)(0.91102,1.39734) \path(0.950487,1.40798)(0.93551,1.4018) \path(0.902922,1.40939)(0.908111,1.39682) \path(0.905721,1.41612)(0.9133,1.39776) \path(0.911752,1.41502)(0.918489,1.3987) \path(0.917783,1.41393)(0.923678,1.39965) \path(0.923814,1.41283)(0.928867,1.40059) \path(0.929845,1.41173)(0.934056,1.40153) \path(0.935876,1.41064)(0.939244,1.40248) \path(0.941907,1.40954)(0.944433,1.40342) \path(0.947938,1.40844)(0.949622,1.40436) \path(0.953969,1.40735)(0.954811,1.40531) \allinethickness{1.2pt}% \path(0.902922,1.40625)(0.902922,1.39587)(0.96,1.40625) (0.902922,1.41663)(0.902922,1.40625) \put(0.32,1.4616){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{xp}, \texttt{flx}}}}}} \put(0.32,1.40625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(0.97999,1.46481){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{eepic}}}}}} \put(0.96,1.40625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(0.96,1.40625)(0.963187,1.40615)(0.966347,1.40586) (0.969482,1.40539)(0.972591,1.40472)(0.975676,1.40388) (0.978736,1.40285)(0.981772,1.40165)(0.984785,1.40028) (0.987774,1.39874)(0.990741,1.39703)(0.993685,1.39516) (0.996608,1.39313)(0.999509,1.39094)(1.00239,1.3886) (1.00525,1.38611)(1.00809,1.38347)(1.01091,1.38069) (1.01371,1.37777)(1.01649,1.37472)(1.01926,1.37153) (1.02201,1.36821)(1.02474,1.36476)(1.02745,1.36119)(1.03014,1.3575) (1.03282,1.35369)(1.03549,1.34977)(1.03814,1.34574)(1.04077,1.3416) (1.04339,1.33735)(1.046,1.33301)(1.04859,1.32856)(1.05117,1.32403) (1.05374,1.3194)(1.0563,1.31468)(1.05884,1.30988)(1.06138,1.305) (1.0639,1.30004)(1.06641,1.295)(1.06891,1.2899)(1.07141,1.28472) (1.07389,1.27948)(1.07637,1.27418)(1.07884,1.26882)(1.0813,1.2634) (1.08375,1.25793)(1.0862,1.25242)(1.08864,1.24685)(1.09107,1.24125) (1.0935,1.23561)(1.09593,1.22993)(1.09835,1.22421)(1.10076,1.21847) (1.10317,1.2127)(1.10558,1.20691)(1.10799,1.2011)(1.1104,1.19528) (1.1128,1.18944)(1.1152,1.18359)(1.1176,1.17773)(1.12,1.17188) (1.1224,1.16602)(1.1248,1.16016)(1.1272,1.15431)(1.1296,1.14847) (1.13201,1.14265)(1.13442,1.13684)(1.13683,1.13105) (1.13924,1.12528)(1.14165,1.11954)(1.14407,1.11382)(1.1465,1.10814) (1.14893,1.1025)(1.15136,1.0969)(1.1538,1.09133)(1.15625,1.08582) (1.1587,1.08035)(1.16116,1.07493)(1.16363,1.06957)(1.16611,1.06427) (1.16859,1.05903)(1.17109,1.05385)(1.17359,1.04875)(1.1761,1.04371) (1.17862,1.03875)(1.18116,1.03387)(1.1837,1.02907)(1.18626,1.02435) (1.18883,1.01972)(1.19141,1.01519)(1.194,1.01074)(1.19661,1.0064) (1.19923,1.00215)(1.20186,0.998013)(1.20451,0.99398) (1.20718,0.990058)(1.20986,0.98625)(1.21255,0.982559) (1.21526,0.978989)(1.21799,0.975542)(1.22074,0.972222) (1.22351,0.969033)(1.22629,0.965977)(1.22909,0.963057) (1.23191,0.960278)(1.23475,0.957642)(1.23761,0.955152) (1.24049,0.952812)(1.24339,0.950625)(1.24631,0.948594) (1.24926,0.946723)(1.25223,0.945015)(1.25522,0.943472) (1.25823,0.942099)(1.26126,0.940898)(1.26432,0.939874) (1.26741,0.939028)(1.27052,0.938364)(1.27365,0.937886) (1.27681,0.937597)(1.28,0.9375) \path(1.28,0.9375)(1.6,0.9375) \allinethickness{0.0055348in}% \path(1.54292,0.934917)(1.54926,0.928275) \path(1.54292,0.942712)(1.55561,0.929428) \path(1.54596,0.947325)(1.56195,0.930581) \path(1.55497,0.945688)(1.56829,0.931735) \path(1.56397,0.94405)(1.57463,0.932888) \path(1.57298,0.942413)(1.58097,0.934041) \path(1.58199,0.940775)(1.58732,0.935194) \path(1.59099,0.939138)(1.59366,0.936347) \path(1.59067,0.935804)(1.59366,0.938653) \path(1.58135,0.934109)(1.58732,0.939806) \path(1.57202,0.932413)(1.58097,0.940959) \path(1.5627,0.930718)(1.57463,0.942112) \path(1.55337,0.929022)(1.56829,0.943265) \path(1.54405,0.927327)(1.56195,0.944419) \path(1.54292,0.933461)(1.55561,0.945572) \path(1.54292,0.940669)(1.54926,0.946725) \allinethickness{1.2pt}% \path(1.54292,0.9375)(1.54292,0.927122)(1.6,0.9375) (1.54292,0.947878)(1.54292,0.9375) \path(1.6,0.9375)(2.24,0.9375) \allinethickness{0.0055348in}% \path(2.23385,0.936381)(2.23481,0.938443) \path(2.22769,0.935262)(2.22962,0.939387) \path(2.22154,0.934143)(2.22443,0.94033) \path(2.21538,0.933024)(2.21924,0.941274) \path(2.20923,0.931905)(2.21406,0.942217) \path(2.20308,0.930787)(2.20887,0.943161) \path(2.19692,0.929668)(2.20368,0.944104) \path(2.19077,0.928549)(2.19849,0.945047) \path(2.18461,0.92743)(2.1933,0.945991) \path(2.18292,0.935846)(2.18811,0.946934) \path(2.23185,0.936017)(2.22148,0.940867) \path(2.22369,0.934535)(2.20297,0.944233) \path(2.21554,0.933052)(2.18445,0.9476) \path(2.20738,0.93157)(2.18292,0.943017) \path(2.19923,0.930087)(2.18292,0.937719) \path(2.19108,0.928605)(2.18292,0.93242) \allinethickness{1.2pt}% \path(2.18292,0.9375)(2.18292,0.927122)(2.24,0.9375) (2.18292,0.947878)(2.18292,0.9375) \put(1.6,0.992848){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{dvi}}}}}} \put(1.6,0.9375){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(2.21793,0.969823){\makebox(0,0)[br]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{ps}}}}}} \put(2.24,0.9375){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{0.4pt}% \color{rgb_7f7f7f}% \path(0.96,0.46875)(0.963187,0.468847)(0.966347,0.469136) (0.969482,0.469614)(0.972591,0.470278)(0.975676,0.471124) (0.978736,0.472148)(0.981772,0.473349)(0.984785,0.474722) (0.987774,0.476265)(0.990741,0.477973)(0.993685,0.479844) (0.996608,0.481875)(0.999509,0.484062)(1.00239,0.486402) (1.00525,0.488892)(1.00809,0.491528)(1.01091,0.494307) (1.01371,0.497227)(1.01649,0.500283)(1.01926,0.503472) (1.02201,0.506792)(1.02474,0.510239)(1.02745,0.513809) (1.03014,0.5175)(1.03282,0.521308)(1.03549,0.52523) (1.03814,0.529263)(1.04077,0.533403)(1.04339,0.537647) (1.046,0.541992)(1.04859,0.546435)(1.05117,0.550972) (1.05374,0.555601)(1.0563,0.560317)(1.05884,0.565118)(1.06138,0.57) (1.0639,0.57496)(1.06641,0.579996)(1.06891,0.585103) (1.07141,0.590278)(1.07389,0.595518)(1.07637,0.60082) (1.07884,0.606181)(1.0813,0.611597)(1.08375,0.617065) (1.0862,0.622582)(1.08864,0.628145)(1.09107,0.63375) (1.0935,0.639394)(1.09593,0.645074)(1.09835,0.650786) (1.10076,0.656528)(1.10317,0.662295)(1.10558,0.668086) (1.10799,0.673896)(1.1104,0.679722)(1.1128,0.685562) (1.1152,0.691411)(1.1176,0.697266)(1.12,0.703125)(1.1224,0.708984) (1.1248,0.714839)(1.1272,0.720688)(1.1296,0.726528) (1.13201,0.732354)(1.13442,0.738164)(1.13683,0.743955) (1.13924,0.749722)(1.14165,0.755464)(1.14407,0.761176) (1.1465,0.766856)(1.14893,0.7725)(1.15136,0.778105) (1.1538,0.783668)(1.15625,0.789185)(1.1587,0.794653) (1.16116,0.800069)(1.16363,0.80543)(1.16611,0.810732) (1.16859,0.815972)(1.17109,0.821147)(1.17359,0.826254) (1.1761,0.83129)(1.17862,0.83625)(1.18116,0.841132) (1.1837,0.845933)(1.18626,0.850649)(1.18883,0.855278) (1.19141,0.859815)(1.194,0.864258)(1.19661,0.868603) (1.19923,0.872847)(1.20186,0.876987)(1.20451,0.88102) (1.20718,0.884942)(1.20986,0.88875)(1.21255,0.892441) (1.21526,0.896011)(1.21799,0.899458)(1.22074,0.902778) (1.22351,0.905967)(1.22629,0.909023)(1.22909,0.911943) (1.23191,0.914722)(1.23475,0.917358)(1.23761,0.919848) (1.24049,0.922188)(1.24339,0.924375)(1.24631,0.926406) (1.24926,0.928277)(1.25223,0.929985)(1.25522,0.931528) (1.25823,0.932901)(1.26126,0.934102)(1.26432,0.935126) (1.26741,0.935972)(1.27052,0.936636)(1.27365,0.937114) (1.27681,0.937403)(1.28,0.9375) \put(0.97999,0.410187){\makebox(0,0)[t]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{tex}}}}} \put(0.96,0.46875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.24,0.9375)(2.24533,0.92972)(2.25067,0.922005) (2.256,0.914355)(2.26133,0.906771)(2.26667,0.899251) (2.272,0.891797)(2.27733,0.884408)(2.28267,0.877083) (2.288,0.869824)(2.29333,0.86263)(2.29867,0.855501)(2.304,0.848438) (2.30933,0.841439)(2.31467,0.834505)(2.32,0.827637) (2.32533,0.820833)(2.33067,0.814095)(2.336,0.807422) (2.34133,0.800814)(2.34667,0.794271)(2.352,0.787793) (2.35733,0.78138)(2.36267,0.775033)(2.368,0.76875) (2.37333,0.762533)(2.37867,0.75638)(2.384,0.750293) (2.38933,0.744271)(2.39467,0.738314)(2.4,0.732422) (2.40533,0.726595)(2.41067,0.720833)(2.416,0.715137) (2.42133,0.709505)(2.42667,0.703939)(2.432,0.698438) (2.43733,0.693001)(2.44267,0.68763)(2.448,0.682324) (2.45333,0.677083)(2.45867,0.671908)(2.464,0.666797) (2.46933,0.661751)(2.47467,0.656771)(2.48,0.651855) (2.48533,0.647005)(2.49067,0.64222)(2.496,0.6375)(2.50133,0.632845) (2.50667,0.628255)(2.512,0.62373)(2.51733,0.619271) (2.52267,0.614876)(2.528,0.610547)(2.53333,0.606283) (2.53867,0.602083)(2.544,0.597949)(2.54933,0.59388) (2.55467,0.589876)(2.56,0.585938)(2.56533,0.582064) (2.57067,0.578255)(2.576,0.574512)(2.58133,0.570833) (2.58667,0.56722)(2.592,0.563672)(2.59733,0.560189) (2.60267,0.556771)(2.608,0.553418)(2.61333,0.55013) (2.61867,0.546908)(2.624,0.54375)(2.62933,0.540658) (2.63467,0.53763)(2.64,0.534668)(2.64533,0.531771) (2.65067,0.528939)(2.656,0.526172)(2.66133,0.52347) (2.66667,0.520833)(2.672,0.518262)(2.67733,0.515755) (2.68267,0.513314)(2.688,0.510937)(2.69333,0.508626) (2.69867,0.50638)(2.704,0.504199)(2.70933,0.502083) (2.71467,0.500033)(2.72,0.498047)(2.72533,0.496126) (2.73067,0.494271)(2.736,0.49248)(2.74133,0.490755) (2.74667,0.489095)(2.752,0.4875)(2.75733,0.48597)(2.76267,0.484505) (2.768,0.483105)(2.77333,0.481771)(2.77867,0.480501) (2.784,0.479297)(2.78933,0.478158)(2.79467,0.477083)(2.8,0.476074) (2.80533,0.47513)(2.81067,0.474251)(2.816,0.473437) (2.82133,0.472689)(2.82667,0.472005)(2.832,0.471387) (2.83733,0.470833)(2.84267,0.470345)(2.848,0.469922) (2.85333,0.469564)(2.85867,0.469271)(2.864,0.469043) (2.86933,0.46888)(2.87467,0.468783)(2.88,0.46875) \path(2.86583,0.471416)(2.82296,0.474287) \path(2.86567,0.466235)(2.82292,0.469098) \path(2.84427,0.462478)(2.82289,0.46391) \path(2.82817,0.478501)(2.82689,0.459429) \path(2.83335,0.477526)(2.8322,0.460361) \path(2.83854,0.476551)(2.83751,0.461293) \path(2.84372,0.475576)(2.84282,0.462225) \path(2.8489,0.474601)(2.84814,0.463157) \path(2.85408,0.473625)(2.85345,0.464089) \path(2.85927,0.47265)(2.85876,0.465021) \path(2.86445,0.471675)(2.86407,0.465954) \path(2.86963,0.4707)(2.86938,0.466886) \path(2.87482,0.469725)(2.87469,0.467818) \path(2.82292,0.469098)(2.82286,0.458721)(2.88,0.46875) (2.82299,0.479476)(2.82292,0.469098) \put(2.93535,0.46875){\makebox(0,0)[l]{\hbox{\color{rgb_7f7f7f}\texttt{\footnotesize \texttt{pdf}}}}} \put(2.88,0.46875){\color{rgb_7f7f7f}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \allinethickness{1.2pt}% \color{rgb_ff0000}% \path(2.24,0.9375)(2.24533,0.94528)(2.25067,0.952995) (2.256,0.960645)(2.26133,0.968229)(2.26667,0.975749) (2.272,0.983203)(2.27733,0.990592)(2.28267,0.997917)(2.288,1.00518) (2.29333,1.01237)(2.29867,1.0195)(2.304,1.02656)(2.30933,1.03356) (2.31467,1.04049)(2.32,1.04736)(2.32533,1.05417)(2.33067,1.0609) (2.336,1.06758)(2.34133,1.07419)(2.34667,1.08073)(2.352,1.08721) (2.35733,1.09362)(2.36267,1.09997)(2.368,1.10625)(2.37333,1.11247) (2.37867,1.11862)(2.384,1.12471)(2.38933,1.13073)(2.39467,1.13669) (2.4,1.14258)(2.40533,1.1484)(2.41067,1.15417)(2.416,1.15986) (2.42133,1.16549)(2.42667,1.17106)(2.432,1.17656)(2.43733,1.182) (2.44267,1.18737)(2.448,1.19268)(2.45333,1.19792)(2.45867,1.20309) (2.464,1.2082)(2.46933,1.21325)(2.47467,1.21823)(2.48,1.22314) (2.48533,1.22799)(2.49067,1.23278)(2.496,1.2375)(2.50133,1.24215) (2.50667,1.24674)(2.512,1.25127)(2.51733,1.25573)(2.52267,1.26012) (2.528,1.26445)(2.53333,1.26872)(2.53867,1.27292)(2.544,1.27705) (2.54933,1.28112)(2.55467,1.28512)(2.56,1.28906)(2.56533,1.29294) (2.57067,1.29674)(2.576,1.30049)(2.58133,1.30417)(2.58667,1.30778) (2.592,1.31133)(2.59733,1.31481)(2.60267,1.31823)(2.608,1.32158) (2.61333,1.32487)(2.61867,1.32809)(2.624,1.33125)(2.62933,1.33434) (2.63467,1.33737)(2.64,1.34033)(2.64533,1.34323)(2.65067,1.34606) (2.656,1.34883)(2.66133,1.35153)(2.66667,1.35417)(2.672,1.35674) (2.67733,1.35924)(2.68267,1.36169)(2.688,1.36406)(2.69333,1.36637) (2.69867,1.36862)(2.704,1.3708)(2.70933,1.37292)(2.71467,1.37497) (2.72,1.37695)(2.72533,1.37887)(2.73067,1.38073)(2.736,1.38252) (2.74133,1.38424)(2.74667,1.3859)(2.752,1.3875)(2.75733,1.38903) (2.76267,1.39049)(2.768,1.39189)(2.77333,1.39323)(2.77867,1.3945) (2.784,1.3957)(2.78933,1.39684)(2.79467,1.39792)(2.8,1.39893) (2.80533,1.39987)(2.81067,1.40075)(2.816,1.40156)(2.82133,1.40231) (2.82667,1.40299)(2.832,1.40361)(2.83733,1.40417)(2.84267,1.40465) (2.848,1.40508)(2.85333,1.40544)(2.85867,1.40573)(2.864,1.40596) (2.86933,1.40612)(2.87467,1.40622)(2.88,1.40625) \allinethickness{0.0055348in}% \path(2.82288,1.41337)(2.82817,1.3965) \path(2.82772,1.41543)(2.83335,1.39747) \path(2.83353,1.41441)(2.83854,1.39845) \path(2.83934,1.41339)(2.84372,1.39942) \path(2.84515,1.41237)(2.8489,1.4004) \path(2.85096,1.41135)(2.85408,1.40137) \path(2.85677,1.41033)(2.85927,1.40235) \path(2.86257,1.40931)(2.86445,1.40332) \path(2.86838,1.40829)(2.86963,1.4043) \path(2.87419,1.40727)(2.87482,1.40527) \path(2.83547,1.39787)(2.86857,1.40826) \path(2.82296,1.39954)(2.85714,1.41026) \path(2.82293,1.40512)(2.84572,1.41227) \path(2.82289,1.4107)(2.83429,1.41427) \allinethickness{1.2pt}% \path(2.82292,1.4059)(2.82299,1.39552)(2.88,1.40625) (2.82286,1.41628)(2.82292,1.4059) \put(2.86001,1.46481){\makebox(0,0)[b]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \texttt{eps}}}}}} \put(2.88,1.40625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \path(2.88,1.40625)(3.52,1.40625) \allinethickness{0.0055348in}% \path(3.50867,1.40419)(3.51287,1.40755) \path(3.49734,1.40213)(3.50573,1.40884) \path(3.48601,1.40007)(3.4986,1.41014) \path(3.47467,1.39801)(3.49146,1.41144) \path(3.46334,1.39595)(3.48433,1.41274) \path(3.46292,1.40262)(3.47719,1.41403) \path(3.46292,1.40962)(3.47006,1.41533) \path(3.51429,1.40521)(3.51235,1.40764) \path(3.50858,1.40417)(3.5047,1.40903) \path(3.50288,1.40314)(3.49705,1.41042) \path(3.49717,1.4021)(3.4894,1.41181) \path(3.49146,1.40106)(3.48175,1.41321) \path(3.48575,1.40002)(3.47409,1.4146) \path(3.48005,1.39899)(3.46644,1.41599) \path(3.47434,1.39795)(3.46292,1.41222) \path(3.46863,1.39691)(3.46292,1.40404) \allinethickness{1.2pt}% \path(3.46292,1.40625)(3.46292,1.39587)(3.52,1.40625) (3.46292,1.41663)(3.46292,1.40625) \put(3.57535,1.40625){\makebox(0,0)[l]{\fboxrule0.1pt% \fcolorbox{rgb_ff0000}{cmy_000019}{\hbox{\color{rgb_0000ff}\texttt{\footnotesize \begin{minipage}{0.225in}\texttt{png mng gif}\end{minipage}}}}}} \put(3.52,1.40625){\color{rgb_0000ff}$\allinethickness{0.0207555in}\circle{0.0207555}$}% \put(1.92,0.46875){\makebox(0,0)[c]{\hbox{\color{rgb_009800}\texttt{\Large flix}}}} \end{picture}% epix-1.2.21/doc/ePiX.xp000066400000000000000000000052341417356203700145410ustar00rootroot00000000000000/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; void emph(const std::string& prog) { if (prog == "all") black(); else { bbold(Red()); label_color(Blue()); label_mask(Yellow(0.1)); label_border(Red(), "0.1pt"); } } void restore(const std::string& prog) { if (prog == "all") emph(prog); else { plain(); black(0.5); label_mask(Neutral()); } } void diagram(const std::string& prog) { font_size("footnotesize"); arrow_width(1.5); restore(prog); if (prog != "laps") emph(prog); arrow(P(0,1), P(1,1)); dot(P(0,1), P(0,4), "\\texttt{xp}, \\texttt{flx}", t); dot(P(1,1), P(2,4), "\\texttt{eepic}", t); restore(prog); if (prog != "epix") emph(prog); spline(P(1,1), P(1.2,1), P(1.3,0.5), P(1.5,0.5)); arrow(P(1.5,0.5), P(2,0.5)); arrow(P(2,0.5), P(3,0.5)); dot(P(2,0.5), P(0,4), "\\texttt{dvi}", t); dot(P(3,0.5), P(-2,2), "\\texttt{ps}", tl); restore(prog); if(prog == "laps") emph(prog); spline(P(1,0), P(1.2,0), P(1.3,0.5), P(1.5,0.5)); dot(P(1,0), P(2,-4), "\\texttt{tex}", b); if (prog == "elaps") // and laps emph(prog); arrow(P(3,0.5), P(3.5,0), P(4,0)); dot(P(4,0), P(4,0), "\\texttt{pdf}", r); restore(prog); if (prog == "elaps" || prog == "flix") emph(prog); arrow(P(3,0.5), P(3.5,1), P(4,1)); dot(P(4,1), P(-2,4), "\\texttt{eps}", t); restore(prog); if(prog == "flix") emph(prog); arrow(P(4,1), P(5,1)); dot(P(5,1), P(4,0), "\\begin{minipage}{0.225in}\\texttt{png mng gif}\\end{minipage}", r); restore(prog); if (prog != "all") { font_size("Large"); font_face("tt"); label_color(Green(0.6)); label(P(2.5,0), prog); } } int main() { #ifdef SHOW_ALL picture(P(-0.5,0), P(5.75,10), "4 x 7.5 in"); #else picture(P(-0.5,2), P(5.75,10), "4 x 7.5 in"); #endif begin(); // border(); screen laps(P(0,0), P(5,1)); activate(laps); diagram("laps"); laps.v_scale(0.5, P(0,0.5)); inset(laps, P(0,8), P(5,10)); deactivate(laps); screen epix(P(0,0), P(5,1)); activate(epix); diagram("epix"); epix.v_scale(0.5, P(0,0.5)); inset(epix, P(0,6), P(5,8)); deactivate(epix); screen elaps(P(0,0), P(5,1)); activate(elaps); diagram("elaps"); elaps.v_scale(0.5, P(0,0.5)); inset(elaps, P(0,4), P(5,6)); deactivate(elaps); screen flix(P(0,0), P(5,1)); activate(flix); diagram("flix"); flix.v_scale(0.5, P(0,0.5)); inset(flix, P(0,2), P(5,4)); deactivate(flix); #ifdef SHOW_ALL screen all(P(0,0), P(5,1)); activate(all); diagram("all"); all.v_scale(0.5, P(0,0.5)); inset(all, P(0,0), P(5,2)); deactivate(all); #endif end(); } epix-1.2.21/doc/epix.info000066400000000000000000006763641417356203700151670ustar00rootroot00000000000000This is epix.info, produced by makeinfo version 5.2 from epix.texi. This is the manual for ePiX, Version 1.2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2017 Andrew D. Hwang INFO-DIR-SECTION TeX START-INFO-DIR-ENTRY * ePiX: (epix). Drawing mathematically accurate figures. END-INFO-DIR-ENTRY  File: epix.info, Node: Top, Next: Introduction, Up: (dir) ePiX manual *********** This is the manual for ePiX, Version 1.2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2017 Andrew D. Hwang * Menu: * Introduction :: * Getting Started :: * Reference Manual :: * Advanced Topics :: * Software Freedom:: * Acknowledgments:: * Function Index:: * Concept Index:: -- The Detailed Node Listing -- Introduction * Software Dependencies:: * Installation:: Software Dependencies * Setting up an Environment Under Windows:: Installation * Development:: Getting Started * Running 'ePiX':: * The Drawing Model:: * Tutorial:: * 'C++' Basics:: * Animation:: * Layout Tricks:: 'C++' Basics * File Format:: * Variables and Functions:: * Comments:: * Program Execution:: * Strings and Raw Output:: * Conditionals and Loops:: Layout Tricks * Stereograms:: * Inset Images:: Reference Manual * File Structure:: * Picture Size and Aspect Ratio:: * Color:: * Scene Attributes:: * Drawing Attributes:: * Creating and Drawing Objects:: * More About 'C++':: * Attribute Quick Reference:: Color * Constructors:: * Color Operations:: Scene Attributes * Angular Mode:: * The Camera:: * Clipping:: * Screens and Page Layout:: Drawing Attributes * Filled Regions:: * Paths:: * Text Objects:: * Color Declarations:: Creating and Drawing Objects * Geometric Data Structures:: * Path-Like Elements:: * Coordinate Axes and Labels:: * The Path Class:: * Function Plotting:: * Calculus Plotting:: * Non-Euclidean Geometry:: * Data Plotting:: * Legends:: More About 'C++' * Names and Types:: * Functions:: * Mathematical Functions:: * Basics of Classes:: * References and Function Arguments:: * Overloading:: * Scope:: * Headers and Pre-Processing:: * Comparison with 'LaTeX' Syntax:: Advanced Topics * Hidden Object Removal:: * Extensions:: * Programmer's Guide:: Extensions * Header Files:: * Compiling:: * Runtime Linking:: * Using Multiple Versions:: Programmer's Guide * External Packages:: * User Interface:: * Implementation Classes::  File: epix.info, Node: Introduction, Next: Getting Started, Prev: Top, Up: Top 1 Introduction ************** 'ePiX', a collection of batch utilities, creates mathematically accurate figures, plots, and animations containing 'LaTeX' typography. The input syntax is easy to learn, and the user interface resembles that of 'LaTeX' itself: You prepare a scene description in a text editor, then "compile" the input file into a picture. 'LaTeX'- and web-compatible output types include a 'LaTeX' picture-like environment written with 'PSTricks', 'tikz', or 'eepic' macros; vector images ('eps', 'ps', and 'pdf'); and bitmapped images and movies ('png', 'mng', and 'gif'). 'ePiX''s strengths include: * Quality of output: 'ePiX' creates accurate, publication-quality figures whose appearance matches that of 'LaTeX'. Typography may be put in a figure as easily as in an ordinary 'LaTeX' document. * Ease of use: Figure objects and their attributes are specified by simple, descriptive commands. * Flexibility: Objects are described by attributes and Cartesian location; as in 'LaTeX', printed appearance is determined when the figure is compiled. A well-designed figure can be altered dramatically, yet precisely, with command-line switches or minor changes to the input file. * Power and extendibility: 'ePiX' inherits the power of 'C++' as a programming language; variables, data structures, loops, and recursion can be used to draw complicated plots and figures with just a few lines of input. External code can be incorporated in a figure with a command line option or by using a Makefile. * Economy of storage and transmission: For a document containing many figures, a compressed tar file of the 'LaTeX' sources and 'ePiX' files is typically a few percent the size of the compressed PostScript file. * License: 'ePiX' is _free software_. You are granted the right to use the program for whatever purpose, and to inspect, modify, and re-distribute the source code, so long as you do not restrict the rights of others to do the same. In short, the license is similar to the terms under which theorems are published. 'ePiX' facilitates logical structuring of mathematical figures, as opposed to visual structuring (or WYSIWYG), analogous to the relationship between 'LaTeX' and a word processor. Stylistic defaults streamline the creation of simple figures, but there are few internal restrictions on the contents or appearance of a figure; aesthetic and practical decisions are left to you. If you are a: * Potential user, you may wish to skip immediately to "Software Dependencies" before investing additional time. * New user, proceed from here until you have enough understanding to run the software, then experiment with the samples files while reading Chapter *Note chapter-started::, , or return to the manual as needed. * More advanced user, browse at will, probably starting with Chapter *Note chapter-ref-man::, . This manual is relatively conversational, and occasionally redundant, especially between portions meant for readers at different levels of familiarity. Throughout, you are assumed to be familiar with 'LaTeX' and basic linear algebra: the description of points, vectors, lines, and planes in three-dimensional space. Other material, such as 'C++' syntax, is introduced as needed. * Menu: * Software Dependencies:: * Installation::  File: epix.info, Node: Software Dependencies, Next: Installation, Up: Introduction 1.1 Software Dependencies ========================= If you run GNU/Linux, a BSD, or Solaris, you probably have (and can surely install) all the external software needed to use 'ePiX'. On Mac OS X, you will need the Apple developer tools and an X server (such as XQuartz), and the free 'fink' package manager to build a GNU environment. For Windows, you'll need to install Cygwin and several packages. Detailed instructions are given below. "Under the hood", an input file is successively converted to a 'LaTeX' picture; 'dvi'; PostScript, 'pdf' or 'eps'; and if desired, to a bitmapped image or movie. Four shell scripts--'epix', 'laps', 'elaps', and 'flix'--automate the various file format conversions. 'ePiX' consists of a 'C++' library, header, and shell scripts, and requires GNU 'bash' and a compiler _for normal use_. For complete functionality, you need 'g++' (Version 3.2 or later), 'bash', a text editor ('ePiX' works particularly well with 'emacs'), a 'LaTeX' distribution, 'Ghostscript', 'gv' (or your favorite PS/PDF previewer), and 'GraphicsMagick'. GNU 'grep' and 'sed' are good to have. You may need additional "developer packages" ('binutils', 'make') in order to build 'ePiX'. The more up to date your software is, the better your experience is likely to be, but bleeding edge versions are not necessary, or even always desirable. Aside from their reliance on specific programs, 'ePiX''s shell scripts are written using Unix-style pathnames. Thus, the most straightforward way to use 'ePiX' is to install a GNU environment. Jay Belanger's 'emacs' mode allows you to write, compile, and view 'ePiX' figures without leaving 'emacs'. If you use another editor, you'll want to create template source files so you don't have to type boilerplate code each time you write a new figure. * Menu: * Setting up an Environment Under Windows::  File: epix.info, Node: Setting up an Environment Under Windows, Up: Software Dependencies 1.1.1 Setting up an Environment Under Windows --------------------------------------------- Cygwin can be used to run 'ePiX' under Windows. Download 'setup.exe' from , then install the packages you need. The following are recommended, and sufficient for the actions described in this manual. (Archive) bzip2, tar (Devel) binutils, coreutils, gcc, gcc-g++, make, sed (Editors) emacs, emacs-X11, vim (Graphics) GraphicsMagick, ghostscript-base, ghostscript-x11, gv (Publishing) tetex (all) (Shells) bash, bash-completion (X11) X-start-menu-icons, X-startup-scripts, XFree86-lib-compat, xorg-x11-fscl, xorg-x11-fsrv  File: epix.info, Node: Installation, Prev: Software Dependencies, Up: Introduction 1.2 Installation ================ 'ePiX' is distributed over the World-Wide Web as source code. Packages may be found at The latest stable release is also on the CTAN mirrors, in the 'graphics' directory. (Some users of Red Hat have reported file permission problems when unpacking the CTAN tarballs. If you encounter this difficulty, please try downloading the sources from the project main page.) Unpack the compressed tar file with the appropriate command: tar -zxvf epix-x.y.z.tar.gz tar -jxvf epix-x.y.z.tar.bz2 ('x.y.z' is the version number) or, if your 'tar' doesn't do decompression, gunzip -c epix-x.y.z.tar.gz | tar -xvf - bzcat epix-x.y.z.tar.bz2 | tar -xvf - 'cd' to the source directory, 'epix-x.y.z'. The 'INSTALL' file contains detailed installation instructions. If you're impatient, the short of it is './configure [--options]; make; make install'. Run './configure --help' for a list of options. By default, 'ePiX' installs in subdirectories of '/usr/local'; if you want to install elsewhere, supply './configure' with the appropriate '--prefix'. You may also want to consult 'POST-INSTALL' for information on setting your 'PATH' variable so your shell can find 'ePiX'. The manual and sample files are in '/usr/local/share/doc/epix'. * Menu: * Development::  File: epix.info, Node: Development, Up: Installation 1.2.1 Development ----------------- There are two mailing lists, one for user questions, one for development discussion. Please visit to subscribe.  File: epix.info, Node: Getting Started, Next: Reference Manual, Prev: Introduction, Up: Top 2 Getting Started ***************** This chapter describes the basics of creating figures in 'ePiX' for readers familiar with 'LaTeX' but completely new to 'C++'. No detailed knowledge of 'C++' is needed to use 'ePiX', only a bit of grammar that is easily absorbed by example. Section *Note section-running::, describes the commands (shell scripts) comprising 'ePiX', and explains how to set up a graphical environment using standard *nix programs. Section *Note section-overview::, briefly describes figure creation. Section *Note section-tutorial::, presents a few files side-by-side with their output, and should be read at a computer so you can run the exercises. * Menu: * Running 'ePiX':: * The Drawing Model:: * Tutorial:: * 'C++' Basics:: * Animation:: * Layout Tricks::  File: epix.info, Node: Running 'ePiX', Next: The Drawing Model, Up: Getting Started 2.1 Running 'ePiX' ================== An "input file" is a human-written figure specification containing 'ePiX' commands; an "output file" is either a 'LaTeX' picture-like environment or a stand-alone vector graphic. Conversion ("compiling" a figure) is accomplished with four shell scripts, 'laps', 'epix', 'elaps', and 'flix'. Each script has a preferred extension for its input files, and is invoked with a command of the form