macopix-1.7.4/0000777000076400007640000000000011030100030010152 500000000000000macopix-1.7.4/Makefile.am0000644000076400007640000000071110616217742012155 00000000000000SUBDIRS= m4 po src EXTRA_DIST = config.rpath\ ChangeLog.ja \ README.ja \ README-win32-ja.txt \ README-win32-en.txt \ NKR.README.ja \ autogen.sh\ macopix.1\ makewin32.sh man_MANS = macopix.1 BZIP2_ENV = GZIP_ENV = TAR = tar release: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) -chozf $(distdir).tar.gz $(distdir) BZIP2=$(BZIP2_ENV) $(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir) -rm -rf $(distdir) ACLOCAL_AMFLAGS = -I m4 macopix-1.7.4/COPYING.LIB0000644000076400007640000006363710515604105011570 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, 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 and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, 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 library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete 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 distribute a copy of this License along with the Library. 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 Library or any portion of it, thus forming a work based on the Library, 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) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, 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 Library, 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 Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you 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. If distribution of 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 satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be 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. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library 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. 9. 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 Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library 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 with this License. 11. 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 Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library 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 Library. 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. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library 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. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser 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 Library 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 Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, 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 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "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 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. 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 LIBRARY 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 LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), 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 Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. 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 library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! macopix-1.7.4/aclocal.m40000664000076400007640000131625711030076465011777 00000000000000# generated automatically by aclocal 1.10 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_if(m4_PACKAGE_VERSION, [2.61],, [m4_fatal([this file was generated for autoconf 2.61. You have another version of autoconf. If you want to use that, you should regenerate the build system entirely.], [63])]) # Configure paths for gdk-pixbuf # Elliot Lee 2000-01-10 # stolen from Raph Levien 98-11-18 # stolen from Manish Singh 98-9-30 # stolen back from Frank Belew # stolen from Manish Singh # Shamelessly stolen from Owen Taylor dnl AM_PATH_GDK_PIXBUF([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for GDK_PIXBUF, and define GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS dnl AC_DEFUN([AM_PATH_GDK_PIXBUF], [dnl dnl Get the cflags and libraries from the gdk-pixbuf-config script dnl AC_ARG_WITH(gdk-pixbuf-prefix,[ --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)], gdk_pixbuf_prefix="$withval", gdk_pixbuf_prefix="") AC_ARG_WITH(gdk-pixbuf-exec-prefix,[ --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)], gdk_pixbuf_exec_prefix="$withval", gdk_pixbuf_exec_prefix="") AC_ARG_ENABLE(gdk_pixbuftest, [ --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program], , enable_gdk_pixbuftest=yes) if test x$gdk_pixbuf_exec_prefix != x ; then gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix" if test x${GDK_PIXBUF_CONFIG+set} = xset ; then GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config fi fi if test x$gdk_pixbuf_prefix != x ; then gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix" if test x${GDK_PIXBUF_CONFIG+set} = xset ; then GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config fi fi AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no) min_gdk_pixbuf_version=ifelse([$1], ,0.2.5,$1) AC_MSG_CHECKING(for GDK_PIXBUF - version >= $min_gdk_pixbuf_version) no_gdk_pixbuf="" if test "$GDK_PIXBUF_CONFIG" = "no" ; then no_gdk_pixbuf=yes else GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags` GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs` gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gdk_pixbuftest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" LIBS="$LIBS $GDK_PIXBUF_LIBS" dnl dnl Now check if the installed GDK_PIXBUF is sufficiently new. (Also sanity dnl checks the results of gdk-pixbuf-config to some extent dnl rm -f conf.gdk_pixbuftest AC_TRY_RUN([ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gdk_pixbuftest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_gdk_pixbuf_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gdk_pixbuf_version"); exit(1); } if (($gdk_pixbuf_major_version > major) || (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) || (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro))) { return 0; } else { printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version); printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n"); printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } ],, no_gdk_pixbuf=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gdk_pixbuf" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GDK_PIXBUF_CONFIG" = "no" ; then echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found" echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the" echo "*** full path to gdk-pixbuf-config." else if test -f conf.gdk_pixbuftest ; then : else echo "*** Could not run GDK_PIXBUF test program, checking why..." CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" LIBS="$LIBS $GDK_PIXBUF_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong" echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed" echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you" echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GDK_PIXBUF_CFLAGS="" GDK_PIXBUF_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GDK_PIXBUF_CFLAGS) AC_SUBST(GDK_PIXBUF_LIBS) rm -f conf.gdk_pixbuftest ]) # Configure paths for GLIB # Owen Taylor 1997-2001 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or dnl gthread is specified in MODULES, pass to pkg-config dnl AC_DEFUN([AM_PATH_GLIB_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], , enable_glibtest=yes) pkg_config_args=glib-2.0 for module in . $4 do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done PKG_PROG_PKG_CONFIG([0.16]) no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_GENMARSHAL) AC_SUBST(GOBJECT_QUERY) AC_SUBST(GLIB_MKENUMS) rm -f conf.glibtest ]) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [AC_REQUIRE([AC_CANONICAL_HOST])dnl USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) MSGFMT_OPTS= AC_MSG_CHECKING([if msgfmt accepts -c]) GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) AC_SUBST(MSGFMT_OPTS) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" glib_save_datarootdir="$datarootdir" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix datarootdir=`eval echo "${datarootdir}"` if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" datarootdir="$glib_save_datarootdir" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) # # Create a temporary file with TEST-FILE as its contents and pass the # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with # 0 and perform ACTION-IF-FAIL for any other exit status. AC_DEFUN([GLIB_RUN_PROG], [cat >conftest.foo <<_ACEOF $2 _ACEOF if AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:]) m4_ifvaln([$4], [else $4])dnl echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD fi]) # Configure paths for GLIB # Owen Taylor 97-11-3 dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or dnl gthread is specified in MODULES, pass to glib-config dnl AC_DEFUN([AM_PATH_GLIB], [dnl dnl Get the cflags and libraries from the glib-config script dnl AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)], glib_config_prefix="$withval", glib_config_prefix="") AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], glib_config_exec_prefix="$withval", glib_config_exec_prefix="") AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program], , enable_glibtest=yes) if test x$glib_config_exec_prefix != x ; then glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config fi fi if test x$glib_config_prefix != x ; then glib_config_args="$glib_config_args --prefix=$glib_config_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_prefix/bin/glib-config fi fi for module in . $4 do case "$module" in gmodule) glib_config_args="$glib_config_args gmodule" ;; gthread) glib_config_args="$glib_config_args gthread" ;; esac done AC_PATH_PROG(GLIB_CONFIG, glib-config, no) min_glib_version=ifelse([$1], ,0.99.7,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes else GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of glib-config to some extent dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If glib-config was correct, then it is best\n"); printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the glib-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); printf("*** correct copy of glib-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GLIB_CONFIG" = "no" ; then echo "*** The glib-config script installed by GLIB could not be found" echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GLIB_CONFIG environment variable to the" echo "*** full path to glib-config." else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB was incorrectly installed" echo "*** or that you have moved GLIB since it was installed. In the latter case, you" echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) rm -f conf.glibtest ]) # Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, dnl pass to pkg-config dnl AC_DEFUN([AM_PATH_GTK_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], , enable_gtktest=yes) pkg_config_args=gtk+-2.0 for module in . $4 do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK+ is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) # Configure paths for GTK+ # Owen Taylor 97-11-3 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS dnl AC_DEFUN([AM_PATH_GTK], [dnl dnl Get the cflags and libraries from the gtk-config script dnl AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], gtk_config_prefix="$withval", gtk_config_prefix="") AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], , enable_gtktest=yes) for module in . $4 do case "$module" in gthread) gtk_config_args="$gtk_config_args gthread" ;; esac done if test x$gtk_config_exec_prefix != x ; then gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config fi fi if test x$gtk_config_prefix != x ; then gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_prefix/bin/gtk-config fi fi AC_PATH_PROG(GTK_CONFIG, gtk-config, no) min_gtk_version=ifelse([$1], ,0.99.7,$1) AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes else GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK is sufficiently new. (Also sanity dnl checks the results of gtk-config to some extent dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If gtk-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } #endif /* defined (GTK_MAJOR_VERSION) ... */ else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); printf("*** correct copy of gtk-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GTK_CONFIG" = "no" ; then echo "*** The gtk-config script installed by GTK could not be found" echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GTK_CONFIG environment variable to the" echo "*** full path to gtk-config." else if test -f conf.gtktest ; then : else echo "*** Could not run GTK test program, checking why..." CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" echo "*** version of GTK. If it is not finding GTK, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK was incorrectly installed" echo "*** or that you have moved GTK since it was installed. In the latter case, you" echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) # iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) # lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) # lib-link.m4 serial 9 (gettext-0.16) dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ(2.50) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" \ && { test -f "$additional_libdir/lib$name.$shlibext" \ || { test "$shlibext" = dll \ && test -f "$additional_libdir/lib$name.dll.a"; }; }; then found_dir="$additional_libdir" if test -f "$additional_libdir/lib$name.$shlibext"; then found_so="$additional_libdir/lib$name.$shlibext" else found_so="$additional_libdir/lib$name.dll.a" fi if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" \ && { test -f "$dir/lib$name.$shlibext" \ || { test "$shlibext" = dll \ && test -f "$dir/lib$name.dll.a"; }; }; then found_dir="$dir" if test -f "$dir/lib$name.$shlibext"; then found_so="$dir/lib$name.$shlibext" else found_so="$dir/lib$name.dll.a" fi if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) # lib-prefix.m4 serial 5 (gettext-0.15) dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing dnl the basename of the libdir, either "lib" or "lib64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. The current dnl practice is that on a system supporting 32-bit and 64-bit instruction dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit dnl libraries go under $prefix/lib. We determine the compiler's default dnl mode by looking at the compiler's library search path. If at least dnl of its elements ends in /lib64 or points to a directory whose absolute dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the dnl default, namely "lib". acl_libdirstem=lib searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 51 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) libsuff=64 case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" m4_if($1,[],[ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognize shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognize a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then create an initial libtool script # with a default configuration from the untagged config vars. Otherwise # add code to config.status for appending the configuration named by # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _LT_AC_TAGVAR(predep_objects, $1) \ _LT_AC_TAGVAR(postdep_objects, $1) \ _LT_AC_TAGVAR(predeps, $1) \ _LT_AC_TAGVAR(postdeps, $1) \ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ _LT_AC_TAGVAR(hardcode_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(fix_srcfile_path, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\[$]0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` ;; esac ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 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. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([LT_AC_PROG_SED]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # Cheap backport of AS_EXECUTABLE_P and required macros # from Autoconf 2.59; we should not use $as_executable_p directly. # _AS_TEST_PREPARE # ---------------- m4_ifndef([_AS_TEST_PREPARE], [m4_defun([_AS_TEST_PREPARE], [if test -x / >/dev/null 2>&1; then as_executable_p='test -x' else as_executable_p='test -f' fi ])])# _AS_TEST_PREPARE # AS_EXECUTABLE_P # --------------- # Check whether a file is executable. m4_ifndef([AS_EXECUTABLE_P], [m4_defun([AS_EXECUTABLE_P], [AS_REQUIRE([_AS_TEST_PREPARE])dnl $as_executable_p $1[]dnl ])])# AS_EXECUTABLE_P # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10])dnl _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} 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 sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; 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 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_PROG_LEX # ----------- # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a # "missing" invocation, for better error output. AC_DEFUN([AM_PROG_LEX], [AC_PREREQ(2.50)dnl AC_REQUIRE([AM_MISSING_HAS_RUN])dnl AC_REQUIRE([AC_PROG_LEX])dnl if test "$LEX" = :; then LEX=${am_missing_run}flex fi]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR macopix-1.7.4/ltmain.sh0000644000076400007640000060446510665257023011761 00000000000000# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 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. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.24 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)" # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2007 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." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then major=`expr $current - $age` else major=`expr $current - $age + 1` fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: macopix-1.7.4/makewin32.sh0000755000076400007640000000022011014400736012241 00000000000000#!/bin/sh ./configure --with-win32 --with-tar32\ 'CC=gcc -mtune=pentium3' CFLAGS=-O3 \ && make \ && make install-strip prefix=$HOME/dist macopix-1.7.4/README0000644000076400007640000004476511030076254011012 00000000000000################################################################## Desktop Mascot Program for UNIX macopix : Mascot Constructive Pilot for X ver 1.7.4 Document in English : README 2008.06.24 Kurumi Chimari chimari@rosegray.sakura.ne.jp http://rosegray.sakura.ne.jp/ ################################################################## ============================================================= -- Table of Contents -- - About this program - Environment - Install - How to Start - Creating files, necessary files - Mascots - Launcher Menu - Biff function - Time Signal - Socket Message - Duet Animation - Nokkari-Chara Support - SSL Support - Tranlucent Windows - To Do - Copyright ============================================================= **About this program This is a desktop mascot program running under UNIX / X window systems. With ver1.6.0 or later, MaCoPiX can be avairable also on Microsoft Windows, using Gtk+/Win32 (all Gtk+ libraries are included in Win binary version). This Windows version is distributed as compiled (binary) package. Most of the text in this document describes about MaCoPiX UNIX version. So, fo windows, please see Readme-win32.jp (sorry, Japanese only, yet). This program could be an evolved one from "ActX" (Activate X window system). Currently, you can make following types of mascots using MaCoPiX. - Focus follower (Window sitters : likely ActX) - Fix style (Desktop wappen?) Furthermore, you can select with or without a digital clock for each types of mascots. So, MaCoPiX can be used as a sort of desktop clock applications. (But the clock function could be still poor.) And, the biff function is also available for POP/APOP/UNIX local spool/qmail Maildir environments. At once, users can create mascots and change their settings from GUI instead of editing mascot files directly. Please pay attention that the mascot file of MaCoPiX has no compatibility with that of ActX. **Environment Basically, MaCoPiX needs UNIX / X window system or Microsoft Windows. [for UNIX] - Gtk+ > ver1.2.0 (or Gtk+ > ver2.0.0) - gdk-pixbuf > ver0.7.0 (or Gtk+ > ver2.0.0) - libpng . (or Gtk+ > ver2.0.0) - gettext > ver0.10 are necessary. MaCoPiX can be load all image types supported by gdk-pixbuf. But, you need libraries to support each types of images (ex. libtiff, libpng) in order to load each types of images. The official MaCoPiX mascots are served in PNG files now. [for Microsoft Windows (binary package)] - Windows2000,XP or later (Still unconfirmed on Vista) - Including TAR32.DLL(GPL) in the binary distribution. * You can dounload it (free-software, GPL) form the HP of "Common Archiver Library Project". URL http://www.csdinc.co.jp/archiver/index-e.html - All required libraries (Gtk+ etc.) are also included in the binary package. **Install (Unix from source) 1. extract source archive, change directory to the created one. 2. ./configure ################################################################## ./configure options [Gtk+] (default is for Gtk+2.x) ./configure --with-gtk1 (use Gtk+1.2) [Cairo] (default is on) ./configure --disable-cairo (not use cairo) [SSL] (default is OpenSSL) ./configure --with-gnutls (use GNUTLS instead of OpenSSL) ./configure --disable-ssl (none support for SSL) [Win32] (default is for UNIX) ./configure --with-win32 (making for Win32) [TAR32] (default is off) ./configure --with-tar32 (use TAR32.DLL) [UNLHA32] (default is off) ./configure --with-unlha32 (use UNLHA32.DLL) ################################################################## 3. make 4. su 5. make install (If you need to internationalize your menu message (using gettext), you have to do "make install" as a root.) **How to start In anyway, you have to download one mascot file at least (at present). Without mascot files, you cannot do anything with MaCoPiX. Please download or prepare more than one mascot archive (*.tar.gz) and start macopix. With MaCoPiX ver1.6.4 or later, you can install downlocaded mascot archives (*.tar.gz) with drag & drop on the running MaCoPiX mascot (or on the 1st message window for environment with no installed mascots). Just running MaCoPiX, % macopix After started up, please install mascots with drag & drop (or from GUI). If you want to fix the mascot at your startup of MaCoPiX and have a mascot file (mascot.mcpx), please run the following command. % macopix mascot.mcpx After starting the application, you can change any settings from the pop-up GUI. And you can see the command line options, using -h (or --help) option. **Creating files, necessary files MaCoPiX needs (and creates) the following files... a. Mascot file (*.mcpx) And a mascot includes images (and sound files, if necessary). b. Resource file (* .rc) c. Launcher Menu file (*.menu) Basically, these files are copied or created in the "User Directory" (HOME$/.macopix/ for each users). About a., please see the following item as "Mascots". b., the resource file is the file described the parameters kept all times regardless of changing mascots. If you do not appoint any files for the resource file (you can appoint the resource file which you want to load with "-r" option), the default one (HOME$/.macopix/macopix.rc) should be loaded. c. is the Launcher menu in which your favorite mascots are registered. Please see the following item "Launcher menu". **Mascots The mascot of MaCoPiX is made up with - a mascot file (*.mcpx) - image files (You can use any image types loaded by gdk-pixbuf) likely in the case of ActX. Of course, you can use shaped mascots, if you appoint the shaped images with alpha values (ex. png, gif, xpm). At the starting time of the application, the mascot file should be appointed as "% mascot mascot.mcpx". In such case, MaCoPiX automatically searches the mascot file according to the following priority. 1. absolute path or relative path from the current directory 2. User Directory ($HOME/.macopixrc/) 3. Common Directory (/usr/share/macopix/ ?) User directory(2) should be automatically created at the first time for using MaCoPiX. Distribution Directory(3) will be determined by the installer at the time of installation. Image files should be appointed in the mascot file. These files are also searched according to the following priority. 1. same directory where the mascot file exists 2. User Pixmap Directory ($HOME/.macopixrc/pixmap/) 3. Common Pixmap Directory (/usr/share/macopix/pixmap/ ?) And, if you selected automatic install (option -a; saved in the resource file), mascot files are automatically installed at the time of loading. Starting with the -O (--over-write) option, the priority of loading will change to 1 > 3 > 2 in order to overwrite mascots in user directory with ones in the distribution directory installed by RPM package etc. You should take care of the locale of your system to use mascots. Mascot files should be written in one of the locale (in Gtk+1.2). If you use the mascot in the different locale environment, balloons and menus could not be presented correctly. The author of this application will release his mascots in "ja" (Japanese-euc) locale. If you interested in them, please translate them for your environment. Furthermore, if there is a gettext message file (in po/ directory of the source tree) for your environment, you can change the dialog messages of GUI into your language. When you translated these files, please contact with the author. **Launcher menu In the field "Mascot Launcher" of the po-pup menu, you can register your favorite mascot for easy changing. To use this function, you have to prepare the launcher menu file (*.menu). You can load and create it from the pop-up menu in every time. And you can also edit it in the configuration dialog. It is difference from the ActX one that the menu file has two levels as "Category" -> "Mascot". All "Mascots" have to be included in "Categories". Each resource file can appoint one menu file as its default menu file. If no menu files are appointed at the starting, this default menu should be loaded. If no mascot files are appointed at that time, a mascot selected at random from the menu file should be loaded. Furthermore, if you don't the appointment of the default menu in your resource file, the menu selection dialog will appear in startup. If you appoint a menu file at the starting time, please use "-m" (or "--menu") option. **Biff function MaCoPiX can be a mail checker for the following types of the mail environment. 1. local spool (UNIX mbox : /var/spool/mail/$USER etc) 2. POP3 (SSL/TLS) 3. POP3 (APOP auth) (SSL/TLS) 4. qmail (Maildir) 5. MH + Procmail After preparing proper configuration, please start MaCoPiX with "-b" (or "--biff") option, or please check "Biff Check" on the pop-up menu. If you use the biff checker in POP, your password are saved in the resource file with plain text. So, please be careful for the management of the resource files. (Basically, the resource files can be seen only by yourself.) - for POP3/APOP In "Server information" of GUI, input "Address", "UserID", "Password", "POP3 Port No."(You should not change it in usual cases.). You don't need to edit "File" entry. POP over SSL (SSL/TLS) has been supported from ver 1.6.2, experimentally. - for qmail (Maildir) In "File" entry of "Server information" of GUI, input the Maildir directory in which newly arrived mails are stocked ( $HOME/Maildir/new in the most of cases ). - MH + Procmail In "File" entry of "Server information" of GUI, input the full-path of log file for procmail, "procmail.log". (In the most of cases, this file are appointed in "LGFILE=" entry of $HOME/.procmailrc ) The mail directory for MH is automatically searched as the following order, (1) "MAILDIR" entry in $HOME/.procmailrc, (2) $HOME/Mail . If you want to poll to the mail server periodically via fetchmail or something else, you should input command for polling into "Polling" entry in "Operating Information of Biff GUI. **Time signal function MaCoPix has a time signal function, which do some actions (external command, mascot changing ... etc.) every hour on the hour (00 minute). After preparing proper configuration, please start MaCoPiX with "-s" (or "--signal") option, or please check "Time Signal" on the pop-up menu. The configurations for this function are saved in the resource file. "Mascot Random Change" cannot work, if you do not appoint any menu files. **Socket Message Now mascots can speak any messages appointed in command line externally. 1. Start MaCoPiX with --sockmsg option. You can start only one mascot at the same time. 2. From terminal command line, type macopix --message "Hello!" You can see this message on your mascot balloon. You should change character code of the message following your locale. 3. If you want to change the expiration time to display each socket messages, you can appoint it like this way. macopix --message "Hello!" --message-expire 5000 Using this --message-expire option, you can set the expiration time to display each messages (unit is msec). Without this option, the default expiration time will be used. It can be set on GUI. 4. In the socket message balloon, you can also use "Stepping mode". This mode will set "%c" control character automcatically in your sending message. This can be set in GUI and also in command line options to send a message. **Duet Animation Using socket communication, some animation can be connected between two mascots. If you start Sachiko-sama and Yumi at the same time, and click one of them.... - Each mascots makes /tmp/macopix-(userID)/macopix-(mascot file) temporal file. If MaCoPiX was stopped abnormally these files can remain, but they will not affect the next time. - If the two or more same mascot start, the later will use this temporal pipe file. But, if the former is stopped or changed, this pipe should be closed. **Nokkari-chara Support Now data conversion from/to Nokkari-Chara (an Window sitter application for MS Windows) is supported. But it is very experimental one and maybe for mascots developers. Please read NKR.README.jp in this archive (sorry, only in Japanese). **Difference between Gtk+2.x / Gtk+-1.2 version Now, there are some difference points between Gtk+2.x and Gtk+1.2 version of MaCoPiX including anti-alias effects in their font display. - Character Code In Gtk+1.2, you should select same locale as the character code in mascots/menus files for your environment. In the case of Gtk+2.x version, the character code of mascot file should be understood, according to the following priority. 1. [General] code=xxxx setting in .mcpx file 2. current locale environment 3. MaCoPiX default (EUC-JP) If MaCoPiX cannot understand the character code, you should find "Invalid Character Code" display in Gtk+2.x version. - Font selection Fonts to be selected is difference in each Gtk+ versions. If you find any alert, you should select suitable fonts for your systems, using the font selection dialog of MaCoPiX. Of course, Gtk+2.x version requires much memory area. compared with Gtk+1.2 version. **SSL Support This program can compile with a link to OpenSSL or GNUTLS libraries (or without either) to support POP over SSL on its biff function. Because OpenSSL is a non-GPL freeware. I have to add a special exception for GPL to link this program with OpenSSL. If you feel uneasy about this license issue, please link with GNUTLS. You can switch it with ./configure option before compiling. - OpenSSL (default) - GNUTLS (./configure --with-gnutls) - without SSL (./configure --disable-ssl) When your environment for gnutls development does not satisfy to make this program, OpenSSL will be used instead of GNUTLS. (I confirmed a build completion with gnutls-1.4.1, but I couldn't with gnutls-1.0.2 .) In actual operation, GNUTLS version has some different points, compared with OpenSSL ver. - GNUTLS does not support SSL v2. - GNUTLS ver. always skippes confirmation on SSL certification. If you neglect the license matter, I recommend to use OpenSSL rather than GNUTLS. **Tranlucent Windows Translucent Panel Clock and Balloon can be used also on UNIX with MaCoPiX ver1.7.0 or later. To enable this function, you need to compile MaCoPiX with - Gtk+ 2.8 (or later; cairo library is required.) . Furthermore, you also need to run MaCoPiX on - appropriate Window Mangers supporting translucent window rendering (Compiz, Beryl KWin etc.) * You should turn ON "Desktop Effects", "Visual Effects" etc. to use this translucent function. With Gtk+2.10 or later, MaCoPiX can ditermine your desktop support for translucent windows automaticaly. But, with Gtk+2.8, you should check "Forced translucent rendering" in the config window (Common-> Font/Color). With non-translucent environment, panel clock and balloon rendered by cairo also can be used. The opacities of each colors are effective only with cairo rendering. With non-translucent environment, cairo will render each parts of clock and balloon over a white plane base with translucent colors. If the colors of clock and balloon are different from your expectation, you should change opacities of each colors to 255 (100%). Mascot and biff images also can be rendered translucently with Cairo rendering. Required environment for this function should be same as above. In this cairo rendering mode, scaled-down (up) mascots can have anti-aliased outline with composited environment. Furthermore, Now "Drop shadow of mascot" option is avairable with this mode. This mode automatically turns off with non-composited environment (Gtk+2.10 or later). For Windows version of MaCoPiX, it already has translucent rendering function using Windows native API. So, you are never required any special environments. In Windows' cairo redndering, opacities of background colors will be ignored and used ordinal Balloon/Panel clock opacities instead of it. **To Do - Sockmsg mode for Windows? - Enhancement of the clock & alarm function ............. **Copyright The code in this distribution is Copyright 2002-2008 by Kurumi Chimari. 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 St, Fifth Floor, Boston, MA 02110-1301 USA In addition, as a special exception, K.Chimari gives permission to link this code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. macopix-1.7.4/configure0000755000076400007640000353652011030076476012045 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 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=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # 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 # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi 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=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, 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= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/main.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAJOR_VERSION MINOR_VERSION MICRO_VERSION BUILD_REVISION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S CPP LEX LEX_OUTPUT_ROOT LEXLIB YACC YFLAGS SED GREP EGREP ECHO AR RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WINDRES HAVE_WINDRES_TRUE HAVE_WINDRES_FALSE ALLOCA LIBOBJS WINMM_LIBS WINSOCK_LIBS UNLHA32_LIBS TAR32_LIBS GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS GDK_PIXBUF_CONFIG GDK_PIXBUF_CFLAGS GDK_PIXBUF_LIBS PKG_CONFIG GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS PNGLIB_LIBS LIBICONV LTLIBICONV GETTEXT_PACKAGE USE_NLS MSGFMT MSGFMT_OPTS GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS WIN32_ICONV_LIBS DISABLE_DEPRECATED GNUTLS_CFLAGS GNUTLS_LIBS OPENSSL_CFLAGS OPENSSL_LIBS manualdir prefixdir commondir LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP YACC YFLAGS CXX CXXFLAGS CCC CXXCPP F77 FFLAGS PKG_CONFIG OPENSSL_CFLAGS OPENSSL_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' 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=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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=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 ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 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'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } 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 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # 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 -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | 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 .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } 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 this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-glibtest Do not try to compile and run a test GLIB program --disable-gtktest Do not try to compile and run a test GTK program --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program --disable-glibtest do not try to compile and run a test GLIB program --disable-gtktest do not try to compile and run a test GTK+ program --disable-rpath do not hardcode runtime library paths --disable-cairo Disable translucent drawing with Cairo --disable-ssl Disable SSL support using OpenSSL/GNUTLS Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-win32 Make for Win32 --with-unlha32 Make with UNLHA32 for Win32 --with-tar32 Make with TAR32 for Win32 --with-gtk1 use Gtk+1.2 insted of Gtk+2 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) --with-gtk-prefix=PFX Prefix where GTK is installed (optional) --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional) --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional) --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-maintain For Maintainer --with-gnutls Make with GNUTLS instead of OpenSSL --with-gnutls-includes=PREFIX location of GnuTLS includes. --with-gnutls-libs=PREFIX location of GnuTLS libraries. Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor YACC The `Yet Another C Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility OPENSSL_CFLAGS C compiler flags for OPENSSL, overriding pkg-config OPENSSL_LIBS linker flags for OPENSSL, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _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" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`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 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 configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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 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 $as_me, which was generated by GNU Autoconf 2.61. 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=. 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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$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 ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export 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 cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_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 cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" 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'; { (exit 1); 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 # 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 # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" 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. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 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,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`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. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } 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 PACKAGE=macopix MAJOR_VERSION=1 MINOR_VERSION=7 MICRO_VERSION=4 BUILD_REVISION=0 INTERFACE_AGE=0 BINARY_AGE=0 EXTRA_VERSION= VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION 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 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } 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. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking target system type" >&5 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 echo "$as_me: error: invalid value of canonical target" >&2;} { (exit 1); exit 1; }; };; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.10' # 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. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS 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 { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$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' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi 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. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } 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=$PACKAGE VERSION=$VERSION # 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"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&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" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` LT_REVISION=$INTERFACE_AGE LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` ac_config_headers="$ac_config_headers config.h" { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$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=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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out 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. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 | *.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 { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} 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 sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} 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 sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$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 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc # 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. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS 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 { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$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' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" 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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f 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 { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } 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 for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_LEX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LEX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { echo "$as_me:$LINENO: result: $LEX" >&5 echo "${ECHO_T}$LEX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { yyless (input () != 0); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { (ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking lex output file root" >&5 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } if test "${ac_cv_prog_lex_root+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { echo "$as_me:$LINENO: checking lex library" >&5 echo $ECHO_N "checking lex library... $ECHO_C" >&6; } if test "${ac_cv_lib_lex+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat >conftest.$ac_ext <<_ACEOF `cat $LEX_OUTPUT_ROOT.c` _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_lex=$ac_lib else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 echo "${ECHO_T}$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat >conftest.$ac_ext <<_ACEOF #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_prog_lex_yytext_pointer=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then cat >>confdefs.h <<\_ACEOF #define YYTEXT_POINTER 1 _ACEOF fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi if test "$LEX" = :; then LEX=${am_missing_run}flex fi for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_YACC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { echo "$as_me:$LINENO: result: $YACC" >&5 echo "${ECHO_T}$YACC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$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 ac_count=`expr $ac_count + 1` 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 fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" 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 ac_count=`expr $ac_count + 1` 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 fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 5963 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) libsuff=64 case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$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=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} 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 sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` 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 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8471: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8475: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8761: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8765: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8865: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8869: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* 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_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* 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_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ fix_srcfile_path \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 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. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else ld_shlibs_CXX=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13736: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13740: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13840: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13844: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15404: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15408: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15508: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15512: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ fix_srcfile_path_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17697: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17701: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; rdos*) lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17987: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17991: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18091: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18095: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix[3-9]*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_GCJ=no fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ fix_srcfile_path_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ fix_srcfile_path_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_WINDRES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$WINDRES"; then ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_WINDRES="windres" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi WINDRES=$ac_cv_prog_WINDRES if test -n "$WINDRES"; then { echo "$as_me:$LINENO: result: $WINDRES" >&5 echo "${ECHO_T}$WINDRES" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test x"$WINDRES" != x; then HAVE_WINDRES_TRUE= HAVE_WINDRES_FALSE='#' else HAVE_WINDRES_TRUE='#' HAVE_WINDRES_FALSE= fi # Checks for header files. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { echo "$as_me:$LINENO: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_working_alloca_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for alloca" >&5 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_alloca_works=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA 1 _ACEOF else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext cat >>confdefs.h <<\_ACEOF #define C_ALLOCA 1 _ACEOF { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 echo "${ECHO_T}$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { echo "$as_me:$LINENO: checking for library containing opendir" >&5 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } if test "${ac_cv_search_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_opendir=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { echo "$as_me:$LINENO: checking for library containing opendir" >&5 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } if test "${ac_cv_search_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_opendir=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } if test "${ac_cv_header_sys_wait_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_sys_wait_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SYS_WAIT_H 1 _ACEOF fi for ac_header in argz.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/utsname.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } if test "${ac_cv_header_stdbool_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; # if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a runtime test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); # endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdbool_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } { echo "$as_me:$LINENO: checking for _Bool" >&5 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } if test "${ac_cv_type__Bool+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef _Bool ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type__Bool=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type__Bool=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 echo "${ECHO_T}$ac_cv_type__Bool" >&6; } if test $ac_cv_type__Bool = yes; then cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* 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. */ char *t; 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 saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; 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 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_inline=$ac_kw else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for mode_t" >&5 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } if test "${ac_cv_type_mode_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef mode_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_mode_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_mode_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } if test $ac_cv_type_mode_t = yes; then : else cat >>confdefs.h <<_ACEOF #define mode_t int _ACEOF fi { echo "$as_me:$LINENO: checking for off_t" >&5 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } if test "${ac_cv_type_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_off_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_off_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 echo "${ECHO_T}$ac_cv_type_off_t" >&6; } if test $ac_cv_type_off_t = yes; then : else cat >>confdefs.h <<_ACEOF #define off_t long int _ACEOF fi { echo "$as_me:$LINENO: checking for pid_t" >&5 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } if test "${ac_cv_type_pid_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef pid_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_pid_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_pid_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } if test $ac_cv_type_pid_t = yes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_struct_tm=time.h else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi { echo "$as_me:$LINENO: checking for working volatile" >&5 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } if test "${ac_cv_c_volatile+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { volatile int x; int * volatile y = (int *) 0; return !x && !y; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_volatile=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_volatile=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 echo "${ECHO_T}$ac_cv_c_volatile" >&6; } if test $ac_cv_c_volatile = no; then cat >>confdefs.h <<\_ACEOF #define volatile _ACEOF fi # Checks for library functions. { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } if test "${ac_cv_func_closedir_void+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_closedir_void=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> #ifndef __cplusplus int closedir (); #endif int main () { return closedir (opendir (".")) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_closedir_void=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_closedir_void=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then cat >>confdefs.h <<\_ACEOF #define CLOSEDIR_VOID 1 _ACEOF fi for ac_header in vfork.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in fork vfork do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { echo "$as_me:$LINENO: checking for working fork" >&5 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } if test "${ac_cv_func_fork_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_fork_works=cross else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_fork_works=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { echo "$as_me:$LINENO: checking for working vfork" >&5 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } if test "${ac_cv_func_vfork_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_vfork_works=cross else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_vfork_works=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_WORKING_VFORK 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define vfork fork _ACEOF fi if test "x$ac_cv_func_fork_works" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_WORKING_FORK 1 _ACEOF fi { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then ac_cv_func_lstat_dereferences_slashed_symlink=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_dereferences_slashed_symlink=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_lstat_empty_string_bug=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return lstat ("", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_empty_string_bug=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } if test $ac_cv_func_lstat_empty_string_bug = yes; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_LSTAT_EMPTY_STRING_BUG 1 _ACEOF fi { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then ac_cv_func_lstat_dereferences_slashed_symlink=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_dereferences_slashed_symlink=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi for ac_header in stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_malloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_malloc_0_nonnull=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 0 _ACEOF case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac cat >>confdefs.h <<\_ACEOF #define malloc rpl_malloc _ACEOF fi for ac_header in stdlib.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for working mmap" >&5 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 1; if (write (fd, data, pagesize) != pagesize) return 1; close (fd); /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 1; data2 = (char *) malloc (2 * pagesize); if (!data2) return 1; data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 1; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 1; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 1; if (read (fd, data3, pagesize) != pagesize) return 1; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 1; close (fd); return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_mmap_fixed_mapped=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MMAP 1 _ACEOF fi rm -f conftest.mmap for ac_header in stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_realloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *realloc (); #endif int main () { return ! realloc (0, 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_realloc_0_nonnull=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } if test $ac_cv_func_realloc_0_nonnull = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_REALLOC 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_REALLOC 0 _ACEOF case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; esac cat >>confdefs.h <<\_ACEOF #define realloc rpl_realloc _ACEOF fi { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } if test "${ac_cv_type_signal+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_signal=int else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 echo "${ECHO_T}$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_stat_empty_string_bug=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_stat_empty_string_bug=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi for ac_func in __argz_count __argz_next __argz_stringify dup2 getcwd gethostbyname mempcpy memset mkdir munmap nl_langinfo setlocale socket stpcpy strcasecmp strchr strcspn strdup strrchr strstr strtol strtoul isascii memmove strncasecmp do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Check whether --with-win32 was given. if test "${with_win32+set}" = set; then withval=$with_win32; use_win32=yes fi if test x"${use_win32}" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define USE_WIN32 _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_BIFF _ACEOF CFLAGS="$CFLAGS -mms-bitfields" LDFLAGS="$LDFLAGS -mwindows" WINMM_LIBS="-lwinmm" WINSOCK_LIBS="-lws2_32" else cat >>confdefs.h <<\_ACEOF #define USE_BIFF _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_SOCKMSG _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_COMMON _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_GTAR _ACEOF WINMM_LIBS="" WINSOCK_LIBS="" fi cat >>confdefs.h <<\_ACEOF #define USE_SSL _ACEOF # Check whether --with-unlha32 was given. if test "${with_unlha32+set}" = set; then withval=$with_unlha32; use_unlha32=yes fi if test x"${use_unlha32}" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define USE_UNLHA32 _ACEOF UNLHA32_LIBS="-L. -lunlha32" else UNLHA32_LIBS="" fi # Check whether --with-tar32 was given. if test "${with_tar32+set}" = set; then withval=$with_tar32; use_tar32=yes fi if test x"${use_tar32}" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define USE_TAR32 _ACEOF TAR32_LIBS="-L. -ltar32" else TAR32_LIBS="" fi # Check whether --with-gtk1 was given. if test "${with_gtk1+set}" = set; then withval=$with_gtk1; use_gtk1=yes fi if test x"${use_gtk1}" = "xyes"; then # Check whether --with-glib-prefix was given. if test "${with_glib_prefix+set}" = set; then withval=$with_glib_prefix; glib_config_prefix="$withval" else glib_config_prefix="" fi # Check whether --with-glib-exec-prefix was given. if test "${with_glib_exec_prefix+set}" = set; then withval=$with_glib_exec_prefix; glib_config_exec_prefix="$withval" else glib_config_exec_prefix="" fi # Check whether --enable-glibtest was given. if test "${enable_glibtest+set}" = set; then enableval=$enable_glibtest; else enable_glibtest=yes fi if test x$glib_config_exec_prefix != x ; then glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config fi fi if test x$glib_config_prefix != x ; then glib_config_args="$glib_config_args --prefix=$glib_config_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_prefix/bin/glib-config fi fi for module in . gthread do case "$module" in gmodule) glib_config_args="$glib_config_args gmodule" ;; gthread) glib_config_args="$glib_config_args gthread" ;; esac done # Extract the first word of "glib-config", so it can be a program name with args. set dummy glib-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GLIB_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" ;; esac fi GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG if test -n "$GLIB_CONFIG"; then { echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5 echo "${ECHO_T}$GLIB_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi min_glib_version=1.2.6 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes else GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If glib-config was correct, then it is best\n"); printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the glib-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); printf("*** correct copy of glib-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "$GLIB_CONFIG" = "no" ; then echo "*** The glib-config script installed by GLIB could not be found" echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GLIB_CONFIG environment variable to the" echo "*** full path to glib-config." else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB was incorrectly installed" echo "*** or that you have moved GLIB since it was installed. In the latter case, you" echo "*** may want to edit the glib-config script: $GLIB_CONFIG" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" { { echo "$as_me:$LINENO: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5 echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;} { (exit 1); exit 1; }; } fi rm -f conf.glibtest # Check whether --with-gtk-prefix was given. if test "${with_gtk_prefix+set}" = set; then withval=$with_gtk_prefix; gtk_config_prefix="$withval" else gtk_config_prefix="" fi # Check whether --with-gtk-exec-prefix was given. if test "${with_gtk_exec_prefix+set}" = set; then withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" else gtk_config_exec_prefix="" fi # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then enableval=$enable_gtktest; else enable_gtktest=yes fi for module in . do case "$module" in gthread) gtk_config_args="$gtk_config_args gthread" ;; esac done if test x$gtk_config_exec_prefix != x ; then gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config fi fi if test x$gtk_config_prefix != x ; then gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_prefix/bin/gtk-config fi fi # Extract the first word of "gtk-config", so it can be a program name with args. set dummy gtk-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GTK_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GTK_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" ;; esac fi GTK_CONFIG=$ac_cv_path_GTK_CONFIG if test -n "$GTK_CONFIG"; then { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 echo "${ECHO_T}$GTK_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi min_gtk_version=1.2.0 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; } no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes else GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If gtk-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } #endif /* defined (GTK_MAJOR_VERSION) ... */ else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); printf("*** correct copy of gtk-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "$GTK_CONFIG" = "no" ; then echo "*** The gtk-config script installed by GTK could not be found" echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GTK_CONFIG environment variable to the" echo "*** full path to gtk-config." else if test -f conf.gtktest ; then : else echo "*** Could not run GTK test program, checking why..." CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" echo "*** version of GTK. If it is not finding GTK, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK was incorrectly installed" echo "*** or that you have moved GTK since it was installed. In the latter case, you" echo "*** may want to edit the gtk-config script: $GTK_CONFIG" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" { { echo "$as_me:$LINENO: error: Cannot find GTK: Is gtk-config in path?" >&5 echo "$as_me: error: Cannot find GTK: Is gtk-config in path?" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.gtktest # Check whether --with-gdk-pixbuf-prefix was given. if test "${with_gdk_pixbuf_prefix+set}" = set; then withval=$with_gdk_pixbuf_prefix; gdk_pixbuf_prefix="$withval" else gdk_pixbuf_prefix="" fi # Check whether --with-gdk-pixbuf-exec-prefix was given. if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then withval=$with_gdk_pixbuf_exec_prefix; gdk_pixbuf_exec_prefix="$withval" else gdk_pixbuf_exec_prefix="" fi # Check whether --enable-gdk_pixbuftest was given. if test "${enable_gdk_pixbuftest+set}" = set; then enableval=$enable_gdk_pixbuftest; else enable_gdk_pixbuftest=yes fi if test x$gdk_pixbuf_exec_prefix != x ; then gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix" if test x${GDK_PIXBUF_CONFIG+set} = xset ; then GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config fi fi if test x$gdk_pixbuf_prefix != x ; then gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix" if test x${GDK_PIXBUF_CONFIG+set} = xset ; then GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config fi fi # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args. set dummy gdk-pixbuf-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GDK_PIXBUF_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GDK_PIXBUF_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GDK_PIXBUF_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no" ;; esac fi GDK_PIXBUF_CONFIG=$ac_cv_path_GDK_PIXBUF_CONFIG if test -n "$GDK_PIXBUF_CONFIG"; then { echo "$as_me:$LINENO: result: $GDK_PIXBUF_CONFIG" >&5 echo "${ECHO_T}$GDK_PIXBUF_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi min_gdk_pixbuf_version=0.7.0 { echo "$as_me:$LINENO: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5 echo $ECHO_N "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version... $ECHO_C" >&6; } no_gdk_pixbuf="" if test "$GDK_PIXBUF_CONFIG" = "no" ; then no_gdk_pixbuf=yes else GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags` GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs` gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gdk_pixbuftest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" LIBS="$LIBS $GDK_PIXBUF_LIBS" rm -f conf.gdk_pixbuftest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gdk_pixbuftest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_gdk_pixbuf_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gdk_pixbuf_version"); exit(1); } if (($gdk_pixbuf_major_version > major) || (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) || (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro))) { return 0; } else { printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version); printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n"); printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_gdk_pixbuf=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gdk_pixbuf" = x ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "$GDK_PIXBUF_CONFIG" = "no" ; then echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found" echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the" echo "*** full path to gdk-pixbuf-config." else if test -f conf.gdk_pixbuftest ; then : else echo "*** Could not run GDK_PIXBUF test program, checking why..." CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" LIBS="$LIBS $GDK_PIXBUF_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong" echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed" echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you" echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GDK_PIXBUF_CFLAGS="" GDK_PIXBUF_LIBS="" { { echo "$as_me:$LINENO: error: Cannot find GdkPixbuf: Is gdk-pixbuf-config in path?" >&5 echo "$as_me: error: Cannot find GdkPixbuf: Is gdk-pixbuf-config in path?" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.gdk_pixbuftest { echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5 echo $ECHO_N "checking for png_create_write_struct in -lpng... $ECHO_C" >&6; } if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpng -lz -lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char png_create_write_struct (); int main () { return png_create_write_struct (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_png_png_create_write_struct=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_png_png_create_write_struct=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5 echo "${ECHO_T}$ac_cv_lib_png_png_create_write_struct" >&6; } if test $ac_cv_lib_png_png_create_write_struct = yes; then PNGLIB_LIBS="-lz -lpng -lm" else { { echo "$as_me:$LINENO: error: libpng is required." >&5 echo "$as_me: error: libpng is required." >&2;} { (exit 1); exit 1; }; } fi else # Check whether --enable-glibtest was given. if test "${enable_glibtest+set}" = set; then enableval=$enable_glibtest; else enable_glibtest=yes fi pkg_config_args=glib-2.0 for module in . gthread gobject do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.16 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=2.0.0 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } : else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" { { echo "$as_me:$LINENO: error: glib-2.x is required" >&5 echo "$as_me: error: glib-2.x is required" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.glibtest # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . gthread gobject do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=2.0.0 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" { { echo "$as_me:$LINENO: error: gtk+-2.x is required" >&5 echo "$as_me: error: gtk+-2.x is required" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.gtktest cat >>confdefs.h <<\_ACEOF #define USE_GTK2 _ACEOF PNGLIB_LIBS="" fi if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${acl_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { echo "$as_me:$LINENO: result: $LD" >&5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${acl_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } if test "${acl_cv_rpath+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 echo "${ECHO_T}$acl_cv_rpath" >&6; } wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi fi LIBICONV= LTLIBICONV= INCICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" \ && { test -f "$additional_libdir/lib$name.$shlibext" \ || { test "$shlibext" = dll \ && test -f "$additional_libdir/lib$name.dll.a"; }; }; then found_dir="$additional_libdir" if test -f "$additional_libdir/lib$name.$shlibext"; then found_so="$additional_libdir/lib$name.$shlibext" else found_so="$additional_libdir/lib$name.dll.a" fi if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" \ && { test -f "$dir/lib$name.$shlibext" \ || { test "$shlibext" = dll \ && test -f "$dir/lib$name.dll.a"; }; }; then found_dir="$dir" if test -f "$dir/lib$name.$shlibext"; then found_so="$dir/lib$name.$shlibext" else found_so="$dir/lib$name.dll.a" fi if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { echo "$as_me:$LINENO: checking for iconv" >&5 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } if test "${am_cv_func_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_lib_iconv=yes am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 echo "${ECHO_T}$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ICONV 1 _ACEOF fi if test "$am_cv_lib_iconv" = yes; then { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $LIBICONV" >&5 echo "${ECHO_T}$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi if test "$am_cv_func_iconv" = yes; then { echo "$as_me:$LINENO: checking for iconv declaration" >&5 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } if test "${am_cv_proto_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then am_cv_proto_iconv_arg1="" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_proto_iconv_arg1="const" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` { echo "$as_me:$LINENO: result: ${ac_t:- }$am_cv_proto_iconv" >&5 echo "${ECHO_T}${ac_t:- }$am_cv_proto_iconv" >&6; } cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi ALL_LINGUAS="ja" GETTEXT_PACKAGE=macopix cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= if test "${ac_cv_header_libintl_h+set}" = set; then { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_ngettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_dgettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } if test $ac_cv_lib_intl_bindtextdomain = yes; then { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } if test $ac_cv_lib_intl_dgettext = yes; then gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dcgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } if test $ac_cv_lib_intl_dcgettext = yes; then gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done MSGFMT_OPTS= { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } cat >conftest.foo <<_ACEOF msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" _ACEOF if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then CATOBJEXT=.gmo DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* 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 bind_textdomain_codeset (); /* 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_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES if test x"${use_win32}" = "xyes"; then localedir='share/locale' WIN32_ICONV_LIBS="-liconv" else localedir='${prefix}/${DATADIRNAME}/locale' WIN32_ICONV_LIBS="" fi # Check whether --with-maintain was given. if test "${with_maintain+set}" = set; then withval=$with_maintain; use_maint=yes fi if test x"${use_maint}" = "xyes"; then DISABLE_DEPRECATED="-g -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" else DISABLE_DEPRECATED="" fi # Check whether --enable-cairo was given. if test "${enable_cairo+set}" = set; then enableval=$enable_cairo; ac_cv_enable_cairo=$enableval else ac_cv_enable_ssl=yes fi if test $ac_cv_enable_cairo = no; then cat >>confdefs.h <<\_ACEOF #define DISABLE_CAIRO 1 _ACEOF fi # Check whether --enable-ssl was given. if test "${enable_ssl+set}" = set; then enableval=$enable_ssl; ac_cv_enable_ssl=$enableval else ac_cv_enable_ssl=yes fi { echo "$as_me:$LINENO: checking whether to use SSL" >&5 echo $ECHO_N "checking whether to use SSL... $ECHO_C" >&6; } if test $ac_cv_enable_ssl = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } # Check whether --with-gnutls was given. if test "${with_gnutls+set}" = set; then withval=$with_gnutls; use_gnutls=yes fi { echo "$as_me:$LINENO: checking whether to use GNUTLS" >&5 echo $ECHO_N "checking whether to use GNUTLS... $ECHO_C" >&6; } if test "x$use_gnutls" = "xyes"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } use_gnutls="no" prefix=`eval echo $prefix` # Check whether --with-gnutls-includes was given. if test "${with_gnutls_includes+set}" = set; then withval=$with_gnutls_includes; with_gnutls_includes="$withval" else with_gnutls_includes="$prefix/include" fi have_gnutls_includes="no" if test "x$with_gnutls_includes" != "xno"; then CPPFLAGS_save="$CPPFLAGS" { echo "$as_me:$LINENO: checking for GnuTLS includes" >&5 echo $ECHO_N "checking for GnuTLS includes... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: \"\"" >&5 echo "${ECHO_T}\"\"" >&6; } CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes" for ac_header in gnutls/gnutls.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF gnutls_includes="yes" fi done CPPFLAGS="$CPPFLAGS_save" if test "x$gnutls_includes" != "xno" -a \ "x$gnutls_includes" != "x"; then have_gnutls_includes="yes" if test "x$with_gnutls_includes" != "xNONE/include"; then GNUTLS_CFLAGS="-I$with_gnutls_includes" fi else GNUTLS_CFLAGS="" fi else { echo "$as_me:$LINENO: checking for GnuTLS includes" >&5 echo $ECHO_N "checking for GnuTLS includes... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Check whether --with-gnutls-libs was given. if test "${with_gnutls_libs+set}" = set; then withval=$with_gnutls_libs; with_gnutls_libs="$withval" fi if test "x$with_gnutls_libs" != "xno" -a \ "x$have_gnutls_includes" != "xno"; then LIBS_save="$LIBS" case $with_gnutls_libs in ""|-L*) ;; *) with_gnutls_libs="-L$with_gnutls_libs" ;; esac { echo "$as_me:$LINENO: checking for GnuTLS libraries" >&5 echo $ECHO_N "checking for GnuTLS libraries... $ECHO_C" >&6; } if test "${gnutls_libs+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else LIBS="$LIBS $with_gnutls_libs -lgnutls -lgcrypt -lgnutls-openssl" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gnutls_init (); int main () { return gnutls_init (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gnutls_libs="yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gnutls_libs="no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$LIBS_save" fi { echo "$as_me:$LINENO: result: $gnutls_libs" >&5 echo "${ECHO_T}$gnutls_libs" >&6; } if test "x$gnutls_libs" != "xno"; then cat >>confdefs.h <<\_ACEOF #define USE_SSL 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_GNUTLS 1 _ACEOF msg_gnutls="GnuTLS" GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt -lgnutls-openssl" use_gnutls="yes" else GNUTLS_CFLAGS="" GNUTLS_LIBS="" fi else { echo "$as_me:$LINENO: checking for GnuTLS libraries" >&5 echo $ECHO_N "checking for GnuTLS libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } GNUTLS_CFLAGS="" GNUTLS_LIBS="" fi { echo "$as_me:$LINENO: checking whether to use OpenSSL" >&5 echo $ECHO_N "checking whether to use OpenSSL... $ECHO_C" >&6; } if test "x$use_gnutls" != "xyes"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } pkg_failed=no { echo "$as_me:$LINENO: checking for OPENSSL" >&5 echo $ECHO_N "checking for OPENSSL... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$OPENSSL_LIBS"; then pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl"` else OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"` fi # Put the nasty error message in config.log where it belongs echo "$OPENSSL_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } : elif test $pkg_failed = untried; then : else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi if test "x$OPENSSL_LIBS" != "x"; then CFLAGS="$CFLAGS $OPENSSL_CFLAGS" LIBS="$LIBS $OPENSSL_LIBS" { echo "$as_me:$LINENO: checking if openssl is available" >&5 echo $ECHO_N "checking if openssl is available... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define USE_SSL 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define USE_OPENSSL 1 _ACEOF else { echo "$as_me:$LINENO: checking if openssl is available" >&5 echo $ECHO_N "checking if openssl is available... $ECHO_C" >&6; } ac_save_LIBS="$LIBS" if test x"${use_win32}" = "xyes"; then LIBS="$LIBS -lssl32 -leay32" else LIBS="$LIBS -lssl -lcrypto" fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return OPENSSL_VERSION_NUMBER; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define USE_SSL 1 _ACEOF else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } LIBS="$ac_save_LIBS" ac_cv_enable_ssl=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<\_ACEOF #define USE_OPENSSL 1 _ACEOF fi else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual' prefixdir='${prefix}/share/' if test x"${use_win32}" = "xyes"; then commondir='share/${PACKAGE}/' else commondir='${prefix}/share/${PACKAGE}/' fi ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile src/version.h src/macopix_res.rc src/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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_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 test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`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. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAVE_WINDRES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAVE_WINDRES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $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} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## 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=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # 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 # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi 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=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # 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 $as_me, which was generated by GNU Autoconf 2.61. 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 cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 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' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. 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=$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 ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) 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. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$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 if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; "src/macopix_res.rc") CONFIG_FILES="$CONFIG_FILES src/macopix_res.rc" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim target!$target$ac_delim target_cpu!$target_cpu$ac_delim target_vendor!$target_vendor$ac_delim target_os!$target_os$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim MAJOR_VERSION!$MAJOR_VERSION$ac_delim MINOR_VERSION!$MINOR_VERSION$ac_delim MICRO_VERSION!$MICRO_VERSION$ac_delim BUILD_REVISION!$BUILD_REVISION$ac_delim LT_RELEASE!$LT_RELEASE$ac_delim LT_CURRENT!$LT_CURRENT$ac_delim LT_REVISION!$LT_REVISION$ac_delim LT_AGE!$LT_AGE$ac_delim MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim LN_S!$LN_S$ac_delim CPP!$CPP$ac_delim LEX!$LEX$ac_delim LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim LEXLIB!$LEXLIB$ac_delim YACC!$YACC$ac_delim YFLAGS!$YFLAGS$ac_delim SED!$SED$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim WINDRES!$WINDRES$ac_delim HAVE_WINDRES_TRUE!$HAVE_WINDRES_TRUE$ac_delim HAVE_WINDRES_FALSE!$HAVE_WINDRES_FALSE$ac_delim ALLOCA!$ALLOCA$ac_delim LIBOBJS!$LIBOBJS$ac_delim WINMM_LIBS!$WINMM_LIBS$ac_delim WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim UNLHA32_LIBS!$UNLHA32_LIBS$ac_delim TAR32_LIBS!$TAR32_LIBS$ac_delim GLIB_CONFIG!$GLIB_CONFIG$ac_delim GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim GLIB_LIBS!$GLIB_LIBS$ac_delim GTK_CONFIG!$GTK_CONFIG$ac_delim GTK_CFLAGS!$GTK_CFLAGS$ac_delim GTK_LIBS!$GTK_LIBS$ac_delim GDK_PIXBUF_CONFIG!$GDK_PIXBUF_CONFIG$ac_delim GDK_PIXBUF_CFLAGS!$GDK_PIXBUF_CFLAGS$ac_delim GDK_PIXBUF_LIBS!$GDK_PIXBUF_LIBS$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim PNGLIB_LIBS!$PNGLIB_LIBS$ac_delim LIBICONV!$LIBICONV$ac_delim LTLIBICONV!$LTLIBICONV$ac_delim GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim GMOFILES!$GMOFILES$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim INTLLIBS!$INTLLIBS$ac_delim PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim POFILES!$POFILES$ac_delim POSUB!$POSUB$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim WIN32_ICONV_LIBS!$WIN32_ICONV_LIBS$ac_delim DISABLE_DEPRECATED!$DISABLE_DEPRECATED$ac_delim GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim manualdir!$manualdir$ac_delim prefixdir!$prefixdir$ac_delim commondir!$commondir$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ 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[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[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="$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 || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$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 "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; 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 || 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" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`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 # 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= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF 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 sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;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 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 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 "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$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 || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; 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 10q "$mf" | grep '^#.*generated by automake' > /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 || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || 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 case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # 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 || { (exit 1); exit 1; } fi echo "" echo "##############################################################################" if test x"${use_win32}" = "xyes"; then echo " $PACKAGE $VERSION build for Win32 " fi if test x"${use_gtk1}" = "xyes"; then echo " $PACKAGE $VERSION with Gtk+1.x " else echo " $PACKAGE $VERSION with Gtk+2.x " echo "" echo " (If you want to make with Gtk+1.x, use \"./configure --with-gtk1\" .)" fi echo "" if test $ac_cv_enable_ssl = yes; then if test "x$use_gnutls" != "xyes"; then echo " Compiling with OpenSSL to support SSL" echo " (If you want to use GNUTLS instead of OpenSSL," echo " use \"./configure --with-gnutls\" .)" else echo " Compiling with GNUTLS to support SSL" fi else echo " Compiling without SSL support" fi echo "##############################################################################" echo "" echo "The binary will be installed in $prefix/bin" echo "The common directory will be $prefix/share/$PACKAGE/" echo "" echo "Configure finished, type 'make' to build." macopix-1.7.4/autogen.sh0000755000076400007640000000023410236371276012123 00000000000000#!/bin/sh aclocal \ && libtoolize --force --copy \ && autoheader \ && automake --add-missing --foreign --copy \ && autoconf \ && ./configure $@ macopix-1.7.4/INSTALL0000644000076400007640000001722710113753503011154 00000000000000Basic Installation ================== These are generic installation instructions. 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, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' 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. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 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 must use a version of `make' that supports the `VPATH' variable, such as 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 `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have 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' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' 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' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM 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 host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. 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. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--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. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. macopix-1.7.4/config.guess0000755000076400007640000012706310665257023012453 00000000000000#! /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, 2006 Free Software Foundation, # Inc. timestamp='2007-05-17' # 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 ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __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 powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 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.*:* | ix86xen: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/[-(].*//'` ;; amd64) echo x86_64-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 ;; *:MINGW*:*) 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 ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 ;; avr32*: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 ;; xtensa:Linux:*:*) echo xtensa-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(__SUNPRO_C) || defined(__SUNPRO_CC) 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 ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 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: macopix-1.7.4/macopix.10000644000076400007640000001231410477723620011647 00000000000000.TH MACOPIX 1 "Feb 21 ,2005" "" "MaCoPiX - Users Manual" .SH "NAME" MaCoPiX \- Mascot Constructive Pilot for X .SH "SYNOPSIS" .B macopix [ .B options ... ] [ .I mascot-file ] .br .B macopix [ .B options ... ] --menu .I menu-file .SH "DESCRIPTION" .B MaCoPiX is a desktop mascot program running under UNIX / X window systems. This program could be an evolved one from .B "ActX" (Activate X window system). .br Currently, you can make following types of mascots using MaCoPiX. .TP 3 - Focus follower (Window sitters : likely ActX) .TP 3 - Fixed style (Desktop wappen?) .TP 0 Furthermore, you can select with or without a digital clock for each types of mascots. So, MaCoPiX can be used as a sort of desktop clock applications. (But the clock function is still poor.) The biff function is also avairable for POP/APOP/UNIX local spool environments. The all configuration of MaCoPiX, even including the creation and edit of mascots, is aveirable via GUI menu. .br And, please pay attention that mascot files of .B MaCoPiX has no compatibility with those of .B ActX. .SH "ENVIRONMENT" .B MaCoPiX is running on .I X Window System (over 16bit colors are recommended.) of any UNIX operating systems. But, you needs .TP 3 - Gtk+ > ver2.2.0 (or Gtk+ > ver1.2.0 / gdk-pixbuf > ver0.7.0 / libpng) .TP 3 - gettext > ver0.10 .TP 0 to run this program. .B MaCoPiX can be used on any Window Managers without any problems. .SH "BASIC OPERATION" - The right click for popup menu. In this poppup menu, you can change the current mascot and all configuration of MaCoPiX. Furthermore, you can create new mascot from this menu. If you want to save your changes, you should execute "Save" command in this popup menu. .br - The left drag for mascot's horizontal position change on title bar, if the mascot is in the window-sitter mode. In the case of fix position mascots, the left drag should be the change of fixed position of the mascot. .br - "Click Animation", "Sound Playback" & "Balloon Talk" can be shown with the left click on the mascot. .br - If you started it with the biff-mode, the biff bitmap appears in the case that you have new (or unread) mails. The left click on this biff bitmap enables you to check From: & Subject: of unread mails. .br - If your mouse cursor entered the panel of digital clock (if you are using it), the date description tip appears on it. .SH "OPTIONS" Usually, you can set a mascot file (.mcpx) to be loaded at the start time in your command line option. If no mascot files are appointed, one of mascots in the default menu file are selected randomely. .PP All command line options... .TP 15 .B -h, --help Print help message. .TP 15 .B -c, --common-dir Print COMMON Directory. .TP 15 .B -b, --biff Turn on the biff function. .TP 15 .B -s, --signal Turn on the time signal function. .TP 15 .B -o, --offset [ .I offset[%] ] .br Set offset-value for Focus Following. .TP 15 .B -r, --rcfile [ .I rc-file ] .br Set the resource file. .TP 15 .B -m, --menu [ .I menu-file ] .br Appoint a menu file to be loaded. .TP 15 .B -mg, --magnify [ .I magnification rate (%) ] .br Set magnification percentage of mascot. .TP 15 .B -i, --ip-style [ .I (0|1|2|3) ] .br Set interpolation style for magnification. .TP 15 .B -a, --auto-install Set mascot auto install ON. .TP 15 .B -na, --no-auto-install Set mascot auto install OFF. .TP 15 .B -O, --over-write Permit to overwrite files in user dir. .TP 15 .B --install-user-mascot [ .I mascot-file (.mcpx) ] .br Install a mascot to your User Directory. .TP 15 .B --install-common-mascot [ .I mascot-file (.mcpx) ] .br Install a mascot to Common Directory. .TP 15 .B --install-user-menu [ .I menu-file (.menu) ] .br Install a menu and mascots in it to your User Directory. .TP 15 .B --install-common-menu [ .I mascot-file (.menu) ] .br Install a menu and mascots in it to Common Directory. .TP 15 .B --sockmsg .br Start as a socket message reciever. .TP 15 .B --message [ .I "message" ] .br Send a message to the socket message reciever. .TP 15 .B --message-expire [ .I expire-time[msec] ] .br The expire time for the socket message (use w/"-message" option). .TP 15 .B -nc, --no-duet-click .br Forbid to use the duet animation for click action. .br Send a message to the socket message reciever. .TP 15 .B -nr, --no-duet-random .br Forbid to use the duet animation for random action. .SH "Configuration for Biff" .B MaCoPiX has the biff function for UNIX mbox and qmil Maildir type local spool and POP3 (w/ or w/o APOP) access to the mail server. Froms and Subjects list of arrived mails can be avairable by click of small biff image with mascot. MIME-encoded mail subjects are automatically decoded by internal functions. .br In the .I Configulation Dialog, .br - type of biff mode .br - the spool file to be checked (for local spool only) .br - update interval .br - mail server & user name & password for POP3(APOP) .br - command for the mailer .br should be set. .SH "FILES" .ta \w'*.com *.exe 'u .if n .ta 2.5i .if t .ta 1.8i HOME$/.macopix/ user directory .br HOME$/.macopix/*.mcpx mascot files .br HOME$/.macopix/pixmap/* mascot image files .br HOME$/.macopix/sound/* mascot sound files .br .SH "AUTHOR" .nf Kurumi Chimari .br URL: http://rosegray.sakura.ne.jp/ .fi macopix-1.7.4/ChangeLog.ja0000644000076400007640000003612611030075740012264 000000000000002008.6.24 ver1.7.4 - Gtk+2.10°Ê²¼¤Ç¤ÎCompileÉÔ¶ñ¹ç¤òfix¡£ 2008.5.24 ver1.7.3 - WindowsÈǤǤâ¥Þ¥¹¥³¥Ã¥È¤Î±Æ¤òɽ¼¨¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ ¤¿¤À¤·¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ï¤«¤«¤é¤Ê¤¤¡£ 2008.5.23 ver1.7.2 - ver1.7.1¤Ç¤ÎȾƩÌÀɽ¼¨¤·¤¿¥Þ¥¹¥³¥Ã¥È¤È¥á¡¼¥ëÃå¿®²èÁü ¤Ç¤Î¥¯¥ê¥Ã¥¯ÈϰϤÎÌäÂê¤ò²ò¾Ã(Gtk+2.10°Ê¹ß)¡£[UNIX] - Cairo¤Ç¤Îɽ¼¨¤Ç¤â³ÈÂç½Ì¾®¤Ë¤ÏGdkPixbuf¤ò»È¤¦¤è¤¦¤Ë ½¤Àµ¡£[UNIX] - Cairo¤Ç¤Î¥Þ¥¹¥³¥Ã¥ÈÉÁ²è»þ¤Ë¥Þ¥¹¥³¥Ã¥È¤Î±Æ¤òɽ¼¨¤Ç¤­¤ë ¤è¤¦¤Ë¤·¤¿¡£[UNIX] 2008.05.21 ver1.7.1 - ¥Þ¥¹¥³¥Ã¥È¤È¥á¡¼¥ëÃå¿®²èÁü¤âCairo¤ÇÉÁ²è¤Ç¤­¤ë¤è¤¦ ¤Ë¤·¤¿¡£È¾Æ©ÌÀ¥µ¥Ý¡¼¥È¤Î´Ä¶­¤Ç¥Þ¥¹¥³¥Ã¥È¤ò½Ì¾®(³ÈÂç) ɽ¼¨¤·¤¿ºÝ¤Ë¥Þ¥¹¥³¥Ã¥È¤Î³°ÏȤ˥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹½èÍý¤¬ ¤µ¤ì¤ë¡£¥¯¥ê¥Ã¥¯¤Ç¤­¤ëÈÏ°Ï¤ÏÆ©ÌÀÉôʬ¤â´Þ¤á¤¿¥Þ¥¹¥³¥Ã ¥È¤Î¶ë·ÁÉôʬ¤Ë³ÈÂ礹¤ë¤Î¤ÇÃí°Õ¡£(UNIX) - Cairo´ØÏ¢¤Î¥¹¥¤¥Ã¥Á¤È²èÁü¤Î³ÈÂç½Ì¾®¤Î¹àÌܤòÀßÄê²èÌÌ ¤Ç"ÉÁ²è"¤Î¥Ú¡¼¥¸¤òºîÀ®¤·°Üư¤µ¤»¤¿¡£ 2008.05.15 ver1.7.0 - Gtk+2.12¤Ç¤ÎưºîÉÔ¶ñ¹ç(¥¢¥Ë¥á¡¼¥·¥ç¥ó¥ë¡¼¥×)¤Îfix. - From/Subject¤¬Ä¹¤¤¤È¤­¤ËÆÉ¤ß¼è¤ê¤Ç¤­¤Ê¤¤ÌäÂê¤ò½¤Àµ¡£ - Gtk¤Ç¤Îdeprecated code¤ò½ñ¤­´¹¤¨¤¿(GtkTooltipsÅù)¡£ - Compiz»ÈÍÑ»þ(»ë³Ð¸ú²Ì w/Ubuntu8.04, ¥Ç¥¹¥¯¥È¥Ã¥×¸ú²Ì w/Fedora8)¤Ë¥¿¥¤¥È¥ë¥Ð¡¼¤Î·×¬¤¬¤Ç¤­¤Ê¤¯¤Ê¤ë(¥Ð¡¼¤Î ²¼Êդ˺¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦)ÌäÂê¤ò½¤Àµ(UNIX)¡£ ³ºÅö¤¹¤ë´Ä¶­¤Ç¤Ï"¶¦ÄÌÀßÄê->°Üư->¥¿¥¤¥È¥ë¥Ð¡¼¤Î¥µ¥¤¥º" ¤Ç ¡Ö¼«Æ°Â¬Äê (Compiz»ÈÍÑ»þ)¡× ¤ò»ÈÍѤ¹¤ë¡£¤¿¤À¤Î¡Ö¼«Æ°Â¬Äê¡×¤À¤È½¾Íè¥â¡¼¥É¤Ë¤Ê¤ë¡£ - ¥¿¥¤¥È¥ë¥Ð¡¼¤Î¤Ê¤¤¥¦¥£¥ó¥É¥¦¤Ë¤ÏºÂ¤é¤Ê¤¤¥â¡¼¥É¤òÄɲà (UNIX/Windows)¡£ - ¥¿¥¤¥È¥ë¥Ð¡¼¤Î¤Ê¤¤¥¦¥£¥ó¥É¥¦¤Ë¥Õ¥©¡¼¥«¥¹¤¬¤¢¤ë»þ¤Ë ¥Û¡¼¥à¥Ý¥¸¥·¥ç¥ó¤ÈƱ¤¸°Üư¤ÎÀßÄê¤ò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ - ¤Õ¤­¤À¤·¡¦¥Ñ¥Í¥ë»þ·×¤ÎÉÁ²è¤ËCairo(Gtk+2.8°Ê¾å¡¢ pangocairo¿ä¾©)¤ò»ÈÍѤ¹¤ë¤è¤¦¤Ë¤·¤¿¡£½¾Íè¤ÎGDK¤Ç¤Î ɽ¼¨¤È¤Ï¥¹¥¤¥Ã¥Á¤ÇÀÚ¤êÂØ¤¨(¶¦ÄÌÀßÄê>¥Õ¥©¥ó¥È¡¦¿§)¤¬ ²Äǽ¡£(UNIX/Windows) - Cairo¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢Compiz, KWinÅù¤ÎȾƩÌÀ¥¦¥£¥ó¥É¥¦ ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤ò»ÈÍѤ·¤Æ¤¤¤ëºÝ¤Ë¡¢ ¤Õ¤­¤À¤·¡¦¥Ñ¥Í¥ë»þ·×¤òȾƩÌÀɽ¼¨¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ Gtk+2.12°Ê¾å¤ò»ÈÍѤ·¤Æ¤¤¤ëºÝ¤Ï¾åµ­¤Ë²Ã¤¨¤Æ¥Þ¥¹¥³¥Ã¥È¡¦ Biff²èÁü¤âȾƩÌÀ²½¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£(UNIX) ȾƩÌÀɽ¼¨¤Ï Compiz[Fedora8,Fedora Core6,Ubuntu8.04] KWin[Fedora8] ¤Ë¤ÆÆ°ºî³Îǧ¡£KWin¤Ç¤Ï±ÆÉ½¼¨¤òOFF¤·¡¢MaCoPiX¦¤Ç¤â ¶¦ÄÌÀßÄê>°Üư>ºÇÁ°ÌÌɽ¼¨¤Ë¤¢¤ë"¥Þ¥¹¥³¥Ã¥È¤ÎÊÑ·Á»þ¤Ë..." ¤Î¥ª¥×¥·¥ç¥ó¤òON¤Ë¤·¤¿Êý¤¬¤è¤¤¡£ ¤Ê¤ª¡¢È¾Æ©ÌÀɽ¼¨¤¬²Äǽ¤Ç¤¢¤ë¤«Èݤ«¤ÏGtk+2.10°Ê¹ß¤Ç¤Ï ¼«Æ°¤ÇȽÊ̤Ǥ­¤ë¤¬¡¢Gtk+2.8¤Ç¤Ï¼êư¤Ë¤Æ¶¯À©É½¼¨¤¹¤ë ¤«¤É¤¦¤«¤òÀßÄê¤Î¶¦ÄÌÀßÄê>¥Õ¥©¥ó¥È¡¦¿§¤Ë¤¢¤ë¹àÌÜ¤Ç ¥Á¥§¥Ã¥¯¤¹¤ëɬÍפ¬¤¢¤ë¡£ - ¥Ñ¥Í¥ë»þ·×¤Î³Ñ¤ò´Ý¤¯¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡(Cairo/Gtk¡¦UNIX/Windows)¡£ - ¥Û¡¼¥à¥Ý¥¸¥·¥ç¥ó¤Î¼«Æ°·×¬µ¡Ç½¤òÄɲÃ(UNIX)¡£ - Gtk+Win32¤Î¥Ð¡¼¥¸¥ç¥ó¤òGtk+2.12.9¤Ë¥¢¥Ã¥×(Windows)¡£ 2007.05.29 ver1.6.4 - ¥á¥Ë¥å¡¼¤Î¥¤¥ó¥¹¥È¡¼¥ë(*tar.gz)¤ò¥Þ¥¹¥³¥Ã¥È¤Ø¤Î¥É¥é¥Ã¥° & ¥É¥í¥Ã¥×¤Ç¤Ç¤­¤ë¤è¤Ë¤·¤¿¡£ - gtk+1.2¤Ç¥³¥ó¥Ñ¥¤¥ë»þ¤Îgui.c¤Î¥Ð¥°¥Õ¥£¥Ã¥¯¥¹¡£ - ¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸¥â¡¼¥É¤Î²þÎÉ¡£¤Õ¤­¤À¤·Ê¸»ú¤ò°ìʸ»ú¤º¤Äɽ¼¨ ¤·¤Æ¤¤¤¯¥¹¥Æ¥Ã¥×ɽ¼¨¤ò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£(Gtk+2¤Î¤ß)¡£ ¤½¤ì¤Ë¤È¤â¤Ê¤¦GUI¤ª¤è¤Ó¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ÎÊѹ¹¡£ - README¤ËOpenSSL¥ê¥ó¥¯¤Ë´Ø¤¹¤ëGPL¤ÎÎã³°¾ò¹à¤òÄɲᣠ- SSL´ØÏ¢¤ÎÊѹ¹¡£¥µ¡¼¥Ð¡¼¾ÚÌÀ¤¬¤È¤ì¤Æ¤¤¤ë¤È¤­¤â³Îǧ¥¦¥£¥ó¥É¥¦ ¤¬½Ð¤Æ¤¤¤¿¥Ð¥°¤ò¥Õ¥£¥Ã¥¯¥¹¡£¾ÚÌÀ¤¬¼ºÇÔ¤·¤¿¤È¤­¤ÎÍýͳɽ¼¨¡£ - SSL¾ÚÌÀ½ñ³Îǧľ¸å¤ËPOP¤Ç¤Î¥¢¥¯¥»¥¹¤ò¤·¤Ê¤ª¤¹¤è¤¦¤ËÊѹ¹¡£ - ¥Þ¥¹¥³¥Ã¥ÈÊѹ¹»þ¤Ë¥á¥¤¥ëÃå¿®²èÁü¤ò¾Ã¤µ¤Ê¤¤¤è¤¦¤Ë¤·¤¿¡£ - GNUTLS ¥µ¥Ý¡¼¥È¤ÎÄɲÃ(Ying-Chun Liu¤µ¤óºîÀ½¤Îpatch¤«¤é). OpenSSL(¥Ç¥Õ¥©¥ë¥È)¤ÈGNUTLS¤òconfigure¥ª¥×¥·¥ç¥ó¤ÇÁªÂò¡£ 2007.05.14 ver1.6.3 - MD5´ØÏ¢¤Î¥³¡¼¥É¤òGPLµ¯¸»¤Î¤â¤Î¤ËÃÖ¤­´¹¤¨ (patched by Ying-Chun Liu)¡£ - Gtk¤Ç¤Îdeprecated code¤ò½ñ¤­´¹¤¨¤¿(GtkComboÅù)¡£ - Pop over SSL¤ÇϢ³¤·¤¿½é´ü²½¤ò¤¹¤ë¤È°Û¾ï½ªÎ»¤¹¤ë¥Ð¥°¤òfix¡£ - Ʊº­OpenSSL¤Î¥Ð¡¼¥¸¥ç¥ó¤ò0.9.8e¤Ë¥¢¥Ã¥×(Windows)¡£ 2007.05.02 ver1.6.2 - POP3 over SSL (SSL/TLS)¤Î(»î¸³Åª)¥µ¥Ý¡¼¥È¡£ (¤¿¤À¤·¡¢TLS¤Ïưºî̤¸¡¾Ú) - ¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¹½ÃÛ»þ¤Î¥¨¥é¡¼Âкö¡£ - ¥Õ¥¡¥¤¥ë¤ÎÊݸ¤ò¤Õ¤­¤À¤·¥á¥Ã¥»¡¼¥¸¤ÇÅÁ¤¨¤ë¤è¤¦¤Ë¤·¤¿¡£ 2007.04.16 ver1.6.1 - ¤Õ¤­¤À¤·¤ª¤è¤Ó»þ·×¤Çʸ»ú¤ÎÉôʬ¤òȾƩÌÀ¤Ë¤·¤Ê¤¤¤Ç»Ä¤¹ µ¡Ç½¤òÄɲÃ[Windows] - ¤Õ¤­¤À¤·¡¢»þ·×¤ÎÉÁ²è¥¿¥¤¥ß¥ó¥°¤ÎÄ´À°¡£ - ¥á¥Ë¥å¡¼, ¥Ü¥¿¥ó¤Ø¤Î¥¢¥¤¥³¥óɽ¼¨ (Gtk+-2)¡£ 2007.04.10 ver1.6.0 - Win2000/XP¤Ø¤ÎÂбþ¡£ - ¥¢¥×¥ê¥¢¥¤¥³¥ó¤ò¤Ä¤±¤¿(²¾)¡£ - WindowsÈǤˤª¤±¤ëUNLHA32.DLL¤ÈTAR32.DLL¤Ø¤ÎÂбþ¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏTAR32.DLL¤Î¤ß»ÈÍѲĤȤ·¡¢DLL¤òƱº­¤Ç ¥Ð¥¤¥Ê¥ê¤ÇÇÛÉÛ¤¹¤ë¤³¤È¤Ë¤¹¤ë¡£(UNLHA32.DLL¤ÏÈóGPL) - UNIXÈǤˤª¤¤¤Æ¤â¡¢tar(z¥ª¥×¥·¥ç¥ó¤Î»È¤¨¤ëGNUÈÇ)¥³¥Þ ¥ó¥É¤òÍѤ¤¤Æ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤òľÀÜ¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤ë¤è ¤¦¤Ë¤·¤¿¡£ - Gtk+2.4°Ê¹ß¤ÇFileSelection¤Î¤«¤ï¤ê¤ËFileChooser ¤ò»È¤¦¤è¤¦¤Ë¤·¤¿¡£ - ¥Þ¥¹¥³¥Ã¥È¥¤¥ó¥¹¥È¡¼¥ë»þ¤Î¥×¥í¥°¥ì¥¹¥Ð¡¼¤Î½¤Àµ¡£ - ¥¿¥¹¥¯¥Ð¡¼Æâ¤Ç¤Î¥È¥ì¥¤¥¢¥¤¥³¥óɽ¼¨µ¡Ç½¤òÄɲÃ(Gtk+2.10°Ê¹ß)¡£ - WindowsÈǤǤÎBIFFµ¡Ç½(POP)Âбþ¡£[winsock2¤ò»ÈÍÑ] APOP¤Ë¤Ä¤¤¤Æ¤âưºî¤¹¤ë¤È»×¤¦¤¬Ì¤¸¡¾Ú¡£ - POP/APOP¤ò»ÈÍѤ¹¤ëºÝ¤Î¥Ñ¥¹¥ï¡¼¥É¤òÀßÄê¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¤« ¤É¤¦¤«¤òÁªÂò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£(WindowsÂкö) ¥Ñ¥¹¥ï¡¼¥É¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢BIFFµ¯Æ°»þ¤Ë¥Ñ¥¹¥ï¡¼¥É ¥À¥¤¥¢¥í¥°¤¬µ¯Æ°¤¹¤ë¤Î¤Ç¡¢ÅÔÅÙÆþÎϤ¹¤ë¡£ - SPAMȽÊ̤ÎON/OFF¤¬¸ú¤¤¤Æ¤¤¤Ê¤«¤Ã¤¿Bug¤ò¥Õ¥£¥Ã¥¯¥¹¡£ - ¥Þ¥¹¥³¥Ã¥ÈÊѹ¹»þ¡¢»þ·×¡¢¤Õ¤­¤À¤·Åù¤Î¥á¥â¥ê¥ê¡¼¥¯Âкö¡£ - Windows¤Ç¤ÎȾƩÌÀ¥µ¥Ý¡¼¥È¡£ - ºÇÂç²èÁü¿ô/ºÇÂ祢¥Ë¥á¥Õ¥ì¡¼¥à¿ô¤ò¤È¤â¤Ë64¤Ë¤·¤¿¡£ 2006.10.11 ver1.4.1 - POP3¤ÎBiff¤ò»ÈÍѤ·¤Æ¤¤¤ëºÝ¤Ë¤´¤¯¤Þ¤ì¤Ë¥Õ¥ê¡¼¥º¤¹¤ë¥Ð¥°¤òfix¡£ - Biff²èÁü¾å¤Î¥Ä¡¼¥ë¥Á¥Ã¥×ɽ¼¨¤òON/OFF½ÐÍè¤ë¤è¤¦¤Ë¤·¤¿¡£ 2006.09.07 ver1.4.0 - GCC4.x¤Ç¤Îưºî»þ¤ÎÌäÂêÂнè(Fedora Core 5¤Ç³Îǧ)¡£ - MIME¥¨¥ó¥³¡¼¥É»þ¤Ê¤É¤ÎŤ¤From/Subject¹Ô¤ËÂнè(10¹Ô¤Þ¤Ç)¡£ - Biffɽ¼¨²èÁü¾å¤Ç¤Î¥Ä¡¼¥ë¥Á¥Ã¥×¡£POP»ÈÍÑ»þ¤Ë¤ÏºÇ¿·¥á¥¤¥ë¤Î From/Subject¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤¿¡£ - ¥Ð¥ë¡¼¥óÀ©¸æÊ¸»ú¤Ë"%f"(ºÇ¿·¥á¥¤¥ë¤ÎFrom)¡¢"%s"(ºÇ¿·¥á¥¤¥ë¤Î Subject)¤òÄɲᣥ᡼¥ëÍѤΤդ­¤À¤·»þ¤Î¤ß¤ÇÍ­¸ú¡£ - POP»þ¤Îbiff¤Î¥¿¥¤¥ß¥ó¥°¹â®²½¡£ - POP¤ÎºÇÂ祹¥­¥ã¥ó·ï¿ô¤òÊѹ¹¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿(¥Ç¥Õ¥©¥ë¥È40ÄÌ)¡£ - ¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸¤Ç"--message-expire"¥ª¥×¥·¥ç¥ó¤òÄɲᣠmsecñ°Ì¤Ç¥á¥Ã¥»¡¼¥¸¤Îɽ¼¨»þ´Ö¤ò»ØÄê¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ (¥Ç¥Õ¥©¥ë¥È¤Ï10000msec=10sec)¡£ 2005.09.15 ver1.3.2 - 1.3.1¤Ç¶¦Ḁ̈ǥ£¥ì¥¯¥È¥ê¤¬¤ª¤«¤·¤¯¤Ê¤Ã¤Æ¤¤¤¿ÌäÂê¤ò½¤Àµ¡£ 2005.09.07 ver1.3.1 - configure¥¹¥¯¥ê¥×¥È¤Î¥Ç¥Õ¥©¥ë¥È¤òGtk+2¤È¤·¤¿¡£ Gtk+1.2¤ò»ÈÍѤ¹¤ë¾ì¹ç¤Ï--with-gtk1¤È¤¹¤ëɬÍפ¬¤¢¤ë¡£ - nkf̵¤·¤Ç¥á¡¼¥ë¥Ø¥Ã¥À¤ÎMIME¥Ç¥³¡¼¥É¤ò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ ƱÍͤˤΤ䫤ꥭ¥ã¥é´ØÏ¢¤Î¥³¡¼¥ÉÊÑ´¹¤âÆâÉô¤Ç¹Ô¤¦¤³¤È¤Ë¤·¤¿¡£ - ºÇÂç²èÁü¿ô¤ò32¤Ë¤·¤¿("¤Ï¤ä¤Æ¡ß¥Ö¥ì¡¼¥É"¥Þ¥¹¥³¥Ã¥ÈÍÑ)¡£ ¤Þ¤¿ºÇÂç²èÁü¿ô¤ÎÀßÄ꤫¤é¼ÂºÝ¤Ë¤Ï°ìË羯¤Ê¤¤²èÁü¿ô¤·¤« ÅÐÏ¿¤Ç¤­¤Ê¤«¤Ã¤¿¥Ð¥°¤ò½¤Àµ¡£ - ¤Õ¤­¤À¤·¤È»þ·×¤Î¥Ç¥Õ¥©¥ë¥È¿§¤ò»ØÄê¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ ¥á¥Ë¥å¡¼¤«¤éÀßÄê¡¢¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤ËÊݸ¤µ¤ì¤ë¡£ - Biffµ¡Ç½¤Ç½ü³°¤·¤¿SPAM¤Î¥«¥¦¥ó¥È¤¬¤Ç¤­¤Æ¤¤¤Ê¤«¤Ã¤¿¥Ð¥°¤ò½¤Àµ¡£ - gettext¤Î¤«¤ï¤ê¤Ëglib-gettext¤ò»ÈÍѤ¹¤ë¤è¤¦¤Ë¤·¤¿¡£ 2004.11.29 ver1.2.2 - ¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¤«¤é¥Þ¥¹¥³¥Ã¥È¤È¥á¥Ë¥å¡¼¤ò ¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ ƱÍͤˡ¢²¿¤â¥á¥Ë¥å¡¼¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤Ê¤¤¾õÂÖ¤«¤é¤Ç ¤âGUI¤Ç¥á¥Ë¥å¡¼¤È¥Þ¥¹¥³¥Ã¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë²Äǽ¤Ë¤·¤¿¡£ - FreeBSD,cygwinÅù¤Çcompile¤Ç¤­¤Ê¤«¤Ã¤¿ÌäÂê¤ò½¤Àµ¡£ - °Üž¤Ë¤È¤â¤Ê¤¦¥µ¥¤¥ÈURL¤È¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î½¤Àµ¡£ 2004.09.29 ver1.2.1 - ÈóÆüËܸì´Ä¶­(¤È¤¤¤¦¤«locale¤È¥Þ¥¹¥³¥Ã¥È¤Î¥³¡¼¥ÉÂηϤ¬°ã¤¦¾ì¹ç) ¤Î¥³¡¼¥É²ò¼á¤Î¿ÍͲ½¥µ¥Ý¡¼¥È (Danny Milosavljevic¤µ¤óºîÀ® ¤Î¥Ñ¥Ã¥Á¤«¤é)¡£¥Þ¥¹¥³¥Ã¥È¤Î¥³¡¼¥É¤Ï°Ê²¼¤ÎÍ¥Àè½ç°Ì¤Ç¥µ¥Ý¡¼¥È¡£ 1. mcpx¥Õ¥¡¥¤¥ëÆâ¤Î¡¡[General] code=xxxx ÀßÄê 2. ¸½ºß¤Îlocale 3. MaCoPiX ¥Ç¥Õ¥©¥ë¥È (EUC-JP) ¤³¤Îµ¡Ç½¤ÏGtk+2¤Î¾ì¹ç¤Î¤ßÍ­¸ú¡£ - ÀßÄê¥À¥¤¥¢¥í¥°Ãæ¤Ç¤Î¥á¥Ë¥å¡¼ÀßÄê¤Ë¤ª¤±¤ë¥Ð¥°¤ò¤¤¤¯¤Ä¤« ¥Õ¥£¥Ã¥¯¥¹¡£ - /tmpÃæ¤Î¥Ñ¥¤¥×¤ÎºîÀ®¾ì½ê¤ÎÊѹ¹ 2004.08.14 ver1.2.0 - Christoph Hohmann¤µ¤ó¤Ë¤è¤ê¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸ ¥â¡¼¥É¤¬¤¢¤é¤¿¤ËÄɲᣠ- ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥áµ¡Ç½¤òÄɲᣴÊñ¤Ê¥Þ¥¹¥³¥Ã¥È´Ö ÄÌ¿®¤Ë¤è¤ë¥¢¥Ë¥á¤ÎϢư¤¬²Äǽ¤Ë¤Ê¤Ã¤¿¡£ - Comic Market 66¡¡ÈÒÉۥС¼¥¸¥ç¥ó 2004.05.13 ver1.0.4 - MH + Procmail ¤Î¥á¡¼¥ë·Á¼°¤Ç¤ÎBiffµ¡Ç½¤ò¿·µ¬¤Ë ¥µ¥Ý¡¼¥È¡£ - »þ·×ÉÁ²è¤Ç¤Î¥Ð¥°½¤Àµ¡£ - ¥Þ¥¹¥³¥Ã¥È³ÈÂ硦½Ì¾®»þ¤Ëbiff¤Î¥Ô¥Ã¥¯¥¹¥Þ¥Ã¥×°Ì ÃÖ¤¬¤ª¤«¤·¤¯¤Ê¤ë¥Ð¥°¤ò½¤Àµ¡£ - ²èÁüÁªÂò¥À¥¤¥¢¥í¥°¤ª¤è¤Ó¥á¥Ë¥å¡¼ÊÔ½¸»þ¤Î¥á¥Ë¥å¡¼ ÁªÂò¥À¥¤¥¢¥í¥°¤ÇÊ£¿ô¥Õ¥¡¥¤¥ë¤òÁªÂò²Äǽ¤Ë¤·¤¿(Gtk2¤Î¤ß) 2004.04.11 ver1.0.3 - PPC·Ï(MacOSX, ppc linux), Solaris¤Çµ¯¤­¤Æ¤¤¤¿ ¿§¤Î½é´ü²½¤Ç¤Î¥Ð¥°¤òfix¡£ - ¥«¡¼¥½¥ë¤ÎÊѹ¹¡£ - ¥á¡¼¥ë¥ê¥¹¥È¤Ç¤ÎSPAM½ü³°¡£ 2004.02.16 ver1.0.2 - Gtk+2.x¥â¡¼¥É¤Ç¥Þ¥¹¥³¥Ã¥È¤ª¤è¤Ó¥á¥Ë¥å¡¼¥Õ¥¡¥¤ ¥ë¤Î¥³¡¼¥É°Í¸Éôʬ¤òUTF-8¤ËÊÑ´¹¤¹¤ë¤è¤¦¤Ë¤·¤¿¡£ ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¥³¡¼¥É¥»¥Ã¥È¤Ïlocale¤È°ìÃפ¹ ¤ë¤³¤È¤¬É¬Íפˤʤ롣(¤·¤¿¤¬¤Ã¤Æ¡¢1.0.1¤Ç¥Þ¥¹¥³¥Ã ¥È¤¬UTF-8¤È¤¹¤Ù¤­¤È¤·¤¿»ÅÍͤÏÇË´þ) 2004.02.14 ver1.0.1 - Gtk+2.x¥â¡¼¥É¤Ç¤Î¥³¡¼¥É½ÐÎϤò"UTF-8"¤Ë»ØÄê¡£ "ja"¤¬¤Ä¤¯locale¤Ê¤é¤¹¤Ù¤Æ¥á¥Ë¥å¡¼¤¬ÆüËܸ첽¤µ¤ì¤ë¤Ï¤º¡£ - gettext´ØÏ¢¤Î¥Õ¥¡¥¤¥ë¤ò0.12.1¥Ù¡¼¥¹¤Ë¹¹¿·¡£ 2004.02.14 ver1.0.0 - Gtk+2.0¤Ë¤âÂбþ¡£ ./configure --with-gtk2 ¤Ë¤ÆGtk+2.0ÍÑ¤Ë make¤µ¤ì¤ë¡£¥Ç¥Õ¥©¥ë¥È¤ÏGtk+1.2¤Î¤Þ¤Þ¡£ - ¥í¡¼¥«¥ë¥¹¥×¡¼¥ë¤â¤·¤¯¤ÏMaildir¤ÎBiff¤òÁªÂò¤· ¤¿¤È¤­¤ËGUI¤Ç»²¾È¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È Íî¤Á¤ë·ï¤ËÂн衣 - ¤Î¤Ã¤«¤ê¥­¥ã¥éÊÑ´¹»þ¤Î¥³¡¼¥ÉÊÑ´¹¥³¥Þ¥ó¥É¤òGUI ¤ÇÊѹ¹¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ 2004.02.08 ver0.9.0 - µ¯Æ°»þ¤Ë¥á¥Ë¥å¡¼/¥Þ¥¹¥³¥Ã¥È¤¬ÁªÂò¤µ¤ì¤Æ¤ª¤é¤º¡¢ ¥Ç¥Õ¥©¥ë¥È¥á¥Ë¥å¡¼¤Î»ØÄê¤â¤Ê¤¤¤È¤­¤Ë¥¤¥ó¥¹¥È¡¼ ¥ëºÑ¤ß¤Î¥á¥Ë¥å¡¼ÁªÂò¥À¥¤¥¢¥í¥°¤ò¤À¤·¤ÆGUI¤«¤é ÁªÂò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ - ¤³¤Î·Á¼°¤Î¥á¥Ë¥å¡¼ÁªÂò¤òPopup¥á¥Ë¥å¡¼¤«¤é¤â»È ÍѤǤ­¤ë¤è¤¦¤Ë¤·¤¿¡£ - WindowsÈǤΤ䫤ꥭ¥ã¥é¤Î¥Ç¡¼¥¿¤ÎÆÉ¤ß¹þ¤ß¡¦½ñ ¤­½Ð¤·¤ËÂбþ¤·¤¿¡£ ³Æ¡¹¤Î»ÅÍ;塢´°Á´¸ß´¹¤Ç¤Ï¤Ê¤¤¤Î¤ÇÃí°Õ¡£ ¾ÜºÙ¤ÏNKR.README.jp¤ò»²¾È¤¹¤ë¤³¤È¡£ - HOME$/.gtkrc ¤òÌÀ¼¨Åª¤ËÆÉ¤à¤è¤¦¤Ë¤·¤¿¡£ - ¥á¡¼¥ë¥ê¥¹¥Èɽ¼¨¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÊѹ¹¤Ç¤­¤ë¤è ¤¦¤Ë¤·¤¿¡£ - Biffµ¡Ç½¤Çqmail(Maildir·Á¼°)¤ò¥µ¥Ý¡¼¥È¡£ - Èó¥Í¥Ã¥È¥ï¡¼¥¯´Ä¶­¤Ë¤ÆBiffµ¡Ç½ON¤Çµ¯Æ°¤¹¤ë¤ÈÍî ¤Á¤ë¤³¤È¤¬¤¢¤ë¤Î¤ò½¤Àµ¡£ 2003.09.27 ver0.8.6 - ¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥Þ¥¹¥³¥Ã¥È/¥á¥Ë¥å¡¼¥Õ¥¡ ¥¤¥ë¤¬¶¦Ḁ̈ǥ£¥ì¥¯¥È¥ê¤Î¤â¤Î¤è¤ê¸Å¤¤¾ì¹ç¤Ï¡¢ ·Ù¹ð¤ò½Ð¤¹¥â¡¼¥É¤ò²Ã¤¨¤¿¡£ - help¥á¥Ã¥»¡¼¥¸Ãæ¤Ç¥¤¥ó¥¹¥È¡¼¥ëºÑ¤Î¥á¥Ë¥å¡¼¤òɽ ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤¿¡£ - ¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ÎÄɲᣠ- ¥Ð¥ë¡¼¥óÀ©¸æÊ¸»ú¤Ë"%m"(Ãå¿®¥á¡¼¥ë¿ô)¤òÄɲᣠ(by ¤¤¤ï¤â¤È¤µ¤ó) 2003.05.23 ver0.8.5 - ¥Û¡¼¥à¥Ý¥¸¥·¥ç¥ó¤Ç¤Î¥É¥é¥Ã¥°Æ°ºî¤Î½¤Àµ - ¥Õ¥ì¡¼¥à¿ô¤òºÇÂç¤È¤·¤¿¤È¤­¤Î¥Ð¥°½¤Àµ - ¥ª¥×¥·¥ç¥ó¤ÎÄɲà --install-user-mascot --install-user-menu --install-common-mascot --install-common-menu ¥Þ¥¹¥³¥Ã¥È¤ä¥á¥Ë¥å¡¼¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¥µ¥Ý¡¼¥È 2003.04.22 ver0.8.4 - BiffÍѥХ롼¥ó¤ÎExpire time¤Ë´Ø¤¹¤ëBug Fix - Test Image¸å¤ÎÉÁ²èÄ´À° - ¥Õ¥©¡¼¥«¥¹Äɽ¾ : Èó¶ë·Á¥¿¥¤¥È¥ë¥Ð¡¼ÍÑ¥ª¥Õ¥»¥Ã¥È - ¥Õ¥©¡¼¥«¥¹Äɽ¾ : ´ð½àÅÀ¤òWindow¤Îº¸±¦¤ÇÁªÂò²Ä ¤Ë¤·¤¿¡£ 2003.04.18 ver0.8.3 - Biff²èÁü¤Îɽ¼¨¤òº¸±¦ÁªÂò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£ - ÀßÄê¥À¥¤¥¢¥í¥°¤Î²þ½¤¡£ ¥»¡¼¥Ö¤µ¤ì¤ë¥¿¡¼¥²¥Ã¥ÈÊ̤˥¿¥°¤ò¤ï¤±¤¿¡£ - ¥í¡¼¥«¥ë¥¹¥×¡¼¥ë¤Î¥µ¥Ö¥¸¥§¥¯¥È¥ê¥¹¥Æ¥£¥ó¥°¤Î Bug fix(?) (by ¤Þ¤á¤É¤ì¤µ¤ó) 2003.04.16 ver0.8.2 - ÉÁ²è¥ë¡¼¥Á¥ó¤ò²þÁ±¡£ shape¤òÊѹ¹¤ò·ã¤·¤¯¤·¤Æ¤â¥Á¥é¥Ä¥­¤¬¤Ê¤¯¤Ê¤Ã¤¿¡£ 2003.04.15 ver0.8.1 - ¥Û¡¼¥à¥Ý¥¸¥·¥ç¥óµ¡Ç½¤ò½¤Àµ¡£ ²èÌ̾å¤Ë¥Þ¥¹¥³¥Ã¥È¤¬¤Ï¤ß¤Ç¤ë¾ì¹ç¤È¡¢¥Õ¥©¡¼¥«¥¹ ¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Î½èÍý¤ò¤ï¤±¤é¤ì¤ë¤è¤¦¤Ë¤·¤¿¡£ 2003.04.07 ver0.8.0 - ¥Õ¥¡¡¼¥¹¥È¥ê¥ê¡¼¥¹¡£ 2003.03.31 ver0.7.3 - POP3´ØÏ¢¥Ð¥°¥Õ¥£¥Ã¥¯¥¹ (by ¤¤¤ï¤â¤È¤µ¤ó) - KDE3¾å¤Ç¤ÎHome Positionµ¡Ç½¤Î¥Ð¥°¥Õ¥£¥Ã¥¯¥¹ 2003.03.15 ver0.7.2 - POP3¤ÇÂçÎ̤˥᡼¥ë¤ò¤¿¤á¤Æ¤¤¤ë¥µ¡¼¥Ð¤Ë¥¢¥¯¥»¥¹ ¤¹¤ë¤È¤½¤ì°Ê¹ß¥á¡¼¥ë¥Á¥§¥Ã¥¯¤¬¤Ç¤­¤Ê¤¯¤Ê¤ëÌäÂê ¤ò²ò·è (by ¤¤¤ï¤â¤È¤µ¤ó) - »þ·×ɽµ­ÁªÂòµ¡Ç½ - »þÊóµ¡Ç½ 2003.03.11 ver0.7.0 - Biffµ¡Ç½(POP3/APOP/local spool) 2003.03.05 ver0.6.5 - ¥¤¥ó¥¹¥È¡¼¥éÀ°È÷ - ¥Õ¥©¥ó¥È´ØÏ¢¥Ð¥°¥Õ¥£¥Ã¥¯¥¹ 2003.03.03 ver0.6.3 - ³Æ¼ï¥Ð¥°¥Õ¥£¥Ã¥¯¥¹ - ¥¢¥Ë¥á¡¼¥·¥ç¥ó¥Æ¥¹¥Èµ¡Ç½¤ò¥¢¥Ë¥áÀßÄêÆâ¤Ë¼ÂÁõ 2003.02.21 ver0.6.0 - ¥Þ¥¹¥³¥Ã¥ÈÊѹ¹ÍÑ¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼µ¡Ç½¤Î¼ÂÁõ - ²»À¼ºÆÀ¸µ¡Ç½¤Î¼ÂÁõ - ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤òµ¯Æ°¥ª¥×¥·¥ç¥ó¤ÇÊѹ¹¤Ç¤­¤ë¤è¤¦ ¤Ë¤·¤¿ - ̾¾Î¤òMaCoPiX¤È¤·¤¿ 2002.12.24 ver0.5.1 - ¥Ç¥Õ¥©¥ë¥È¥Õ¥©¥ó¥È¤Î¼è¤ê°·¤¤¤ò½¤Àµ 2002.12.16 ver0.5.0 - ¥Æ¥¹¥È¸ø³« macopix-1.7.4/Makefile.in0000664000076400007640000005565011030076474012200 00000000000000# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING COPYING.LIB \ ChangeLog INSTALL NEWS config.guess config.rpath config.sub \ depcomp install-sh ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-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 uninstall-recursive man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_REVISION = @BUILD_REVISION@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDK_PIXBUF_CFLAGS = @GDK_PIXBUF_CFLAGS@ GDK_PIXBUF_CONFIG = @GDK_PIXBUF_CONFIG@ GDK_PIXBUF_LIBS = @GDK_PIXBUF_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GNUTLS_CFLAGS = @GNUTLS_CFLAGS@ GNUTLS_LIBS = @GNUTLS_LIBS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MICRO_VERSION = @MICRO_VERSION@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNGLIB_LIBS = @PNGLIB_LIBS@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAR32_LIBS = @TAR32_LIBS@ UNLHA32_LIBS = @UNLHA32_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_ICONV_LIBS = @WIN32_ICONV_LIBS@ WINDRES = @WINDRES@ WINMM_LIBS = @WINMM_LIBS@ WINSOCK_LIBS = @WINSOCK_LIBS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ 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@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ commondir = @commondir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ manualdir = @manualdir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ prefixdir = @prefixdir@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = m4 po src EXTRA_DIST = config.rpath\ ChangeLog.ja \ README.ja \ README-win32-ja.txt \ README-win32-en.txt \ NKR.README.ja \ autogen.sh\ macopix.1\ makewin32.sh man_MANS = macopix.1 BZIP2_ENV = GZIP_ENV = TAR = tar ACLOCAL_AMFLAGS = -I m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; 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; \ (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" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(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 $(am__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: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { 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 $(MANS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man1dir)"; 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-man install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-man1 install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-man uninstall-man1 release: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) -chozf $(distdir).tar.gz $(distdir) BZIP2=$(BZIP2_ENV) $(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir) -rm -rf $(distdir) # 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: macopix-1.7.4/missing0000755000076400007640000002453310204753747011533 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2004-09-07.08 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit 0 ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit 0 ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: macopix-1.7.4/config.sub0000755000076400007640000007772610665257023012130 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2007-04-29' # 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 | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | 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 \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) 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-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | 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-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # 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 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; 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 | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -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* | -toppers* | -drops*) # 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 score-*) os=-elf ;; spu-*) os=-elf ;; *-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 ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -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: macopix-1.7.4/m4/0000777000076400007640000000000011030100027010500 500000000000000macopix-1.7.4/m4/Makefile.am0000644000076400007640000000052210206601026012460 00000000000000EXTRA_DIST = intmax.m4 longdouble.m4 longlong.m4 printf-posix.m4 signed.m4 size_max.m4 wchar_t.m4 wint_t.m4 xsize.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 macopix-1.7.4/m4/lib-prefix.m40000644000076400007640000001250710141707045012743 00000000000000# lib-prefix.m4 serial 3 (gettext-0.13) dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/lib"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) macopix-1.7.4/m4/iconv.m40000644000076400007640000000665310141707045012025 00000000000000# iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) macopix-1.7.4/m4/size_max.m40000644000076400007640000000407210141707045012517 00000000000000# size_max.m4 serial 2 dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS(stdint.h) dnl First test whether the system already has SIZE_MAX. AC_MSG_CHECKING([for SIZE_MAX]) result= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], result=yes) if test -z "$result"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', dnl which is guaranteed to work from LONG_MIN to LONG_MAX. _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, [#include ], result=?) _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, [#include ], result=?) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], result=?) if test "$fits_in_uint" = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], fits_in_uint=0) fi if test -z "$result"; then if test "$fits_in_uint" = 1; then result="$res_hi$res_lo"U else result="$res_hi$res_lo"UL fi else dnl Shouldn't happen, but who knows... result='~(size_t)0' fi fi AC_MSG_RESULT([$result]) if test "$result" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) macopix-1.7.4/m4/inttypes.m40000644000076400007640000000171710141707045012562 00000000000000# inttypes.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists and doesn't clash with # . AC_DEFUN([gt_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, [ AC_TRY_COMPILE( [#include #include ], [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) ]) if test $gt_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists and doesn't clash with .]) fi ]) macopix-1.7.4/m4/xsize.m40000644000076400007640000000103110141707045012032 00000000000000# xsize.m4 serial 2 dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_CHECK_HEADERS(stdint.h) ]) macopix-1.7.4/m4/lcmessage.m40000644000076400007640000000261610141707045012645 00000000000000# lcmessage.m4 serial 3 (gettext-0.11.3) dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([AM_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi ]) macopix-1.7.4/m4/isc-posix.m40000644000076400007640000000213310141707045012612 00000000000000# isc-posix.m4 serial 2 (gettext-0.11.2) dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. # This test replaces the one in autoconf. # Currently this macro should have the same name as the autoconf macro # because gettext's gettext.m4 (distributed in the automake package) # still uses it. Otherwise, the use in gettext.m4 makes autoheader # give these diagnostics: # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX undefine([AC_ISC_POSIX]) AC_DEFUN([AC_ISC_POSIX], [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) macopix-1.7.4/m4/stdint_h.m40000644000076400007640000000205310141707045012511 00000000000000# stdint_h.m4 serial 3 (gettext-0.12) dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([jm_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], jm_ac_cv_header_stdint_h=yes, jm_ac_cv_header_stdint_h=no)]) if test $jm_ac_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) macopix-1.7.4/m4/nls.m40000644000076400007640000000350510141707045011474 00000000000000# nls.m4 serial 1 (gettext-0.12) dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) ]) AC_DEFUN([AM_MKINSTALLDIRS], [ dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but $(top_srcdir). dnl Try to locate it. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then case "$ac_aux_dir" in /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; esac fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) ]) macopix-1.7.4/m4/printf-posix.m40000644000076400007640000000310610141707045013337 00000000000000# printf-posix.m4 serial 2 (gettext-0.13.1) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no", gt_cv_func_printf_posix="guessing yes") ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE(HAVE_POSIX_PRINTF, 1, [Define if your printf() function supports format strings with positions.]) ;; esac ]) macopix-1.7.4/m4/Makefile.in0000664000076400007640000002504711030076474012515 00000000000000# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_REVISION = @BUILD_REVISION@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDK_PIXBUF_CFLAGS = @GDK_PIXBUF_CFLAGS@ GDK_PIXBUF_CONFIG = @GDK_PIXBUF_CONFIG@ GDK_PIXBUF_LIBS = @GDK_PIXBUF_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GNUTLS_CFLAGS = @GNUTLS_CFLAGS@ GNUTLS_LIBS = @GNUTLS_LIBS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MICRO_VERSION = @MICRO_VERSION@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNGLIB_LIBS = @PNGLIB_LIBS@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAR32_LIBS = @TAR32_LIBS@ UNLHA32_LIBS = @UNLHA32_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_ICONV_LIBS = @WIN32_ICONV_LIBS@ WINDRES = @WINDRES@ WINMM_LIBS = @WINMM_LIBS@ WINSOCK_LIBS = @WINSOCK_LIBS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ 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@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ commondir = @commondir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ manualdir = @manualdir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ prefixdir = @prefixdir@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = intmax.m4 longdouble.m4 longlong.m4 printf-posix.m4 signed.m4 size_max.m4 wchar_t.m4 wint_t.m4 xsize.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign m4/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am 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 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: macopix-1.7.4/m4/inttypes_h.m40000644000076400007640000000210310141707045013057 00000000000000# inttypes_h.m4 serial 5 (gettext-0.12) dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([jm_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], jm_ac_cv_header_inttypes_h=yes, jm_ac_cv_header_inttypes_h=no)]) if test $jm_ac_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) macopix-1.7.4/m4/codeset.m40000644000076400007640000000157610141707045012334 00000000000000# codeset.m4 serial AM1 (gettext-0.10.40) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) macopix-1.7.4/m4/wchar_t.m40000644000076400007640000000155310141707045012330 00000000000000# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) macopix-1.7.4/m4/longlong.m40000644000076400007640000000164310141707045012520 00000000000000# longlong.m4 serial 4 dnl Copyright (C) 1999-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. # Define HAVE_LONG_LONG if 'long long' works. AC_DEFUN([jm_AC_TYPE_LONG_LONG], [ AC_CACHE_CHECK([for long long], ac_cv_type_long_long, [AC_TRY_LINK([long long ll = 1LL; int i = 63;], [long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll;], ac_cv_type_long_long=yes, ac_cv_type_long_long=no)]) if test $ac_cv_type_long_long = yes; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) fi ]) macopix-1.7.4/m4/progtest.m40000644000076400007640000000563410141707045012554 00000000000000# progtest.m4 serial 3 (gettext-0.12) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) macopix-1.7.4/m4/intmax.m40000644000076400007640000000217210141707045012177 00000000000000# intmax.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_HEADER_STDINT_H]) AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE(HAVE_INTMAX_T, 1, [Define if you have the 'intmax_t' type in or .]) fi ]) macopix-1.7.4/m4/uintmax_t.m40000644000076400007640000000235010141707045012705 00000000000000# uintmax_t.m4 serial 7 (gettext-0.12) dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([jm_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_HEADER_STDINT_H]) if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE(HAVE_UINTMAX_T, 1, [Define if you have the 'uintmax_t' type in or .]) fi ]) macopix-1.7.4/m4/lib-link.m40000644000076400007640000005534310141707045012410 00000000000000# lib-link.m4 serial 4 (gettext-0.12) dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) macopix-1.7.4/m4/ulonglong.m40000644000076400007640000000204210141707045012677 00000000000000# ulonglong.m4 serial 3 dnl Copyright (C) 1999-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], [unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) macopix-1.7.4/m4/intdiv0.m40000644000076400007640000000356510141707045012263 00000000000000# intdiv0.m4 serial 1 (gettext-0.11.3) dnl Copyright (C) 2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ AC_TRY_RUN([ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, [ # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac ]) ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, [Define if integer division by zero raises signal SIGFPE.]) ]) macopix-1.7.4/m4/ChangeLog0000644000076400007640000000323310206601026012200 000000000000002005-02-21 gettextize * gettext.m4: Upgrade to gettext-0.14.1. * intmax.m4: New file, from gettext-0.14.1. * lib-ld.m4: Upgrade to gettext-0.14.1. * lib-prefix.m4: Upgrade to gettext-0.14.1. * longdouble.m4: New file, from gettext-0.14.1. * longlong.m4: New file, from gettext-0.14.1. * po.m4: Upgrade to gettext-0.14.1. * printf-posix.m4: New file, from gettext-0.14.1. * signed.m4: New file, from gettext-0.14.1. * size_max.m4: New file, from gettext-0.14.1. * ulonglong.m4: Upgrade to gettext-0.14.1. * wchar_t.m4: New file, from gettext-0.14.1. * wint_t.m4: New file, from gettext-0.14.1. * xsize.m4: New file, from gettext-0.14.1. * Makefile.am (EXTRA_DIST): Add the new files. 2004-02-14 gettextize * codeset.m4: New file, from gettext-0.12.1. * gettext.m4: New file, from gettext-0.12.1. * glibc21.m4: New file, from gettext-0.12.1. * iconv.m4: New file, from gettext-0.12.1. * intdiv0.m4: New file, from gettext-0.12.1. * inttypes.m4: New file, from gettext-0.12.1. * inttypes_h.m4: New file, from gettext-0.12.1. * inttypes-pri.m4: New file, from gettext-0.12.1. * isc-posix.m4: New file, from gettext-0.12.1. * lcmessage.m4: New file, from gettext-0.12.1. * lib-ld.m4: New file, from gettext-0.12.1. * lib-link.m4: New file, from gettext-0.12.1. * lib-prefix.m4: New file, from gettext-0.12.1. * nls.m4: New file, from gettext-0.12.1. * po.m4: New file, from gettext-0.12.1. * progtest.m4: New file, from gettext-0.12.1. * stdint_h.m4: New file, from gettext-0.12.1. * uintmax_t.m4: New file, from gettext-0.12.1. * ulonglong.m4: New file, from gettext-0.12.1. * Makefile.am: New file. macopix-1.7.4/m4/gettext.m40000644000076400007640000004513010141707045012364 00000000000000# gettext.m4 serial 28 (gettext-0.13) dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define(gt_included_intl, ifelse([$1], [external], [no], [yes])) define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Set USE_NLS. AM_NLS ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. dnl Add a version number to the cache macros. define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias ();], [bindtextdomain ("", ""); return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias ();], [bindtextdomain ("", ""); return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE(HAVE_DCGETTEXT, 1, [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATOBJEXT) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) dnl For backward compatibility. Some Makefiles may be using this. if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST(INTLOBJS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST(INTLLIBS) dnl Make all documented variables known to autoconf. AC_SUBST(LIBINTL) AC_SUBST(LTLIBINTL) AC_SUBST(POSUB) ]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([bh_C_SIGNED])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) AC_REQUIRE([jm_AC_HEADER_STDINT_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([jm_GLIBC21])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_XSIZE])dnl AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ __fsetlocking]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(feof_unlocked, [#include ]) gt_CHECK_DECL(fgets_unlocked, [#include ]) gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_ICONV AM_LANGINFO_CODESET if test $ac_cv_header_locale_h = yes; then AM_LC_MESSAGES fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) macopix-1.7.4/m4/po.m40000644000076400007640000004265210141707045011324 00000000000000# po.m4 serial 3 (gettext-0.14) dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AM_NLS])dnl dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :) dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU msgfmt. if test "$GMSGFMT" != ":"; then dnl If it is no GNU msgfmt we define it as : so that the dnl Makefiles still can work. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` AC_MSG_RESULT( [found $GMSGFMT program is not GNU msgfmt; ignore it]) GMSGFMT=":" fi fi dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po fi AC_OUTPUT_COMMANDS([ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) macopix-1.7.4/m4/lib-ld.m40000644000076400007640000000675610141707045012056 00000000000000# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) macopix-1.7.4/m4/inttypes-pri.m40000644000076400007640000000222710141707045013347 00000000000000# inttypes-pri.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_REQUIRE([gt_HEADER_INTTYPES_H]) if test $gt_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], gt_cv_inttypes_pri_broken, [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, [Define if exists and defines unusable PRI* macros.]) fi ]) macopix-1.7.4/m4/signed.m40000644000076400007640000000140110141707045012142 00000000000000# signed.m4 serial 1 (gettext-0.10.40) dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. AC_DEFUN([bh_C_SIGNED], [ AC_CACHE_CHECK([for signed], bh_cv_c_signed, [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) if test $bh_cv_c_signed = no; then AC_DEFINE(signed, , [Define to empty if the C compiler doesn't support this keyword.]) fi ]) macopix-1.7.4/m4/longdouble.m40000644000076400007640000000230010141707045013022 00000000000000# longdouble.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether the compiler supports the 'long double' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_LONGDOUBLE], [ AC_CACHE_CHECK([for long double], gt_cv_c_long_double, [if test "$GCC" = yes; then gt_cv_c_long_double=yes else AC_TRY_COMPILE([ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; ], , gt_cv_c_long_double=yes, gt_cv_c_long_double=no) fi]) if test $gt_cv_c_long_double = yes; then AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) fi ]) macopix-1.7.4/m4/wint_t.m40000644000076400007640000000153110141707045012201 00000000000000# wint_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) macopix-1.7.4/NEWS0000644000076400007640000000000010113753503010577 00000000000000macopix-1.7.4/mkinstalldirs0000755000076400007640000000370410141707055012726 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here macopix-1.7.4/install-sh0000755000076400007640000002176610204753732012137 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2004-09-10.20 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit 0;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit 0;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: macopix-1.7.4/NKR.README.ja0000644000076400007640000001351210477722710012027 00000000000000#################################################################### # MaCoPiX (UNIX) <---> ¤Î¤Ã¤«¤ê¥­¥ã¥é (Windows) ´Ö¤Î¥Ç¡¼¥¿ÊÑ´¹ # # ²òÀâ¥É¥­¥å¥á¥ó¥È : NKR.README.jp # # # # ÂÐ¾Ý MaCoPiX ver 1.2.3°Ê¹ß # # ¤Î¤Ã¤«¤ê¥­¥ã¥é ver1.40 # # 2005.01.28 Kurumi Chimari # # chimari@rosegray.sakura.ne.jp # # http://rosegray.sakura.ne.jp/ # #################################################################### ¢§¤Ï¤¸¤á¤Ë "¤Î¤Ã¤«¤ê¥­¥ã¥é"¤È¤Ï¡¢¤Ï¤ë¤­¤Ò¤«¤ë¤µ¤ó¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì ¡Ö¤³¤¢¤À¤ó¤×¤È¡×¤µ¤ó http://www.coredumped.jp/ ¤ÇÇÛÉÛ¤µ¤ì¤Æ¤¤¤ëWindowsÈǤΥޥ¹¥³¥Ã¥È¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤¹¡£ MaCoPiX¤Îver0.9.0°Ê¹ß¤Ç¤Ï¡¢¤³¤Î¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Þ¥¹¥³¥Ã¥È¥â¥¸¥å¡¼¥ë ¤ÎÆÉ¤ß½ñ¤­¤ËÂбþ¤·¤Æ¤ª¤ê¡¢MaCoPiX¤Î¥Þ¥¹¥³¥Ã¥È¤È¤ÎÁê¸ßÊÑ´¹¤¬²Äǽ¤Ë ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤È¤Ï¤¤¤¨¡¢¤½¤ì¤¾¤ì¤Þ¤Ã¤¿¤¯¤³¤È¤Ê¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤¹¤Î¤Ç¡¢´°Á´¸ß´¹ ¤È¤Ï¤¤¤Ã¤Æ¤¤¤Þ¤»¤ó¡£¤³¤Î¥É¥­¥å¥á¥ó¥È¤Ç¤Ï¡¢¥Þ¥¹¥³¥Ã¥È¤ÎÊÑ´¹¤ÎÆâÍÆ¤ª¤è ¤ÓÃí°ÕÅÀ¤Ê¤É¤ò¥á¥â¤·¤Æ¤ª¤­¤Þ¤¹(ºî¼Ô¤ÎÈ÷˺Ͽ¤È¤â¤¤¤¦)¡£ ¢§Áí¹çŪ¤ÊÃí°ÕÅÀ ¡¦MaCoPiX -> ¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎÊÑ´¹¤Ç¤Ç¤­¤ë¥Ç¡¼¥¿¤Ï¤Î¤Ã¤«¤ê¥­¥ã¥éver1.40 °Ê¹ß¤Ç¤·¤«»ÈÍѤǤ­¤Þ¤»¤ó¡£¤³¤¢¤À¤ó¤×¤È¤µ¤ó¤«¤éºÇ¿·ÈǤò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ ¸æÍøÍѲ¼¤µ¤¤¡£ ¡¦ver1.2.2¤Þ¤Ç¤Ï¥³¡¼¥ÉÊÑ´¹¤Ë³°Éô¤Înkf¤ò¸Æ¤Ó½Ð¤·¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï ¥³¡¼¥ÉÊÑ´¹½èÍý¤Þ¤ÇÆâÉô¤Ç¹Ô¤¦¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ SJIS/EUC, ²þ¹Ô¥³¡¼¥É¤ÎÊÑ´¹¤âMaCoPiX¦¤Ç¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£ ¡¦INI¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤Ï¾åµ­¤Î¥³¡¼¥ÉÊÑ´¹¤ò¤·¤Æ¤¯¤ì¤Þ¤¹¤¬¡¢¥Õ¥¡¥¤¥ë̾¤Ë ´Ø¤·¤Æ¤Ï¥Î¡¼¥¿¥Ã¥Á¤Ç¤¹¡£¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Ç¡¼¥¿¤ÏÆüËܸì¤Î¥Õ¥¡¥¤¥ë̾ ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤â¤Î¤¬Â¿¡¹¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤é¤Ï¥ê¥Í¡¼¥àÅù¤·¤Æ¤ª¤¤¤¿Êý ¤¬ÌµÆñ¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¤³¤ÎºÝ¤ËINI¥Õ¥¡¥¤¥ëÆâ¤Ç»ØÄꤷ¤Æ¤¤¤ëBMP¥Õ¥¡¥¤¥ë̾¤âÊѹ¹¤·¤Æ ¤ª¤¤¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£ ¡¦¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Þ¥¹¥³¥Ã¥È¤Ïñ°ì¤Îlzh¥Õ¥¡¥¤¥ë¤ÇÇÛÉÛ¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ ¤½¤ÎÃæ¿È¤Ï -+--¤È¤â¤ß¤¿¤ó.ini <-- ÄêµÁ¥Õ¥¡¥¤¥ë | +--<¤È¤â¤ß¤¿¤ó>--+--¤È¤â¤ß¤¿¤ó1.bmp ²èÁüdir. +--¤È¤â¤ß¤¿¤ó2.bmp +-- ¡Ä¡Ä ¤È¤¤¤¦¹½Â¤¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ MaCoPiX¤«¤éÆÉ¤ß¹þ¤àºÝ¤Ï¡¢bmp¥Õ¥¡¥¤¥ë¤Èini¥Õ¥¡¥¤¥ë¤ò*Ʊ¤¸¥Ç¥£¥ì¥¯¥È ¥ê*¤ËÃÖ¤¯¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ ¡¦¤Þ¤¿¡¢¤Î¤Ã¤«¤ê¥­¥ã¥é¤È¤·¤Æ»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢¤³¤Î¤è¤¦¤Ê¹½Â¤¤Ë¤·¤Æ¤«¤é lzh¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ì¤Ð¤è¤¤¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ ¾åµ­¤Îini¥Õ¥¡¥¤¥ë¤È²èÁüdir¤Î̾Á°¤ÏƱ°ì¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤(²è Áü¥Õ¥¡¥¤¥ë¤ÏÊ̤ÇÎɤ¤)¡£ ¤³¤ì¤¬¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Þ¥¹¥³¥Ã¥ÈÊѹ¹¥á¥Ë¥å¡¼ ¤ÎÅÐϿ̾¤Ë¤Ê¤ê¤Þ¤¹¡£ ¢§MaCoPiX --> ¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎÊÑ´¹ [ÊÑ´¹¤Î¼ê½ç] - MaCoPiX¤òÄ̾ﵯư¤·¡¢¤Î¤Ã¤«¤ê¥­¥ã¥é¤ËÊÑ´¹¤·¤¿¤¤¥Þ¥¹¥³¥Ã¥È¤òɽ¼¨ ¤¹¤ë¡£ - ¥Ý¥Ã¥×¥¢¥Ã¥×¤Î¡ÖÊݸ¡×->¡Ö³«È¯¼ÔÍÑ¡×->¡Ö¤Î¤Ã¤«¤ê¥­¥ã¥é¤ËÊÑ´¹¡×¤ò ¼Â¹Ô¡£ - ¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎÀßÄê¥Õ¥¡¥¤¥ë(hogehoge.ini)¤ò¥À¥¤¥¢¥í¥°¤Ç»ØÄê¡£ [MaCoPiXÆâ¤Ç¤ÎÊÑ´¹¤Î¼ÂºÝ] 1. MaCoPiX¤Î¥Þ¥¹¥³¥Ã¥ÈÄêµÁ¥Õ¥¡¥¤¥ë(*.mcpx)¤«¤é¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Þ¥¹ ¥³¥Ã¥ÈÄêµÁ¥Õ¥¡¥¤¥ë(*.ini)¤òºîÀ®¡£ 2. MaCoPiXÍѤβèÁü¥Ç¡¼¥¿¤«¤é¤Î¤Ã¤«¤ê¥­¥ã¥éÍѤÎBMP¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹ ¤ë¡£¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎBMP¤Ï RGB=(0x00,0xFF,0x00) ¤È¤Ê¤Ã¤Æ¤¤¤ëÎФΠ¥Ô¥¯¥»¥ë¤¬Æ©²áÉôʬ¤È¤·¤Æ½èÍý¤µ¤ì¤ë¤¬¡¢¤½¤ÎºîÀ®¤â¤³¤³¤Ç¤µ¤ì¤ë¡£ BMP¥Õ¥¡¥¤¥ë¤Ïini¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¥Ç¥£¥ì¥¯¥È¥ê¤Ë½ñ¤­½Ð¤µ¤ì¤ë¡£ 3. ºîÀ®¤µ¤ì¤¿ini¥Õ¥¡¥¤¥ë¤Îʸ»ú¥³¡¼¥É¤òSJIS+MSDOS²þ¹Ô¤ËÊÑ´¹¤¹¤ë¡£ ¢§¤Î¤Ã¤«¤ê¥­¥ã¥é --> MaCoPiX ¤ÎÊÑ´¹ [ÊÑ´¹¤Î¼ê½ç] - MaCoPiX¤òÄ̾ﵯư¤¹¤ë¡£ - ¥Ý¥Ã¥×¥¢¥Ã¥×¤Î¡Ö³«¤¯¡×->¡Ö³«È¯¼ÔÍÑ¡×->¡Ö¤Î¤Ã¤«¤ê¥­¥ã¥é¤«¤éÊÑ´¹¡× ¤ò¼Â¹Ô¡£ - ÊÑ´¹¤·¤¿¤¤¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎÀßÄê¥Õ¥¡¥¤¥ë(hogehoge.ini)¤ò¥À¥¤¥¢¥í¥° ¤Ç»ØÄê¡£ - ini¥Õ¥¡¥¤¥ëÃæ¤Ç»ØÄꤵ¤ì¤¿²èÁü¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï¡¢¥À¥¤ ¥¢¥í¥°¤¬½Ð¤ë¤Î¤Ç¡¢¼êư¤Ç»ØÄꤹ¤ë¡£ - ½ñ¤­½Ð¤·¤ò¤·¤¿¤¤MaCoPiX¤Î¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë̾(*.mcpx)¤ò¥À¥¤¥¢¥í ¥°¤«¤é»ØÄꤹ¤ë¡£ - ¥ê¥ê¡¼¥¹¥Þ¥¹¥³¥Ã¥È¤òºîÀ®¤¹¤ë¾ì¹ç¤Ï¤³¤³¤«¤é¤µ¤é¤Ë¥Ý¥Ã¥×¥¢¥Ã¥×¤Î ¡Ö³«¤¯¡×->¡Ö³«È¯¼ÔÍÑ¡×-> ¡Ö¥ê¥ê¡¼¥¹ÍÑ¥Þ¥¹¥³¥Ã¥ÈÊݸ¡×¤ò¹Ô¤¦¡£ [MaCoPiXÆâ¤Ç¤ÎÊÑ´¹¤Î¼ÂºÝ] 1. ¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Þ¥¹¥³¥Ã¥ÈÄêµÁ¥Õ¥¡¥¤¥ë(*.ini)¤«¤éMaCoPiX¤Î¥Þ¥¹ ¥³¥Ã¥ÈÄêµÁ¥Õ¥¡¥¤¥ë(*.mcpx)¤«¤é¤òºîÀ®¡£ 2. ¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎBMP²èÁü¤òÆÉ¤ß¹þ¤ß¡¢RGB=(0x00,0xFF,0x00)¤Î¥Ô¥¯¥» ¥ë¤òÆ©²áÉôʬ¤È¤·¤Æ½èÍý¤¹¤ë¡£¤µ¤é¤Ë¤½¤ì¤òPNG¤ËÊÑ´¹¤·¤Æ¥»¡¼¥Ö¤¹¤ë¡£ PNG¥Õ¥¡¥¤¥ë¤Ïini¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¥Ç¥£¥ì¥¯¥È¥ê¤Ë½ñ¤­½Ð¤µ¤ì¤ë¤¬¡¢Æ± »þ¤Ë³Æ¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤â¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤ë¡£ 3. ºîÀ®¤µ¤ì¤¿mcpx¥Õ¥¡¥¤¥ë¤Îʸ»ú¥³¡¼¥É¤òEUC+UNIX²þ¹Ô¤ËÊÑ´¹¤¹¤ë¡£ ¢§»ÅÍ;å¤ÎÀ©¸Â 1. [ºÇÂç²èÁüËç¿ô] MaCoPiX = ¤Î¤Ã¤«¤ê¥­¥ã¥é(¤¿¤À¤·ver1.40°Ê¹ß) = 30 ver1.35°ÊÁ°¤Î¤Î¤Ã¤«¤ê¥­¥ã¥é¤Ç¤Ï20¤Þ¤Ç¤Ê¤Î¤ÇÃí°Õ¤¬É¬Í× 2. [¥Ñ¥¿¡¼¥ó¿ô] MaCoPiX = ¤Î¤Ã¤«¤ê¥­¥ã¥é = 10 ¤¿¤À¤·¡¢MaCoPiX¤Ç¤Ï¥»¥ê¥Õ¤Î¤¢¤ê¤Ê¤·(Random or Click)¤ò1¥Ñ¥¿¡¼¥ó ¤ÇÊ»µ­¤Ç¤­¤ë¡£ 3. [1¥Ñ¥¿¡¼¥óÆâ¤Î¥Õ¥ì¡¼¥à¿ô] MaCoPiX : 30 ¤Î¤Ã¤«¤ê¥­¥ã¥é : 99 ¤¿¤À¤·¡¢MaCoPiX¤Î¤è¤¦¤Ê¥Ö¥í¥Ã¥¯¥ë¡¼¥×µ¡¹½¤Ï¤Î¤Ã¤«¤ê¥­¥ã¥é¤Ë¤Ï¤Ê ¤¤¡£ 4 [¥»¥ê¥Õɽ¸½] MaCoPiX : ²þ¹Ô/²þ¥Ú¡¼¥¸/ʸ»úÄɲÃÅù ̵À©¸Â ¤Î¤Ã¤«¤ê¥­¥ã¥é : 3¹Ô¤Þ¤Ç¤Îñ½ãɽ¼¨ ¤ª¤½¤é¤¯¡¢¤³¤³¤¬¤¤¤Á¤Ð¤ó·Ù¹ð¤¬¤Ç¤ë (MaCoPiX -> ¤Î¤Ã¤«¤ê¥­¥ã¥é)¡£ ¤À¤¤¤¿¤¤¤³¤ó¤Ê¤È¤³¤í¤Ç¤·¤ç¤¦¤«¡£ ¢§ÌÈÀÕ»ö¹à MaCoPiXËÜÂΤâ¤â¤Á¤í¤ó¤Ç¤¹¤¬¡¢¤³¤ÎÊÑ´¹¤Ë¤è¤Ã¤ÆÀ¸¤¸¤¿¤¤¤«¤Ê¤ë»ö¸Î¡¦ ÉÔÍø±×Åù¤Ë¤¿¤¤¤·¤Æºî¼Ô¤ÏÀÕǤ¤òÉ餤¤«¤Í¤Þ¤¹¡£ ¤È¤¯¤Ë¡¢¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î»ÅÍͤ˴ؤ·¤Æ¤Ï»ä(¤¯¤ë¤ß ¤Á¤Þ¤ê)¤¬¤«¤Ã¤Æ¤Ë ²òÀϤ·¤¿¤â¤Î¤Ç¤¢¤ë¤Î¤Ç¡¢¤Î¤Ã¤«¤ê¥­¥ã¥éºî¼Ô¤Î¤Ï¤ë¤­¤µ¤ó¤Ë¤ÏÌÂÏǤò ¤«¤±¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£ÉÔ´°Á´¤Ê¤Î¤Ã¤«¤ê¥­¥ã¥é¥Ç¡¼¥¿¤ò»ÈÍѤ¹¤ë¤È¤Î¤Ã¤« ¤ê¥­¥ã¥é¤¬Ë½Áö¤·¡¢Windows¥Þ¥·¥ó¤ò¶¯À©¥ê¥Ö¡¼¥È¡Ä¡Ä¤Ê¤ó¤Æ¤³¤È¤â¤·¤Ð ¤·¤Ðµ¯¤³¤êÆÀ¤Þ¤¹¡£¸·½Å¤ËÃí°Õ¤·¡¢¤«¤Ä¼«¸ÊÀÕǤ¤Ç¤Î»ÈÍѤò¤ª´ê¤¤¤·¤Þ¤¹¡£ ¤Þ¤¿¡¢ÊÑ´¹¤µ¤ì¤¿¥Ç¡¼¥¿¤ÎÃøºî¸¢¤Ë¤Ä¤¤¤Æ¤â¡¢ÊÑ´¹Á°¤Î¥Ç¡¼¥¿¤ÎÃøºî¸¢ÊÝ »ý¼Ô¤¬¤³¤ì¤òÍ­¤·¤Þ¤¹¡£Ãøºî¸¢¼Ô¤¬µö²Ä¤·¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¾¡¼ê¤ÊºÆÇÛÉÛÅù ¤Ï¤ª¤³¤Ê¤ï¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£ 2004.01.20 Kurumi Chimari macopix-1.7.4/COPYING0000644000076400007640000004353410622166517011166 00000000000000The code in this distribution is Copyright 2002-2007 by K.Chimari. Specific permission is granted for the GPLed code in this distribition to be linked to OpenSSL without invoking GPL clause 2(b). ------------------------------------------------------------------------------- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 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 St, 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. macopix-1.7.4/po/0000777000076400007640000000000011030100030010570 500000000000000macopix-1.7.4/po/ja.gmo0000664000076400007640000013274411030100030011617 00000000000000Þ•œÅ!0,1,F³,“ú,*Ž-¹-!Ì-Jî-H9.H‚.FË.H/?[/E›/>á/> 0I_0F©0;ð0:,17g13Ÿ1JÓ1<2G[2<£2;à2<3FY36 38×344G/48w4 °4¾41Ú4/ 5<<5 y5 …5‘5,¥5.Ò56D6`6i6 …66¦6-º68è6&!7'H7p7w7~7‡7 7š70­7>Þ7828,I8v8#–8%º80à8 9949P9,o90œ9!Í9ï9þ98:'P: x:‚:/–:8Æ:ÿ:; $;2;:; C;M;T;d; x;…; –;¤;³;.Æ;õ; ú; <(< 7<D<^<a<i<y<< ˜<¤<µ<Ç<Ì< Ñ< Ý< è<ó<= == =*=1=G=Z=v==©=À=Û=ó= >$>C>Y>i>>$ž>Ã>$ã>?c?fu?RÜ?K/@{@Š@ @@ £@­@¼@Â@È@Ø@ ß@ê@ù@ AA'$ALAlA‡A  A ­A·AÐA âAB! BBBZBrBB#­BÑB4áB+C BCMCdC;tC°CÁCÕCçCîCþC DD0D ADOD^D qD|D*DC¬D ðDxûD3tE"¨E ËE ÙEåEûE F.F?FUFmF‚F—F­FÄFÙFñFGG3GQGoG‚G‡G˜GGµG"ÆG éG õG H HH"H4H CHdHH”H:˜H)ÓHSýHQI XIfIlIsII0•I ÆI ÑIßIïIöIüIJ-J1GJ&yJ* J0ËJüJ K"K?KYK mK{K„K K›K²KÇKÌK'àK!L *L"5LXLaL2}L$°L%ÕLûL!M:MYM&oM–M$¦MËMÜM$íMNN(N7N >N LNXNgNwN ŒN˜N·N ÌN×N çNõNOOO $O.O"KO nOB{O ¾OÉOÑOÕOÛOàOäOéOÿOPP P7#P[P`PiPrP#P´P¸PËPÜP0áPQQ+QCQ3KQQ QœQ¡Q ´QÀQ&ÖQ9ýQ 7RBR KRWR hRvR ˆR”R £R ¯R¼RÐRáR'ûR&#S'JSrS‚S‹S¦S0¯SàS çS õS)T+T=TQT qT{T „T ’T&³TÚTàT(õTU=ULUjUnUsU|U“U©UÂU ÙUåU÷UV)V ;V IVWVmV~VV ºVÛVùVW2WMWhW„W)—WÁWÛWõW'X:XQXnX‹XX-³XáX0ðX !Y-Y"@YcYrY‹Y’Y£Y¾Y ÎY"ÜY#ÿY#Z 2Z @Z KZXZgZxZ Z=ZËZ'ÏZ+÷Z##[!G[ i[6u[¬[ ±[¼[ Á[ŸÍ[+m\,™\#Æ\ê\ ] *]!K]m]q] w]ƒ]’]<§]#ä] ^^^ ^M?^$^²^!Î^ ð^ û^ _#_2_;_ C_ P_]_l_!s_•_9_3×_$ `A0`r`v`|`8–`3Ï`%a!)a"Ka#naE’aØa:ëa&b0=bnb&b!¨b Êb)Öbcc]'c“…dte¤ŽeC3f wf/˜fRÈfOgXkgUÄg`hO{hTËhQ i]riNÐicjPƒj0ÔjBk?HkTˆkHÝkP&lQwlLÉlLmUcmB¹m2üm/n%>nldn:Ñn oC"oXfo>¿oUþoTpgpzpC–p3Úp$qf3q šq#»qßqèq#rI*rKtr6Àr7÷r /s=s EsSs[s.bs<‘soÎs(>t1gtO™t0ét0u?KuY‹uåu.ùu0(v-Yv0‡vF¸vÿvw5wFPw9—wÑwÚwHówT $In~Q‚+Ô_Ž`ŽgŽ €Ž Ž<šŽ׎TÞŽ3F\ry€—Eª?ðH0ByN¼' ‘3‘1S‘.…‘ ´‘Á‘Ó‘ ã‘ð‘! ’'+’S’Z’*s’7ž’Ö’)è’ “"“8B“.{“Fª“.ñ“( ”"I”l”/€”°”KÈ” •'!•6I•€•Ÿ•¸•Ñ•á•ú•–5–Q–p–<ƒ–$À–å–ù–—1—P—W— u—‚—:›—$Ö—û—r˜Š˜¦˜¶˜ ½˜ ǘјÕ˜!ܘþ˜™ -™:™LB™™“™¬™D¿™TšYš!`š‚š›š=«šéš!ðš*› =›QJ›œ›²›È›!Ï›ñ›œA œbœ✠ùœ (6Vfv‰(Ÿ$È3íE!ž<gž.¤žÓžïžöžŸU%Ÿ {ŸˆŸ ›ŸL¨Ÿ!õŸ 70 h  o | :• $Рõ ü *¡$@¡ e¡$s¡˜¡œ¡£¡³¡Ò¡-ë¡'¢A¢'W¢*¢ª¢É¢ߢø¢ £$!£0F£-w£.¥£*Ô£*ÿ£*¤=¤ P¤']¤$…¤<ª¤-礥4¥3N¥*‚¥­¥À¥Ó¥'ï¥3¦K¦_h¦ȦÚ¦<í¦*§*C§ n§{§9‘§˧ä§.÷§!&¨H¨d¨}¨¨ £¨­¨̨ߨTò¨G©/K©2{©'®©'Ö©þ©Kª ]ªgªzªª°—ªEH«FŽ«*Õ«'¬'(¬*P¬'{¬£¬ §¬±¬¸¬*׬x­O{­Ë­á­å­,ì­z®/”®Ä®/ᮯ !¯ .¯.;¯j¯‰¯˜¯$¬¯$ѯ ö¯9°:°RC°G–°UÞ°U4±бޱ*’±J½±i²9r²6¬²6ã²-³bH³#«³Sϳ)#´HM´–´Bµ´Pø´ IµTTµ$©µεµ¼8 éØ9¢q«|pBhËó@†thÙ#k¦œ±YÀ”ôPT¨OÔîDeŒTÏ|ûz®÷2\aЕ.Lo<¨}Õo¥Ü7•-pâÄžUx¸ÜðRÌ }/ÞO±e·¾ú¡ŠH¶v‡ÊÞƒ§ì¤˜4%J —¡ãëÎR(Yè¸KÇÍ-Ñxâõ'ëaã5< g5¯&?Q,È,X‰ Mk…"IcßòX¼yÔá´PšèjiM½°Û™¢Á[íwñˆUS³^ü“1‰Ú>· ½É×z’™G+ŠÍ\L{å‹ß…µädÉài.#Cf˜1nV>ÿõòH§ê”ýçá¹dÐÃä“Òþ²úí~mÑsC®vþÚ2‹Ý²f‚Û4=@üt`bê­A"„ÇÆ(*¤]D‘°ölîïS)Wš{rÙ‚Õ$KøÊøZc̺–ÄlŸnjGub; ›¬ñ¿7&ôwùN¿ª„À¹óÏ0¥ŒÖ!«)VIÓ/6 ŽuŸEƒ£?û3€‘9 ÿª^å*Ý à ; Æy©Ãýº[æ:$¬m‡6ì_¦ È»ž  ÖFJÓ!œ—q`Ø'¯çF –_›ùZ%’æ³Î8´rŽN©ï¶×ð ˆBW£†­g~]+ :ÁÅ=3EÅséAQ0»Ë÷¾€öÒ  The above warnings/errors are found in conversion... Please modify and use this mascot on Nokkari-Chara ver1.40 or later. If you want to install more than one mascot with a launcher menu, Congratulations!! =================== You've scceeded to convert with no errors. Please use this mascot on Nokkari-Chara ver1.40 or later. ***** %d mails are skipped ***** [Common Dir] %4d/%02d/%02d %02d:%02d:%02d --install-common-mascot (mascot): Mascot Installation to Common Dir. --install-common-menu (menu) : Menu Installation to Common Dir. --install-user-mascot (mascot) : Mascot Installation to User Dir. --install-user-menu (menu) : Menu Installation to User Dir. --message (text) : Send Message to Socket Message Receiver --message-expire (time) : Socket Message Expire Time[ms] --message-step (frame) : Stepping Interval Frame for SockeMsg --message-type-lump : Force to Set Lump Sum Balloon --message-type-step : Force to Set Stepping Balloon --sockmsg : Start MaCoPiX as Socket Message Receiver -O, --over-write : Permit to overwrite files in user dir -a, --auto-install : Set mascot auto install ON -b, --biff : Turn on the biff function -c, --common-dir : Print COMMON Directory -h, --help : Print this message -i, --ip-style (0|1|2|3) : Set interpolation style for magnification -m, --menu menu-file : Set the file for quick menu -mg --mag magnify : Set magnification percentage of mascot -na --no-auto-install : Set mascot auto install OFF -nc, --no-duet-click : Duet Animation [Click] OFF -nr, --no-duet-random : Duet Animation [Random] OFF -o, --offset offset[%%] : Set offset-value for Focus Following -r, --rcfile rc-file : Set the resource file -s, --signal : Turn on the time signal Action : [User Dir] * Mascot could fail to follow the focus with older window managers. If you already have the file with the same filename, Offset X it will be overwritten. please install using "Install Launcher Menu". !!! Common Directory - %s - does not exist. === Failed to get From/Subject list of arrived mails. === Password Port No. Shadow Offset X !!! User Directory - %s - does not exist. %20s * %2d categories -- Combined Menu -- Default expiration [ms] File in User Dir is older than the corresponded one in Common Dir. Mailer Stepping interval [frame] X[Right] [Common Directory] [User Directory] [usage] %% macopix [options] (mascot file) ================== Installed Menus ================== Cannot read the Menu File correctly!! Cannot read the Menu File correctly!! Click Delay Pattern Y[Left] Y[Right] and edit it here. macopix : Mascot Constructive Pilot for X Ver or appoint a mascot file in option in order to start MaCoPiX!## For Installation ## For Socket Message %%aRemove Default Menu from Resource Setting%%aSaved Menu as ...%%n "%s"%%aSaved Resource as ...%%n "%s"%%aSet Default Menu as ...%%n "%s"%8d%2d%4dMacopix already running in SockMsg Mode%d/%d/%d(%s)%s is not directory. %s(From is not avairable)%s%s(Subject is not avairable)%s("%s" will be translated to the sound file.)(1st "%s" : *.tar.gz file, 2nd "%s" : temp dir.)(Based on the locale environment)(Decode Error)(Invalid Character Code)([n]+1) frames waiting with a new line. (default : n=10)([n]+1) frames waiting. (default : n=1)(unknown)-- Combined Menu --1. Please select Mascot File Name to be created2. Please select an Image File Name to be used in MascotAbout This MascotAbout This ProgramAbsolute[pix]AddressAll FileAnimationAppendAppend CategoryAppend Category No.Append FrameAppend Frame No.Append MascotAppend PatternAppend Pattern No.At last, Please Input Descrption for CopyrightAutoAuto InstallAuto Mascot Install to User Dir.Auto OverwriteAuto ScalingAuto Scaling (for Compiz)BGBG onlyBack to DefaultBalloonBalloon Offset X[Left]Balloon [%]Balloon printingBar Size (Manual)BaseBiffBiff ActionBiff CheckBiff ImageBiff Image [%]BilinearBlock LoopBorderBorder WidthCancelCannot Find Image %s Cannot Find Image.Cannot Find Mascot File %s Cannot Find Mascot File.Cannot Find Menu File %s Cannot Find Menu File.Cannot Find Sound File %s Cannot Find Sound File.Cannot Load %s Cannot Load Default Balloon FontCannot Load Default Clock FontCannot Load Image %s Cannot Open %s Cannot Save Ini File!Cannot find resource file %s. Cannot open copy destination file %sCannot open copy source file %sCannot read status of directry %s . CategoryCaution : You're going to install a new launcher menu with its mascots into your user's direcroty. Caution : You're going to install a new launcher menu with mascots into the MaCoPiX common direcroty. Caution : You're going to install a new mascot into the MaCoPiX common direcroty. Caution : You're going to install a new mascot into your user's direcroty. Character CodeClearClick ActionClockClock [%]Clock on ImageCloseColorColor SelectionCommonCommon DirCommon Pix DirCommon Sound DirConfigConfig for MaCoPiXControl Characters for Balloon MessagesConvert Mascot to Nokkari-CharaConvert from Nokkari-CharaConvert to Nokkari-CharaCopy PatternCopyrightCreate New Launcher MenuCreate New MascotCreated Menu File ...%%n "%s"Created Menu File%%n "%s"Created New Mascot ...%%n "%s"Creating New Masscot...Creating User-Dir %s . Creating User-PixmapDir %s . Creating User-SoundDir %s . Creating the common directory "%s" Current DesktopCurrent system does not support translucent windows.Current system support translucent windows.DecorationDefault Font SelectionDefault OpacityDefault Opacity (Enable ONLY w/Compositing Window Managers)Default PositionDefault for BalloonDefault for ClockDeleteDelete CategoryDelete Category No.Delete FrameDelete Frame No.Delete Image No.Delete MascotDelete PatternDelete Pattern No.Digit TypeDir.Displaying the newest %d mails out of %ds.Displaying the newest %d mails out of %ds. [%d SPAMs are excluded.]Do NothingDo you want to install the mascot menu archive, "%s" to your system ["%s"]? (Files are automatically overwritten.)Do you want to overwite the newer file to User Dir?Don't ask this from the next time.Don't use SSLDrop ShadowDrop Shadow of MascotDuet AnimationEntryError : Cannot find Frame setting! [Pat%d_%d] Error : Delete Image.Error: Append Category.Error: Append Frame.Error: Append Image.Error: Append Mascot.Error: Append Pattern.Error: Copy Pattern.Error: Delete Category.Error: Delete Frame.Error: Delete Mascot.Error: Delete Pattern.Error: File cannot be loaded.Error: File cannot be opened.Error: Merge Menu.ExitExternal CommandFileFile %s already exists.File / DirectoryFile Save : Overwrite ConfirmationFile SelectFix PositionFocus FollowFont/ColorFontsetFontset SelectionFor DevelopperForce to Raise to the ForegroundForced translucent renderingForeground MappingFriFrom: of the latest mail. (only for biff message with POP)GNU tar Command [for *.tar.gz Extraction]Graphic lib. for Image Rendering (Cairo enables trancelucency w/composited desktop)HeightHome PositionHyperIgnoreIgnore Window w/o Title BarImageImage %02d is used in Pattern %02d / Frame %02d Image FileImage File : Image File NameImagesInfo.Initializing Biff...InstallInstall New Launcher Menu to User's DirectoryInstall New Launcher Menu to the Common DirectoryInstall New Mascot to User's DirectoryInstall New Mascot to the Common DirectoryInstall of the new menu file has been completed.Installed MascotInstalling %s -> %s Installing mascots [%2d/%2d]Installing mascots [%p%%]Interpolation StyleInterval[sec]LZH FileLauncherLauncher MenuLauncher Menu [Common]Launcher Menu [User]LeftLeft side of mascotLeft upper corner of the focused windowLoading default resource file... Local mboxLocal mbox / Maildir / .procmailrcLump SumMaCoPiX : Arrived mail listMaCoPiX : Consistency Check for Common & User Dir.MaCoPiX : Deletion of temporay filesMaCoPiX : Installing Mascot Menu FileMaCoPiX : Installing MascotsMaCoPiX : Launcher Menu SelectionMaCoPiX : Start Menu SelectionMaCoPiX : Starting upMaCoPiX <--> Nokkari-Chara Convert LogMaCoPiX MessageMacopix not running in SockMsg Mode Magnification[%]Mail List WindowManagement for Window w/o Title BarManualManual ScalingMark in HeaderMascotMascot ActionMascot FileMascot File : Mascot LauncherMascot MagnificationMascot NameMascot Offset for Focus FollowMascot Random ChangeMascot [%]Mascot [Common]Mascot [User]Mascot file : MaxMax Mails for POP ScanMenuMenu FileMenu File %s already exists.Menu Save : Overwrite ConfirmationMenu file : Menus and Mascots can be installed by the menu bar of this window.Merge MenuMessageMinMisc.ModeMonMoveMove to Home PositionNameNearest-NeighborNewNew line.New page after ([n]+1) frames waiting. (default : n=10)NextNo ClockNo FocusNo Menu Files are installed!!No menu files are loaded currently.No.Nokkari-Chara FileNon-Blocking SSLNoneNumber of arrived mails. (only for biff message)OKOffset for Shaped BarOffset on the Title BarOpacityOpacity (Enable ONLY w/Compositing Window Managers)Opacity Alpha[%]Opacity [%]OpenOpen Launcher MenuOpen MascotOperating InformationOption "%s" is not found. Ignoring... Or, drag & drop a mascot menu archive (*.tar.gz) directlyOverwrite?PM 2:00PM 2:00:00POP3 (APOP auth)POP3 (normal)POP3 access errorPanel ClockPanel PositionPassword : Pattern CopyPattern Copy : No.Please Change...Please Input POP PasswordPlease edit the setting for this mascotPlease install one menu file at least,Please select the image File for No.%d.Polling commandPositionPreparing for InstallationProtocolRaise with Mascot shaping (for translucent KWin)RandomRandom ChangeRelative[%]Remove Default Menu from Resource SettingRemove Mascot No.Remove from DefaultRemove the temporary direcotry?RenderingResourceResource FileResource File %s already exists.Resource Save : Overwrite ConfirmationRightRight side of mascotRight upper corner of the focused windowRounded Corner for Panel ClockSPAM exceptionSSL certificate verify failedSatSaveSave AllSave Colors for BaloonSave Colors for ClockSave Fontset for BalloonSave Fontset for ClockSave MascotSave Mascot As...Save Mascot for ReleaseSave Mascot to Other FileSave Menu to FileSave PasswordSave ResourceSave Resource to FileSave for ReleaseSaved Mascot as ...%%n "%s"Saved Menu as ...%%n "%s"Saved Resource as ...%%n "%s"Select Category No. to AppendSelect Category No. to DeleteSelect Frame No. to AppendSelect Frame No. to DeleteSelect Image No. to DeleteSelect Image for New MascotSelect Mascot FileSelect Mascot No. to Remove from the MenuSelect Menu File to MergeSelect New Image for BiffSelect New Image for No.%02dSelect New Launcher Menu File to CreateSelect New Mascot FileSelect Pattern No. to AppendSelect Pattern No. to DeleteSelect Sound FileSelect mailer commandSelect the file refered for the mail checkingSelected File Selected File cannot be opened as MaCoPiX menu. Server : %sServer InformationSet Default Menu as ...%%n "%s"Set as DefaultSetup for Release MascotShadowShadow of MascotShow Tray Icon in Task BarSit on Task BarSize/PositionSkip this verification after this.Skip to Verify on SSL CertificationSocket MessageSound CommandSound FileStart MailerStarting PointStay on Task BarSteppingSticked OutSubject: of the latest mail. (only for biff message with POP)SunSupport translucent balloon (by Cairo).Support translucent panel clock (by Cairo).Synchronize with CLICK animation Synchronize with RANDOM animationTAR+GZ FileTake precedence default opacities over mascot settingsTestTest AnimeTextText OffsetThe SSL certificate of host "%s" cannot verified by the following reason: %s Server certificate: Subject: %s Issuer: %s Do you accept this certificate?The image described in INI cannot be found.The image described in INI cannot be found. The number of categories maxes out.The number of frames maxes out.The number of images maxes out.The number of mascots maxes out.The number of patterns maxes out.ThuTilesTime SignalTitle Bar SizeTooltips on biff pixTranslucency is partly supported by Windows native graphics.Translucent support is UNKNOWN. Tray IconTueUnknownUse Cairo for Balloon rendering.Use Cairo for Mascot and Biff image rendering (Support anti-aliased outline).Use Cairo for Panel Clock rendering.Use SSL for POP3 ConnectionUse STARTTLS to start SSL sessionUse SignalUse exceptionUserUser & Common Dir Consistency CheckUser DirUser IDUser ID : %sUser Pix DirUser Sound DirVanishVanish when auto-detection failedWARNINGWarning : Too much BMP files for Nokkari-Chara! [File%d] Warning : Too much Frames for MaCoPiX! [Pattern%d] Warning : Too much Frames!! [%s=%d] Warning : Too much Line numbers for the Balloon message! [Pat%d] WedWidthWindow Manager [start-up]You can download mascot files from MaCoPiX official web.You can find a menu to create new one in the popup,You cannot delete no more categories.You cannot delete no more frames.You cannot delete no more mascots.You cannot delete the base pattern.You have %d mails (%d SPAMs). [Latest Mail] From: %s Subject: %sYou have %d mails.You have %d mails. [Latest Mail] From: %s Subject: %sYou have %d new mails.You have %d new mails. [%d SPAMs are excluded.]You have no mails.You should append new pattern to copy.cannot be opend as MaCoPiX menu. for Windowsinto this window, in order to install it.macopix COMMON DIR:%s qmail (Maildir)Project-Id-Version: macopix 1.6.2 Report-Msgid-Bugs-To: POT-Creation-Date: 2008-06-23 19:03-1000 PO-Revision-Date: 2008-05-23 19:29-1000 Last-Translator: Kurumi Chimari Language-Team: Japansese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上記ã®è­¦å‘Š/エラーãŒå¤‰æ›ä¸­ã«ç™ºè¦‹ã•れã¾ã—ãŸ... 修正ã—ãŸä¸Šã§ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ver1.40以é™ã§ãŠä½¿ã„下ã•ã„. ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ãれã«ä»˜å±žã™ã‚‹è¤‡æ•°ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’インストールã—ãŸã„å ´åˆã¯ ãŠã‚ã§ã¨ã†ã”ã–ã„ã¾ã™!! ======================== 無事ã€å¤‰æ›ã«æˆåŠŸã—ã¾ã—ãŸã€‚. ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ver1.40以é™ã§ãŠä½¿ã„下ã•ã„. ***** %d 通ã®ãƒ¡ãƒ¼ãƒ«ã‚’スキップã—ã¾ã—㟠***** [共通ディレクトリ] %4då¹´%02d月%02dæ—¥ %02d時%02d分%02dç§’ --install-common-mascot (mascot): 共通マスコットã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« --install-common-menu (menu) : 共通メニューã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« --install-user-mascot (mascot) : ユーザーマスコットã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« --install-user-menu (menu) : ユーザーメニューã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« --message (text) : ソケットメッセージモードã«ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’é€ã‚‹ --message-expire (time) : ソケットメッセージã®è¡¨ç¤ºæ™‚é–“[ms] --message-step (frame) : ステッピング表示ã®é–“éš” [フレーム数] --message-type-lump : ãƒãƒ«ãƒ¼ãƒ³ã‚’強制的ã«ä¸€æ‹¬è¡¨ç¤ºã«ã™ã‚‹ --message-type-step : ãƒãƒ«ãƒ¼ãƒ³ã‚’強制的ã«ã‚¹ãƒ†ãƒƒãƒ”ング表示ã«ã™ã‚‹ --sockmsg : ソケットメッセージモードã§èµ·å‹• -O, --over-write : ユーザーディレクトリ中ã®ãƒ•ァイルã®ä¸Šæ›¸ãè¨±å¯ -a, --auto-install : マスコットã®è‡ªå‹•インストールをON -b, --biff : Biff機能をON -c, --common-dir : 共通ディレクトリを表示 -h, --help : ã“ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’表示 -i, --ip-style (0|1|2|3) : æ‹¡å¤§ç¸®å°æ™‚ã®ç”»åƒè£œå®Œã‚¹ã‚¿ã‚¤ãƒ«ã‚’指定 -m, --menu menu-file : メニュー用ã®ãƒ•ァイルを指定 -mg --mag magnify : ãƒžã‚¹ã‚³ãƒƒãƒˆã®æ‹¡å¤§ç¸®å°çŽ‡ã‚’%%ã§æŒ‡å®š -na --no-auto-install : マスコットã®è‡ªå‹•インストールをOFF -nc, --no-duet-click : デュエットアニメ [クリック] OFF -nr, --no-duet-random : デュエットアニメ [ランダム] OFF -o, --offset offset[%%] : フォーカス追従用ã®ã‚ªãƒ•セットを指定 -r, --rcfile rc-file : 共通設定ファイルを指定 -s, --signal : 時報機能をON 動作 : [ユーザーディレクトリ] * å¤ã„ウィンドウマãƒãƒ¼ã‚¸ãƒ£ã§ã¯ãƒ•ォーカス追従ã§ããªããªã‚‹ã“ã¨ãŒã‚りã¾ã™ åŒã˜åå‰ã®ãƒ•ァイルãŒå­˜åœ¨ã™ã‚‹å ´åˆã«ã¯ オフセット X 自動的ã«ä¸Šæ›¸ãã•れã¾ã™ã®ã§ã”注æ„ãã ã•ã„。 『ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã€ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã®æ–¹ã‚’実行ã—ã¦ä¸‹ã•ã„。 !!! 共通ディレクトリ - %s - ãŒå­˜åœ¨ã—ã¾ã›ã‚“. === ç€ä¿¡ãƒ¡ãƒ¼ãƒ«ã® From/Subject リストã®å–å¾—ã«å¤±æ•—ã—ã¾ã—ãŸã€‚ === パスワード ãƒãƒ¼ãƒˆç•ªå· å½±ã®ã‚ªãƒ•セット X !!! ユーザーディレクトリ - %s - ãŒå­˜åœ¨ã—ã¾ã›ã‚“. %20s * %2d categories -- 複åˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ -- ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ¶ˆæ»…時間[ms] ユーザーファイルãŒå…±é€šãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå†…ã®ãƒ•ァイルよりå¤ããªã£ã¦ã„ã¾ã™. メーラー起動コマンド ステップ間隔 [フレーム] X[å³] [共通ディレクトリ] [ユーザーディレクトリ] [使用法] %% macopix [オプション] (マスコットファイル) ================== インストール済 メニュー ================== ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ­£å¸¸ã«é–‹ã‘ã¾ã›ã‚“!! ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ­£å¸¸ã«é–‹ã‘ã¾ã›ã‚“!! クリック é…å»¶ パターン Y[å·¦]Y[å³] ã“ã“ã§ç·¨é›†ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ macopix : Mascot Constructive Pilot for X ãƒãƒ¼ã‚¸ãƒ§ãƒ³ ã‚‚ã—ãã¯ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã§æŒ‡å®šã—ã¦ã‹ã‚‰MaCoPiXã‚’èµ·å‹•ã—ã¦ä¸‹ã•ã„!## インストール用オプション ## ソケットメッセージ用オプション %%a共通設定ã‹ã‚‰ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®æŒ‡å®šã‚’消去ã—ã¾ã—ãŸ.%%aメニューをä¿å­˜ã—ã¾ã—ãŸ.%%n "%s"%%a共通設定をä¿å­˜ã—ã¾ã—ãŸ.%%n "%s"%%aデフォルトメニューを設定ã—ã¾ã—ãŸ.%%n "%s"%8d%2d%4dã™ã§ã«ã‚½ã‚±ãƒƒãƒˆãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãƒ¢ãƒ¼ãƒ‰ã§MaCoPiXãŒèµ·å‹•ã—ã¦ã„ã¾ã™.%då¹´%d月%dæ—¥(%s)%s ã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã§ã¯ã‚りã¾ã›ã‚“ %s(差出人ãŒå–å¾—ã§ãã¾ã›ã‚“ã§ã—ãŸ)%s%s(ä»¶åãŒå–å¾—ã§ãã¾ã›ã‚“ã§ã—ãŸ)%s("%s"ã¯éŸ³å£°ãƒ•ァイルã«ç½®æ›ã•れã¾ã™)(1st "%s" : *.tar.gz ファイル, 2nd"%s" : 一時ディレクトリ)(ãƒ­ã‚±ãƒ¼ãƒ«è¨­å®šã«æº–æ‹ )(デコードエラー)(䏿­£ãªæ–‡å­—コード)([n+1])フレームã®ã‚¦ã‚§ã‚¤ãƒˆå¾Œã«æ”¹è¡Œ. (デフォルト n=10)([n]+1)フレームã®ã‚¦ã‚§ã‚¤ãƒˆ. (デフォルト n=1)(䏿˜Ž)-- 複åˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ --1. 作æˆã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’é¸æŠžã—ã¦ãã ã•ã„。2. æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆç”¨ã®ç”»åƒãƒ•ァイルを一ã¤é¸æŠžã—ã¦ãã ã•ã„。ã“ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã«ã¤ã„ã¦ã“ã®ãƒ—ログラムã«ã¤ã„ã¦çµ¶å¯¾å€¤[pix]アドレスã™ã¹ã¦ã®ãƒ•ァイルアニメ追加カテゴリー追加追加ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ãƒ•レーム追加追加ã™ã‚‹ãƒ•レーム番å·ãƒžã‚¹ã‚³ãƒƒãƒˆè¿½åŠ ãƒ‘ã‚¿ãƒ¼ãƒ³è¿½åŠ è¿½åŠ ã™ã‚‹ãƒ‘ã‚¿ãƒ¼ãƒ³ç•ªå·æœ€å¾Œã«ãƒžã‚¹ã‚³ãƒƒãƒˆã®è‘—作記述を入力ã—ã¦ãã ã•ã„。自動自動インストールマスコットã®ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®è‡ªå‹•インストール自動上書ã自動測定自動測定 (Compiz使用時)背景背景ã®ã¿ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã«æˆ»ã™ãµãã ã—ãµãã ã—オフセット X[å·¦]ãµãã ã— [%]ãµãã ã—ã®è¡¨ç¤ºãƒãƒ¼ã‚µã‚¤ã‚º(手動)基底メールç€ä¿¡ãƒ¡ãƒ¼ãƒ«ç€ä¿¡æ™‚動作メールç€ä¿¡ãƒã‚§ãƒƒã‚¯ãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒ [%]ãƒã‚¤ãƒªãƒ‹ã‚¢ãƒ–ロック・ループ境界境界幅嫌ã§ã™ç”»åƒãƒ•ァイル %s ãŒã‚りã¾ã›ã‚“ ç”»åƒãƒ•ァイルãŒã‚りã¾ã›ã‚“マスコットファイル %s ãŒã‚りã¾ã›ã‚“ マスコットファイルãŒã‚りã¾ã›ã‚“メニューファイル %s ãŒã‚りã¾ã›ã‚“ メニューファイルãŒã‚りã¾ã›ã‚“音声ファイルãŒã‚りã¾ã›ã‚“ %s 音声ファイルãŒã‚りã¾ã›ã‚“ç”»åƒ %s をロードã§ãã¾ã›ã‚“ デフォルトã®ãƒãƒ«ãƒ¼ãƒ³ç”¨ãƒ•ォントをロードã§ãã¾ã›ã‚“ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ™‚計用フォントをロードã§ãã¾ã›ã‚“ç”»åƒ %s をロードã§ãã¾ã›ã‚“ ファイル %s ã‚’é–‹ã‘ã¾ã›ã‚“ IniファイルãŒã‚»ãƒ¼ãƒ–ã§ãã¾ã›ã‚“!共通設定ファイル %s ãŒã‚りã¾ã›ã‚“ コピー先 %s ã‚’é–‹ãã“ã¨ãŒã§ãã¾ã›ã‚“コピー元 %s ã‚’é–‹ãã“ã¨ãŒã§ãã¾ã›ã‚“ディレクトリ %s ã®ã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹ãŒèª­ã‚ã¾ã›ã‚“ ã‚«ãƒ†ã‚´ãƒªãƒ¼æ³¨æ„ : æ–°è¦ã®ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ä»˜å±žã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ユーザーディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚ æ³¨æ„ : æ–°è¦ã®ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ä»˜å±žã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’MaCoPiX共通ディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚ æ³¨æ„ : æ–°è¦ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’MaCoPiX共通ディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚ æ³¨æ„ : æ–°è¦ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ユーザーディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚ 文字コードクリアクリック動作時計時計 [%]マスコット上ã«ç›´æŽ¥æç”»é–‰ã˜ã‚‹ã‚«ãƒ©ãƒ¼ã‚«ãƒ©ãƒ¼é¸æŠžå…±é€šå…±é€šãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå…±é€šç”»åƒãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå…±é€šéŸ³å£°ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªè¨­å®šMaCoPiXã®è¨­å®šãµãã ã—メッセージ用ã®åˆ¶å¾¡æ–‡å­—ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã«å¤‰æ›ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã‹ã‚‰å¤‰æ›ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã«å¤‰æ›ãƒ‘ターンコピー著作権表示ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆãƒžã‚¹ã‚³ãƒƒãƒˆä½œæˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルを作æˆã—ã¾ã—ãŸ.%%n "%s"メニューファイルを作æˆã—ã¾ã—ãŸ.%%n "%s"æ–°ã—ã„マスコットを作æˆã—ã¾ã—ãŸ.%%n "%s"æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’作æˆã—ã¾ã™...ユーザーディレクトリを作æˆä¸­...%s ãƒ¦ãƒ¼ã‚¶ãƒ¼ç”»åƒæ ¼ç´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’作æˆä¸­...%s ユーザー音声格ç´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’作æˆä¸­...%s 共通ディレクトリ "%s" を作æˆã—ã¦ã„ã¾ã™... ç¾åœ¨ã®ãƒ‡ã‚¹ã‚¯ãƒˆãƒƒãƒ—ç¾åœ¨ã®ã‚·ã‚¹ãƒ†ãƒ ã¯åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã›ã‚“。ç¾åœ¨ã®ã‚·ã‚¹ãƒ†ãƒ ã¯åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚è£…é£¾ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ•ã‚©ãƒ³ãƒˆé¸æŠžãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®ä¸é€æ˜Žåº¦ãƒ‡ãƒ•ォルトã®ä¸é€æ˜Žåº¦ (åŠé€æ˜Žå¯¾å¿œã—ãŸã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ã§ã®ã¿æœ‰åй)デフォルトä½ç½®ãµãã ã—ã®ãƒ‡ãƒ•ォルト時計ã®ãƒ‡ãƒ•ォルト削除カテゴリー削除削除ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ãƒ•レーム削除削除ã™ã‚‹ãƒ•レーム番å·å‰Šé™¤ã™ã‚‹ç”»åƒç•ªå·ãƒžã‚¹ã‚³ãƒƒãƒˆå‰Šé™¤ãƒ‘ターン削除削除ã™ã‚‹ãƒ‘ã‚¿ãƒ¼ãƒ³ç•ªå·æ™‚計ã®è¡¨è¨˜å ´æ‰€æœ€æ–°%d通ã®ãƒ¡ãƒ¼ãƒ«ã‚’表示ã—ã¦ã„ã¾ã™(未読ã¯å…¨%d通)。最新%d通ã®ãƒ¡ãƒ¼ãƒ«ã‚’表示ã—ã¦ã„ã¾ã™(未読ã¯å…¨%d通)。 [%d通をSPAMã¨ã—ã¦é™¤å¤–]何もã—ãªã„マスコットメニューアーカイブ, "%s" ã®å†…容をãŠä½¿ã„ã®ç’°å¢ƒ["%s"]ã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã‹? (ファイルã¯è‡ªå‹•çš„ã«ä¸Šæ›¸ãã•れã¾ã™)ユーザーファイルを上書ãã—ã¾ã™ã‹?次回ã‹ã‚‰ã“ã®è³ªå•ã‚’ã—ãªã„.SSLを使用ã—ãªã„影をã¤ã‘るマスコットã«å½±ã‚’ã¤ã‘るデュエットアニメエントリエラー : フレーム設定ãŒã¿ã¤ã‹ã‚Šã¾ã›ã‚“! [Pat%d_%d] エラー : ç”»åƒå‰Šé™¤ã‚¨ãƒ©ãƒ¼: カテゴリー追加エラー: フレーム追加エラー : ç”»åƒå‰Šé™¤ã‚¨ãƒ©ãƒ¼: マスコット追加エラー: パターン追加エラー: パターンコピーエラー: カテゴリー削除エラー : フレーム削除エラー: マスコット削除エラー: パターン削除エラー : ファイルãŒãƒ­ãƒ¼ãƒ‰ã§ãã¾ã›ã‚“。エラー: ファイルを開ã‘ã¾ã›ã‚“。エラー: メニューã®å–り込ã¿çµ‚了外部コマンドファイルファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚ファイル/ディレクトリファイルä¿å­˜ : 上書ã確èªãƒ•ã‚¡ã‚¤ãƒ«é¸æŠžä½ç½®å›ºå®šãƒ•ォーカス追従フォント/è‰²ãƒ•ã‚©ãƒ³ãƒˆã‚»ãƒƒãƒˆãƒ•ã‚©ãƒ³ãƒˆã‚»ãƒƒãƒˆé¸æŠžé–‹ç™ºè€…ç”¨å¼·åˆ¶çš„ã«æœ€å‰é¢ã«è¡¨ç¤ºã™ã‚‹(ãƒãƒ©ãƒ„ã‚­ç­‰ã«æ³¨æ„)強制的ã«åŠé€æ˜Žæç”»ã•ã›ã‚‹æœ€å‰é¢è¡¨ç¤ºé‡‘最新メイルã®From:. (POP利用時ã®ãƒ¡ã‚¤ãƒ«ç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)GNU tar コマンド [*.tar.gz 解å‡ç”¨]æç”»ç”¨ãƒ©ã‚¤ãƒ–ラリ (Cairoを使用ã™ã‚‹ã¨å¯¾å¿œç’°å¢ƒã§åŠé€æ˜Žè¡¨ç¤ºãŒã§ãã¾ã™)高ã•ホームãƒã‚¸ã‚·ãƒ§ãƒ³ãƒã‚¤ãƒ‘ー無視ã™ã‚‹ã‚¿ã‚¤ãƒˆãƒ«ãƒãƒ¼ã®ãªã„ウィンドウã«ã¯åº§ã‚‰ãªã„ç”»åƒç”»åƒ %02d 番㯠パターン %02d / フレーム %02dã§ä½¿ç”¨ã•れã¦ã„ã¾ã™ ç”»åƒãƒ•ァイル画åƒãƒ•ァイル : ç”»åƒãƒ•ァイルåç”»åƒæƒ…å ±Biffã‚’åˆæœŸåŒ–中...インストールユーザーディレクトリã¸ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«å…±é€šãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«å…±é€šãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«æ–°ã—ã„メニューファイルã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãŒå®Œäº†ã—ã¾ã—ãŸã€‚インストール済ã¿ãƒžã‚¹ã‚³ãƒƒãƒˆã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ä¸­ %s -> %s マスコットをインストール中 [%2d/%2d]マスコットをインストール中 [%p%%]補完方法更新間隔[ç§’]LZHファイルランãƒãƒ£ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [共通]ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [ユーザー]å·¦å´ãƒžã‚¹ã‚³ãƒƒãƒˆã®å·¦å´ãƒ•ォーカスウィンドウã®å·¦ä¸Šç«¯ãƒ‡ãƒ•ォルトã®å…±é€šè¨­å®šã‚’ロードã—ã¾ã™... ローカル mboxローカル mbox / Maildir / .procmailrc一括表示MaCoPiX : ç€ä¿¡ãƒ¡ãƒ¼ãƒ«ãƒªã‚¹ãƒˆMaCoPiX : 共通/ユーザーDirã®æ•´åˆæ€§ãƒã‚§ãƒƒã‚¯MaCoPiX : テンãƒãƒ©ãƒªãƒ•ã‚¡ã‚¤ãƒ«ã®æ¶ˆåŽ»MaCoPiX : マスコットメニューファイルをインストールMaCoPiX : マスコットをインストールMaCoPiX : ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼é¸æŠžMaCoPiX : èµ·å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼é¸æŠžMaCoPiX : 起動中MaCoPiX <--> ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ© 変æ›ãƒ­ã‚°MaCoPiX メッセージMaCoPiXãŒã‚½ã‚±ãƒƒãƒˆãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãƒ¢ãƒ¼ãƒ‰ã§èµ·å‹•ã—ã¦ã„ã¾ã›ã‚“. 拡大率[%]メールリスト表示ウィンドウタイトルãƒãƒ¼ã®ãªã„ウィンドウã®å–扱ã„マニュアルã§ãƒã‚§ãƒƒã‚¯ãƒžãƒ‹ãƒ¥ã‚¢ãƒ«ã§è¨­å®šãƒ˜ãƒƒãƒ€å†…ã®ãƒžãƒ¼ã‚¯ãƒžã‚¹ã‚³ãƒƒãƒˆãƒžã‚¹ã‚³ãƒƒãƒˆã®å‹•作マスコットファイルマスコットファイル : マスコットランãƒãƒ£ãƒžã‚¹ã‚³ãƒƒãƒˆã®æ‹¡å¤§ç¸®å°ãƒžã‚¹ã‚³ãƒƒãƒˆåフォーカス追従用マスコット表示オフセットマスコットをランダム変更マスコット [%]マスコット [共通]マスコット [ユーザー]マスコットファイル : 最大最大スキャン件数(POP)メニューメニューファイルメニューファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚メニューä¿å­˜ : 上書ã確èªãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイル : メニューã¨ãƒžã‚¹ã‚³ãƒƒãƒˆã¯ã“ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒãƒ¼ã‹ã‚‰ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã§ãã¾ã™ã€‚メニューã®å–り込ã¿ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸æœ€å°ãã®ä»–モード月移動ホームãƒã‚¸ã‚·ãƒ§ãƒ³ã¸ç§»å‹•マスコットåニアレストãƒã‚¤ãƒãƒ¼æ–°è¦ä½œæˆæ”¹è¡Œ.([n]+1)フレームã®ã‚¦ã‚§ã‚¤ãƒˆå¾Œã«æ”¹ãƒšãƒ¼ã‚¸. (デフォルト n=10)次時計を使用ã—ãªã„フォーカス無メニューファイルãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•れã¦ã„ã¾ã›ã‚“!!ç¾åœ¨ã€ãƒ©ãƒ³ãƒãƒ£ç”¨ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルãŒãƒ­ãƒ¼ãƒ‰ã•れã¦ã„ã¾ã›ã‚“。番å·ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ãƒ•ァイルéžãƒ–ロッキングSSL使用ã—ãªã„ç€ä¿¡ãƒ¡ã‚¤ãƒ«æ•°. (メイルç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)了承éžçŸ©å½¢ãƒãƒ¼ç”¨ã‚ªãƒ•セットタイトルãƒãƒ¼ä¸Šã§ã®ã‚ªãƒ•セットä¸é€æ˜Žåº¦ä¸é€æ˜Žåº¦ (åŠé€æ˜Žå¯¾å¿œã—ãŸã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ã§ã®ã¿æœ‰åй)ä¸é€æ˜Žåº¦ α値[%]ä¸é€æ˜Žåº¦ α値[%]é–‹ãランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’é–‹ããƒžã‚¹ã‚³ãƒƒãƒˆé¸æŠžå‹•ä½œã«é–¢ã™ã‚‹æƒ…報オプション "%s" ã¯ã‚りã¾ã›ã‚“。無視ã•れã¾ã™... ã‚‚ã—ãã¯ã€ã“ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã«ç›´æŽ¥ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–(*.tar.gz)をドラッグ&ドロップ上書ãã—ã¾ã™ã‹?åˆå¾Œ 2:00åˆå¾Œ 2:00:00POP3 (APOPèªè¨¼)POP3 (通常)POP3アクセスエラーã§ã™ãƒ‘ãƒãƒ«æ™‚計パãƒãƒ«ä½ç½®ãƒ‘スワード : パターンコピーパターンをコピーã—ã¾ã™ : No.設定変更をã—ã¦ãã ã•ã„...POP用ã®ãƒ‘スワードを入力ã—ã¦ãã ã•ã„リリースã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã®è¨­å®šã‚’入力ã—ã¦ãã ã•ã„æœ€ä½Žä¸€å€‹ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’インストールã™ã‚‹ã‹ã€%02d番ã®ç”»åƒã‚’指定ã—ã¦ãã ã•ã„。ãƒãƒ¼ãƒªãƒ³ã‚°ã‚³ãƒžãƒ³ãƒ‰ä½ç½®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã®æº–備中プロトコルマスコットã®å¤‰å½¢æ™‚ã«æœ€å‰é¢ã«è¡¨ç¤ºã™ã‚‹ (KWinã®åŠé€æ˜Žè¡¨ç¤ºå¯¾ç­–)ãƒ©ãƒ³ãƒ€ãƒ ãƒ©ãƒ³ãƒ€ãƒ é¸æŠžç›¸å¯¾å€¤[%]共通設定ã‹ã‚‰ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®æŒ‡å®šã‚’消去ã—ã¾ã—ãŸ.削除ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆç•ªå·ãƒ‡ãƒ•ォルトを削除テンãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’消去ã—ã¾ã™ã‹?æç”»å…±é€šè¨­å®šå…±é€šè¨­å®šãƒ•ァイル共通設定ファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚共通設定ä¿å­˜ : 上書ã確èªå³å´ãƒžã‚¹ã‚³ãƒƒãƒˆã®å³å´ãƒ•ォーカスウィンドウã®å³ä¸Šç«¯ãƒ‘ãƒãƒ«æ™‚計ã®è§’を丸ãã™ã‚‹SPAMã®é™¤å¤–SSL証明書を検証ã§ãã¾ã›ã‚“土ä¿å­˜ã™ã¹ã¦ä¿å­˜ãµãã ã—用é…色ã®ä¿å­˜æ™‚計用é…色ã®ä¿å­˜ãµãã ã—用フォントセットã®ä¿å­˜æ™‚計用フォントセットã®ä¿å­˜ãƒžã‚¹ã‚³ãƒƒãƒˆä¿å­˜ãƒžã‚¹ã‚³ãƒƒãƒˆåã‚’é¸æŠžã—ã¦ä¿å­˜ãƒªãƒªãƒ¼ã‚¹ç”¨ã«ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ä¿å­˜åˆ¥åã§ãƒžã‚¹ã‚³ãƒƒãƒˆä¿å­˜ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’ä¿å­˜ãƒ‘スワードã®ä¿å­˜å…±é€šè¨­å®šä¿å­˜å…±é€šè¨­å®šã‚’ä¿å­˜ãƒªãƒªãƒ¼ã‚¹ç”¨ãƒžã‚¹ã‚³ãƒƒãƒˆä¿å­˜ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ä¿å­˜ã—ã¾ã—ãŸ.%%n "%s"メニューをä¿å­˜ã—ã¾ã—ãŸ.%%n "%s"共通設定をä¿å­˜ã—ã¾ã—ãŸ. %%n "%s"追加ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ã®é¸æŠžå‰Šé™¤ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ã®é¸æŠžãƒ•レーム追加フレーム削除画åƒå‰Šé™¤æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆç”¨ç”»åƒã‚’é¸æŠžãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã®é¸æŠžãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‹ã‚‰å‰Šé™¤ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆç•ªå·ã®é¸æŠžå–り込むメニューファイルã®é¸æŠžãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒã‚’é¸æŠž%02d番ã®ç”»åƒã‚’é¸æŠžæ–°è¦ä½œæˆã™ã‚‹ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルã®é¸æŠžæ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ァイルã®é¸æŠžãƒ‘ターン追加パターン削除音声ファイルã®é¸æŠžãƒ¡ãƒ¼ãƒ©ãƒ¼èµ·å‹•コマンドã®é¸æŠžãƒ¡ãƒ¼ãƒ«ãƒã‚§ãƒƒã‚¯å‚照用ファイルã®é¸æŠžé¸æŠžã•れãŸãƒ•ァイル é¸æŠžã•れãŸãƒ•ァイルã¯MaCoPiXã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ã—ã¦é–‹ãã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“。 サーãƒãƒ¼ : %sサーãƒãƒ¼æƒ…報デフォルトメニューを設定ã—ã¾ã—ãŸ.%%n "%s"デフォルトã«è¨­å®šãƒªãƒªãƒ¼ã‚¹ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã®è¨­å®šã‚·ãƒ£ãƒ‰ã‚¦ãƒžã‚¹ã‚³ãƒƒãƒˆã®å½±ã‚¿ã‚¹ã‚¯ãƒãƒ¼å†…ã«ãƒˆãƒ¬ã‚¤ã‚¢ã‚¤ã‚³ãƒ³ã‚’表示ã™ã‚‹ã‚¿ã‚¹ã‚¯ãƒãƒ¼ã«åº§ã‚‹ä½ç½®ãƒ»ã‚µã‚¤ã‚ºã“ã®ç¢ºèªã‚’次回以é™ã‚¹ã‚­ãƒƒãƒ—ã™ã‚‹.SSL検証ã®ç¢ºèªã‚’スキップソケットメッセージ音声å†ç”Ÿã‚³ãƒžãƒ³ãƒ‰éŸ³å£°ãƒ•ァイルメーラー起動基準点タスクãƒãƒ¼ã«å¸¸é§ã™ã‚‹ã‚¹ãƒ†ãƒƒãƒ—表示画é¢ã¯ã¿ã ã—最新メイルã®Subject:. (POP利用時ã®ãƒ¡ã‚¤ãƒ«ç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)æ—¥ãµãã ã—ã®åŠé€æ˜Žå¯¾å¿œ (Cairoを使用)パãƒãƒ«æ™‚計ã®åŠé€æ˜Žå¯¾å¿œ (Cairoを使用)クリックアニメã«åŒæœŸã•ã›ã‚‹ãƒ©ãƒ³ãƒ€ãƒ ã‚¢ãƒ‹ãƒ¡ã«åŒæœŸã•ã›ã‚‹TAR+GZファイルデフォルトã®ä¸é€æ˜Žåº¦ã‚’マスコットã®è¨­å®šã«å„ªå…ˆã•ã›ã‚‹ãƒ†ã‚¹ãƒˆã‚¢ãƒ‹ãƒ¡ãƒ†ã‚¹ãƒˆæ–‡å­—文字オフセットホスト "%s" ã®SSL証明書を以下ã®ç†ç”±ã§æ¤œè¨¼ã§ãã¾ã›ã‚“: %s サーãƒãƒ¼è¨¼æ˜Žæ›¸: 所有者: %s 発行者: %s ã“ã®è¨¼æ˜Žæ›¸ã‚’å—ã‘入れã¾ã™ã‹?INIãƒ•ã‚¡ã‚¤ãƒ«ä¸­ã§æŒ‡å®šã•れãŸç”»åƒãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。INIãƒ•ã‚¡ã‚¤ãƒ«ä¸­ã§æŒ‡å®šã•れãŸç”»åƒãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。 ç™»éŒ²ã‚«ãƒ†ã‚´ãƒªãƒ¼æ•°ãŒæœ€å¤§ã§ã™ã€‚ç™»éŒ²ãƒ•ãƒ¬ãƒ¼ãƒ æ•°ãŒæœ€å¤§ã§ã™ã€‚ç™»éŒ²ã‚¤ãƒ¡ãƒ¼ã‚¸æ•°ãŒæœ€å¤§ã§ã™ã€‚ç™»éŒ²ãƒžã‚¹ã‚³ãƒƒãƒˆæ•°ãŒæœ€å¤§ã§ã™ã€‚ç™»éŒ²ãƒ‘ã‚¿ãƒ¼ãƒ³æ•°ãŒæœ€å¤§ã§ã™ã€‚木タイル時報タイトルãƒãƒ¼ã®ã‚µã‚¤ã‚ºç€ä¿¡ç”»åƒä¸Šã®ãƒ„ールãƒãƒƒãƒ—表示ウィンドウズãƒã‚¤ãƒ†ã‚£ãƒ–ã®æç”»æ©Ÿèƒ½ã«ã‚ˆã£ã¦éƒ¨åˆ†çš„ã«åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚åŠé€æ˜Žè¡¨ç¤ºã®ã‚µãƒãƒ¼ãƒˆã®æœ‰ç„¡ã‚’検出ã§ãã¾ã›ã‚“ã§ã—ãŸã€‚ トレイアイコンç«ä¸æ˜Žãµãã ã—ã®æç”»ã«Cairoを使用ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã¨ãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒã®æç”»ã«Cairoを使用ã™ã‚‹ (アンãƒã‚¨ã‚¤ãƒªã‚¢ã‚¹ãªè¼ªéƒ­è¡¨ç¤ºã«å¯¾å¿œ)パãƒãƒ«æ™‚è¨ˆã®æç”»ã«Cairoを使用ã™ã‚‹POP3ã®æŽ¥ç¶šã«SSLを使用SSLセッションã®é–‹å§‹ã«STARTTLSを使用時報ã®ä½¿ç”¨é™¤å¤–ã™ã‚‹ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ¦ãƒ¼ã‚¶ãƒ¼/共通Dirã®æ•´åˆæ€§ãƒã‚§ãƒƒã‚¯ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ¦ãƒ¼ã‚¶ãƒ¼IDユーザーID : %sユーザー画åƒãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ¦ãƒ¼ã‚¶ãƒ¼éŸ³å£°ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªæ¶ˆãˆã‚‹è‡ªå‹•検出ã«å¤±æ•—ã—ãŸã¨ãã¯ç”»é¢ã‹ã‚‰æ¶ˆãˆã‚‹è­¦ 告警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§BMPç”»åƒæ•°ã‚’è¶…ãˆã¦ã„ã¾ã™ [File%d] 警告 : MaCoPiXã®æœ€å¤§ãƒ•レーム数を超ãˆã¦ã„ã¾ã™! [Pat%d] 警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§ãƒ•レーム数を超ãˆã¦ã„ã¾ã™! [%s=%d] 警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§ã‚»ãƒªãƒ•行数を超ãˆã¦ã„ã¾ã™! [Pat%d] 水幅起動時ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ãƒžã‚¹ã‚³ãƒƒãƒˆã¯MaCoPiXå…¬å¼ã‚µã‚¤ãƒˆã§ãƒ€ã‚¦ãƒ³ãƒ­ãƒ¼ãƒ‰ã§ãã¾ã™.ãƒãƒƒãƒ—アップメニュー中ã‹ã‚‰æ–°ã—ã„ランãƒãƒ£ç”¨ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルを作æˆã§ãã€ã“れ以上カテゴリーã®å‰Šé™¤ã¯ã§ãã¾ã›ã‚“。ã“れ以上フレームã®å‰Šé™¤ã¯ã§ãã¾ã›ã‚“。ã“れ以上マスコットを削除ã§ãã¾ã›ã‚“。基底パターンã¯å‰Šé™¤ã§ãã¾ã›ã‚“。%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™(å« SPAM%d通)。 [最新メール] 差出人: %s ä»¶å: %s%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚ [最新メール] 差出人: %s ä»¶å: %s%dé€šã®æœªèª­ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚%dé€šã®æœªèª­ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚ [%d通をSPAMã¨ã—ã¦é™¤å¤–]メールã¯ã‚りã¾ã›ã‚“。コピーã™ã‚‹ãƒ‘ターンを新è¦ã«è¿½åŠ ã—ã¦ãã ã•ã„。ã¯MaCoPiXã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルã¨ã—ã¦é–‹ãã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“。 Windows用ã™ã‚‹ã“ã¨ã«ã‚ˆã£ã¦ã€ãれをインストールã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚macopix 共通ディレクトリ:%s qmail (Maildirå½¢å¼)macopix-1.7.4/po/Makefile.in.in0000644000076400007640000001641710236371010013206 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ libdir = @libdir@ localedir = $(libdir)/locale gnulocaledir = $(datadir)/locale gettextsrcdir = $(datadir)/glib-2.0/gettext/po subdir = po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -c -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -c --statistics -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && $(GENCAT) $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(GETTEXT_PACKAGE).po \ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ fi @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ case "$$cat" in \ *.gmo) destdir=$(gnulocaledir);; \ *) destdir=$(localedir);; \ esac; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $$dir; \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ fi; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ fi; \ if test -r $$cat.m; then \ $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ if test -r $(srcdir)/$$cat.m ; then \ $(INSTALL_DATA) $(srcdir)/$$cat.m \ $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ true; \ fi; \ fi; \ done if test "$(PACKAGE)" = "glib"; then \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ done if test "$(PACKAGE)" = "glib"; then \ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ fi check: all dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(GMOFILES) distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ cd $(srcdir); \ catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done # POTFILES is created from POTFILES.in by stripping comments, empty lines # and Intltool tags (enclosed in square brackets), and appending a full # relative path to them POTFILES: POTFILES.in ( if test 'x$(srcdir)' != 'x.'; then \ posrcprefix='$(top_srcdir)/'; \ else \ posrcprefix="../"; \ fi; \ rm -f $@-t $@ \ && (sed -e '/^#/d' \ -e "s/^\[.*\] +//" \ -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: macopix-1.7.4/po/ChangeLog0000644000076400007640000000067610207032244012307 000000000000002005-02-22 gettextize * Makefile.in.in: Upgrade to gettext-0.14.1. * en@boldquot.header: New file, from gettext-0.14.1. * en@quot.header: New file, from gettext-0.14.1. 2005-02-21 gettextize * Makefile.in.in: Upgrade to gettext-0.14.1. * Rules-quot: Upgrade to gettext-0.14.1. * en@boldquot.header: New file, from gettext-0.14.1. * en@quot.header: New file, from gettext-0.14.1. macopix-1.7.4/po/macopix.pot0000664000076400007640000013362211030100027012707 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-06-23 19:03-1000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:430 msgid "Cannot Find Menu File." msgstr "" #: src/main.c:435 #, c-format msgid "Cannot Find Menu File %s\n" msgstr "" #: src/main.c:464 src/main.c:506 src/main.c:2109 src/main.c:2152 #: src/main.c:2904 src/main.c:3021 src/main.c:3308 src/main.c:3327 #: src/main.c:3335 src/main.c:3464 src/gui.c:1137 src/gui.c:1141 #: src/gui.c:7827 #, c-format msgid "Installing %s -> %s\n" msgstr "" #: src/main.c:537 src/main.c:540 msgid "Preparing for Installation" msgstr "" #: src/main.c:556 src/main.c:603 msgid " Cannot read the Menu File correctly!!" msgstr "" #: src/main.c:559 src/main.c:606 msgid " Cannot read the Menu File correctly!!\n" msgstr "" #: src/main.c:591 src/main.c:842 src/main.c:917 src/main.c:2185 #: src/main.c:2511 src/main.c:2642 src/main.c:2672 src/main.c:3538 msgid "(Invalid Character Code)" msgstr "" #: src/main.c:636 #, c-format msgid "Installing mascots [%2d/%2d]" msgstr "" #: src/main.c:642 #, c-format msgid "Installing mascots [%p%%]" msgstr "" #: src/main.c:701 msgid " ================== Installed Menus ================== \n" msgstr "" #: src/main.c:718 #, c-format msgid " !!! Common Directory - %s - does not exist.\n" msgstr "" #: src/main.c:723 msgid " [Common Directory]\n" msgstr "" #: src/main.c:737 src/main.c:787 #, c-format msgid " %20s * %2d categories -- Combined Menu --\n" msgstr "" #: src/main.c:741 src/main.c:791 #, c-format msgid " %20s : %2d mascots [%s]\n" msgstr "" #: src/main.c:768 #, c-format msgid " !!! User Directory - %s - does not exist.\n" msgstr "" #: src/main.c:773 msgid " [User Directory]\n" msgstr "" #: src/main.c:1004 #, c-format msgid "Creating User-Dir %s .\n" msgstr "" #: src/main.c:1018 #, c-format msgid "Creating User-PixmapDir %s .\n" msgstr "" #: src/main.c:1032 #, c-format msgid "Creating User-SoundDir %s .\n" msgstr "" #: src/main.c:2072 src/main.c:2872 src/main.c:3094 msgid "Cannot Find Mascot File." msgstr "" #: src/main.c:2077 src/main.c:2877 src/main.c:3099 src/nokkari.c:483 #, c-format msgid "Cannot Find Mascot File %s\n" msgstr "" #: src/main.c:2989 src/main.c:3275 msgid "Cannot Find Image." msgstr "" #: src/main.c:2994 src/main.c:3280 #, c-format msgid "Cannot Find Image %s\n" msgstr "" #: src/main.c:3431 msgid "Cannot Find Sound File." msgstr "" #: src/main.c:3436 #, c-format msgid "Cannot Find Sound File %s\n" msgstr "" #: src/main.c:3496 #, c-format msgid "Cannot find resource file %s.\n" msgstr "" #: src/main.c:3497 msgid "Loading default resource file...\n" msgstr "" #: src/main.c:4516 src/main.c:4549 src/main.c:4656 #, c-format msgid "Option \"%s\" is not found. Ignoring...\n" msgstr "" #: src/main.c:4708 #, c-format msgid "macopix COMMON DIR:%s\n" msgstr "" #: src/main.c:4719 msgid " macopix : Mascot Constructive Pilot for X Ver" msgstr "" #: src/main.c:4720 #, c-format msgid " [usage] %% macopix [options] (mascot file)\n" msgstr "" #: src/main.c:4721 msgid " -h, --help : Print this message\n" msgstr "" #: src/main.c:4723 msgid " -c, --common-dir : Print COMMON Directory\n" msgstr "" #: src/main.c:4726 msgid " -b, --biff : Turn on the biff function\n" msgstr "" #: src/main.c:4728 msgid " -s, --signal : Turn on the time signal\n" msgstr "" #: src/main.c:4729 #, c-format msgid " -o, --offset offset[%%] : Set offset-value for Focus Following\n" msgstr "" #: src/main.c:4730 msgid " -r, --rcfile rc-file : Set the resource file\n" msgstr "" #: src/main.c:4731 msgid " -m, --menu menu-file : Set the file for quick menu\n" msgstr "" #: src/main.c:4732 msgid "" " -mg --mag magnify : Set magnification percentage of mascot\n" msgstr "" #: src/main.c:4733 msgid "" " -i, --ip-style (0|1|2|3) : Set interpolation style for magnification\n" msgstr "" #: src/main.c:4734 msgid "## For Installation\n" msgstr "" #: src/main.c:4735 msgid " -a, --auto-install : Set mascot auto install ON\n" msgstr "" #: src/main.c:4736 msgid " -na --no-auto-install : Set mascot auto install OFF\n" msgstr "" #: src/main.c:4737 msgid " -O, --over-write : Permit to overwrite files in user dir\n" msgstr "" #: src/main.c:4738 msgid "" " --install-user-mascot (mascot) : Mascot Installation to User Dir.\n" msgstr "" #: src/main.c:4739 msgid " --install-user-menu (menu) : Menu Installation to User Dir.\n" msgstr "" #: src/main.c:4741 msgid "" " --install-common-mascot (mascot): Mascot Installation to Common Dir.\n" msgstr "" #: src/main.c:4742 msgid "" " --install-common-menu (menu) : Menu Installation to Common Dir.\n" msgstr "" #: src/main.c:4745 msgid "## For Socket Message\n" msgstr "" #: src/main.c:4746 msgid "" " --sockmsg : Start MaCoPiX as Socket Message Receiver\n" msgstr "" #: src/main.c:4747 msgid "" " --message (text) : Send Message to Socket Message Receiver\n" msgstr "" #: src/main.c:4748 msgid " --message-expire (time) : Socket Message Expire Time[ms]\n" msgstr "" #: src/main.c:4749 msgid " --message-type-lump : Force to Set Lump Sum Balloon\n" msgstr "" #: src/main.c:4750 msgid " --message-type-step : Force to Set Stepping Balloon\n" msgstr "" #: src/main.c:4751 msgid " --message-step (frame) : Stepping Interval Frame for SockeMsg\n" msgstr "" #: src/main.c:4752 msgid " -nc, --no-duet-click : Duet Animation [Click] OFF\n" msgstr "" #: src/main.c:4753 msgid " -nr, --no-duet-random : Duet Animation [Random] OFF\n" msgstr "" #: src/main.c:4854 #, c-format msgid "%8d%2d%4dMacopix already running in SockMsg Mode" msgstr "" #: src/main.c:4866 msgid "Macopix not running in SockMsg Mode\n" msgstr "" #: src/callbacks.c:1732 #, c-format msgid "%d/%d/%d(%s)" msgstr "" #: src/callbacks.c:1896 msgid "Sun" msgstr "" #: src/callbacks.c:1899 msgid "Mon" msgstr "" #: src/callbacks.c:1902 msgid "Tue" msgstr "" #: src/callbacks.c:1905 msgid "Wed" msgstr "" #: src/callbacks.c:1908 msgid "Thu" msgstr "" #: src/callbacks.c:1911 msgid "Fri" msgstr "" #: src/callbacks.c:1914 msgid "Sat" msgstr "" #: src/gui.c:717 src/gui.c:3267 src/gui.c:3281 src/gui.c:10511 src/gui.c:10525 #, c-format msgid "Saved Resource as ...%%n \"%s\"" msgstr "" #: src/gui.c:728 src/gui.c:771 src/gui.c:2713 src/gui.c:2726 src/gui.c:2913 #: src/gui.c:3006 src/gui.c:9534 src/gui.c:9547 src/gui.c:10021 #: src/gui.c:10114 #, c-format msgid "Saved Mascot as ...%%n \"%s\"" msgstr "" #: src/gui.c:740 #, c-format msgid "Set Default Menu as ...%%n \"%s\"" msgstr "" #: src/gui.c:743 src/gui.c:756 msgid "Remove Default Menu from Resource Setting" msgstr "" #: src/gui.c:774 #, c-format msgid "%%aSaved Resource as ...%%n \"%s\"" msgstr "" #: src/gui.c:778 #, c-format msgid "%%aSaved Menu as ...%%n \"%s\"" msgstr "" #: src/gui.c:779 #, c-format msgid "%%aSet Default Menu as ...%%n \"%s\"" msgstr "" #: src/gui.c:783 #, c-format msgid "%%aRemove Default Menu from Resource Setting" msgstr "" #: src/gui.c:1348 src/gui.c:11120 src/gui.c:13944 src/gui.c:13971 #: src/gui.c:13977 msgid "Focus Follow" msgstr "" #: src/gui.c:1361 src/gui.c:14087 src/gui.c:14120 msgid "No Clock" msgstr "" #: src/gui.c:1364 src/gui.c:14092 src/gui.c:14124 src/gui.c:14134 msgid "Clock on Image" msgstr "" #: src/gui.c:1377 src/gui.c:14161 src/gui.c:14199 src/gui.c:14217 msgid "14:00:00" msgstr "" #: src/gui.c:1380 src/gui.c:14166 src/gui.c:14203 src/gui.c:14221 msgid "14:00" msgstr "" #: src/gui.c:1383 src/gui.c:14171 src/gui.c:14207 src/gui.c:14225 msgid "PM 2:00:00" msgstr "" #: src/gui.c:1447 src/gui.c:11519 src/gui.c:11557 src/gui.c:11575 #: src/gui.c:11607 src/gui.c:11645 src/gui.c:11663 src/gui.c:11723 #: src/gui.c:11761 src/gui.c:11779 msgid "Do Nothing" msgstr "" #: src/gui.c:1450 src/gui.c:11524 src/gui.c:11561 src/gui.c:11579 #: src/gui.c:11612 src/gui.c:11649 src/gui.c:11667 src/gui.c:11728 #: src/gui.c:11765 src/gui.c:11783 msgid "Vanish" msgstr "" #: src/gui.c:1462 src/gui.c:11301 src/gui.c:11335 src/gui.c:11349 msgid "Manual Scaling" msgstr "" #: src/gui.c:1465 src/gui.c:11306 src/gui.c:11339 src/gui.c:11353 msgid "Auto Scaling" msgstr "" #: src/gui.c:1492 src/gui.c:12686 src/gui.c:12724 src/gui.c:12743 msgid "Nearest-Neighbor" msgstr "" #: src/gui.c:1496 src/gui.c:12691 src/gui.c:12728 src/gui.c:12747 msgid "Tiles" msgstr "" #: src/gui.c:1500 src/gui.c:12696 src/gui.c:12732 src/gui.c:12751 msgid "Bilinear" msgstr "" #: src/gui.c:1504 src/gui.c:12701 src/gui.c:12736 src/gui.c:12755 msgid "Hyper" msgstr "" #: src/gui.c:1516 src/gui.c:13562 src/gui.c:13594 src/gui.c:13609 msgid "Manual" msgstr "" #: src/gui.c:1520 src/gui.c:13567 src/gui.c:13598 src/gui.c:13613 msgid "Auto Overwrite" msgstr "" #: src/gui.c:1524 src/gui.c:13572 src/gui.c:13602 src/gui.c:13617 msgid "Ignore" msgstr "" #: src/gui.c:1535 src/gui.c:1549 src/gui.c:1563 src/gui.c:11190 #: src/gui.c:11200 src/gui.c:14701 src/gui.c:15183 msgid "Left" msgstr "" #: src/gui.c:1575 src/gui.c:13444 src/gui.c:13471 src/gui.c:13481 msgid "Stepping" msgstr "" #: src/gui.c:1606 src/gui.c:1682 src/gui.c:11909 src/gui.c:11942 #: src/gui.c:12032 src/gui.c:12082 src/gui.c:12111 src/gui.c:12243 msgid "None" msgstr "" #: src/gui.c:1610 src/gui.c:12037 src/gui.c:12086 src/gui.c:12115 msgid "POP3 (normal)" msgstr "" #: src/gui.c:1614 src/gui.c:12042 src/gui.c:12090 src/gui.c:12119 msgid "POP3 (APOP auth)" msgstr "" #: src/gui.c:1619 src/gui.c:12048 src/gui.c:12095 src/gui.c:12124 msgid "Local mbox" msgstr "" #: src/gui.c:1623 src/gui.c:12053 src/gui.c:12099 src/gui.c:12128 msgid "qmail (Maildir)" msgstr "" #: src/gui.c:1627 src/gui.c:12058 src/gui.c:12103 src/gui.c:12132 msgid "MH + Procmail" msgstr "" #: src/gui.c:1650 src/gui.c:12277 src/gui.c:12292 msgid "Don't use SSL" msgstr "" #: src/gui.c:1654 src/gui.c:12248 src/gui.c:12281 src/gui.c:12296 msgid "Use SSL for POP3 Connection" msgstr "" #: src/gui.c:1658 src/gui.c:12253 src/gui.c:12285 src/gui.c:12300 msgid "Use STARTTLS to start SSL session" msgstr "" #: src/gui.c:1685 src/gui.c:11914 src/gui.c:11946 src/gui.c:11956 msgid "Click Action" msgstr "" #: src/gui.c:2391 src/gui.c:2432 src/gui.c:2488 src/gui.c:2550 src/gui.c:3822 #: src/gui.c:3863 src/gui.c:3983 src/gui.c:4016 src/gui.c:4050 src/gui.c:4083 #: src/gui.c:4131 src/gui.c:4159 src/gui.c:4223 src/gui.c:4255 src/gui.c:4289 #: src/gui.c:4320 src/gui.c:4351 src/gui.c:4442 src/gui.c:4613 src/gui.c:4784 #: src/gui.c:4989 src/gui.c:6037 src/gui.c:6209 src/gui.c:6765 src/gui.c:6961 #: src/gui.c:7128 src/gui.c:7291 src/gui.c:7488 src/gui.c:7651 src/gui.c:7744 #: src/gui.c:7776 src/gui.c:8036 src/gui.c:8185 src/gui.c:8738 src/gui.c:9005 #: src/gui.c:9233 src/gui.c:9364 msgid "Error: File cannot be opened." msgstr "" #: src/gui.c:2396 src/gui.c:2437 src/gui.c:2493 src/gui.c:2555 src/gui.c:3827 #: src/gui.c:3868 src/gui.c:3988 src/gui.c:4021 src/gui.c:4055 src/gui.c:4088 #: src/gui.c:4136 src/gui.c:4164 src/gui.c:4228 src/gui.c:4260 src/gui.c:4294 #: src/gui.c:4325 src/gui.c:4356 src/gui.c:4447 src/gui.c:4618 src/gui.c:4789 #: src/gui.c:4994 src/gui.c:6042 src/gui.c:6214 src/gui.c:6770 src/gui.c:6966 #: src/gui.c:7133 src/gui.c:7296 src/gui.c:7493 src/gui.c:7656 src/gui.c:7749 #: src/gui.c:7781 src/gui.c:8041 src/gui.c:8190 src/gui.c:8743 src/gui.c:9010 #: src/gui.c:9238 src/gui.c:9369 #, c-format msgid "Cannot Open %s\n" msgstr "" #: src/gui.c:2539 #, c-format msgid "Created Menu File ...%%n \"%s\"" msgstr "" #: src/gui.c:2669 src/gui.c:2764 src/gui.c:2855 src/gui.c:9494 src/gui.c:9662 #: src/gui.c:9962 msgid "File Save : Overwrite Confirmation" msgstr "" #: src/gui.c:2671 src/gui.c:2766 src/gui.c:2857 src/gui.c:9496 src/gui.c:9664 #: src/gui.c:9964 #, c-format msgid "File %s already exists." msgstr "" #: src/gui.c:2675 src/gui.c:2770 src/gui.c:2861 src/gui.c:3143 src/gui.c:3234 #: src/gui.c:9500 src/gui.c:9668 src/gui.c:9968 src/gui.c:10304 #: src/gui.c:10477 msgid "Overwrite?" msgstr "" #: src/gui.c:2682 src/gui.c:2684 src/gui.c:2777 src/gui.c:2779 src/gui.c:2868 #: src/gui.c:2870 src/gui.c:3150 src/gui.c:3152 src/gui.c:3241 src/gui.c:3243 #: src/gui.c:5170 src/gui.c:5172 src/gui.c:5309 src/gui.c:5311 src/gui.c:5474 #: src/gui.c:5476 src/gui.c:5664 src/gui.c:5666 src/gui.c:5812 src/gui.c:5814 #: src/gui.c:5926 src/gui.c:5928 src/gui.c:6376 src/gui.c:6378 src/gui.c:6475 #: src/gui.c:6477 src/gui.c:6608 src/gui.c:6610 src/gui.c:8341 src/gui.c:8343 #: src/gui.c:8403 src/gui.c:8405 src/gui.c:8487 src/gui.c:8489 src/gui.c:8585 #: src/gui.c:8587 src/gui.c:9507 src/gui.c:9509 src/gui.c:9675 src/gui.c:9677 #: src/gui.c:9886 src/gui.c:9888 src/gui.c:9975 src/gui.c:9977 src/gui.c:10311 #: src/gui.c:10313 src/gui.c:10484 src/gui.c:10486 src/gui.c:11075 #: src/gui.c:11077 src/gui.c:17063 src/gui.c:17065 src/gui.c:17292 #: src/gui.c:17294 src/gui.c:17832 src/gui.c:17834 src/sslmanager.c:178 #: src/sslmanager.c:180 src/dnd.c:247 src/dnd.c:249 msgid "Cancel" msgstr "" #: src/gui.c:2693 src/gui.c:2695 src/gui.c:2788 src/gui.c:2790 src/gui.c:2877 #: src/gui.c:2879 src/gui.c:3159 src/gui.c:3161 src/gui.c:3250 src/gui.c:3252 #: src/gui.c:5179 src/gui.c:5181 src/gui.c:5226 src/gui.c:5228 src/gui.c:5318 #: src/gui.c:5320 src/gui.c:5483 src/gui.c:5485 src/gui.c:5674 src/gui.c:5676 #: src/gui.c:5821 src/gui.c:5823 src/gui.c:5935 src/gui.c:5937 src/gui.c:6386 #: src/gui.c:6388 src/gui.c:6484 src/gui.c:6486 src/gui.c:6617 src/gui.c:6619 #: src/gui.c:8355 src/gui.c:8357 src/gui.c:8417 src/gui.c:8419 src/gui.c:8497 #: src/gui.c:8499 src/gui.c:8595 src/gui.c:8597 src/gui.c:9517 src/gui.c:9519 #: src/gui.c:9685 src/gui.c:9687 src/gui.c:9895 src/gui.c:9897 src/gui.c:9985 #: src/gui.c:9987 src/gui.c:10321 src/gui.c:10323 src/gui.c:10494 #: src/gui.c:10496 src/gui.c:11084 src/gui.c:11086 src/gui.c:17072 #: src/gui.c:17074 src/gui.c:17301 src/gui.c:17303 src/gui.c:17841 #: src/gui.c:17843 src/pixmap.c:1665 src/pixmap.c:1667 src/nokkari.c:1043 #: src/nokkari.c:1045 src/sslmanager.c:170 src/sslmanager.c:172 src/dnd.c:239 #: src/dnd.c:241 msgid "OK" msgstr "" #: src/gui.c:3137 src/gui.c:10298 msgid "Menu Save : Overwrite Confirmation" msgstr "" #: src/gui.c:3139 src/gui.c:10300 #, c-format msgid "Menu File %s already exists." msgstr "" #: src/gui.c:3176 src/gui.c:3189 src/gui.c:10338 src/gui.c:10351 #, c-format msgid "Saved Menu as ...%%n \"%s\"" msgstr "" #: src/gui.c:3228 src/gui.c:10471 msgid "Resource Save : Overwrite Confirmation" msgstr "" #: src/gui.c:3230 src/gui.c:10473 #, c-format msgid "Resource File %s already exists." msgstr "" #: src/gui.c:3809 src/gui.c:3849 src/gui.c:3969 src/gui.c:4429 src/gui.c:4977 msgid "Error: File cannot be loaded." msgstr "" #: src/gui.c:3814 src/gui.c:3854 src/gui.c:3974 src/gui.c:4434 src/gui.c:4982 #, c-format msgid "Cannot Load %s\n" msgstr "" #: src/gui.c:4390 src/gui.c:4478 src/gui.c:4569 src/gui.c:4653 src/gui.c:4924 #: src/gui.c:5044 #, c-format msgid "Select New Image for No.%02d" msgstr "" #: src/gui.c:4406 src/gui.c:4599 src/gui.c:4759 src/gui.c:4947 src/gui.c:6013 #: src/gui.c:6182 src/gui.c:6729 src/gui.c:6937 src/gui.c:7104 src/gui.c:7268 #: src/gui.c:7627 src/gui.c:8014 src/gui.c:8157 src/gui.c:8691 src/gui.c:8960 #: src/gui.c:9211 src/gui.c:9322 src/gui.c:9466 src/gui.c:9634 src/gui.c:9932 #: src/gui.c:10272 src/gui.c:10445 msgid "All File" msgstr "" #: src/gui.c:4510 src/gui.c:4694 src/gui.c:4857 src/gui.c:5077 src/gui.c:8245 msgid "User Pix Dir" msgstr "" #: src/gui.c:4515 src/gui.c:4699 src/gui.c:4862 src/gui.c:5082 src/gui.c:8250 msgid "Common Pix Dir" msgstr "" #: src/gui.c:4584 src/gui.c:4685 #, c-format msgid "Please select the image File for No.%d." msgstr "" #: src/gui.c:4587 src/gui.c:4682 msgid "The image described in INI cannot be found." msgstr "" #: src/gui.c:4592 msgid "The image described in INI cannot be found.\n" msgstr "" #: src/gui.c:4740 src/gui.c:4821 msgid "Select New Image for Biff" msgstr "" #: src/gui.c:4911 src/gui.c:5029 msgid "Error: Append Image." msgstr "" #: src/gui.c:4913 src/gui.c:5031 msgid "The number of images maxes out." msgstr "" #: src/gui.c:5147 msgid "Select Image No. to Delete" msgstr "" #: src/gui.c:5155 msgid "Delete Image No." msgstr "" #: src/gui.c:5214 msgid "Error : Delete Image." msgstr "" #: src/gui.c:5216 #, c-format msgid "Image %02d is used in Pattern %02d / Frame %02d\n" msgstr "" #: src/gui.c:5221 src/pixmap.c:1660 msgid "Please Change..." msgstr "" #: src/gui.c:5270 msgid "Error: Append Pattern." msgstr "" #: src/gui.c:5272 msgid "The number of patterns maxes out." msgstr "" #: src/gui.c:5287 msgid "Select Pattern No. to Append" msgstr "" #: src/gui.c:5295 msgid "Append Pattern No." msgstr "" #: src/gui.c:5433 msgid "Error: Delete Pattern." msgstr "" #: src/gui.c:5435 msgid "You cannot delete the base pattern." msgstr "" #: src/gui.c:5450 msgid "Select Pattern No. to Delete" msgstr "" #: src/gui.c:5458 msgid "Delete Pattern No." msgstr "" #: src/gui.c:5608 msgid "Error: Copy Pattern." msgstr "" #: src/gui.c:5610 msgid "You should append new pattern to copy." msgstr "" #: src/gui.c:5626 msgid "Pattern Copy" msgstr "" #: src/gui.c:5634 msgid "Pattern Copy : No." msgstr "" #: src/gui.c:5648 msgid " -> No." msgstr "" #: src/gui.c:5774 msgid "Error: Append Frame." msgstr "" #: src/gui.c:5776 msgid "The number of frames maxes out." msgstr "" #: src/gui.c:5789 msgid "Select Frame No. to Append" msgstr "" #: src/gui.c:5797 msgid "Append Frame No." msgstr "" #: src/gui.c:5887 msgid "Error: Delete Frame." msgstr "" #: src/gui.c:5889 msgid "You cannot delete no more frames." msgstr "" #: src/gui.c:5902 msgid "Select Frame No. to Delete" msgstr "" #: src/gui.c:5910 msgid "Delete Frame No." msgstr "" #: src/gui.c:5998 src/gui.c:6081 src/gui.c:6917 src/gui.c:7000 msgid "Select Mascot File" msgstr "" #: src/gui.c:6012 src/gui.c:6181 src/gui.c:6936 src/gui.c:8013 src/gui.c:8690 #: src/gui.c:9465 src/gui.c:9931 src/gui.c:15780 msgid "Mascot File" msgstr "" #: src/gui.c:6104 src/gui.c:6282 src/gui.c:6860 src/gui.c:7036 src/gui.c:8097 #: src/gui.c:8856 src/gui.c:9142 src/gui.c:9279 src/gui.c:9419 src/gui.c:9593 #: src/gui.c:9748 src/gui.c:10221 src/gui.c:10399 src/gui.c:10575 msgid "User Dir" msgstr "" #: src/gui.c:6109 src/gui.c:6287 src/gui.c:6865 src/gui.c:7041 src/gui.c:8102 #: src/gui.c:8861 src/gui.c:9147 src/gui.c:9284 src/gui.c:9424 src/gui.c:9598 #: src/gui.c:9753 src/gui.c:10226 src/gui.c:10404 src/gui.c:10580 msgid "Common Dir" msgstr "" #: src/gui.c:6152 src/gui.c:6243 msgid "Error: Append Mascot." msgstr "" #: src/gui.c:6154 src/gui.c:6245 msgid "The number of mascots maxes out." msgstr "" #: src/gui.c:6162 src/gui.c:6255 src/gui.c:8004 src/gui.c:8076 msgid "Select New Mascot File" msgstr "" #: src/gui.c:6337 msgid "Error: Delete Mascot." msgstr "" #: src/gui.c:6339 msgid "You cannot delete no more mascots." msgstr "" #: src/gui.c:6354 msgid "Select Mascot No. to Remove from the Menu" msgstr "" #: src/gui.c:6362 msgid "Remove Mascot No." msgstr "" #: src/gui.c:6437 msgid "Error: Append Category." msgstr "" #: src/gui.c:6439 src/gui.c:6701 src/gui.c:6817 msgid "The number of categories maxes out." msgstr "" #: src/gui.c:6452 msgid "Select Category No. to Append" msgstr "" #: src/gui.c:6460 msgid "Append Category No." msgstr "" #: src/gui.c:6568 msgid "Error: Delete Category." msgstr "" #: src/gui.c:6570 msgid "You cannot delete no more categories." msgstr "" #: src/gui.c:6584 msgid "Select Category No. to Delete" msgstr "" #: src/gui.c:6592 msgid "Delete Category No." msgstr "" #: src/gui.c:6699 src/gui.c:6815 msgid "Error: Merge Menu." msgstr "" #: src/gui.c:6711 src/gui.c:6832 msgid "Select Menu File to Merge" msgstr "" #: src/gui.c:6728 src/gui.c:8958 src/gui.c:9321 src/gui.c:10271 #: src/gui.c:13836 msgid "Menu File" msgstr "" #: src/gui.c:7084 src/gui.c:7166 src/gui.c:7248 src/gui.c:7329 msgid "Select Sound File" msgstr "" #: src/gui.c:7204 src/gui.c:7366 msgid "User Sound Dir" msgstr "" #: src/gui.c:7209 src/gui.c:7371 msgid "Common Sound Dir" msgstr "" #: src/gui.c:7416 src/gui.c:7533 msgid "Select the file refered for the mail checking" msgstr "" #: src/gui.c:7611 src/gui.c:7690 msgid "Select mailer command" msgstr "" #: src/gui.c:7972 #, c-format msgid "Created New Mascot ...%%n \"%s\"" msgstr "" #: src/gui.c:8147 src/gui.c:8228 msgid "Select Image for New Mascot" msgstr "" #: src/gui.c:8311 src/gui.c:16602 msgid "Create New Mascot" msgstr "" #: src/gui.c:8318 msgid "Creating New Masscot..." msgstr "" #: src/gui.c:8335 msgid "1. Please select Mascot File Name to be created" msgstr "" #: src/gui.c:8398 msgid "2. Please select an Image File Name to be used in Mascot" msgstr "" #: src/gui.c:8459 msgid "Mascot File : " msgstr "" #: src/gui.c:8465 msgid "Image File : " msgstr "" #: src/gui.c:8474 src/gui.c:8481 msgid "At last, Please Input Descrption for Copyright" msgstr "" #: src/gui.c:8535 src/gui.c:8539 msgid "Please Input POP Password" msgstr "" #: src/gui.c:8550 #, c-format msgid "Server : %s" msgstr "" #: src/gui.c:8556 #, c-format msgid "User ID : %s" msgstr "" #: src/gui.c:8570 msgid "Password : " msgstr "" #: src/gui.c:8630 src/gui.c:8784 src/gui.c:16490 msgid "Open Mascot" msgstr "" #: src/gui.c:8642 src/gui.c:8790 msgid "" "Caution : You're going to install a new mascot into your user's direcroty.\n" msgstr "" #: src/gui.c:8643 src/gui.c:8663 src/gui.c:8791 src/gui.c:8805 src/gui.c:8906 #: src/gui.c:8923 src/gui.c:9059 src/gui.c:9071 msgid " If you already have the file with the same filename," msgstr "" #: src/gui.c:8644 src/gui.c:8664 src/gui.c:8792 src/gui.c:8806 src/gui.c:8907 #: src/gui.c:8924 src/gui.c:9060 src/gui.c:9072 msgid " it will be overwritten." msgstr "" #: src/gui.c:8645 src/gui.c:8665 src/gui.c:8793 src/gui.c:8807 msgid "" "\n" " If you want to install more than one mascot with a launcher menu," msgstr "" #: src/gui.c:8646 src/gui.c:8666 src/gui.c:8794 src/gui.c:8808 msgid " please install using \"Install Launcher Menu\"." msgstr "" #: src/gui.c:8649 src/gui.c:8797 msgid "Install New Mascot to User's Directory" msgstr "" #: src/gui.c:8662 src/gui.c:8804 msgid "" "Caution : You're going to install a new mascot into the MaCoPiX common " "direcroty.\n" msgstr "" #: src/gui.c:8669 src/gui.c:8811 msgid "Install New Mascot to the Common Directory" msgstr "" #: src/gui.c:8894 src/gui.c:9052 msgid "Open Launcher Menu" msgstr "" #: src/gui.c:8905 src/gui.c:9058 msgid "" "Caution : You're going to install a new launcher menu with its mascots into " "your user's direcroty.\n" msgstr "" #: src/gui.c:8910 src/gui.c:9063 msgid "Install New Launcher Menu to User's Directory" msgstr "" #: src/gui.c:8922 src/gui.c:9070 msgid "" "Caution : You're going to install a new launcher menu with mascots into the " "MaCoPiX common direcroty.\n" msgstr "" #: src/gui.c:8927 src/gui.c:9075 msgid "Install New Launcher Menu to the Common Directory" msgstr "" #: src/gui.c:8953 msgid "LZH File" msgstr "" #: src/gui.c:8956 msgid "TAR+GZ File" msgstr "" #: src/gui.c:9202 src/gui.c:9259 src/gui.c:16736 msgid "Convert from Nokkari-Chara" msgstr "" #: src/gui.c:9210 src/gui.c:9633 msgid "Nokkari-Chara File" msgstr "" #: src/gui.c:9311 src/gui.c:9393 msgid "Select New Launcher Menu File to Create" msgstr "" #: src/gui.c:9353 #, c-format msgid "Created Menu File%%n \"%s\"" msgstr "" #: src/gui.c:9451 src/gui.c:9571 msgid "Save Mascot to Other File" msgstr "" #: src/gui.c:9625 src/gui.c:9728 msgid "Convert Mascot to Nokkari-Chara" msgstr "" #: src/gui.c:9797 msgid "Setup for Release Mascot" msgstr "" #: src/gui.c:9810 msgid "Please edit the setting for this mascot" msgstr "" #: src/gui.c:9818 msgid "Mascot Name" msgstr "" #: src/gui.c:9832 msgid "Copyright" msgstr "" #: src/gui.c:9849 src/gui.c:13855 src/gui.c:15380 msgid "Character Code" msgstr "" #: src/gui.c:9861 msgid "Save Fontset for Clock" msgstr "" #: src/gui.c:9867 msgid "Save Colors for Clock" msgstr "" #: src/gui.c:9873 msgid "Save Fontset for Balloon" msgstr "" #: src/gui.c:9879 msgid "Save Colors for Baloon" msgstr "" #: src/gui.c:9921 src/gui.c:10196 msgid "Save Mascot for Release" msgstr "" #: src/gui.c:10255 src/gui.c:10376 msgid "Save Menu to File" msgstr "" #: src/gui.c:10429 src/gui.c:10551 msgid "Save Resource to File" msgstr "" #: src/gui.c:10444 src/gui.c:13818 msgid "Resource File" msgstr "" #: src/gui.c:10618 msgid "Fontset Selection" msgstr "" #: src/gui.c:10709 msgid "Color Selection" msgstr "" #: src/gui.c:11046 msgid "Config for MaCoPiX" msgstr "" #: src/gui.c:11130 msgid "Offset on the Title Bar" msgstr "" #: src/gui.c:11145 msgid "Starting Point" msgstr "" #: src/gui.c:11158 msgid "Left upper corner of the focused window" msgstr "" #: src/gui.c:11163 msgid "Right upper corner of the focused window" msgstr "" #: src/gui.c:11186 src/gui.c:11196 src/gui.c:14705 src/gui.c:14711 #: src/gui.c:15187 src/gui.c:15193 msgid "Right" msgstr "" #: src/gui.c:11251 msgid "Absolute[pix]" msgstr "" #: src/gui.c:11264 msgid "Relative[%]" msgstr "" #: src/gui.c:11280 msgid "Title Bar Size" msgstr "" #: src/gui.c:11311 src/gui.c:11343 src/gui.c:11357 msgid "Auto Scaling (for Compiz)" msgstr "" #: src/gui.c:11368 msgid "Window Manager [start-up]" msgstr "" #: src/gui.c:11379 msgid "Bar Size (Manual)" msgstr "" #: src/gui.c:11397 msgid "Offset for Shaped Bar" msgstr "" #: src/gui.c:11417 msgid "Home Position" msgstr "" #: src/gui.c:11434 msgid "Auto" msgstr "" #: src/gui.c:11447 msgid " X" msgstr "" #: src/gui.c:11461 msgid " Y" msgstr "" #: src/gui.c:11491 msgid "Vanish when auto-detection failed" msgstr "" #: src/gui.c:11506 msgid "No Focus" msgstr "" #: src/gui.c:11530 src/gui.c:11566 src/gui.c:11584 src/gui.c:11618 #: src/gui.c:11654 src/gui.c:11672 src/gui.c:11734 src/gui.c:11770 #: src/gui.c:11788 msgid "Sit on Task Bar" msgstr "" #: src/gui.c:11533 src/gui.c:11568 src/gui.c:11586 src/gui.c:11621 #: src/gui.c:11656 src/gui.c:11674 src/gui.c:11737 src/gui.c:11772 #: src/gui.c:11790 msgid "Move to Home Position" msgstr "" #: src/gui.c:11594 msgid "Sticked Out" msgstr "" #: src/gui.c:11683 msgid "Management for Window w/o Title Bar" msgstr "" #: src/gui.c:11694 msgid "Ignore Window w/o Title Bar" msgstr "" #: src/gui.c:11708 msgid " Action : " msgstr "" #: src/gui.c:11797 msgid " * Mascot could fail to follow the focus with older window managers." msgstr "" #: src/gui.c:11804 msgid "for Windows" msgstr "" #: src/gui.c:11813 msgid "Stay on Task Bar" msgstr "" #: src/gui.c:11829 msgid "Foreground Mapping" msgstr "" #: src/gui.c:11838 msgid "Force to Raise to the Foreground" msgstr "" #: src/gui.c:11846 msgid "Raise with Mascot shaping (for translucent KWin)" msgstr "" #: src/gui.c:11858 src/gui.c:14058 msgid "Move" msgstr "" #: src/gui.c:11870 src/gui.c:11986 src/gui.c:16425 msgid "Time Signal" msgstr "" #: src/gui.c:11881 msgid "Use Signal" msgstr "" #: src/gui.c:11896 msgid "Mascot Action" msgstr "" #: src/gui.c:11919 src/gui.c:11950 src/gui.c:11960 msgid "Mascot Random Change" msgstr "" #: src/gui.c:11966 msgid "External Command" msgstr "" #: src/gui.c:12001 msgid "Server Information" msgstr "" #: src/gui.c:12019 msgid "Protocol" msgstr "" #: src/gui.c:12156 msgid "Address" msgstr "" #: src/gui.c:12173 msgid "User ID" msgstr "" #: src/gui.c:12191 msgid " Password" msgstr "" #: src/gui.c:12218 msgid "Save Password" msgstr "" #: src/gui.c:12310 msgid "Skip to Verify on SSL Certification" msgstr "" #: src/gui.c:12318 msgid "Non-Blocking SSL" msgstr "" #: src/gui.c:12333 msgid " Port No." msgstr "" #: src/gui.c:12349 msgid "Local mbox / Maildir / .procmailrc" msgstr "" #: src/gui.c:12366 msgid "File / Directory" msgstr "" #: src/gui.c:12391 msgid "Operating Information" msgstr "" #: src/gui.c:12407 msgid "Interval[sec]" msgstr "" #: src/gui.c:12421 msgid " Mailer" msgstr "" #: src/gui.c:12454 msgid "Polling command" msgstr "" #: src/gui.c:12471 msgid "Max Mails for POP Scan" msgstr "" #: src/gui.c:12488 msgid "Tooltips on biff pix" msgstr "" #: src/gui.c:12498 msgid "SPAM exception" msgstr "" #: src/gui.c:12507 msgid "Use exception" msgstr "" #: src/gui.c:12518 msgid "Mark in Header" msgstr "" #: src/gui.c:12592 msgid "Mail List Window" msgstr "" #: src/gui.c:12605 msgid "Width" msgstr "" #: src/gui.c:12617 msgid "Height" msgstr "" #: src/gui.c:12633 src/gui.c:15329 msgid "Biff" msgstr "" #: src/gui.c:12647 msgid "Mascot Magnification" msgstr "" #: src/gui.c:12658 msgid "Magnification[%]" msgstr "" #: src/gui.c:12672 msgid "Interpolation Style" msgstr "" #: src/gui.c:12764 msgid "" "Graphic lib. for Image Rendering (Cairo enables trancelucency w/composited " "desktop)" msgstr "" #: src/gui.c:12773 msgid "Current Desktop" msgstr "" #: src/gui.c:12782 msgid "Translucency is partly supported by Windows native graphics." msgstr "" #: src/gui.c:12788 msgid "Current system does not support translucent windows." msgstr "" #: src/gui.c:12793 msgid "Current system support translucent windows." msgstr "" #: src/gui.c:12798 msgid "Translucent support is UNKNOWN. " msgstr "" #: src/gui.c:12802 msgid "Forced translucent rendering" msgstr "" #: src/gui.c:12814 msgid "" "Use Cairo for Mascot and Biff image rendering (Support anti-aliased outline)." msgstr "" #: src/gui.c:12829 msgid "Shadow of Mascot" msgstr "" #: src/gui.c:12841 msgid "Drop Shadow of Mascot" msgstr "" #: src/gui.c:12850 msgid " Offset X" msgstr "" #: src/gui.c:12870 src/gui.c:14007 src/gui.c:14044 src/gui.c:14297 #: src/gui.c:14321 src/gui.c:14376 src/gui.c:14633 src/gui.c:15219 msgid "Y" msgstr "" #: src/gui.c:12894 msgid "Opacity [%]" msgstr "" #: src/gui.c:12917 msgid "Use Cairo for Panel Clock rendering." msgstr "" #: src/gui.c:12919 msgid "Support translucent panel clock (by Cairo)." msgstr "" #: src/gui.c:12929 msgid "Use Cairo for Balloon rendering." msgstr "" #: src/gui.c:12931 msgid "Support translucent balloon (by Cairo)." msgstr "" #: src/gui.c:12950 msgid "Rendering" msgstr "" #: src/gui.c:12965 msgid "Default for Clock" msgstr "" #: src/gui.c:12978 src/gui.c:13120 src/gui.c:14234 src/gui.c:14566 msgid "Fontset" msgstr "" #: src/gui.c:13008 src/gui.c:13150 src/gui.c:14407 src/gui.c:14726 msgid "Text" msgstr "" #: src/gui.c:13033 src/gui.c:13175 src/gui.c:14430 src/gui.c:14749 msgid "BG" msgstr "" #: src/gui.c:13058 src/gui.c:13200 src/gui.c:14453 src/gui.c:14772 msgid "Border" msgstr "" #: src/gui.c:13083 src/gui.c:14476 msgid "Shadow" msgstr "" #: src/gui.c:13107 msgid "Default for Balloon" msgstr "" #: src/gui.c:13226 msgid "Default Opacity" msgstr "" #: src/gui.c:13228 msgid "Default Opacity (Enable ONLY w/Compositing Window Managers)" msgstr "" #: src/gui.c:13241 msgid "Take precedence default opacities over mascot settings" msgstr "" #: src/gui.c:13255 msgid "Mascot [%]" msgstr "" #: src/gui.c:13260 msgid "Biff Image [%]" msgstr "" #: src/gui.c:13267 msgid "Balloon [%]" msgstr "" #: src/gui.c:13272 msgid "Clock [%]" msgstr "" #: src/gui.c:13336 src/gui.c:13350 src/gui.c:14536 src/gui.c:14833 msgid "BG only" msgstr "" #: src/gui.c:13365 msgid "Font/Color" msgstr "" #: src/gui.c:13380 src/gui.c:15766 msgid "Duet Animation" msgstr "" #: src/gui.c:13390 msgid "Synchronize with CLICK animation " msgstr "" #: src/gui.c:13399 msgid "Synchronize with RANDOM animation" msgstr "" #: src/gui.c:13412 msgid "Socket Message" msgstr "" #: src/gui.c:13426 msgid "Balloon printing" msgstr "" #: src/gui.c:13439 src/gui.c:13467 src/gui.c:13477 msgid "Lump Sum" msgstr "" #: src/gui.c:13490 msgid " Stepping interval [frame]" msgstr "" #: src/gui.c:13509 msgid " Default expiration [ms]" msgstr "" #: src/gui.c:13528 msgid "Auto Install" msgstr "" #: src/gui.c:13539 msgid "Auto Mascot Install to User Dir." msgstr "" #: src/gui.c:13549 msgid "User & Common Dir Consistency Check" msgstr "" #: src/gui.c:13628 msgid "Sound Command" msgstr "" #: src/gui.c:13646 #, c-format msgid "(\"%s\" will be translated to the sound file.)" msgstr "" #: src/gui.c:13653 msgid "GNU tar Command [for *.tar.gz Extraction]" msgstr "" #: src/gui.c:13671 #, c-format msgid "(1st \"%s\" : *.tar.gz file, 2nd \"%s\" : temp dir.)" msgstr "" #: src/gui.c:13678 msgid "Tray Icon" msgstr "" #: src/gui.c:13687 msgid "Show Tray Icon in Task Bar" msgstr "" #: src/gui.c:13701 msgid "Misc." msgstr "" #: src/gui.c:13719 msgid "About This Program" msgstr "" #: src/gui.c:13865 src/gui.c:15390 msgid "(Based on the locale environment)" msgstr "" #: src/gui.c:13874 src/gui.c:15406 msgid "Info." msgstr "" #: src/gui.c:13880 msgid "Resource" msgstr "" #: src/gui.c:13926 src/gui.c:14074 msgid "Mode" msgstr "" #: src/gui.c:13939 src/gui.c:13967 src/gui.c:13984 msgid "Fix Position" msgstr "" #: src/gui.c:13994 src/gui.c:14031 src/gui.c:14287 src/gui.c:14311 #: src/gui.c:14621 src/gui.c:15201 msgid "X" msgstr "" #: src/gui.c:14020 msgid "Mascot Offset for Focus Follow" msgstr "" #: src/gui.c:14097 src/gui.c:14128 src/gui.c:14138 msgid "Panel Clock" msgstr "" #: src/gui.c:14148 msgid "Digit Type" msgstr "" #: src/gui.c:14176 src/gui.c:14211 src/gui.c:14229 msgid "PM 2:00" msgstr "" #: src/gui.c:14270 src/gui.c:14603 msgid "Size/Position" msgstr "" #: src/gui.c:14284 msgid "Panel Position" msgstr "" #: src/gui.c:14308 src/gui.c:14617 msgid "Text Offset" msgstr "" #: src/gui.c:14332 src/gui.c:14647 msgid "Border Width" msgstr "" #: src/gui.c:14344 msgid "Decoration" msgstr "" #: src/gui.c:14358 msgid "Drop Shadow" msgstr "" #: src/gui.c:14366 msgid " Shadow Offset X" msgstr "" #: src/gui.c:14390 msgid "Rounded Corner for Panel Clock" msgstr "" #: src/gui.c:14398 src/gui.c:14717 msgid "Color" msgstr "" #: src/gui.c:14500 src/gui.c:14502 src/gui.c:14796 src/gui.c:14798 msgid "Back to Default" msgstr "" #: src/gui.c:14508 src/gui.c:14804 src/gui.c:14935 msgid "Opacity" msgstr "" #: src/gui.c:14517 src/gui.c:14813 src/gui.c:14947 src/gui.c:15235 msgid "Opacity Alpha[%]" msgstr "" #: src/gui.c:14554 msgid "Clock" msgstr "" #: src/gui.c:14659 msgid "Default Position" msgstr "" #: src/gui.c:14672 src/gui.c:15154 msgid "Left side of mascot" msgstr "" #: src/gui.c:14677 src/gui.c:15159 msgid "Right side of mascot" msgstr "" #: src/gui.c:14843 msgid "Control Characters for Balloon Messages" msgstr "" #: src/gui.c:14861 msgid "([n]+1) frames waiting. (default : n=1)" msgstr "" #: src/gui.c:14868 msgid "([n]+1) frames waiting with a new line. (default : n=10)" msgstr "" #: src/gui.c:14875 msgid "New line." msgstr "" #: src/gui.c:14882 msgid "New page after ([n]+1) frames waiting. (default : n=10)" msgstr "" #: src/gui.c:14889 msgid "Number of arrived mails. (only for biff message)" msgstr "" #: src/gui.c:14896 msgid "From: of the latest mail. (only for biff message with POP)" msgstr "" #: src/gui.c:14903 msgid "Subject: of the latest mail. (only for biff message with POP)" msgstr "" #: src/gui.c:14922 msgid "Balloon" msgstr "" #: src/gui.c:14937 msgid "Opacity (Enable ONLY w/Compositing Window Managers)" msgstr "" #: src/gui.c:14988 src/gui.c:14990 msgid "Append" msgstr "" #: src/gui.c:14998 src/gui.c:15000 msgid "Delete" msgstr "" #: src/gui.c:15007 msgid "Images" msgstr "" #: src/gui.c:15049 src/gui.c:15051 msgid "Append Pattern" msgstr "" #: src/gui.c:15058 src/gui.c:15060 msgid "Copy Pattern" msgstr "" #: src/gui.c:15067 src/gui.c:15069 msgid "Delete Pattern" msgstr "" #: src/gui.c:15078 msgid "Animation" msgstr "" #: src/gui.c:15094 msgid "Biff Image" msgstr "" #: src/gui.c:15108 msgid "Image File" msgstr "" #: src/gui.c:15140 msgid "Position" msgstr "" #: src/gui.c:15257 msgid "Biff Action" msgstr "" #: src/gui.c:15269 src/gui.c:15815 src/gui.c:15845 msgid "Message" msgstr "" #: src/gui.c:15284 src/gui.c:15864 msgid "Sound File" msgstr "" #: src/gui.c:15314 src/gui.c:15885 msgid "Clear" msgstr "" #: src/gui.c:15320 src/gui.c:15890 msgid "Test" msgstr "" #: src/gui.c:15344 msgid "About This Mascot" msgstr "" #: src/gui.c:15355 src/gui.c:16224 msgid "Name" msgstr "" #: src/gui.c:15368 src/gui.c:16229 src/gui.c:17549 msgid "File" msgstr "" #: src/gui.c:15412 msgid "Mascot" msgstr "" #: src/gui.c:15428 msgid "Menu" msgstr "" #: src/gui.c:15477 src/gui.c:15479 msgid "Append Category" msgstr "" #: src/gui.c:15485 src/gui.c:15487 msgid "Delete Category" msgstr "" #: src/gui.c:15493 src/gui.c:15495 msgid "Merge Menu" msgstr "" #: src/gui.c:15523 msgid "No menu files are loaded currently." msgstr "" #: src/gui.c:15527 msgid "You can find a menu to create new one in the popup," msgstr "" #: src/gui.c:15531 msgid " and edit it here." msgstr "" #: src/gui.c:15567 src/gui.c:16047 src/gui.c:16219 msgid "No." msgstr "" #: src/gui.c:15573 msgid "Image File Name" msgstr "" #: src/gui.c:15637 #, c-format msgid "Base" msgstr "" #: src/gui.c:15665 src/gui.c:15667 msgid "Append Frame" msgstr "" #: src/gui.c:15673 src/gui.c:15675 msgid "Delete Frame" msgstr "" #: src/gui.c:15681 src/gui.c:15683 msgid "Test Anime" msgstr "" #: src/gui.c:15689 msgid "Random" msgstr "" #: src/gui.c:15701 msgid " Click" msgstr "" #: src/gui.c:15718 msgid "Balloon Offset X[Left]" msgstr "" #: src/gui.c:15730 msgid " Y[Left]" msgstr "" #: src/gui.c:15742 msgid " X[Right]" msgstr "" #: src/gui.c:15754 msgid " Y[Right]" msgstr "" #: src/gui.c:15800 msgid " Pattern" msgstr "" #: src/gui.c:15826 msgid " Delay" msgstr "" #: src/gui.c:15948 src/gui.c:17564 msgid "Category" msgstr "" #: src/gui.c:15989 src/gui.c:15991 msgid "Append Mascot" msgstr "" #: src/gui.c:15997 src/gui.c:15999 msgid "Delete Mascot" msgstr "" #: src/gui.c:16052 msgid "Image" msgstr "" #: src/gui.c:16057 src/gui.c:16077 msgid "Min" msgstr "" #: src/gui.c:16062 src/gui.c:16082 msgid "Max" msgstr "" #: src/gui.c:16067 msgid "Block Loop" msgstr "" #: src/gui.c:16072 msgid "Next" msgstr "" #: src/gui.c:16340 src/gui.c:16343 src/gui.c:17442 src/gui.c:17445 msgid "Open" msgstr "" #: src/gui.c:16354 src/gui.c:16357 src/gui.c:16680 msgid "Save" msgstr "" #: src/gui.c:16368 src/gui.c:16371 msgid "New" msgstr "" #: src/gui.c:16382 src/gui.c:16385 src/gui.c:17390 src/gui.c:17393 msgid "Install" msgstr "" #: src/gui.c:16395 src/gui.c:16398 msgid "Config" msgstr "" #: src/gui.c:16409 msgid "Biff Check" msgstr "" #: src/gui.c:16447 src/gui.c:16450 msgid "Mascot Launcher" msgstr "" #: src/gui.c:16465 src/gui.c:16468 src/gui.c:17366 src/gui.c:17369 #: src/gui.c:17382 msgid "Exit" msgstr "" #: src/gui.c:16503 src/gui.c:16561 msgid "Launcher Menu" msgstr "" #: src/gui.c:16516 src/gui.c:16583 msgid "For Developper" msgstr "" #: src/gui.c:16535 msgid "Save All" msgstr "" #: src/gui.c:16544 msgid "Save Mascot" msgstr "" #: src/gui.c:16549 msgid "Save Mascot As..." msgstr "" #: src/gui.c:16571 msgid "Save Resource" msgstr "" #: src/gui.c:16611 msgid "Create New Launcher Menu" msgstr "" #: src/gui.c:16630 src/gui.c:17406 msgid "Launcher Menu [User]" msgstr "" #: src/gui.c:16637 src/gui.c:17413 msgid "Launcher Menu [Common]" msgstr "" #: src/gui.c:16651 src/gui.c:17425 msgid "Mascot [User]" msgstr "" #: src/gui.c:16658 src/gui.c:17432 msgid "Mascot [Common]" msgstr "" #: src/gui.c:16688 msgid "Set as Default" msgstr "" #: src/gui.c:16696 msgid "Remove from Default" msgstr "" #: src/gui.c:16713 msgid "File Select" msgstr "" #: src/gui.c:16719 msgid "Launcher" msgstr "" #: src/gui.c:16754 msgid "Save for Release" msgstr "" #: src/gui.c:16760 msgid "Convert to Nokkari-Chara" msgstr "" #: src/gui.c:16783 src/gui.c:16817 msgid "Random Change" msgstr "" #: src/gui.c:16979 msgid "MaCoPiX : Consistency Check for Common & User Dir." msgstr "" #: src/gui.c:16995 msgid "WARNING" msgstr "" #: src/gui.c:17004 msgid "Menu file : " msgstr "" #: src/gui.c:17007 msgid "Mascot file : " msgstr "" #: src/gui.c:17012 msgid " File in User Dir is older than the corresponded one in Common Dir." msgstr "" #: src/gui.c:17021 msgid " [User Dir]" msgstr "" #: src/gui.c:17026 src/gui.c:17039 #, c-format msgid " %4d/%02d/%02d %02d:%02d:%02d" msgstr "" #: src/gui.c:17034 msgid " [Common Dir]" msgstr "" #: src/gui.c:17047 msgid "Do you want to overwite the newer file to User Dir?" msgstr "" #: src/gui.c:17052 msgid "Don't ask this from the next time." msgstr "" #: src/gui.c:17171 msgid "MaCoPiX : Starting up" msgstr "" #: src/gui.c:17188 msgid "No Menu Files are installed!!" msgstr "" #: src/gui.c:17193 msgid "Please install one menu file at least," msgstr "" #: src/gui.c:17198 msgid " or appoint a mascot file in option in order to start MaCoPiX!" msgstr "" #: src/gui.c:17208 msgid "You can download mascot files from MaCoPiX official web." msgstr "" #: src/gui.c:17233 msgid "Menus and Mascots can be installed by the menu bar of this window." msgstr "" #: src/gui.c:17237 msgid "Or, drag & drop a mascot menu archive (*.tar.gz) directly" msgstr "" #: src/gui.c:17241 msgid "into this window, in order to install it." msgstr "" #: src/gui.c:17261 msgid "MaCoPiX : Launcher Menu Selection" msgstr "" #: src/gui.c:17265 msgid "MaCoPiX : Start Menu Selection" msgstr "" #: src/gui.c:17458 msgid "Installed Mascot" msgstr "" #: src/gui.c:17554 msgid "Dir." msgstr "" #: src/gui.c:17559 msgid "Entry" msgstr "" #: src/gui.c:17596 msgid "User" msgstr "" #: src/gui.c:17600 msgid "Common" msgstr "" #: src/gui.c:17604 msgid "Unknown" msgstr "" #: src/gui.c:17613 #, c-format msgid "%4d categories" msgstr "" #: src/gui.c:17616 #, c-format msgid "%4d mascots" msgstr "" #: src/gui.c:17625 msgid "-- Combined Menu --" msgstr "" #: src/gui.c:17659 msgid "MaCoPiX Message" msgstr "" #: src/gui.c:17702 msgid "MaCoPiX : Installing Mascots" msgstr "" #: src/gui.c:17779 msgid "Selected File\n" msgstr "" #: src/gui.c:17781 msgid "cannot be opend as MaCoPiX menu.\n" msgstr "" #: src/gui.c:17785 msgid "Selected File cannot be opened as MaCoPiX menu.\n" msgstr "" #: src/gui.c:17812 msgid "MaCoPiX : Deletion of temporay files" msgstr "" #: src/gui.c:17814 msgid "Install of the new menu file has been completed." msgstr "" #: src/gui.c:17820 msgid "Remove the temporary direcotry?" msgstr "" #: src/pixmap.c:436 src/nokkari.c:137 #, c-format msgid "Cannot Load Image %s\n" msgstr "" #: src/pixmap.c:1638 src/pixmap.c:1639 msgid "Cannot Load Default Clock Font" msgstr "" #: src/pixmap.c:1649 src/pixmap.c:1650 msgid "Cannot Load Default Balloon Font" msgstr "" #: src/pixmap.c:1683 msgid "Default Font Selection" msgstr "" #: src/balloon.c:873 #, c-format msgid "%s(From is not avairable)%s" msgstr "" #: src/balloon.c:886 #, c-format msgid "%s(Subject is not avairable)%s" msgstr "" #: src/balloon.c:893 msgid "POP3 access error" msgstr "" #: src/utils.c:85 src/nokkari.c:788 src/nokkari.c:844 #, c-format msgid "Cannot open copy source file %s" msgstr "" #: src/utils.c:90 src/nokkari.c:793 src/nokkari.c:849 #, c-format msgid "Cannot open copy destination file %s" msgstr "" #: src/utils.c:115 #, c-format msgid "Cannot read status of directry %s .\n" msgstr "" #: src/utils.c:119 #, c-format msgid "%s is not directory.\n" msgstr "" #: src/utils.c:124 #, c-format msgid "Creating the common directory \"%s\"\n" msgstr "" #: src/nokkari.c:152 #, c-format msgid "Warning : Too much BMP files for Nokkari-Chara! [File%d]\n" msgstr "" #: src/nokkari.c:203 msgid "Cannot Save Ini File!" msgstr "" #: src/nokkari.c:297 src/nokkari.c:334 #, c-format msgid "Warning : Too much Frames!! [%s=%d]\n" msgstr "" #: src/nokkari.c:401 #, c-format msgid "Warning : Too much Line numbers for the Balloon message! [Pat%d]\n" msgstr "" #: src/nokkari.c:647 #, c-format msgid "Warning : Too much Frames for MaCoPiX! [Pattern%d]\n" msgstr "" #: src/nokkari.c:672 #, c-format msgid "Error : Cannot find Frame setting! [Pat%d_%d]\n" msgstr "" #: src/nokkari.c:990 msgid "MaCoPiX <--> Nokkari-Chara Convert Log" msgstr "" #: src/nokkari.c:1026 msgid "" "\n" "\n" " The above warnings/errors are found in conversion...\n" "\n" " Please modify and use this mascot on Nokkari-Chara ver1.40 or later.\n" msgstr "" #: src/nokkari.c:1030 msgid "" "\n" " Congratulations!!\n" "===================\n" "\n" " You've scceeded to convert with no errors.\n" "\n" " Please use this mascot on Nokkari-Chara ver1.40 or later.\n" msgstr "" #: src/mail.c:157 src/mail.c:162 msgid "Initializing Biff..." msgstr "" #: src/mail.c:330 #, c-format msgid "" "You have %d mails (%d SPAMs).\n" " [Latest Mail]\n" " From: %s\n" " Subject: %s" msgstr "" #: src/mail.c:336 #, c-format msgid "" "You have %d mails.\n" " [Latest Mail]\n" " From: %s\n" " Subject: %s" msgstr "" #: src/mail.c:355 #, c-format msgid "You have %d mails." msgstr "" #: src/mail.c:373 src/mail.c:378 msgid "You have no mails." msgstr "" #: src/mail.c:900 src/mail.c:913 src/mail.c:1189 src/mail.c:1207 msgid "(Decode Error)" msgstr "" #: src/mail.c:937 src/mail.c:1242 #, c-format msgid "" " \n" " ***** %d mails are skipped *****\n" " \n" msgstr "" #: src/mail.c:1881 #, c-format msgid "Displaying the newest %d mails out of %ds. [%d SPAMs are excluded.]" msgstr "" #: src/mail.c:1887 #, c-format msgid "Displaying the newest %d mails out of %ds." msgstr "" #: src/mail.c:1894 #, c-format msgid "You have %d new mails. [%d SPAMs are excluded.]" msgstr "" #: src/mail.c:1898 #, c-format msgid "You have %d new mails." msgstr "" #: src/mail.c:1946 src/mail.c:1950 msgid "MaCoPiX : Arrived mail list" msgstr "" #: src/mail.c:2016 src/mail.c:2075 msgid " === Failed to get From/Subject list of arrived mails. ===" msgstr "" #: src/mail.c:2092 src/mail.c:2094 msgid "Start Mailer" msgstr "" #: src/mail.c:2102 src/mail.c:2104 msgid "Close" msgstr "" #: src/sslmanager.c:82 src/sslmanager.c:89 msgid "(unknown)" msgstr "" #: src/sslmanager.c:113 #, c-format msgid "" "The SSL certificate of host \"%s\" cannot verified by the following reason:\n" " %s\n" "\n" "Server certificate:\n" " Subject: %s\n" " Issuer: %s\n" "\n" "Do you accept this certificate?" msgstr "" #: src/sslmanager.c:140 msgid "SSL certificate verify failed" msgstr "" #: src/sslmanager.c:154 msgid "Skip this verification after this." msgstr "" #: src/dnd.c:202 #, c-format msgid "" "Do you want to install the mascot menu archive,\n" " \"%s\"\n" "to your system [\"%s\"]? \n" "(Files are automatically overwritten.)" msgstr "" #: src/dnd.c:220 msgid "MaCoPiX : Installing Mascot Menu File" msgstr "" macopix-1.7.4/po/POTFILES.in0000644000076400007640000000031110622740320012276 00000000000000src/main.c src/callbacks.c src/gui.c src/pixmap.c src/balloon.c src/configfile.c src/utils.c src/nokkari.c src/bmp.c src/bmpwrite.c src/mail.c src/pop.c src/ssl.c src/sslmanager.c src/dnd.c src/main.h macopix-1.7.4/po/ja.po0000664000076400007640000021125011030100027011447 00000000000000# macopix = Mascot Constructive Pilot for X # Copyright (C) 2002-4 Kurumi Chimari # Kurumi Chimari , 2002-4. # msgid "" msgstr "" "Project-Id-Version: macopix 1.6.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2008-06-23 19:03-1000\n" "PO-Revision-Date: 2008-05-23 19:29-1000\n" "Last-Translator: Kurumi Chimari \n" "Language-Team: Japansese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:430 msgid "Cannot Find Menu File." msgstr "メニューファイルãŒã‚りã¾ã›ã‚“" #: src/main.c:435 #, c-format msgid "Cannot Find Menu File %s\n" msgstr "メニューファイル %s ãŒã‚りã¾ã›ã‚“\n" #: src/main.c:464 src/main.c:506 src/main.c:2109 src/main.c:2152 #: src/main.c:2904 src/main.c:3021 src/main.c:3308 src/main.c:3327 #: src/main.c:3335 src/main.c:3464 src/gui.c:1137 src/gui.c:1141 #: src/gui.c:7827 #, c-format msgid "Installing %s -> %s\n" msgstr "インストール中 %s -> %s\n" #: src/main.c:537 src/main.c:540 msgid "Preparing for Installation" msgstr "ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã®æº–備中" #: src/main.c:556 src/main.c:603 msgid " Cannot read the Menu File correctly!!" msgstr " ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ­£å¸¸ã«é–‹ã‘ã¾ã›ã‚“!!" #: src/main.c:559 src/main.c:606 msgid " Cannot read the Menu File correctly!!\n" msgstr " ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ­£å¸¸ã«é–‹ã‘ã¾ã›ã‚“!!\n" #: src/main.c:591 src/main.c:842 src/main.c:917 src/main.c:2185 #: src/main.c:2511 src/main.c:2642 src/main.c:2672 src/main.c:3538 msgid "(Invalid Character Code)" msgstr "(䏿­£ãªæ–‡å­—コード)" #: src/main.c:636 #, c-format msgid "Installing mascots [%2d/%2d]" msgstr "マスコットをインストール中 [%2d/%2d]" #: src/main.c:642 #, c-format msgid "Installing mascots [%p%%]" msgstr "マスコットをインストール中 [%p%%]" #: src/main.c:701 msgid " ================== Installed Menus ================== \n" msgstr " ================== インストール済 メニュー ================== \n" #: src/main.c:718 #, c-format msgid " !!! Common Directory - %s - does not exist.\n" msgstr " !!! 共通ディレクトリ - %s - ãŒå­˜åœ¨ã—ã¾ã›ã‚“.\n" #: src/main.c:723 msgid " [Common Directory]\n" msgstr " [共通ディレクトリ]\n" #: src/main.c:737 src/main.c:787 #, c-format msgid " %20s * %2d categories -- Combined Menu --\n" msgstr " %20s * %2d categories -- 複åˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ --\n" #: src/main.c:741 src/main.c:791 #, c-format msgid " %20s : %2d mascots [%s]\n" msgstr "" #: src/main.c:768 #, c-format msgid " !!! User Directory - %s - does not exist.\n" msgstr " !!! ユーザーディレクトリ - %s - ãŒå­˜åœ¨ã—ã¾ã›ã‚“.\n" #: src/main.c:773 msgid " [User Directory]\n" msgstr " [ユーザーディレクトリ]\n" #: src/main.c:1004 #, c-format msgid "Creating User-Dir %s .\n" msgstr "ユーザーディレクトリを作æˆä¸­...%s\n" #: src/main.c:1018 #, c-format msgid "Creating User-PixmapDir %s .\n" msgstr "ãƒ¦ãƒ¼ã‚¶ãƒ¼ç”»åƒæ ¼ç´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’作æˆä¸­...%s\n" #: src/main.c:1032 #, c-format msgid "Creating User-SoundDir %s .\n" msgstr "ユーザー音声格ç´ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’作æˆä¸­...%s\n" #: src/main.c:2072 src/main.c:2872 src/main.c:3094 msgid "Cannot Find Mascot File." msgstr "マスコットファイルãŒã‚りã¾ã›ã‚“" #: src/main.c:2077 src/main.c:2877 src/main.c:3099 src/nokkari.c:483 #, c-format msgid "Cannot Find Mascot File %s\n" msgstr "マスコットファイル %s ãŒã‚りã¾ã›ã‚“\n" #: src/main.c:2989 src/main.c:3275 msgid "Cannot Find Image." msgstr "ç”»åƒãƒ•ァイルãŒã‚りã¾ã›ã‚“" #: src/main.c:2994 src/main.c:3280 #, c-format msgid "Cannot Find Image %s\n" msgstr "ç”»åƒãƒ•ァイル %s ãŒã‚りã¾ã›ã‚“\n" #: src/main.c:3431 msgid "Cannot Find Sound File." msgstr "音声ファイルãŒã‚りã¾ã›ã‚“" #: src/main.c:3436 #, c-format msgid "Cannot Find Sound File %s\n" msgstr "音声ファイルãŒã‚りã¾ã›ã‚“ %s\n" #: src/main.c:3496 #, c-format msgid "Cannot find resource file %s.\n" msgstr "共通設定ファイル %s ãŒã‚りã¾ã›ã‚“\n" #: src/main.c:3497 msgid "Loading default resource file...\n" msgstr "デフォルトã®å…±é€šè¨­å®šã‚’ロードã—ã¾ã™...\n" #: src/main.c:4516 src/main.c:4549 src/main.c:4656 #, c-format msgid "Option \"%s\" is not found. Ignoring...\n" msgstr "オプション \"%s\" ã¯ã‚りã¾ã›ã‚“。無視ã•れã¾ã™...\n" #: src/main.c:4708 #, c-format msgid "macopix COMMON DIR:%s\n" msgstr "macopix 共通ディレクトリ:%s\n" #: src/main.c:4719 msgid " macopix : Mascot Constructive Pilot for X Ver" msgstr " macopix : Mascot Constructive Pilot for X ãƒãƒ¼ã‚¸ãƒ§ãƒ³" #: src/main.c:4720 #, c-format msgid " [usage] %% macopix [options] (mascot file)\n" msgstr " [使用法] %% macopix [オプション] (マスコットファイル)\n" #: src/main.c:4721 msgid " -h, --help : Print this message\n" msgstr " -h, --help : ã“ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’表示\n" #: src/main.c:4723 msgid " -c, --common-dir : Print COMMON Directory\n" msgstr " -c, --common-dir : 共通ディレクトリを表示\n" #: src/main.c:4726 msgid " -b, --biff : Turn on the biff function\n" msgstr " -b, --biff : Biff機能をON\n" #: src/main.c:4728 msgid " -s, --signal : Turn on the time signal\n" msgstr " -s, --signal : 時報機能をON\n" #: src/main.c:4729 #, c-format msgid " -o, --offset offset[%%] : Set offset-value for Focus Following\n" msgstr " -o, --offset offset[%%] : フォーカス追従用ã®ã‚ªãƒ•セットを指定\n" #: src/main.c:4730 msgid " -r, --rcfile rc-file : Set the resource file\n" msgstr " -r, --rcfile rc-file : 共通設定ファイルを指定\n" #: src/main.c:4731 msgid " -m, --menu menu-file : Set the file for quick menu\n" msgstr " -m, --menu menu-file : メニュー用ã®ãƒ•ァイルを指定\n" #: src/main.c:4732 msgid "" " -mg --mag magnify : Set magnification percentage of mascot\n" msgstr " -mg --mag magnify : ãƒžã‚¹ã‚³ãƒƒãƒˆã®æ‹¡å¤§ç¸®å°çŽ‡ã‚’%%ã§æŒ‡å®š\n" #: src/main.c:4733 msgid "" " -i, --ip-style (0|1|2|3) : Set interpolation style for magnification\n" msgstr " -i, --ip-style (0|1|2|3) : æ‹¡å¤§ç¸®å°æ™‚ã®ç”»åƒè£œå®Œã‚¹ã‚¿ã‚¤ãƒ«ã‚’指定\n" #: src/main.c:4734 msgid "## For Installation\n" msgstr "## インストール用オプション\n" #: src/main.c:4735 msgid " -a, --auto-install : Set mascot auto install ON\n" msgstr " -a, --auto-install : マスコットã®è‡ªå‹•インストールをON\n" #: src/main.c:4736 msgid " -na --no-auto-install : Set mascot auto install OFF\n" msgstr " -na --no-auto-install : マスコットã®è‡ªå‹•インストールをOFF\n" #: src/main.c:4737 msgid " -O, --over-write : Permit to overwrite files in user dir\n" msgstr "" " -O, --over-write : ユーザーディレクトリ中ã®ãƒ•ァイルã®ä¸Šæ›¸ã許" "å¯\n" #: src/main.c:4738 msgid "" " --install-user-mascot (mascot) : Mascot Installation to User Dir.\n" msgstr "" " --install-user-mascot (mascot) : ユーザーマスコットã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«\n" #: src/main.c:4739 msgid " --install-user-menu (menu) : Menu Installation to User Dir.\n" msgstr "" " --install-user-menu (menu) : ユーザーメニューã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«\n" #: src/main.c:4741 msgid "" " --install-common-mascot (mascot): Mascot Installation to Common Dir.\n" msgstr " --install-common-mascot (mascot): 共通マスコットã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«\n" #: src/main.c:4742 msgid "" " --install-common-menu (menu) : Menu Installation to Common Dir.\n" msgstr " --install-common-menu (menu) : 共通メニューã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«\n" #: src/main.c:4745 msgid "## For Socket Message\n" msgstr "## ソケットメッセージ用オプション\n" #: src/main.c:4746 msgid "" " --sockmsg : Start MaCoPiX as Socket Message Receiver\n" msgstr " --sockmsg : ソケットメッセージモードã§èµ·å‹•\n" #: src/main.c:4747 msgid "" " --message (text) : Send Message to Socket Message Receiver\n" msgstr "" " --message (text) : ソケットメッセージモードã«ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’é€ã‚‹\n" #: src/main.c:4748 msgid " --message-expire (time) : Socket Message Expire Time[ms]\n" msgstr " --message-expire (time) : ソケットメッセージã®è¡¨ç¤ºæ™‚é–“[ms]\n" #: src/main.c:4749 msgid " --message-type-lump : Force to Set Lump Sum Balloon\n" msgstr " --message-type-lump : ãƒãƒ«ãƒ¼ãƒ³ã‚’強制的ã«ä¸€æ‹¬è¡¨ç¤ºã«ã™ã‚‹\n" #: src/main.c:4750 msgid " --message-type-step : Force to Set Stepping Balloon\n" msgstr "" " --message-type-step : ãƒãƒ«ãƒ¼ãƒ³ã‚’強制的ã«ã‚¹ãƒ†ãƒƒãƒ”ング表示ã«ã™ã‚‹\n" #: src/main.c:4751 msgid " --message-step (frame) : Stepping Interval Frame for SockeMsg\n" msgstr " --message-step (frame) : ステッピング表示ã®é–“éš” [フレーム数]\n" #: src/main.c:4752 msgid " -nc, --no-duet-click : Duet Animation [Click] OFF\n" msgstr " -nc, --no-duet-click : デュエットアニメ [クリック] OFF\n" #: src/main.c:4753 msgid " -nr, --no-duet-random : Duet Animation [Random] OFF\n" msgstr " -nr, --no-duet-random : デュエットアニメ [ランダム] OFF\n" #: src/main.c:4854 #, c-format msgid "%8d%2d%4dMacopix already running in SockMsg Mode" msgstr "%8d%2d%4dã™ã§ã«ã‚½ã‚±ãƒƒãƒˆãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãƒ¢ãƒ¼ãƒ‰ã§MaCoPiXãŒèµ·å‹•ã—ã¦ã„ã¾ã™." #: src/main.c:4866 msgid "Macopix not running in SockMsg Mode\n" msgstr "MaCoPiXãŒã‚½ã‚±ãƒƒãƒˆãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãƒ¢ãƒ¼ãƒ‰ã§èµ·å‹•ã—ã¦ã„ã¾ã›ã‚“.\n" #: src/callbacks.c:1732 #, c-format msgid "%d/%d/%d(%s)" msgstr "%då¹´%d月%dæ—¥(%s)" #: src/callbacks.c:1896 msgid "Sun" msgstr "æ—¥" #: src/callbacks.c:1899 msgid "Mon" msgstr "月" #: src/callbacks.c:1902 msgid "Tue" msgstr "ç«" #: src/callbacks.c:1905 msgid "Wed" msgstr "æ°´" #: src/callbacks.c:1908 msgid "Thu" msgstr "木" #: src/callbacks.c:1911 msgid "Fri" msgstr "金" #: src/callbacks.c:1914 msgid "Sat" msgstr "土" #: src/gui.c:717 src/gui.c:3267 src/gui.c:3281 src/gui.c:10511 src/gui.c:10525 #, c-format msgid "Saved Resource as ...%%n \"%s\"" msgstr "共通設定をä¿å­˜ã—ã¾ã—ãŸ. %%n \"%s\"" #: src/gui.c:728 src/gui.c:771 src/gui.c:2713 src/gui.c:2726 src/gui.c:2913 #: src/gui.c:3006 src/gui.c:9534 src/gui.c:9547 src/gui.c:10021 #: src/gui.c:10114 #, c-format msgid "Saved Mascot as ...%%n \"%s\"" msgstr "マスコットをä¿å­˜ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:740 #, c-format msgid "Set Default Menu as ...%%n \"%s\"" msgstr "デフォルトメニューを設定ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:743 src/gui.c:756 msgid "Remove Default Menu from Resource Setting" msgstr "共通設定ã‹ã‚‰ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®æŒ‡å®šã‚’消去ã—ã¾ã—ãŸ." #: src/gui.c:774 #, c-format msgid "%%aSaved Resource as ...%%n \"%s\"" msgstr "%%a共通設定をä¿å­˜ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:778 #, c-format msgid "%%aSaved Menu as ...%%n \"%s\"" msgstr "%%aメニューをä¿å­˜ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:779 #, c-format msgid "%%aSet Default Menu as ...%%n \"%s\"" msgstr "%%aデフォルトメニューを設定ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:783 #, c-format msgid "%%aRemove Default Menu from Resource Setting" msgstr "%%a共通設定ã‹ã‚‰ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®æŒ‡å®šã‚’消去ã—ã¾ã—ãŸ." #: src/gui.c:1348 src/gui.c:11120 src/gui.c:13944 src/gui.c:13971 #: src/gui.c:13977 msgid "Focus Follow" msgstr "フォーカス追従" #: src/gui.c:1361 src/gui.c:14087 src/gui.c:14120 msgid "No Clock" msgstr "時計を使用ã—ãªã„" #: src/gui.c:1364 src/gui.c:14092 src/gui.c:14124 src/gui.c:14134 msgid "Clock on Image" msgstr "マスコット上ã«ç›´æŽ¥æç”»" #: src/gui.c:1377 src/gui.c:14161 src/gui.c:14199 src/gui.c:14217 msgid "14:00:00" msgstr "" #: src/gui.c:1380 src/gui.c:14166 src/gui.c:14203 src/gui.c:14221 msgid "14:00" msgstr "" #: src/gui.c:1383 src/gui.c:14171 src/gui.c:14207 src/gui.c:14225 msgid "PM 2:00:00" msgstr "åˆå¾Œ 2:00:00" #: src/gui.c:1447 src/gui.c:11519 src/gui.c:11557 src/gui.c:11575 #: src/gui.c:11607 src/gui.c:11645 src/gui.c:11663 src/gui.c:11723 #: src/gui.c:11761 src/gui.c:11779 msgid "Do Nothing" msgstr "何もã—ãªã„" #: src/gui.c:1450 src/gui.c:11524 src/gui.c:11561 src/gui.c:11579 #: src/gui.c:11612 src/gui.c:11649 src/gui.c:11667 src/gui.c:11728 #: src/gui.c:11765 src/gui.c:11783 msgid "Vanish" msgstr "消ãˆã‚‹" #: src/gui.c:1462 src/gui.c:11301 src/gui.c:11335 src/gui.c:11349 msgid "Manual Scaling" msgstr "マニュアルã§è¨­å®š" #: src/gui.c:1465 src/gui.c:11306 src/gui.c:11339 src/gui.c:11353 msgid "Auto Scaling" msgstr "自動測定" #: src/gui.c:1492 src/gui.c:12686 src/gui.c:12724 src/gui.c:12743 msgid "Nearest-Neighbor" msgstr "ニアレストãƒã‚¤ãƒãƒ¼" #: src/gui.c:1496 src/gui.c:12691 src/gui.c:12728 src/gui.c:12747 msgid "Tiles" msgstr "タイル" #: src/gui.c:1500 src/gui.c:12696 src/gui.c:12732 src/gui.c:12751 msgid "Bilinear" msgstr "ãƒã‚¤ãƒªãƒ‹ã‚¢" #: src/gui.c:1504 src/gui.c:12701 src/gui.c:12736 src/gui.c:12755 msgid "Hyper" msgstr "ãƒã‚¤ãƒ‘ー" #: src/gui.c:1516 src/gui.c:13562 src/gui.c:13594 src/gui.c:13609 msgid "Manual" msgstr "マニュアルã§ãƒã‚§ãƒƒã‚¯" #: src/gui.c:1520 src/gui.c:13567 src/gui.c:13598 src/gui.c:13613 msgid "Auto Overwrite" msgstr "自動上書ã" #: src/gui.c:1524 src/gui.c:13572 src/gui.c:13602 src/gui.c:13617 msgid "Ignore" msgstr "無視ã™ã‚‹" #: src/gui.c:1535 src/gui.c:1549 src/gui.c:1563 src/gui.c:11190 #: src/gui.c:11200 src/gui.c:14701 src/gui.c:15183 msgid "Left" msgstr "å·¦å´" #: src/gui.c:1575 src/gui.c:13444 src/gui.c:13471 src/gui.c:13481 msgid "Stepping" msgstr "ステップ表示" #: src/gui.c:1606 src/gui.c:1682 src/gui.c:11909 src/gui.c:11942 #: src/gui.c:12032 src/gui.c:12082 src/gui.c:12111 src/gui.c:12243 msgid "None" msgstr "使用ã—ãªã„" #: src/gui.c:1610 src/gui.c:12037 src/gui.c:12086 src/gui.c:12115 msgid "POP3 (normal)" msgstr "POP3 (通常)" #: src/gui.c:1614 src/gui.c:12042 src/gui.c:12090 src/gui.c:12119 msgid "POP3 (APOP auth)" msgstr "POP3 (APOPèªè¨¼)" #: src/gui.c:1619 src/gui.c:12048 src/gui.c:12095 src/gui.c:12124 msgid "Local mbox" msgstr "ローカル mbox" #: src/gui.c:1623 src/gui.c:12053 src/gui.c:12099 src/gui.c:12128 msgid "qmail (Maildir)" msgstr "qmail (Maildirå½¢å¼)" #: src/gui.c:1627 src/gui.c:12058 src/gui.c:12103 src/gui.c:12132 msgid "MH + Procmail" msgstr "" #: src/gui.c:1650 src/gui.c:12277 src/gui.c:12292 msgid "Don't use SSL" msgstr "SSLを使用ã—ãªã„" #: src/gui.c:1654 src/gui.c:12248 src/gui.c:12281 src/gui.c:12296 msgid "Use SSL for POP3 Connection" msgstr "POP3ã®æŽ¥ç¶šã«SSLを使用" #: src/gui.c:1658 src/gui.c:12253 src/gui.c:12285 src/gui.c:12300 msgid "Use STARTTLS to start SSL session" msgstr "SSLセッションã®é–‹å§‹ã«STARTTLSを使用" #: src/gui.c:1685 src/gui.c:11914 src/gui.c:11946 src/gui.c:11956 msgid "Click Action" msgstr "クリック動作" #: src/gui.c:2391 src/gui.c:2432 src/gui.c:2488 src/gui.c:2550 src/gui.c:3822 #: src/gui.c:3863 src/gui.c:3983 src/gui.c:4016 src/gui.c:4050 src/gui.c:4083 #: src/gui.c:4131 src/gui.c:4159 src/gui.c:4223 src/gui.c:4255 src/gui.c:4289 #: src/gui.c:4320 src/gui.c:4351 src/gui.c:4442 src/gui.c:4613 src/gui.c:4784 #: src/gui.c:4989 src/gui.c:6037 src/gui.c:6209 src/gui.c:6765 src/gui.c:6961 #: src/gui.c:7128 src/gui.c:7291 src/gui.c:7488 src/gui.c:7651 src/gui.c:7744 #: src/gui.c:7776 src/gui.c:8036 src/gui.c:8185 src/gui.c:8738 src/gui.c:9005 #: src/gui.c:9233 src/gui.c:9364 msgid "Error: File cannot be opened." msgstr "エラー: ファイルを開ã‘ã¾ã›ã‚“。" #: src/gui.c:2396 src/gui.c:2437 src/gui.c:2493 src/gui.c:2555 src/gui.c:3827 #: src/gui.c:3868 src/gui.c:3988 src/gui.c:4021 src/gui.c:4055 src/gui.c:4088 #: src/gui.c:4136 src/gui.c:4164 src/gui.c:4228 src/gui.c:4260 src/gui.c:4294 #: src/gui.c:4325 src/gui.c:4356 src/gui.c:4447 src/gui.c:4618 src/gui.c:4789 #: src/gui.c:4994 src/gui.c:6042 src/gui.c:6214 src/gui.c:6770 src/gui.c:6966 #: src/gui.c:7133 src/gui.c:7296 src/gui.c:7493 src/gui.c:7656 src/gui.c:7749 #: src/gui.c:7781 src/gui.c:8041 src/gui.c:8190 src/gui.c:8743 src/gui.c:9010 #: src/gui.c:9238 src/gui.c:9369 #, c-format msgid "Cannot Open %s\n" msgstr "ファイル %s ã‚’é–‹ã‘ã¾ã›ã‚“\n" #: src/gui.c:2539 #, c-format msgid "Created Menu File ...%%n \"%s\"" msgstr "メニューファイルを作æˆã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:2669 src/gui.c:2764 src/gui.c:2855 src/gui.c:9494 src/gui.c:9662 #: src/gui.c:9962 msgid "File Save : Overwrite Confirmation" msgstr "ファイルä¿å­˜ : 上書ã確èª" #: src/gui.c:2671 src/gui.c:2766 src/gui.c:2857 src/gui.c:9496 src/gui.c:9664 #: src/gui.c:9964 #, c-format msgid "File %s already exists." msgstr "ファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚" #: src/gui.c:2675 src/gui.c:2770 src/gui.c:2861 src/gui.c:3143 src/gui.c:3234 #: src/gui.c:9500 src/gui.c:9668 src/gui.c:9968 src/gui.c:10304 #: src/gui.c:10477 msgid "Overwrite?" msgstr "上書ãã—ã¾ã™ã‹?" #: src/gui.c:2682 src/gui.c:2684 src/gui.c:2777 src/gui.c:2779 src/gui.c:2868 #: src/gui.c:2870 src/gui.c:3150 src/gui.c:3152 src/gui.c:3241 src/gui.c:3243 #: src/gui.c:5170 src/gui.c:5172 src/gui.c:5309 src/gui.c:5311 src/gui.c:5474 #: src/gui.c:5476 src/gui.c:5664 src/gui.c:5666 src/gui.c:5812 src/gui.c:5814 #: src/gui.c:5926 src/gui.c:5928 src/gui.c:6376 src/gui.c:6378 src/gui.c:6475 #: src/gui.c:6477 src/gui.c:6608 src/gui.c:6610 src/gui.c:8341 src/gui.c:8343 #: src/gui.c:8403 src/gui.c:8405 src/gui.c:8487 src/gui.c:8489 src/gui.c:8585 #: src/gui.c:8587 src/gui.c:9507 src/gui.c:9509 src/gui.c:9675 src/gui.c:9677 #: src/gui.c:9886 src/gui.c:9888 src/gui.c:9975 src/gui.c:9977 src/gui.c:10311 #: src/gui.c:10313 src/gui.c:10484 src/gui.c:10486 src/gui.c:11075 #: src/gui.c:11077 src/gui.c:17063 src/gui.c:17065 src/gui.c:17292 #: src/gui.c:17294 src/gui.c:17832 src/gui.c:17834 src/sslmanager.c:178 #: src/sslmanager.c:180 src/dnd.c:247 src/dnd.c:249 msgid "Cancel" msgstr "嫌ã§ã™" #: src/gui.c:2693 src/gui.c:2695 src/gui.c:2788 src/gui.c:2790 src/gui.c:2877 #: src/gui.c:2879 src/gui.c:3159 src/gui.c:3161 src/gui.c:3250 src/gui.c:3252 #: src/gui.c:5179 src/gui.c:5181 src/gui.c:5226 src/gui.c:5228 src/gui.c:5318 #: src/gui.c:5320 src/gui.c:5483 src/gui.c:5485 src/gui.c:5674 src/gui.c:5676 #: src/gui.c:5821 src/gui.c:5823 src/gui.c:5935 src/gui.c:5937 src/gui.c:6386 #: src/gui.c:6388 src/gui.c:6484 src/gui.c:6486 src/gui.c:6617 src/gui.c:6619 #: src/gui.c:8355 src/gui.c:8357 src/gui.c:8417 src/gui.c:8419 src/gui.c:8497 #: src/gui.c:8499 src/gui.c:8595 src/gui.c:8597 src/gui.c:9517 src/gui.c:9519 #: src/gui.c:9685 src/gui.c:9687 src/gui.c:9895 src/gui.c:9897 src/gui.c:9985 #: src/gui.c:9987 src/gui.c:10321 src/gui.c:10323 src/gui.c:10494 #: src/gui.c:10496 src/gui.c:11084 src/gui.c:11086 src/gui.c:17072 #: src/gui.c:17074 src/gui.c:17301 src/gui.c:17303 src/gui.c:17841 #: src/gui.c:17843 src/pixmap.c:1665 src/pixmap.c:1667 src/nokkari.c:1043 #: src/nokkari.c:1045 src/sslmanager.c:170 src/sslmanager.c:172 src/dnd.c:239 #: src/dnd.c:241 msgid "OK" msgstr "了承" #: src/gui.c:3137 src/gui.c:10298 msgid "Menu Save : Overwrite Confirmation" msgstr "メニューä¿å­˜ : 上書ã確èª" #: src/gui.c:3139 src/gui.c:10300 #, c-format msgid "Menu File %s already exists." msgstr "メニューファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚" #: src/gui.c:3176 src/gui.c:3189 src/gui.c:10338 src/gui.c:10351 #, c-format msgid "Saved Menu as ...%%n \"%s\"" msgstr "メニューをä¿å­˜ã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:3228 src/gui.c:10471 msgid "Resource Save : Overwrite Confirmation" msgstr "共通設定ä¿å­˜ : 上書ã確èª" #: src/gui.c:3230 src/gui.c:10473 #, c-format msgid "Resource File %s already exists." msgstr "共通設定ファイル %s ã¯ã™ã§ã«å­˜åœ¨ã—ã¾ã™ã€‚" #: src/gui.c:3809 src/gui.c:3849 src/gui.c:3969 src/gui.c:4429 src/gui.c:4977 msgid "Error: File cannot be loaded." msgstr "エラー : ファイルãŒãƒ­ãƒ¼ãƒ‰ã§ãã¾ã›ã‚“。" #: src/gui.c:3814 src/gui.c:3854 src/gui.c:3974 src/gui.c:4434 src/gui.c:4982 #, c-format msgid "Cannot Load %s\n" msgstr "ç”»åƒ %s をロードã§ãã¾ã›ã‚“\n" #: src/gui.c:4390 src/gui.c:4478 src/gui.c:4569 src/gui.c:4653 src/gui.c:4924 #: src/gui.c:5044 #, c-format msgid "Select New Image for No.%02d" msgstr "%02d番ã®ç”»åƒã‚’é¸æŠž" #: src/gui.c:4406 src/gui.c:4599 src/gui.c:4759 src/gui.c:4947 src/gui.c:6013 #: src/gui.c:6182 src/gui.c:6729 src/gui.c:6937 src/gui.c:7104 src/gui.c:7268 #: src/gui.c:7627 src/gui.c:8014 src/gui.c:8157 src/gui.c:8691 src/gui.c:8960 #: src/gui.c:9211 src/gui.c:9322 src/gui.c:9466 src/gui.c:9634 src/gui.c:9932 #: src/gui.c:10272 src/gui.c:10445 msgid "All File" msgstr "ã™ã¹ã¦ã®ãƒ•ァイル" #: src/gui.c:4510 src/gui.c:4694 src/gui.c:4857 src/gui.c:5077 src/gui.c:8245 msgid "User Pix Dir" msgstr "ユーザー画åƒãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª" #: src/gui.c:4515 src/gui.c:4699 src/gui.c:4862 src/gui.c:5082 src/gui.c:8250 msgid "Common Pix Dir" msgstr "共通画åƒãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª" #: src/gui.c:4584 src/gui.c:4685 #, c-format msgid "Please select the image File for No.%d." msgstr "%02d番ã®ç”»åƒã‚’指定ã—ã¦ãã ã•ã„。" #: src/gui.c:4587 src/gui.c:4682 msgid "The image described in INI cannot be found." msgstr "INIãƒ•ã‚¡ã‚¤ãƒ«ä¸­ã§æŒ‡å®šã•れãŸç”»åƒãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。" #: src/gui.c:4592 msgid "The image described in INI cannot be found.\n" msgstr "INIãƒ•ã‚¡ã‚¤ãƒ«ä¸­ã§æŒ‡å®šã•れãŸç”»åƒãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。\n" #: src/gui.c:4740 src/gui.c:4821 msgid "Select New Image for Biff" msgstr "メールç€ä¿¡ç”»åƒã‚’é¸æŠž" #: src/gui.c:4911 src/gui.c:5029 msgid "Error: Append Image." msgstr "エラー : ç”»åƒå‰Šé™¤" #: src/gui.c:4913 src/gui.c:5031 msgid "The number of images maxes out." msgstr "ç™»éŒ²ã‚¤ãƒ¡ãƒ¼ã‚¸æ•°ãŒæœ€å¤§ã§ã™ã€‚" #: src/gui.c:5147 msgid "Select Image No. to Delete" msgstr "ç”»åƒå‰Šé™¤" #: src/gui.c:5155 msgid "Delete Image No." msgstr "削除ã™ã‚‹ç”»åƒç•ªå·" #: src/gui.c:5214 msgid "Error : Delete Image." msgstr "エラー : ç”»åƒå‰Šé™¤" #: src/gui.c:5216 #, c-format msgid "Image %02d is used in Pattern %02d / Frame %02d\n" msgstr "ç”»åƒ %02d 番㯠パターン %02d / フレーム %02dã§ä½¿ç”¨ã•れã¦ã„ã¾ã™\n" #: src/gui.c:5221 src/pixmap.c:1660 msgid "Please Change..." msgstr "設定変更をã—ã¦ãã ã•ã„..." #: src/gui.c:5270 msgid "Error: Append Pattern." msgstr "エラー: パターン追加" #: src/gui.c:5272 msgid "The number of patterns maxes out." msgstr "ç™»éŒ²ãƒ‘ã‚¿ãƒ¼ãƒ³æ•°ãŒæœ€å¤§ã§ã™ã€‚" #: src/gui.c:5287 msgid "Select Pattern No. to Append" msgstr "パターン追加" #: src/gui.c:5295 msgid "Append Pattern No." msgstr "追加ã™ã‚‹ãƒ‘ターン番å·" #: src/gui.c:5433 msgid "Error: Delete Pattern." msgstr "エラー: パターン削除" #: src/gui.c:5435 msgid "You cannot delete the base pattern." msgstr "基底パターンã¯å‰Šé™¤ã§ãã¾ã›ã‚“。" #: src/gui.c:5450 msgid "Select Pattern No. to Delete" msgstr "パターン削除" #: src/gui.c:5458 msgid "Delete Pattern No." msgstr "削除ã™ã‚‹ãƒ‘ターン番å·" #: src/gui.c:5608 msgid "Error: Copy Pattern." msgstr "エラー: パターンコピー" #: src/gui.c:5610 msgid "You should append new pattern to copy." msgstr "コピーã™ã‚‹ãƒ‘ターンを新è¦ã«è¿½åŠ ã—ã¦ãã ã•ã„。" #: src/gui.c:5626 msgid "Pattern Copy" msgstr "パターンコピー" #: src/gui.c:5634 msgid "Pattern Copy : No." msgstr "パターンをコピーã—ã¾ã™ : No." #: src/gui.c:5648 msgid " -> No." msgstr "" #: src/gui.c:5774 msgid "Error: Append Frame." msgstr "エラー: フレーム追加" #: src/gui.c:5776 msgid "The number of frames maxes out." msgstr "ç™»éŒ²ãƒ•ãƒ¬ãƒ¼ãƒ æ•°ãŒæœ€å¤§ã§ã™ã€‚" #: src/gui.c:5789 msgid "Select Frame No. to Append" msgstr "フレーム追加" #: src/gui.c:5797 msgid "Append Frame No." msgstr "追加ã™ã‚‹ãƒ•レーム番å·" #: src/gui.c:5887 msgid "Error: Delete Frame." msgstr "エラー : フレーム削除" #: src/gui.c:5889 msgid "You cannot delete no more frames." msgstr "ã“れ以上フレームã®å‰Šé™¤ã¯ã§ãã¾ã›ã‚“。" #: src/gui.c:5902 msgid "Select Frame No. to Delete" msgstr "フレーム削除" #: src/gui.c:5910 msgid "Delete Frame No." msgstr "削除ã™ã‚‹ãƒ•レーム番å·" #: src/gui.c:5998 src/gui.c:6081 src/gui.c:6917 src/gui.c:7000 msgid "Select Mascot File" msgstr "マスコットファイルã®é¸æŠž" #: src/gui.c:6012 src/gui.c:6181 src/gui.c:6936 src/gui.c:8013 src/gui.c:8690 #: src/gui.c:9465 src/gui.c:9931 src/gui.c:15780 msgid "Mascot File" msgstr "マスコットファイル" #: src/gui.c:6104 src/gui.c:6282 src/gui.c:6860 src/gui.c:7036 src/gui.c:8097 #: src/gui.c:8856 src/gui.c:9142 src/gui.c:9279 src/gui.c:9419 src/gui.c:9593 #: src/gui.c:9748 src/gui.c:10221 src/gui.c:10399 src/gui.c:10575 msgid "User Dir" msgstr "ユーザーディレクトリ" #: src/gui.c:6109 src/gui.c:6287 src/gui.c:6865 src/gui.c:7041 src/gui.c:8102 #: src/gui.c:8861 src/gui.c:9147 src/gui.c:9284 src/gui.c:9424 src/gui.c:9598 #: src/gui.c:9753 src/gui.c:10226 src/gui.c:10404 src/gui.c:10580 msgid "Common Dir" msgstr "共通ディレクトリ" #: src/gui.c:6152 src/gui.c:6243 msgid "Error: Append Mascot." msgstr "エラー: マスコット追加" #: src/gui.c:6154 src/gui.c:6245 msgid "The number of mascots maxes out." msgstr "ç™»éŒ²ãƒžã‚¹ã‚³ãƒƒãƒˆæ•°ãŒæœ€å¤§ã§ã™ã€‚" #: src/gui.c:6162 src/gui.c:6255 src/gui.c:8004 src/gui.c:8076 msgid "Select New Mascot File" msgstr "æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ァイルã®é¸æŠž" #: src/gui.c:6337 msgid "Error: Delete Mascot." msgstr "エラー: マスコット削除" #: src/gui.c:6339 msgid "You cannot delete no more mascots." msgstr "ã“れ以上マスコットを削除ã§ãã¾ã›ã‚“。" #: src/gui.c:6354 msgid "Select Mascot No. to Remove from the Menu" msgstr "メニューã‹ã‚‰å‰Šé™¤ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆç•ªå·ã®é¸æŠž" #: src/gui.c:6362 msgid "Remove Mascot No." msgstr "削除ã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆç•ªå·" #: src/gui.c:6437 msgid "Error: Append Category." msgstr "エラー: カテゴリー追加" #: src/gui.c:6439 src/gui.c:6701 src/gui.c:6817 msgid "The number of categories maxes out." msgstr "ç™»éŒ²ã‚«ãƒ†ã‚´ãƒªãƒ¼æ•°ãŒæœ€å¤§ã§ã™ã€‚" #: src/gui.c:6452 msgid "Select Category No. to Append" msgstr "追加ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ã®é¸æŠž" #: src/gui.c:6460 msgid "Append Category No." msgstr "追加ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·" #: src/gui.c:6568 msgid "Error: Delete Category." msgstr "エラー: カテゴリー削除" #: src/gui.c:6570 msgid "You cannot delete no more categories." msgstr "ã“れ以上カテゴリーã®å‰Šé™¤ã¯ã§ãã¾ã›ã‚“。" #: src/gui.c:6584 msgid "Select Category No. to Delete" msgstr "削除ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·ã®é¸æŠž" #: src/gui.c:6592 msgid "Delete Category No." msgstr "削除ã™ã‚‹ã‚«ãƒ†ã‚´ãƒªãƒ¼ç•ªå·" #: src/gui.c:6699 src/gui.c:6815 msgid "Error: Merge Menu." msgstr "エラー: メニューã®å–り込ã¿" #: src/gui.c:6711 src/gui.c:6832 msgid "Select Menu File to Merge" msgstr "å–り込むメニューファイルã®é¸æŠž" #: src/gui.c:6728 src/gui.c:8958 src/gui.c:9321 src/gui.c:10271 #: src/gui.c:13836 msgid "Menu File" msgstr "メニューファイル" #: src/gui.c:7084 src/gui.c:7166 src/gui.c:7248 src/gui.c:7329 msgid "Select Sound File" msgstr "音声ファイルã®é¸æŠž" #: src/gui.c:7204 src/gui.c:7366 msgid "User Sound Dir" msgstr "ユーザー音声ディレクトリ" #: src/gui.c:7209 src/gui.c:7371 msgid "Common Sound Dir" msgstr "共通音声ディレクトリ" #: src/gui.c:7416 src/gui.c:7533 msgid "Select the file refered for the mail checking" msgstr "メールãƒã‚§ãƒƒã‚¯å‚照用ファイルã®é¸æŠž" #: src/gui.c:7611 src/gui.c:7690 msgid "Select mailer command" msgstr "メーラー起動コマンドã®é¸æŠž" #: src/gui.c:7972 #, c-format msgid "Created New Mascot ...%%n \"%s\"" msgstr "æ–°ã—ã„マスコットを作æˆã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:8147 src/gui.c:8228 msgid "Select Image for New Mascot" msgstr "æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆç”¨ç”»åƒã‚’é¸æŠž" #: src/gui.c:8311 src/gui.c:16602 msgid "Create New Mascot" msgstr "マスコット作æˆ" #: src/gui.c:8318 msgid "Creating New Masscot..." msgstr "æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’作æˆã—ã¾ã™..." #: src/gui.c:8335 msgid "1. Please select Mascot File Name to be created" msgstr "1. 作æˆã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’é¸æŠžã—ã¦ãã ã•ã„。" #: src/gui.c:8398 msgid "2. Please select an Image File Name to be used in Mascot" msgstr "2. æ–°è¦ãƒžã‚¹ã‚³ãƒƒãƒˆç”¨ã®ç”»åƒãƒ•ァイルを一ã¤é¸æŠžã—ã¦ãã ã•ã„。" #: src/gui.c:8459 msgid "Mascot File : " msgstr "マスコットファイル : " #: src/gui.c:8465 msgid "Image File : " msgstr "ç”»åƒãƒ•ァイル : " #: src/gui.c:8474 src/gui.c:8481 msgid "At last, Please Input Descrption for Copyright" msgstr "最後ã«ãƒžã‚¹ã‚³ãƒƒãƒˆã®è‘—作記述を入力ã—ã¦ãã ã•ã„。" #: src/gui.c:8535 src/gui.c:8539 msgid "Please Input POP Password" msgstr "POP用ã®ãƒ‘スワードを入力ã—ã¦ãã ã•ã„" #: src/gui.c:8550 #, c-format msgid "Server : %s" msgstr "サーãƒãƒ¼ : %s" #: src/gui.c:8556 #, c-format msgid "User ID : %s" msgstr "ユーザーID : %s" #: src/gui.c:8570 msgid "Password : " msgstr "パスワード : " #: src/gui.c:8630 src/gui.c:8784 src/gui.c:16490 msgid "Open Mascot" msgstr "ãƒžã‚¹ã‚³ãƒƒãƒˆé¸æŠž" #: src/gui.c:8642 src/gui.c:8790 msgid "" "Caution : You're going to install a new mascot into your user's direcroty.\n" msgstr "æ³¨æ„ : æ–°è¦ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ユーザーディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚\n" #: src/gui.c:8643 src/gui.c:8663 src/gui.c:8791 src/gui.c:8805 src/gui.c:8906 #: src/gui.c:8923 src/gui.c:9059 src/gui.c:9071 msgid " If you already have the file with the same filename," msgstr " åŒã˜åå‰ã®ãƒ•ァイルãŒå­˜åœ¨ã™ã‚‹å ´åˆã«ã¯" #: src/gui.c:8644 src/gui.c:8664 src/gui.c:8792 src/gui.c:8806 src/gui.c:8907 #: src/gui.c:8924 src/gui.c:9060 src/gui.c:9072 msgid " it will be overwritten." msgstr " 自動的ã«ä¸Šæ›¸ãã•れã¾ã™ã®ã§ã”注æ„ãã ã•ã„。" #: src/gui.c:8645 src/gui.c:8665 src/gui.c:8793 src/gui.c:8807 msgid "" "\n" " If you want to install more than one mascot with a launcher menu," msgstr "" "\n" " ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ãれã«ä»˜å±žã™ã‚‹è¤‡æ•°ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’インストールã—ãŸã„å ´åˆ" "ã¯" #: src/gui.c:8646 src/gui.c:8666 src/gui.c:8794 src/gui.c:8808 msgid " please install using \"Install Launcher Menu\"." msgstr " 『ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã€ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã®æ–¹ã‚’実行ã—ã¦ä¸‹ã•ã„。" #: src/gui.c:8649 src/gui.c:8797 msgid "Install New Mascot to User's Directory" msgstr "ユーザーディレクトリã¸ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«" #: src/gui.c:8662 src/gui.c:8804 msgid "" "Caution : You're going to install a new mascot into the MaCoPiX common " "direcroty.\n" msgstr "" "æ³¨æ„ : æ–°è¦ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’MaCoPiX共通ディレクトリã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã€‚\n" #: src/gui.c:8669 src/gui.c:8811 msgid "Install New Mascot to the Common Directory" msgstr "共通ディレクトリã¸ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«" #: src/gui.c:8894 src/gui.c:9052 msgid "Open Launcher Menu" msgstr "ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’é–‹ã" #: src/gui.c:8905 src/gui.c:9058 msgid "" "Caution : You're going to install a new launcher menu with its mascots into " "your user's direcroty.\n" msgstr "" "æ³¨æ„ : æ–°è¦ã®ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ä»˜å±žã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ユーザーディレクトリã«ã‚¤ãƒ³" "ストールã—ã¾ã™ã€‚\n" #: src/gui.c:8910 src/gui.c:9063 msgid "Install New Launcher Menu to User's Directory" msgstr "ユーザーディレクトリã¸ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«" #: src/gui.c:8922 src/gui.c:9070 msgid "" "Caution : You're going to install a new launcher menu with mascots into the " "MaCoPiX common direcroty.\n" msgstr "" "æ³¨æ„ : æ–°è¦ã®ãƒ©ãƒ³ãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ä»˜å±žã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’MaCoPiX共通ディレクトリã«" "インストールã—ã¾ã™ã€‚\n" #: src/gui.c:8927 src/gui.c:9075 msgid "Install New Launcher Menu to the Common Directory" msgstr "共通ディレクトリã¸ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«" #: src/gui.c:8953 msgid "LZH File" msgstr "LZHファイル" #: src/gui.c:8956 msgid "TAR+GZ File" msgstr "TAR+GZファイル" #: src/gui.c:9202 src/gui.c:9259 src/gui.c:16736 msgid "Convert from Nokkari-Chara" msgstr "ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã‹ã‚‰å¤‰æ›" #: src/gui.c:9210 src/gui.c:9633 msgid "Nokkari-Chara File" msgstr "ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ãƒ•ァイル" #: src/gui.c:9311 src/gui.c:9393 msgid "Select New Launcher Menu File to Create" msgstr "æ–°è¦ä½œæˆã™ã‚‹ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルã®é¸æŠž" #: src/gui.c:9353 #, c-format msgid "Created Menu File%%n \"%s\"" msgstr "メニューファイルを作æˆã—ã¾ã—ãŸ.%%n \"%s\"" #: src/gui.c:9451 src/gui.c:9571 msgid "Save Mascot to Other File" msgstr "別åã§ãƒžã‚¹ã‚³ãƒƒãƒˆä¿å­˜" #: src/gui.c:9625 src/gui.c:9728 msgid "Convert Mascot to Nokkari-Chara" msgstr "ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã«å¤‰æ›" #: src/gui.c:9797 msgid "Setup for Release Mascot" msgstr "リリースã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã®è¨­å®š" #: src/gui.c:9810 msgid "Please edit the setting for this mascot" msgstr "リリースã™ã‚‹ãƒžã‚¹ã‚³ãƒƒãƒˆã®è¨­å®šã‚’入力ã—ã¦ãã ã•ã„" #: src/gui.c:9818 msgid "Mascot Name" msgstr "マスコットå" #: src/gui.c:9832 msgid "Copyright" msgstr "著作権表示" #: src/gui.c:9849 src/gui.c:13855 src/gui.c:15380 msgid "Character Code" msgstr "文字コード" #: src/gui.c:9861 msgid "Save Fontset for Clock" msgstr "時計用フォントセットã®ä¿å­˜" #: src/gui.c:9867 msgid "Save Colors for Clock" msgstr "時計用é…色ã®ä¿å­˜" #: src/gui.c:9873 msgid "Save Fontset for Balloon" msgstr "ãµãã ã—用フォントセットã®ä¿å­˜" #: src/gui.c:9879 msgid "Save Colors for Baloon" msgstr "ãµãã ã—用é…色ã®ä¿å­˜" #: src/gui.c:9921 src/gui.c:10196 msgid "Save Mascot for Release" msgstr "リリース用ã«ãƒžã‚¹ã‚³ãƒƒãƒˆã‚’ä¿å­˜" #: src/gui.c:10255 src/gui.c:10376 msgid "Save Menu to File" msgstr "メニューをä¿å­˜" #: src/gui.c:10429 src/gui.c:10551 msgid "Save Resource to File" msgstr "共通設定をä¿å­˜" #: src/gui.c:10444 src/gui.c:13818 msgid "Resource File" msgstr "共通設定ファイル" #: src/gui.c:10618 msgid "Fontset Selection" msgstr "ãƒ•ã‚©ãƒ³ãƒˆã‚»ãƒƒãƒˆé¸æŠž" #: src/gui.c:10709 msgid "Color Selection" msgstr "ã‚«ãƒ©ãƒ¼é¸æŠž" #: src/gui.c:11046 msgid "Config for MaCoPiX" msgstr "MaCoPiXã®è¨­å®š" #: src/gui.c:11130 msgid "Offset on the Title Bar" msgstr "タイトルãƒãƒ¼ä¸Šã§ã®ã‚ªãƒ•セット" #: src/gui.c:11145 msgid "Starting Point" msgstr "基準点" #: src/gui.c:11158 msgid "Left upper corner of the focused window" msgstr "フォーカスウィンドウã®å·¦ä¸Šç«¯" #: src/gui.c:11163 msgid "Right upper corner of the focused window" msgstr "フォーカスウィンドウã®å³ä¸Šç«¯" #: src/gui.c:11186 src/gui.c:11196 src/gui.c:14705 src/gui.c:14711 #: src/gui.c:15187 src/gui.c:15193 msgid "Right" msgstr "å³å´" #: src/gui.c:11251 msgid "Absolute[pix]" msgstr "絶対値[pix]" #: src/gui.c:11264 msgid "Relative[%]" msgstr "相対値[%]" #: src/gui.c:11280 msgid "Title Bar Size" msgstr "タイトルãƒãƒ¼ã®ã‚µã‚¤ã‚º" #: src/gui.c:11311 src/gui.c:11343 src/gui.c:11357 msgid "Auto Scaling (for Compiz)" msgstr "自動測定 (Compiz使用時)" #: src/gui.c:11368 msgid "Window Manager [start-up]" msgstr "起動時ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£" #: src/gui.c:11379 msgid "Bar Size (Manual)" msgstr "ãƒãƒ¼ã‚µã‚¤ã‚º(手動)" #: src/gui.c:11397 msgid "Offset for Shaped Bar" msgstr "éžçŸ©å½¢ãƒãƒ¼ç”¨ã‚ªãƒ•セット" #: src/gui.c:11417 msgid "Home Position" msgstr "ホームãƒã‚¸ã‚·ãƒ§ãƒ³" #: src/gui.c:11434 msgid "Auto" msgstr "自動" #: src/gui.c:11447 msgid " X" msgstr "" #: src/gui.c:11461 msgid " Y" msgstr "" #: src/gui.c:11491 msgid "Vanish when auto-detection failed" msgstr "自動検出ã«å¤±æ•—ã—ãŸã¨ãã¯ç”»é¢ã‹ã‚‰æ¶ˆãˆã‚‹" #: src/gui.c:11506 msgid "No Focus" msgstr "フォーカス無" #: src/gui.c:11530 src/gui.c:11566 src/gui.c:11584 src/gui.c:11618 #: src/gui.c:11654 src/gui.c:11672 src/gui.c:11734 src/gui.c:11770 #: src/gui.c:11788 msgid "Sit on Task Bar" msgstr "タスクãƒãƒ¼ã«åº§ã‚‹" #: src/gui.c:11533 src/gui.c:11568 src/gui.c:11586 src/gui.c:11621 #: src/gui.c:11656 src/gui.c:11674 src/gui.c:11737 src/gui.c:11772 #: src/gui.c:11790 msgid "Move to Home Position" msgstr "ホームãƒã‚¸ã‚·ãƒ§ãƒ³ã¸ç§»å‹•" #: src/gui.c:11594 msgid "Sticked Out" msgstr "ç”»é¢ã¯ã¿ã ã—" #: src/gui.c:11683 msgid "Management for Window w/o Title Bar" msgstr "タイトルãƒãƒ¼ã®ãªã„ウィンドウã®å–扱ã„" #: src/gui.c:11694 msgid "Ignore Window w/o Title Bar" msgstr "タイトルãƒãƒ¼ã®ãªã„ウィンドウã«ã¯åº§ã‚‰ãªã„" #: src/gui.c:11708 msgid " Action : " msgstr " 動作 : " #: src/gui.c:11797 msgid " * Mascot could fail to follow the focus with older window managers." msgstr "" " * å¤ã„ウィンドウマãƒãƒ¼ã‚¸ãƒ£ã§ã¯ãƒ•ォーカス追従ã§ããªããªã‚‹ã“ã¨ãŒã‚りã¾ã™" #: src/gui.c:11804 msgid "for Windows" msgstr "Windows用" #: src/gui.c:11813 msgid "Stay on Task Bar" msgstr "タスクãƒãƒ¼ã«å¸¸é§ã™ã‚‹" #: src/gui.c:11829 msgid "Foreground Mapping" msgstr "最å‰é¢è¡¨ç¤º" #: src/gui.c:11838 msgid "Force to Raise to the Foreground" msgstr "å¼·åˆ¶çš„ã«æœ€å‰é¢ã«è¡¨ç¤ºã™ã‚‹(ãƒãƒ©ãƒ„ã‚­ç­‰ã«æ³¨æ„)" #: src/gui.c:11846 msgid "Raise with Mascot shaping (for translucent KWin)" msgstr "マスコットã®å¤‰å½¢æ™‚ã«æœ€å‰é¢ã«è¡¨ç¤ºã™ã‚‹ (KWinã®åŠé€æ˜Žè¡¨ç¤ºå¯¾ç­–)" #: src/gui.c:11858 src/gui.c:14058 msgid "Move" msgstr "移動" #: src/gui.c:11870 src/gui.c:11986 src/gui.c:16425 msgid "Time Signal" msgstr "時報" #: src/gui.c:11881 msgid "Use Signal" msgstr "時報ã®ä½¿ç”¨" #: src/gui.c:11896 msgid "Mascot Action" msgstr "マスコットã®å‹•作" #: src/gui.c:11919 src/gui.c:11950 src/gui.c:11960 msgid "Mascot Random Change" msgstr "マスコットをランダム変更" #: src/gui.c:11966 msgid "External Command" msgstr "外部コマンド" #: src/gui.c:12001 msgid "Server Information" msgstr "サーãƒãƒ¼æƒ…å ±" #: src/gui.c:12019 msgid "Protocol" msgstr "プロトコル" #: src/gui.c:12156 msgid "Address" msgstr "アドレス" #: src/gui.c:12173 msgid "User ID" msgstr "ユーザーID" #: src/gui.c:12191 msgid " Password" msgstr " パスワード" #: src/gui.c:12218 msgid "Save Password" msgstr "パスワードã®ä¿å­˜" #: src/gui.c:12310 msgid "Skip to Verify on SSL Certification" msgstr "SSL検証ã®ç¢ºèªã‚’スキップ" #: src/gui.c:12318 msgid "Non-Blocking SSL" msgstr "éžãƒ–ロッキングSSL" #: src/gui.c:12333 msgid " Port No." msgstr " ãƒãƒ¼ãƒˆç•ªå·" #: src/gui.c:12349 msgid "Local mbox / Maildir / .procmailrc" msgstr "ローカル mbox / Maildir / .procmailrc" #: src/gui.c:12366 msgid "File / Directory" msgstr "ファイル/ディレクトリ" #: src/gui.c:12391 msgid "Operating Information" msgstr "動作ã«é–¢ã™ã‚‹æƒ…å ±" #: src/gui.c:12407 msgid "Interval[sec]" msgstr "æ›´æ–°é–“éš”[ç§’]" #: src/gui.c:12421 msgid " Mailer" msgstr " メーラー起動コマンド" #: src/gui.c:12454 msgid "Polling command" msgstr "ãƒãƒ¼ãƒªãƒ³ã‚°ã‚³ãƒžãƒ³ãƒ‰" #: src/gui.c:12471 msgid "Max Mails for POP Scan" msgstr "最大スキャン件数(POP)" #: src/gui.c:12488 msgid "Tooltips on biff pix" msgstr "ç€ä¿¡ç”»åƒä¸Šã®ãƒ„ールãƒãƒƒãƒ—表示" #: src/gui.c:12498 msgid "SPAM exception" msgstr "SPAMã®é™¤å¤–" #: src/gui.c:12507 msgid "Use exception" msgstr "除外ã™ã‚‹" #: src/gui.c:12518 msgid "Mark in Header" msgstr "ヘッダ内ã®ãƒžãƒ¼ã‚¯" #: src/gui.c:12592 msgid "Mail List Window" msgstr "メールリスト表示ウィンドウ" #: src/gui.c:12605 msgid "Width" msgstr "å¹…" #: src/gui.c:12617 msgid "Height" msgstr "高ã•" #: src/gui.c:12633 src/gui.c:15329 msgid "Biff" msgstr "メールç€ä¿¡" #: src/gui.c:12647 msgid "Mascot Magnification" msgstr "ãƒžã‚¹ã‚³ãƒƒãƒˆã®æ‹¡å¤§ç¸®å°" #: src/gui.c:12658 msgid "Magnification[%]" msgstr "拡大率[%]" #: src/gui.c:12672 msgid "Interpolation Style" msgstr "補完方法" #: src/gui.c:12764 msgid "" "Graphic lib. for Image Rendering (Cairo enables trancelucency w/composited " "desktop)" msgstr "æç”»ç”¨ãƒ©ã‚¤ãƒ–ラリ (Cairoを使用ã™ã‚‹ã¨å¯¾å¿œç’°å¢ƒã§åŠé€æ˜Žè¡¨ç¤ºãŒã§ãã¾ã™)" #: src/gui.c:12773 msgid "Current Desktop" msgstr "ç¾åœ¨ã®ãƒ‡ã‚¹ã‚¯ãƒˆãƒƒãƒ—" #: src/gui.c:12782 msgid "Translucency is partly supported by Windows native graphics." msgstr "" "ウィンドウズãƒã‚¤ãƒ†ã‚£ãƒ–ã®æç”»æ©Ÿèƒ½ã«ã‚ˆã£ã¦éƒ¨åˆ†çš„ã«åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾" "ã™ã€‚" #: src/gui.c:12788 msgid "Current system does not support translucent windows." msgstr "ç¾åœ¨ã®ã‚·ã‚¹ãƒ†ãƒ ã¯åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã›ã‚“。" #: src/gui.c:12793 msgid "Current system support translucent windows." msgstr "ç¾åœ¨ã®ã‚·ã‚¹ãƒ†ãƒ ã¯åŠé€æ˜Žè¡¨ç¤ºã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚" #: src/gui.c:12798 msgid "Translucent support is UNKNOWN. " msgstr "åŠé€æ˜Žè¡¨ç¤ºã®ã‚µãƒãƒ¼ãƒˆã®æœ‰ç„¡ã‚’検出ã§ãã¾ã›ã‚“ã§ã—ãŸã€‚ " #: src/gui.c:12802 msgid "Forced translucent rendering" msgstr "強制的ã«åŠé€æ˜Žæç”»ã•ã›ã‚‹" #: src/gui.c:12814 msgid "" "Use Cairo for Mascot and Biff image rendering (Support anti-aliased outline)." msgstr "" "マスコットã¨ãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒã®æç”»ã«Cairoを使用ã™ã‚‹ (アンãƒã‚¨ã‚¤ãƒªã‚¢ã‚¹ãªè¼ªéƒ­è¡¨ç¤º" "ã«å¯¾å¿œ)" #: src/gui.c:12829 msgid "Shadow of Mascot" msgstr "マスコットã®å½±" #: src/gui.c:12841 msgid "Drop Shadow of Mascot" msgstr "マスコットã«å½±ã‚’ã¤ã‘ã‚‹" #: src/gui.c:12850 msgid " Offset X" msgstr " オフセット X" #: src/gui.c:12870 src/gui.c:14007 src/gui.c:14044 src/gui.c:14297 #: src/gui.c:14321 src/gui.c:14376 src/gui.c:14633 src/gui.c:15219 msgid "Y" msgstr "" #: src/gui.c:12894 msgid "Opacity [%]" msgstr "ä¸é€æ˜Žåº¦ α値[%]" #: src/gui.c:12917 msgid "Use Cairo for Panel Clock rendering." msgstr "パãƒãƒ«æ™‚è¨ˆã®æç”»ã«Cairoを使用ã™ã‚‹" #: src/gui.c:12919 msgid "Support translucent panel clock (by Cairo)." msgstr "パãƒãƒ«æ™‚計ã®åŠé€æ˜Žå¯¾å¿œ (Cairoを使用)" #: src/gui.c:12929 msgid "Use Cairo for Balloon rendering." msgstr "ãµãã ã—ã®æç”»ã«Cairoを使用ã™ã‚‹" #: src/gui.c:12931 msgid "Support translucent balloon (by Cairo)." msgstr "ãµãã ã—ã®åŠé€æ˜Žå¯¾å¿œ (Cairoを使用)" #: src/gui.c:12950 msgid "Rendering" msgstr "æç”»" #: src/gui.c:12965 msgid "Default for Clock" msgstr "時計ã®ãƒ‡ãƒ•ォルト" #: src/gui.c:12978 src/gui.c:13120 src/gui.c:14234 src/gui.c:14566 msgid "Fontset" msgstr "フォントセット" #: src/gui.c:13008 src/gui.c:13150 src/gui.c:14407 src/gui.c:14726 msgid "Text" msgstr "文字" #: src/gui.c:13033 src/gui.c:13175 src/gui.c:14430 src/gui.c:14749 msgid "BG" msgstr "背景" #: src/gui.c:13058 src/gui.c:13200 src/gui.c:14453 src/gui.c:14772 msgid "Border" msgstr "境界" #: src/gui.c:13083 src/gui.c:14476 msgid "Shadow" msgstr "シャドウ" #: src/gui.c:13107 msgid "Default for Balloon" msgstr "ãµãã ã—ã®ãƒ‡ãƒ•ォルト" #: src/gui.c:13226 msgid "Default Opacity" msgstr "デフォルトã®ä¸é€æ˜Žåº¦" #: src/gui.c:13228 msgid "Default Opacity (Enable ONLY w/Compositing Window Managers)" msgstr "デフォルトã®ä¸é€æ˜Žåº¦ (åŠé€æ˜Žå¯¾å¿œã—ãŸã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ã§ã®ã¿æœ‰åй)" #: src/gui.c:13241 msgid "Take precedence default opacities over mascot settings" msgstr "デフォルトã®ä¸é€æ˜Žåº¦ã‚’マスコットã®è¨­å®šã«å„ªå…ˆã•ã›ã‚‹" #: src/gui.c:13255 msgid "Mascot [%]" msgstr "マスコット [%]" #: src/gui.c:13260 msgid "Biff Image [%]" msgstr "メールç€ä¿¡ç”»åƒ [%]" #: src/gui.c:13267 msgid "Balloon [%]" msgstr "ãµãã ã— [%]" #: src/gui.c:13272 msgid "Clock [%]" msgstr "時計 [%]" #: src/gui.c:13336 src/gui.c:13350 src/gui.c:14536 src/gui.c:14833 msgid "BG only" msgstr "背景ã®ã¿" #: src/gui.c:13365 msgid "Font/Color" msgstr "フォント/色" #: src/gui.c:13380 src/gui.c:15766 msgid "Duet Animation" msgstr "デュエットアニメ" #: src/gui.c:13390 msgid "Synchronize with CLICK animation " msgstr "クリックアニメã«åŒæœŸã•ã›ã‚‹" #: src/gui.c:13399 msgid "Synchronize with RANDOM animation" msgstr "ランダムアニメã«åŒæœŸã•ã›ã‚‹" #: src/gui.c:13412 msgid "Socket Message" msgstr "ソケットメッセージ" #: src/gui.c:13426 msgid "Balloon printing" msgstr "ãµãã ã—ã®è¡¨ç¤º" #: src/gui.c:13439 src/gui.c:13467 src/gui.c:13477 msgid "Lump Sum" msgstr "一括表示" #: src/gui.c:13490 msgid " Stepping interval [frame]" msgstr " ステップ間隔 [フレーム]" #: src/gui.c:13509 msgid " Default expiration [ms]" msgstr " ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ¶ˆæ»…時間[ms]" #: src/gui.c:13528 msgid "Auto Install" msgstr "自動インストール" #: src/gui.c:13539 msgid "Auto Mascot Install to User Dir." msgstr "マスコットã®ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®è‡ªå‹•インストール" #: src/gui.c:13549 msgid "User & Common Dir Consistency Check" msgstr "ユーザー/共通Dirã®æ•´åˆæ€§ãƒã‚§ãƒƒã‚¯" #: src/gui.c:13628 msgid "Sound Command" msgstr "音声å†ç”Ÿã‚³ãƒžãƒ³ãƒ‰" #: src/gui.c:13646 #, c-format msgid "(\"%s\" will be translated to the sound file.)" msgstr "(\"%s\"ã¯éŸ³å£°ãƒ•ァイルã«ç½®æ›ã•れã¾ã™)" #: src/gui.c:13653 msgid "GNU tar Command [for *.tar.gz Extraction]" msgstr "GNU tar コマンド [*.tar.gz 解å‡ç”¨]" #: src/gui.c:13671 #, c-format msgid "(1st \"%s\" : *.tar.gz file, 2nd \"%s\" : temp dir.)" msgstr "(1st \"%s\" : *.tar.gz ファイル, 2nd\"%s\" : 一時ディレクトリ)" #: src/gui.c:13678 msgid "Tray Icon" msgstr "トレイアイコン" #: src/gui.c:13687 msgid "Show Tray Icon in Task Bar" msgstr "タスクãƒãƒ¼å†…ã«ãƒˆãƒ¬ã‚¤ã‚¢ã‚¤ã‚³ãƒ³ã‚’表示ã™ã‚‹" #: src/gui.c:13701 msgid "Misc." msgstr "ãã®ä»–" #: src/gui.c:13719 msgid "About This Program" msgstr "ã“ã®ãƒ—ログラムã«ã¤ã„ã¦" #: src/gui.c:13865 src/gui.c:15390 msgid "(Based on the locale environment)" msgstr "(ãƒ­ã‚±ãƒ¼ãƒ«è¨­å®šã«æº–æ‹ )" #: src/gui.c:13874 src/gui.c:15406 msgid "Info." msgstr "情報" #: src/gui.c:13880 msgid "Resource" msgstr "共通設定" #: src/gui.c:13926 src/gui.c:14074 msgid "Mode" msgstr "モード" #: src/gui.c:13939 src/gui.c:13967 src/gui.c:13984 msgid "Fix Position" msgstr "ä½ç½®å›ºå®š" #: src/gui.c:13994 src/gui.c:14031 src/gui.c:14287 src/gui.c:14311 #: src/gui.c:14621 src/gui.c:15201 msgid "X" msgstr "" #: src/gui.c:14020 msgid "Mascot Offset for Focus Follow" msgstr "フォーカス追従用マスコット表示オフセット" #: src/gui.c:14097 src/gui.c:14128 src/gui.c:14138 msgid "Panel Clock" msgstr "パãƒãƒ«æ™‚計" #: src/gui.c:14148 msgid "Digit Type" msgstr "時計ã®è¡¨è¨˜" #: src/gui.c:14176 src/gui.c:14211 src/gui.c:14229 msgid "PM 2:00" msgstr "åˆå¾Œ 2:00" #: src/gui.c:14270 src/gui.c:14603 msgid "Size/Position" msgstr "ä½ç½®ãƒ»ã‚µã‚¤ã‚º" #: src/gui.c:14284 msgid "Panel Position" msgstr "パãƒãƒ«ä½ç½®" #: src/gui.c:14308 src/gui.c:14617 msgid "Text Offset" msgstr "文字オフセット" #: src/gui.c:14332 src/gui.c:14647 msgid "Border Width" msgstr "境界幅" #: src/gui.c:14344 msgid "Decoration" msgstr "装飾" #: src/gui.c:14358 msgid "Drop Shadow" msgstr "影をã¤ã‘ã‚‹" #: src/gui.c:14366 msgid " Shadow Offset X" msgstr " å½±ã®ã‚ªãƒ•セット X" #: src/gui.c:14390 msgid "Rounded Corner for Panel Clock" msgstr "パãƒãƒ«æ™‚計ã®è§’を丸ãã™ã‚‹" #: src/gui.c:14398 src/gui.c:14717 msgid "Color" msgstr "カラー" #: src/gui.c:14500 src/gui.c:14502 src/gui.c:14796 src/gui.c:14798 msgid "Back to Default" msgstr "ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã«æˆ»ã™" #: src/gui.c:14508 src/gui.c:14804 src/gui.c:14935 msgid "Opacity" msgstr "ä¸é€æ˜Žåº¦" #: src/gui.c:14517 src/gui.c:14813 src/gui.c:14947 src/gui.c:15235 msgid "Opacity Alpha[%]" msgstr "ä¸é€æ˜Žåº¦ α値[%]" #: src/gui.c:14554 msgid "Clock" msgstr "時計" #: src/gui.c:14659 msgid "Default Position" msgstr "デフォルトä½ç½®" #: src/gui.c:14672 src/gui.c:15154 msgid "Left side of mascot" msgstr "マスコットã®å·¦å´" #: src/gui.c:14677 src/gui.c:15159 msgid "Right side of mascot" msgstr "マスコットã®å³å´" #: src/gui.c:14843 msgid "Control Characters for Balloon Messages" msgstr "ãµãã ã—メッセージ用ã®åˆ¶å¾¡æ–‡å­—" #: src/gui.c:14861 msgid "([n]+1) frames waiting. (default : n=1)" msgstr "([n]+1)フレームã®ã‚¦ã‚§ã‚¤ãƒˆ. (デフォルト n=1)" #: src/gui.c:14868 msgid "([n]+1) frames waiting with a new line. (default : n=10)" msgstr "([n+1])フレームã®ã‚¦ã‚§ã‚¤ãƒˆå¾Œã«æ”¹è¡Œ. (デフォルト n=10)" #: src/gui.c:14875 msgid "New line." msgstr "改行." #: src/gui.c:14882 msgid "New page after ([n]+1) frames waiting. (default : n=10)" msgstr "([n]+1)フレームã®ã‚¦ã‚§ã‚¤ãƒˆå¾Œã«æ”¹ãƒšãƒ¼ã‚¸. (デフォルト n=10)" #: src/gui.c:14889 msgid "Number of arrived mails. (only for biff message)" msgstr "ç€ä¿¡ãƒ¡ã‚¤ãƒ«æ•°. (メイルç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)" #: src/gui.c:14896 msgid "From: of the latest mail. (only for biff message with POP)" msgstr "最新メイルã®From:. (POP利用時ã®ãƒ¡ã‚¤ãƒ«ç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)" #: src/gui.c:14903 msgid "Subject: of the latest mail. (only for biff message with POP)" msgstr "最新メイルã®Subject:. (POP利用時ã®ãƒ¡ã‚¤ãƒ«ç€ä¿¡ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸å†…ã®ã¿)" #: src/gui.c:14922 msgid "Balloon" msgstr "ãµãã ã—" #: src/gui.c:14937 msgid "Opacity (Enable ONLY w/Compositing Window Managers)" msgstr "ä¸é€æ˜Žåº¦ (åŠé€æ˜Žå¯¾å¿œã—ãŸã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ã§ã®ã¿æœ‰åй)" #: src/gui.c:14988 src/gui.c:14990 msgid "Append" msgstr "追加" #: src/gui.c:14998 src/gui.c:15000 msgid "Delete" msgstr "削除" #: src/gui.c:15007 msgid "Images" msgstr "ç”»åƒ" #: src/gui.c:15049 src/gui.c:15051 msgid "Append Pattern" msgstr "パターン追加" #: src/gui.c:15058 src/gui.c:15060 msgid "Copy Pattern" msgstr "パターンコピー" #: src/gui.c:15067 src/gui.c:15069 msgid "Delete Pattern" msgstr "パターン削除" #: src/gui.c:15078 msgid "Animation" msgstr "アニメ" #: src/gui.c:15094 msgid "Biff Image" msgstr "メールç€ä¿¡ç”»åƒ" #: src/gui.c:15108 msgid "Image File" msgstr "ç”»åƒãƒ•ァイル" #: src/gui.c:15140 msgid "Position" msgstr "ä½ç½®" #: src/gui.c:15257 msgid "Biff Action" msgstr "メールç€ä¿¡æ™‚動作" #: src/gui.c:15269 src/gui.c:15815 src/gui.c:15845 msgid "Message" msgstr "メッセージ" #: src/gui.c:15284 src/gui.c:15864 msgid "Sound File" msgstr "音声ファイル" #: src/gui.c:15314 src/gui.c:15885 msgid "Clear" msgstr "クリア" #: src/gui.c:15320 src/gui.c:15890 msgid "Test" msgstr "テスト" #: src/gui.c:15344 msgid "About This Mascot" msgstr "ã“ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã«ã¤ã„ã¦" #: src/gui.c:15355 src/gui.c:16224 msgid "Name" msgstr "マスコットå" #: src/gui.c:15368 src/gui.c:16229 src/gui.c:17549 msgid "File" msgstr "ファイル" #: src/gui.c:15412 msgid "Mascot" msgstr "マスコット" #: src/gui.c:15428 msgid "Menu" msgstr "メニュー" #: src/gui.c:15477 src/gui.c:15479 msgid "Append Category" msgstr "カテゴリー追加" #: src/gui.c:15485 src/gui.c:15487 msgid "Delete Category" msgstr "カテゴリー削除" #: src/gui.c:15493 src/gui.c:15495 msgid "Merge Menu" msgstr "メニューã®å–り込ã¿" #: src/gui.c:15523 msgid "No menu files are loaded currently." msgstr "ç¾åœ¨ã€ãƒ©ãƒ³ãƒãƒ£ç”¨ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルãŒãƒ­ãƒ¼ãƒ‰ã•れã¦ã„ã¾ã›ã‚“。" #: src/gui.c:15527 msgid "You can find a menu to create new one in the popup," msgstr "ãƒãƒƒãƒ—アップメニュー中ã‹ã‚‰æ–°ã—ã„ランãƒãƒ£ç”¨ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルを作æˆã§ãã€" #: src/gui.c:15531 msgid " and edit it here." msgstr " ã“ã“ã§ç·¨é›†ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚" #: src/gui.c:15567 src/gui.c:16047 src/gui.c:16219 msgid "No." msgstr "番å·" #: src/gui.c:15573 msgid "Image File Name" msgstr "ç”»åƒãƒ•ァイルå" #: src/gui.c:15637 #, c-format msgid "Base" msgstr "基底" #: src/gui.c:15665 src/gui.c:15667 msgid "Append Frame" msgstr "フレーム追加" #: src/gui.c:15673 src/gui.c:15675 msgid "Delete Frame" msgstr "フレーム削除" #: src/gui.c:15681 src/gui.c:15683 msgid "Test Anime" msgstr "アニメテスト" #: src/gui.c:15689 msgid "Random" msgstr "ランダム" #: src/gui.c:15701 msgid " Click" msgstr " クリック" #: src/gui.c:15718 msgid "Balloon Offset X[Left]" msgstr "ãµãã ã—オフセット X[å·¦]" #: src/gui.c:15730 msgid " Y[Left]" msgstr " Y[å·¦]" #: src/gui.c:15742 msgid " X[Right]" msgstr " X[å³]" #: src/gui.c:15754 msgid " Y[Right]" msgstr "Y[å³]" #: src/gui.c:15800 msgid " Pattern" msgstr " パターン" #: src/gui.c:15826 msgid " Delay" msgstr " é…å»¶" #: src/gui.c:15948 src/gui.c:17564 msgid "Category" msgstr "カテゴリー" #: src/gui.c:15989 src/gui.c:15991 msgid "Append Mascot" msgstr "マスコット追加" #: src/gui.c:15997 src/gui.c:15999 msgid "Delete Mascot" msgstr "マスコット削除" #: src/gui.c:16052 msgid "Image" msgstr "ç”»åƒ" #: src/gui.c:16057 src/gui.c:16077 msgid "Min" msgstr "最å°" #: src/gui.c:16062 src/gui.c:16082 msgid "Max" msgstr "最大" #: src/gui.c:16067 msgid "Block Loop" msgstr "ブロック・ループ" #: src/gui.c:16072 msgid "Next" msgstr "次" #: src/gui.c:16340 src/gui.c:16343 src/gui.c:17442 src/gui.c:17445 msgid "Open" msgstr "é–‹ã" #: src/gui.c:16354 src/gui.c:16357 src/gui.c:16680 msgid "Save" msgstr "ä¿å­˜" #: src/gui.c:16368 src/gui.c:16371 msgid "New" msgstr "æ–°è¦ä½œæˆ" #: src/gui.c:16382 src/gui.c:16385 src/gui.c:17390 src/gui.c:17393 msgid "Install" msgstr "インストール" #: src/gui.c:16395 src/gui.c:16398 msgid "Config" msgstr "設定" #: src/gui.c:16409 msgid "Biff Check" msgstr "メールç€ä¿¡ãƒã‚§ãƒƒã‚¯" #: src/gui.c:16447 src/gui.c:16450 msgid "Mascot Launcher" msgstr "マスコットランãƒãƒ£" #: src/gui.c:16465 src/gui.c:16468 src/gui.c:17366 src/gui.c:17369 #: src/gui.c:17382 msgid "Exit" msgstr "終了" #: src/gui.c:16503 src/gui.c:16561 msgid "Launcher Menu" msgstr "ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼" #: src/gui.c:16516 src/gui.c:16583 msgid "For Developper" msgstr "開発者用" #: src/gui.c:16535 msgid "Save All" msgstr "ã™ã¹ã¦ä¿å­˜" #: src/gui.c:16544 msgid "Save Mascot" msgstr "マスコットä¿å­˜" #: src/gui.c:16549 msgid "Save Mascot As..." msgstr "マスコットåã‚’é¸æŠžã—ã¦ä¿å­˜" #: src/gui.c:16571 msgid "Save Resource" msgstr "共通設定ä¿å­˜" #: src/gui.c:16611 msgid "Create New Launcher Menu" msgstr "ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆ" #: src/gui.c:16630 src/gui.c:17406 msgid "Launcher Menu [User]" msgstr "ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [ユーザー]" #: src/gui.c:16637 src/gui.c:17413 msgid "Launcher Menu [Common]" msgstr "ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [共通]" #: src/gui.c:16651 src/gui.c:17425 msgid "Mascot [User]" msgstr "マスコット [ユーザー]" #: src/gui.c:16658 src/gui.c:17432 msgid "Mascot [Common]" msgstr "マスコット [共通]" #: src/gui.c:16688 msgid "Set as Default" msgstr "デフォルトã«è¨­å®š" #: src/gui.c:16696 msgid "Remove from Default" msgstr "デフォルトを削除" #: src/gui.c:16713 msgid "File Select" msgstr "ãƒ•ã‚¡ã‚¤ãƒ«é¸æŠž" #: src/gui.c:16719 msgid "Launcher" msgstr "ランãƒãƒ£" #: src/gui.c:16754 msgid "Save for Release" msgstr "リリース用マスコットä¿å­˜" #: src/gui.c:16760 msgid "Convert to Nokkari-Chara" msgstr "ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã«å¤‰æ›" #: src/gui.c:16783 src/gui.c:16817 msgid "Random Change" msgstr "ãƒ©ãƒ³ãƒ€ãƒ é¸æŠž" #: src/gui.c:16979 msgid "MaCoPiX : Consistency Check for Common & User Dir." msgstr "MaCoPiX : 共通/ユーザーDirã®æ•´åˆæ€§ãƒã‚§ãƒƒã‚¯" #: src/gui.c:16995 msgid "WARNING" msgstr "è­¦ 告" #: src/gui.c:17004 msgid "Menu file : " msgstr "メニューファイル : " #: src/gui.c:17007 msgid "Mascot file : " msgstr "マスコットファイル : " #: src/gui.c:17012 msgid " File in User Dir is older than the corresponded one in Common Dir." msgstr " ユーザーファイルãŒå…±é€šãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå†…ã®ãƒ•ァイルよりå¤ããªã£ã¦ã„ã¾ã™." #: src/gui.c:17021 msgid " [User Dir]" msgstr " [ユーザーディレクトリ]" #: src/gui.c:17026 src/gui.c:17039 #, c-format msgid " %4d/%02d/%02d %02d:%02d:%02d" msgstr " %4då¹´%02d月%02dæ—¥ %02d時%02d分%02dç§’" #: src/gui.c:17034 msgid " [Common Dir]" msgstr " [共通ディレクトリ]" #: src/gui.c:17047 msgid "Do you want to overwite the newer file to User Dir?" msgstr "ユーザーファイルを上書ãã—ã¾ã™ã‹?" #: src/gui.c:17052 msgid "Don't ask this from the next time." msgstr "次回ã‹ã‚‰ã“ã®è³ªå•ã‚’ã—ãªã„." #: src/gui.c:17171 msgid "MaCoPiX : Starting up" msgstr "MaCoPiX : 起動中" #: src/gui.c:17188 msgid "No Menu Files are installed!!" msgstr "メニューファイルãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•れã¦ã„ã¾ã›ã‚“!!" #: src/gui.c:17193 msgid "Please install one menu file at least," msgstr "最低一個ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’インストールã™ã‚‹ã‹ã€" #: src/gui.c:17198 msgid " or appoint a mascot file in option in order to start MaCoPiX!" msgstr "" " ã‚‚ã—ãã¯ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã§æŒ‡å®šã—ã¦ã‹ã‚‰MaCoPiXã‚’èµ·å‹•ã—ã¦ä¸‹ã•ã„!" #: src/gui.c:17208 msgid "You can download mascot files from MaCoPiX official web." msgstr "マスコットã¯MaCoPiXå…¬å¼ã‚µã‚¤ãƒˆã§ãƒ€ã‚¦ãƒ³ãƒ­ãƒ¼ãƒ‰ã§ãã¾ã™." #: src/gui.c:17233 msgid "Menus and Mascots can be installed by the menu bar of this window." msgstr "" "メニューã¨ãƒžã‚¹ã‚³ãƒƒãƒˆã¯ã“ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒãƒ¼ã‹ã‚‰ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã§ãã¾ã™ã€‚" #: src/gui.c:17237 msgid "Or, drag & drop a mascot menu archive (*.tar.gz) directly" msgstr "" "ã‚‚ã—ãã¯ã€ã“ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã«ç›´æŽ¥ãƒžã‚¹ã‚³ãƒƒãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–(*.tar.gz)をドラッ" "グ&ドロップ" #: src/gui.c:17241 msgid "into this window, in order to install it." msgstr "ã™ã‚‹ã“ã¨ã«ã‚ˆã£ã¦ã€ãれをインストールã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚" #: src/gui.c:17261 msgid "MaCoPiX : Launcher Menu Selection" msgstr "MaCoPiX : ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼é¸æŠž" #: src/gui.c:17265 msgid "MaCoPiX : Start Menu Selection" msgstr "MaCoPiX : èµ·å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼é¸æŠž" #: src/gui.c:17458 msgid "Installed Mascot" msgstr "インストール済ã¿ãƒžã‚¹ã‚³ãƒƒãƒˆ" #: src/gui.c:17554 msgid "Dir." msgstr "場所" #: src/gui.c:17559 msgid "Entry" msgstr "エントリ" #: src/gui.c:17596 msgid "User" msgstr "ユーザー" #: src/gui.c:17600 msgid "Common" msgstr "共通" #: src/gui.c:17604 msgid "Unknown" msgstr "䏿˜Ž" #: src/gui.c:17613 #, c-format msgid "%4d categories" msgstr "" #: src/gui.c:17616 #, c-format msgid "%4d mascots" msgstr "" #: src/gui.c:17625 msgid "-- Combined Menu --" msgstr "-- 複åˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ --" #: src/gui.c:17659 msgid "MaCoPiX Message" msgstr "MaCoPiX メッセージ" #: src/gui.c:17702 msgid "MaCoPiX : Installing Mascots" msgstr "MaCoPiX : マスコットをインストール" #: src/gui.c:17779 msgid "Selected File\n" msgstr "é¸æŠžã•れãŸãƒ•ァイル\n" #: src/gui.c:17781 msgid "cannot be opend as MaCoPiX menu.\n" msgstr "ã¯MaCoPiXã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ•ァイルã¨ã—ã¦é–‹ãã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“。\n" #: src/gui.c:17785 msgid "Selected File cannot be opened as MaCoPiX menu.\n" msgstr "é¸æŠžã•れãŸãƒ•ァイルã¯MaCoPiXã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã¨ã—ã¦é–‹ãã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“。\n" # MaCoPiX : テンãƒãƒ©ãƒªãƒ•ã‚¡ã‚¤ãƒ«ã®æ¶ˆåŽ» #: src/gui.c:17812 msgid "MaCoPiX : Deletion of temporay files" msgstr "MaCoPiX : テンãƒãƒ©ãƒªãƒ•ã‚¡ã‚¤ãƒ«ã®æ¶ˆåŽ»" #: src/gui.c:17814 msgid "Install of the new menu file has been completed." msgstr "æ–°ã—ã„メニューファイルã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãŒå®Œäº†ã—ã¾ã—ãŸã€‚" #: src/gui.c:17820 msgid "Remove the temporary direcotry?" msgstr "テンãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’消去ã—ã¾ã™ã‹?" #: src/pixmap.c:436 src/nokkari.c:137 #, c-format msgid "Cannot Load Image %s\n" msgstr "ç”»åƒ %s をロードã§ãã¾ã›ã‚“\n" #: src/pixmap.c:1638 src/pixmap.c:1639 msgid "Cannot Load Default Clock Font" msgstr "ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ™‚計用フォントをロードã§ãã¾ã›ã‚“" #: src/pixmap.c:1649 src/pixmap.c:1650 msgid "Cannot Load Default Balloon Font" msgstr "デフォルトã®ãƒãƒ«ãƒ¼ãƒ³ç”¨ãƒ•ォントをロードã§ãã¾ã›ã‚“" #: src/pixmap.c:1683 msgid "Default Font Selection" msgstr "ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆãƒ•ã‚©ãƒ³ãƒˆé¸æŠž" #: src/balloon.c:873 #, c-format msgid "%s(From is not avairable)%s" msgstr "%s(差出人ãŒå–å¾—ã§ãã¾ã›ã‚“ã§ã—ãŸ)%s" #: src/balloon.c:886 #, c-format msgid "%s(Subject is not avairable)%s" msgstr "%s(ä»¶åãŒå–å¾—ã§ãã¾ã›ã‚“ã§ã—ãŸ)%s" #: src/balloon.c:893 msgid "POP3 access error" msgstr "POP3アクセスエラーã§ã™" #: src/utils.c:85 src/nokkari.c:788 src/nokkari.c:844 #, c-format msgid "Cannot open copy source file %s" msgstr "コピー元 %s ã‚’é–‹ãã“ã¨ãŒã§ãã¾ã›ã‚“" #: src/utils.c:90 src/nokkari.c:793 src/nokkari.c:849 #, c-format msgid "Cannot open copy destination file %s" msgstr "コピー先 %s ã‚’é–‹ãã“ã¨ãŒã§ãã¾ã›ã‚“" #: src/utils.c:115 #, c-format msgid "Cannot read status of directry %s .\n" msgstr "ディレクトリ %s ã®ã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹ãŒèª­ã‚ã¾ã›ã‚“\n" #: src/utils.c:119 #, c-format msgid "%s is not directory.\n" msgstr "%s ã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã§ã¯ã‚りã¾ã›ã‚“\n" #: src/utils.c:124 #, c-format msgid "Creating the common directory \"%s\"\n" msgstr "共通ディレクトリ \"%s\" を作æˆã—ã¦ã„ã¾ã™...\n" #: src/nokkari.c:152 #, c-format msgid "Warning : Too much BMP files for Nokkari-Chara! [File%d]\n" msgstr "警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§BMPç”»åƒæ•°ã‚’è¶…ãˆã¦ã„ã¾ã™ [File%d]\n" #: src/nokkari.c:203 msgid "Cannot Save Ini File!" msgstr "IniファイルãŒã‚»ãƒ¼ãƒ–ã§ãã¾ã›ã‚“!" #: src/nokkari.c:297 src/nokkari.c:334 #, c-format msgid "Warning : Too much Frames!! [%s=%d]\n" msgstr "警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§ãƒ•レーム数を超ãˆã¦ã„ã¾ã™! [%s=%d]\n" #: src/nokkari.c:401 #, c-format msgid "Warning : Too much Line numbers for the Balloon message! [Pat%d]\n" msgstr "警告 : ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ã®æœ€å¤§ã‚»ãƒªãƒ•行数を超ãˆã¦ã„ã¾ã™! [Pat%d]\n" #: src/nokkari.c:647 #, c-format msgid "Warning : Too much Frames for MaCoPiX! [Pattern%d]\n" msgstr "警告 : MaCoPiXã®æœ€å¤§ãƒ•レーム数を超ãˆã¦ã„ã¾ã™! [Pat%d]\n" #: src/nokkari.c:672 #, c-format msgid "Error : Cannot find Frame setting! [Pat%d_%d]\n" msgstr "エラー : フレーム設定ãŒã¿ã¤ã‹ã‚Šã¾ã›ã‚“! [Pat%d_%d]\n" #: src/nokkari.c:990 msgid "MaCoPiX <--> Nokkari-Chara Convert Log" msgstr "MaCoPiX <--> ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ© 変æ›ãƒ­ã‚°" #: src/nokkari.c:1026 msgid "" "\n" "\n" " The above warnings/errors are found in conversion...\n" "\n" " Please modify and use this mascot on Nokkari-Chara ver1.40 or later.\n" msgstr "" "\n" "\n" " 上記ã®è­¦å‘Š/エラーãŒå¤‰æ›ä¸­ã«ç™ºè¦‹ã•れã¾ã—ãŸ...\n" "\n" " 修正ã—ãŸä¸Šã§ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ver1.40以é™ã§ãŠä½¿ã„下ã•ã„.\n" #: src/nokkari.c:1030 msgid "" "\n" " Congratulations!!\n" "===================\n" "\n" " You've scceeded to convert with no errors.\n" "\n" " Please use this mascot on Nokkari-Chara ver1.40 or later.\n" msgstr "" "\n" " ãŠã‚ã§ã¨ã†ã”ã–ã„ã¾ã™!!\n" "========================\n" "\n" " 無事ã€å¤‰æ›ã«æˆåŠŸã—ã¾ã—ãŸã€‚.\n" "\n" " ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ver1.40以é™ã§ãŠä½¿ã„下ã•ã„.\n" #: src/mail.c:157 src/mail.c:162 msgid "Initializing Biff..." msgstr "Biffã‚’åˆæœŸåŒ–中..." #: src/mail.c:330 #, c-format msgid "" "You have %d mails (%d SPAMs).\n" " [Latest Mail]\n" " From: %s\n" " Subject: %s" msgstr "" "%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™(å« SPAM%d通)。\n" " [最新メール]\n" " 差出人: %s\n" " ä»¶å: %s" #: src/mail.c:336 #, c-format msgid "" "You have %d mails.\n" " [Latest Mail]\n" " From: %s\n" " Subject: %s" msgstr "" "%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚\n" " [最新メール]\n" " 差出人: %s\n" " ä»¶å: %s" #: src/mail.c:355 #, c-format msgid "You have %d mails." msgstr "%d通ã®ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚" #: src/mail.c:373 src/mail.c:378 msgid "You have no mails." msgstr "メールã¯ã‚りã¾ã›ã‚“。" #: src/mail.c:900 src/mail.c:913 src/mail.c:1189 src/mail.c:1207 msgid "(Decode Error)" msgstr "(デコードエラー)" #: src/mail.c:937 src/mail.c:1242 #, c-format msgid "" " \n" " ***** %d mails are skipped *****\n" " \n" msgstr "" " \n" " ***** %d 通ã®ãƒ¡ãƒ¼ãƒ«ã‚’スキップã—ã¾ã—㟠*****\n" " \n" #: src/mail.c:1881 #, c-format msgid "Displaying the newest %d mails out of %ds. [%d SPAMs are excluded.]" msgstr "" "最新%d通ã®ãƒ¡ãƒ¼ãƒ«ã‚’表示ã—ã¦ã„ã¾ã™(未読ã¯å…¨%d通)。 [%d通をSPAMã¨ã—ã¦é™¤å¤–]" #: src/mail.c:1887 #, c-format msgid "Displaying the newest %d mails out of %ds." msgstr "最新%d通ã®ãƒ¡ãƒ¼ãƒ«ã‚’表示ã—ã¦ã„ã¾ã™(未読ã¯å…¨%d通)。" #: src/mail.c:1894 #, c-format msgid "You have %d new mails. [%d SPAMs are excluded.]" msgstr "%dé€šã®æœªèª­ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚ [%d通をSPAMã¨ã—ã¦é™¤å¤–]" #: src/mail.c:1898 #, c-format msgid "You have %d new mails." msgstr "%dé€šã®æœªèª­ãƒ¡ãƒ¼ãƒ«ãŒã‚りã¾ã™ã€‚" #: src/mail.c:1946 src/mail.c:1950 msgid "MaCoPiX : Arrived mail list" msgstr "MaCoPiX : ç€ä¿¡ãƒ¡ãƒ¼ãƒ«ãƒªã‚¹ãƒˆ" #: src/mail.c:2016 src/mail.c:2075 msgid " === Failed to get From/Subject list of arrived mails. ===" msgstr " === ç€ä¿¡ãƒ¡ãƒ¼ãƒ«ã® From/Subject リストã®å–å¾—ã«å¤±æ•—ã—ã¾ã—ãŸã€‚ ===" #: src/mail.c:2092 src/mail.c:2094 msgid "Start Mailer" msgstr "メーラー起動" #: src/mail.c:2102 src/mail.c:2104 msgid "Close" msgstr "é–‰ã˜ã‚‹" #: src/sslmanager.c:82 src/sslmanager.c:89 msgid "(unknown)" msgstr "(䏿˜Ž)" #: src/sslmanager.c:113 #, c-format msgid "" "The SSL certificate of host \"%s\" cannot verified by the following reason:\n" " %s\n" "\n" "Server certificate:\n" " Subject: %s\n" " Issuer: %s\n" "\n" "Do you accept this certificate?" msgstr "" "ホスト \"%s\" ã®SSL証明書を以下ã®ç†ç”±ã§æ¤œè¨¼ã§ãã¾ã›ã‚“:\n" " %s\n" "\n" "サーãƒãƒ¼è¨¼æ˜Žæ›¸:\n" " 所有者: %s\n" " 発行者: %s\n" "\n" "ã“ã®è¨¼æ˜Žæ›¸ã‚’å—ã‘入れã¾ã™ã‹?" #: src/sslmanager.c:140 msgid "SSL certificate verify failed" msgstr "SSL証明書を検証ã§ãã¾ã›ã‚“" #: src/sslmanager.c:154 msgid "Skip this verification after this." msgstr "ã“ã®ç¢ºèªã‚’次回以é™ã‚¹ã‚­ãƒƒãƒ—ã™ã‚‹." #: src/dnd.c:202 #, c-format msgid "" "Do you want to install the mascot menu archive,\n" " \"%s\"\n" "to your system [\"%s\"]? \n" "(Files are automatically overwritten.)" msgstr "" "マスコットメニューアーカイブ,\n" " \"%s\"\n" "ã®å†…容をãŠä½¿ã„ã®ç’°å¢ƒ[\"%s\"]ã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ã‹?\n" "(ファイルã¯è‡ªå‹•çš„ã«ä¸Šæ›¸ãã•れã¾ã™)" #: src/dnd.c:220 msgid "MaCoPiX : Installing Mascot Menu File" msgstr "MaCoPiX : マスコットメニューファイルをインストール" #~ msgid "" #~ "Support anti-aliased edge for scaled mascot and biff images. (by Cairo)" #~ msgstr "" #~ "マスコットã¨ãƒ¡ãƒ¼ãƒ«ç€ä¿¡ç”»åƒã®ç¸ã‚’æ‹¡å¤§ç¸®å°æ™‚ã«ã‚¢ãƒ³ãƒã‚¨ã‚¤ãƒªã‚¢ã‚¹å‡¦ç†ã™ã‚‹ " #~ "(Cairoを使用)" #~ msgid "Current Window Manager" #~ msgstr "ç¾åœ¨ã®ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£" #~ msgid "Drawing" #~ msgstr "æç”»" #~ msgid "Use Cairo Graphics Library for Balloon." #~ msgstr "ãµãã ã—ã®æç”»ã«Cairoを使用ã™ã‚‹" #~ msgid "Click" #~ msgstr "クリック" #~ msgid "" #~ "Translucent Graphics for Balloon/Clock (Please use ONLY w/Compositing " #~ "Window Managers)" #~ msgstr "" #~ "ãµãã ã—・時計ã®åŠé€æ˜Žè¡¨ç¤º (対応ã—ãŸã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒžãƒãƒ¼ã‚¸ãƒ£ãŒå¿…è¦ã§ã™)" #~ msgid "Use translucent graphics for Panel Clock (by Cairo)." #~ msgstr "パãƒãƒ«æ™‚計をåŠé€æ˜Žè¡¨ç¤ºã•ã›ã‚‹ (Cairoを使用)" #~ msgid "Use translucent graphics for Balloon (by Cairo)." #~ msgstr "ãµãã ã—ã‚’åŠé€æ˜Žè¡¨ç¤ºã•ã›ã‚‹ (Cairoを使用)" #~ msgid "Round Corner" #~ msgstr "角を丸ãã™ã‚‹" #~ msgid "Auto w/Desktop Effects" #~ msgstr "自動測定(デスクトップ効果)" #~ msgid "Balloon / Clock Graphics (Enable only w/Desktop Effects)" #~ msgstr "ãµãã ã—/パãƒãƒ«æ™‚è¨ˆã®æç”» (デスクトップ効果使用時ã®ã¿æœ‰åй)" #~ msgid "Default Opacity (only w/Desktop Effects)" #~ msgstr "デフォルトã®ä¸é€æ˜Žåº¦(デスクトップ効果使用時ã®ã¿æœ‰åй)" #~ msgid "Opacity (only w/Desktop Effects)" #~ msgstr "ä¸é€æ˜Žåº¦(デスクトップ効果使用時ã®ã¿æœ‰åй)" #, fuzzy #~ msgid "Panel Clock (Cairo)" #~ msgstr "パãƒãƒ«æ™‚計 (Cairo)" #~ msgid "Home X" #~ msgstr "ホーム X" #~ msgid " Home Y" #~ msgstr " ホーム Y" #~ msgid "Relative" #~ msgstr "相対オフセット" #~ msgid "Absolute" #~ msgstr "絶対オフセット" #~ msgid "Typing" #~ msgstr "タイピング" #~ msgid "Normal" #~ msgstr "通常" #~ msgid "Typing Interval" #~ msgstr "タイピング間隔" #~ msgid "/_Exit" #~ msgstr "/_終了" #~ msgid "/Exit/Exit" #~ msgstr "/終了/終了" #~ msgid "/_Install" #~ msgstr "/_インストール" #~ msgid "/Install/Launcher Menu [User]" #~ msgstr "/インストール/ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [ユーザー]" #~ msgid "/Install/Launcher Menu [Common]" #~ msgstr "/インストール/ランãƒãƒ£ãƒ¡ãƒ‹ãƒ¥ãƒ¼ [共通]" #~ msgid "/Install/sep" #~ msgstr "/インストール/sep" #~ msgid "/Install/Mascot [User]" #~ msgstr "/インストール/マスコット [ユーザー]" #~ msgid "/Install/Mascot [Common]" #~ msgstr "/インストール/マスコット [共通]" #~ msgid "/_Open" #~ msgstr "/_é–‹ã" macopix-1.7.4/README-win32-ja.txt0000644000076400007640000003253011016202231013131 00000000000000################################################################# UNIX/MS Windows—p ƒfƒXƒNƒgƒbƒvƒ}ƒXƒRƒbƒg ƒvƒƒOƒ‰ƒ€ macopix : Mascot Constructive Pilot for X ver 1.7.3 Windows(ƒoƒCƒiƒŠ”z•z)”Å ŠÈˆÕƒhƒLƒ…ƒƒ“ƒg 2008.05.24 Kurumi Chimari chimari@rosegray.sakura.ne.jp http://rosegray.sakura.ne.jp/ ################################################################# ------------------------------------------------------------------------------- m –¼Ì nMaCoPiX-1.7.3-win32 m ŠJ”­ŽÒ n‚­‚é‚Ý‚¿‚Ü‚è m ŒöŠJæ nhttp://rosegray.sakura.ne.jp/ m ˜A—æ nchimari@rosegray.sakura.ne.jp m “®ìŠÂ‹« nMicrosoft Windows 2000 Professional / XP m „§ŠÂ‹« nMicrosoft Windows XP SP2 or later m Ží•Ê nƒfƒXƒNƒgƒbƒvƒ}ƒXƒRƒbƒgƒ\ƒtƒg (ƒtƒŠ[ƒ\ƒtƒgƒEƒFƒA) m ˆ³k nLZH m “]Ú nGNU GPL2 (COPYING ‚ðŽQÆ) m ’˜ìŒ  n(C) 2002-2008 Kurumi Chimari ------------------------------------------------------------------------------- ============================================================= ¡ –ÚŽŸ ¡ - ‚±‚̃vƒƒOƒ‰ƒ€‚ɂ‚¢‚Ä - ‚¨‚à‚È“Á’¥ - “®ìŠÂ‹« - Windows”łɂ‚¢‚Ä - ƒCƒ“ƒXƒg[ƒ‹`‹N“® - ƒ}ƒXƒRƒbƒg‚̒ljÁƒCƒ“ƒXƒg[ƒ‹ - BIFF(ƒ[ƒ‹’…Mƒ`ƒFƒbƒN)‹@”\—˜—pŽž‚Ì’ˆÓ“_ - ‚æ‚­‚ ‚鎿–â - Windows”Å‚ðƒ\[ƒX‚©‚çƒRƒ“ƒpƒCƒ‹ - ’˜ìŒ “I˜b‚Æ‚© ============================================================= ¥‚±‚̃vƒƒOƒ‰ƒ€‚ɂ‚¢‚Ä MaCoPiX‚̓fƒXƒNƒgƒbƒvƒ}ƒXƒRƒbƒgƒvƒƒOƒ‰ƒ€‚Å‚·B GPL‚É‚µ‚½‚ª‚Á‚Ä”z•z‚³‚ê‚Ä‚¢‚éƒtƒŠ[ƒ\ƒtƒgƒEƒFƒA‚Å‚·B ‚¢‚¿‚¨‚¤A‚¨‚·‚í‚èƒ}ƒXƒRƒbƒg‚ðì¬E“®ì‚³‚¹‚邱‚Æ‚Éd“_‚ð’u‚¢‚Ä‚¢‚Ü‚·B Œ»’iŠK‚Å쬂ł«‚éƒ}ƒXƒRƒbƒg‚Í EƒtƒH[ƒJƒX’Ç]Œ^ ...‚¢‚í‚ä‚邨‚·‚í‚èƒ}ƒXƒRƒbƒg EˆÊ’uŒÅ’èŒ^ ...‚»‚̂܂܃fƒXƒNƒgƒbƒv‚ɂ͂Á‚‚¯‚éƒ}ƒXƒRƒbƒg ‚Ì“ñŽí—Þ‚Å‚·B ‚»‚ꂼ‚ê‚ɑ΂µ‚ăfƒWƒ^ƒ‹ŽžŒv‚Ì—L–³‚ðŽw’è‚Å‚«‚邽‚ßAŽžŒvŒ^ ƒAƒNƒZƒTƒŠ‚Æ‚µ‚Ä‚àŽg—p‚Å‚«‚é‚©‚ÆŽv‚¢‚Ü‚·B (ŽžŒv‚Ì‹@”\‚͂܂¾•nŽã‚Å‚·‚ªcc) ‚Ü‚½APOP(APOP)‘Ήž‚ÌBIFF(ƒ[ƒ‹’…Mƒ`ƒFƒbƒN)‹@”\‚ðŽ‚Á‚Ä‚¢‚Ü‚·B ...‚ª‚Ü‚¾“®ìŒŸØ‚ª‚¶‚イ‚Ô‚ñ‚Ƃ͂¢‚¦‚Ü‚¹‚ñ‚Ì‚ÅAŽg—p‚ɂ͂²’ˆÓ‚­‚¾‚³‚¢B ‚Ƃ肠‚¦‚¸Aƒ}ƒXƒRƒbƒg‚Ì쬂©‚çƒvƒƒtƒ@ƒCƒ‹‚ÌŠeŽí•ÏX‚É‚¢‚½‚é‚Ü‚ÅA ƒ†[ƒU[ƒŒƒxƒ‹‚ł̓}ƒXƒRƒbƒgƒtƒ@ƒCƒ‹‚É’¼ÚG‚炸‚Æ‚àƒƒjƒ…[‚©‚ç GUI‚Å‚·‚ׂĕÏX‚Å‚«‚邿‚¤‚Él‚¦‚Ä‚¢‚Ü‚·B ¥‚¨‚à‚È“Á’¥ E‚¨‚·‚í‚è/ŒÅ’èƒ}ƒXƒRƒbƒg EƒƒCƒ‹’…M‚¨’m‚点(Biff)‹@”\ [POP3/APOP] EŽžŒv‹@”\ Eݒ耖ڂ̑½‚³‚Æ_“î«Aƒ}ƒXƒRƒbƒg쬂àGUI‚©‚ç‰Â”\ E•¡”“¯Žž‹@”\ ¥“®ìŠÂ‹« [for Microsoft Windows (ƒoƒCƒiƒŠ”z•z)] EWindows2000,XPˆÈ~(Vista‚Í–¢ŒŸØ) ETAR32.DLL(GPL)‚𓯫 ¦ŽQÆu“‡ƒA[ƒJƒCƒoƒvƒƒWƒFƒNƒgv URL http://www.csdinc.co.jp/archiver/ E‘¼Gtk+“™‚Ì•K—v‚ȃ‰ƒCƒuƒ‰ƒŠ‚àƒoƒCƒiƒŠ”z•z”łɂ·‚ׂĊ܂܂ê‚Ä‚¢‚Ü‚·B ¥Windows”łɂ‚¢‚Ä ƒ\[ƒXƒR[ƒhŽ©‘Ì‚ÍUNIX”łƋ¤’ʂł·‚ªAŒ»’iŠK‚Å‚Í "ƒ\ƒPƒbƒgƒƒbƒZ[ƒW‹@”\(ŠÜƒfƒ…ƒGƒbƒgƒƒbƒZ[ƒW‹@”\)" ‚ðÈ—ª‚µ‚Ä‚¢‚Ü‚·B Windows”ł݂̂̋@”\‚Æ‚µ‚ÄA"TAR32.DLL"‚É‚æ‚éƒA[ƒJƒCƒu‚̉𓀋@”\‚ðŽ‚Á‚Ä‚¢ ‚邱‚Æ‚ÆAŠeƒp[ƒc(ƒ}ƒXƒRƒbƒgAƒ[ƒ‹’…M‰æ‘œA‚Ó‚«‚¾‚µAŽžŒv)‚̃¿’l‚ðÝ’è ‚µ‚Ä”¼“§–¾‚É‚·‚邱‚Æ‚ª‚Å‚«‚邱‚Æ‚ª‚ ‚è‚Ü‚·(ver1.7.0‚©‚ç‚ÍUNIX‚Å‚àˆê•””¼“§ –¾‹@”\‚ðƒTƒ|[ƒg‚µ‚Ä‚¢‚Ü‚·)B BIFF‹@”\‚ÍAŽÀŽ¿“I‚ÉWindows‚ł̓[ƒJƒ‹ƒXƒv[ƒ‹‚Ȃǂ͎g—p‚µ‚Ü‚¹‚ñ‚Ì‚ÅA POP (w/ or w/o APOP)‚݂̂ɑΉž‚µ‚Ä‚¢‚Ü‚·B •K—v‚ȃ‰ƒCƒuƒ‰ƒŠ‚Í‚±‚̃oƒCƒiƒŠ”z•z”Å’†‚É“¯«‚³‚ê‚Ä‚¢‚Ü‚·B “WŠJ‚µ‚½ƒA[ƒJƒCƒuƒfƒBƒŒƒNƒgƒŠ‚²‚ÆD‚«‚ÈꊂɃRƒs[‚µ‚ÄA‚»‚̂܂܎g—p‚Å‚« ‚Ü‚·B ƒCƒ“ƒXƒg[ƒ‰•t‘®‚Ìꇂ͂»‚¿‚ç‚ð‚¨Žg‚¢‚­‚¾‚³‚¢B ¥–{‘̂̃Cƒ“ƒXƒg[ƒ‹`‹N“® MaCoPiX‚ð“®ì‚³‚¹‚邽‚߂ɂ͂¢‚¸‚ê‚©‚̃}ƒXƒRƒbƒg‚à“¯Žž‚ɃCƒ“ƒXƒg[ƒ‹ ‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B 1. MaCoPiX-win32 –{‘̂̃A[ƒJƒCƒu‚ðƒ_ƒEƒ“ƒ[ƒh 2. ƒA[ƒJƒCƒu‚ð“K“–‚ÈꊂɓWŠJ‚·‚é 3. MaCoPiX—pƒ}ƒXƒRƒbƒgƒA[ƒJƒCƒu(‚Ç‚ê‚Å‚à‚æ‚¢)‚ðƒ_ƒEƒ“ƒ[ƒh‚µƒZ[ƒu‚µ‚Ä‚¨‚­ (MaCoPiX-mascot-HxB-0.10.tar.gz ‚È‚Ç) 4. MaCoPiX–{‘Ì (macopix.exe) ‚ð‹N“®‚·‚éB 5. "MaCoPiX‹N“®’†"‚̃ƒbƒZ[ƒWƒEƒBƒ“ƒhƒE‚©‚ç "ƒCƒ“ƒXƒg[ƒ‹"¨"ƒ‰ƒ“ƒ`ƒƒƒƒjƒ…["‚ð‘I‘ð ƒ_ƒEƒ“ƒ[ƒh‚µ‚½ƒ}ƒXƒRƒbƒgƒA[ƒJƒCƒuƒtƒ@ƒCƒ‹(.tar.gz)‚ðŽw’è‚·‚éB 6. ƒ}ƒXƒRƒbƒg‚ªŽ©“®“I‚ɃCƒ“ƒXƒg[ƒ‹‚³‚ê‚é(macopix.exe‚Ì‚ ‚éƒfƒBƒŒƒN ƒgƒŠ‚ÉUserData\‚ªì¬‚³‚ê‚Ü‚·)B ¥ƒ}ƒXƒRƒbƒg‚̒ljÁƒCƒ“ƒXƒg[ƒ‹ 1. ƒCƒ“ƒXƒg[ƒ‹‚µ‚½‚¢MaCoPiX—pƒ}ƒXƒRƒbƒgƒA[ƒJƒCƒu(.tar.gz)‚ðƒ_ƒEƒ“ƒ[ ƒh‚µƒZ[ƒu‚µ‚Ä‚¨‚­ 2. MaCoPiX–{‘Ì (macopix.exe) ‚ð‹N“®‚·‚éB 3. ƒ}ƒXƒRƒbƒg‚ð‰EƒNƒŠƒbƒN‚·‚邯o‚Ä‚­‚郃jƒ…[‚©‚ç "ƒCƒ“ƒXƒg[ƒ‹"¨"ƒ‰ƒ“ƒ`ƒƒƒƒjƒ…[ (tar+gz)‚ð‘I‘ðB ƒ_ƒEƒ“ƒ[ƒh‚µ‚½ƒ}ƒXƒRƒbƒgƒA[ƒJƒCƒuƒtƒ@ƒCƒ‹(.lzh)‚ðŽw’è‚·‚éB 4. ƒ}ƒXƒRƒbƒg‚ªŽ©“®“I‚ɃCƒ“ƒXƒg[ƒ‹‚³‚ê‚é(macopix.exe‚Ì‚ ‚éƒfƒBƒŒƒN ƒgƒŠ‚ÌUserData\‰º‚É)B ¥BIFF(ƒ[ƒ‹’…Mƒ`ƒFƒbƒN)‹@”\—˜—pŽž‚Ì’ˆÓ“_ ‚Ü‚¸A‚±‚Ì‹@”\‚ɂ‚¢‚Ă͂܂¾“®ìŒŸØ‚ª•s\•ª‚È‚±‚Æ‚à‚ ‚èA—\Šú‚µ‚È‚¢ƒGƒ‰[‚ª ‚¨‚±‚邱‚Æ‚àl‚¦‚ç‚ê‚Ü‚·‚Ì‚ÅA‚²—‰ð‚ÌゲŽg—p‚­‚¾‚³‚¢B (‚Ƃ͂¢‚¦A’v–½“I‚ȃoƒO‚Ȃǂ͂·‚ׂÂԂµ‚Ä‚¢‚é‚‚à‚è‚Å‚·) Šî–{“IWindows‚ł̓[ƒJƒ‹ƒXƒv[ƒ‹‚Ȃǂ͎g—p‚µ‚Ü‚¹‚ñ‚Ì‚ÅA‚ÉPOP‚à‚µ‚­‚ÍPOP (APOP)‚ª—˜—p‚Å‚«‚éƒ[ƒ‹ƒT[ƒo[‚ɃAƒNƒZƒX‚µ‚ÄAƒ[ƒ‹‚ª‚«‚Ä‚¢‚é‚©‚Ç‚¤‚©‚ð’è Šú“I(ƒfƒtƒHƒ‹ƒg‚Å‚Í60sec–ˆ)‚Ƀ`ƒFƒbƒN‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B ver1.6.2‚©‚çPOP3‚Å‚ÌSSL/TLSƒvƒƒgƒRƒ‹‚É(ŽŽŒ±“I‚É)‘Ήž‚µ‚Ü‚µ‚½B IMAP‚ɂ͑Ήž‚µ‚Ä‚¢‚Ü‚¹‚ñB ‚Ü‚½AƒfƒtƒHƒ‹ƒg‚Å‚ÍPOP—p‚̃pƒXƒ[ƒh‚ðÝ’èƒtƒ@ƒCƒ‹(UserData/macopix.ini)‚É •½•¶‚ŕۑ¶‚µ‚Ä‚µ‚Ü‚¢‚Ü‚·BƒZƒLƒ…ƒŠƒeƒB“I‚É‹C‚É‚È‚é‚Æ‚¢‚¤•û‚ÍAÝ’èƒEƒBƒ“ƒhƒE ‚Ì"ƒ[ƒ‹’…M"‚Ì€–Ú“à‚ŃpƒXƒ[ƒh‚̕ۑ¶"‚̃`ƒFƒbƒN‚ðŠO‚·‚悤‚É‚µ‚Ä‚­‚¾‚³‚¢B ‚±‚¤‚·‚邱‚Ƃɂæ‚èABIFF‹N“®Žž‚ɃpƒXƒ[ƒh‚ð•·‚­ƒEƒBƒ“ƒhƒE‚ª—§‚¿ã‚ª‚èA ‚»‚±‚Å“s“xƒpƒXƒ[ƒh‚ð“ü—Í‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B ¥‚æ‚­‚ ‚鎿–â Q. ƒ}ƒXƒRƒbƒg‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚½‚ªŒ©‚‚©‚ç‚È‚¢B ƒ}ƒXƒRƒbƒg‚ÌØ‚è‘Ö‚¦‚͂ǂ¤‚â‚é‚Ì‚©? A. ”z•z‚µ‚Ä‚¢‚éƒ}ƒXƒRƒbƒgƒA[ƒJƒCƒu‚͂ЂƂ‚̃ƒjƒ…[‚Æ‚»‚ê‚É“o˜^‚³ ‚ꂽ•¡”‚̃}ƒXƒRƒbƒg‚©‚ç‚Ȃ肽‚Á‚Ä‚¢‚Ü‚·B ‚Ü‚¸A–Ú“I‚̃}ƒXƒRƒbƒg‚ª“o˜^‚³‚ꂽƒƒjƒ…[‚É•ÏX‚µ‚Ä‚­‚¾‚³‚¢B‰EƒNƒŠƒbƒN‚Å ŠJ‚­¨ƒ‰ƒ“ƒ`ƒƒƒƒjƒ…[¨ƒ‰ƒ“ƒ`ƒƒ ‚Å‚¢‚¿‚΂ñŠÈ’P‚ɃCƒ“ƒXƒg[ƒ‹Ï‚݂̃ƒjƒ…[‚ð‚³‚ª‚·‚±‚Æ‚ª‚Å‚«‚Ü‚·B ƒƒjƒ…[‚ðØ‚è‘Ö‚¦‚½‚ç‰EƒNƒŠƒbƒNƒƒjƒ…[‚©‚ç ƒ}ƒXƒRƒbƒgƒ‰ƒ“ƒ`ƒƒ¨(ƒƒjƒ…[ƒ^ƒCƒgƒ‹)¨(ƒ}ƒXƒRƒbƒgƒ^ƒCƒgƒ‹) ‚Ń}ƒXƒRƒbƒg‚Ì•ÏX‚ª‚Å‚«‚Ü‚·B Q. ‚¢‚‚à‹N“®Žž‚Ƀƒjƒ…[‚ð‘I‘ð‚³‚¹‚ç‚ê‚ÄŸT“©‚µ‚¢B A. ‹N“®Žž‚ɃfƒtƒHƒ‹ƒg‚Å‘I‘ð‚³‚ê‚郃jƒ…[‚ðŽw’è‚·‚é‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B ƒƒjƒ…[‚ð“ǂݞ‚ñ‚Å‚©‚ç‰EƒNƒŠƒbƒNƒƒjƒ…[‚Å •Û‘¶¨ƒ‰ƒ“ƒ`ƒƒƒƒjƒ…[¨ƒfƒtƒHƒ‹ƒg‚ÉÝ’è ‚ÅŒ»Ý“ǂݞ‚ñ‚Å‚¢‚郃jƒ…[‚ð‹N“®Žž‚É‚æ‚Ü‚¹‚邿‚¤‚É‚µ‚Ü‚·B ("•Û‘¶¨‚·‚ׂĕۑ¶"‚Å‚àOK) Q. “Á’è‚̃}ƒXƒRƒbƒg‚ð‹N“®Žž‚É‘I‘ð‚µ‚½‚¢B A. ƒCƒ“ƒXƒg[ƒ‹Ï‚݂̃}ƒXƒRƒbƒg‚ɂ‚¢‚Ă̓Rƒ}ƒ“ƒhƒ‰ƒCƒ“ƒIƒvƒVƒ‡ƒ“‚Å macopix.exe HxB_ayana.mcpx ‚̂悤‚É .mcpxƒtƒ@ƒCƒ‹‚ðŽw’è‚·‚ê‚΂悢‚Å‚·B .mcpxƒtƒ@ƒCƒ‹‚Ímacopix.exe‚Ì‚ ‚éƒfƒBƒŒƒNƒgƒŠ‚É‚ ‚éUserDataƒfƒBƒŒ ƒNƒgƒŠ‚̉º‚ɃCƒ“ƒXƒg[ƒ‹‚³‚ê‚Ä‚¢‚Ü‚·B Q. Ý’è‚ð•ÏX‚µ‚½‚ª”½‰f‚³‚ê‚È‚¢B A. •ÏX‚µ‚½Ý’è‚ð•Û‘¶‚µ‚È‚¢ŒÀ‚è‚ÍŽŸ‰ñ‹N“®ˆÈ~‚É”½‰f‚³‚ê‚Ü‚¹‚ñB ‰EƒNƒŠƒbƒNƒƒjƒ…[‚Ì •Û‘¶ ‚©‚ç•K—v‚È‚à‚Ì‚ð•Û‘¶‚µ‚Ä‚­‚¾‚³‚¢B ‚·‚ׂĕۑ¶ ‚ð‘I‘ð‚·‚é‚Æ ‹¤’ÊÝ’èEŒ»Ý•\ަ’†‚̃}ƒXƒRƒbƒg‚ÌÝ’èEŒ»ÝŽg—p’†‚̃ƒjƒ…[‚ðƒfƒtƒHƒ‹ƒgŽw’è ‚ð•Û‘¶‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B ‚Ü‚½Aƒ}ƒXƒRƒbƒg‚ÌÝ’è‚ð•ÏX‚µ‚Ä‚©‚çƒZ[ƒu‚µ‚È‚¢‚܂܂ÅAƒ}ƒXƒRƒbƒg‚Ì•ÏX ‚ðs‚¢‚Ü‚·‚ÆA‚»‚ÌŽž“_‚Å•ÏX“à—e‚Í”jŠü‚³‚ê‚Ü‚·‚̂ł²’ˆÓ‚­‚¾‚³‚¢B Q. ‚Ó‚«‚¾‚µ‚̑䎌‚ð•ÏX‚µ‚½‚¢B A. ‰EƒNƒŠƒbƒNƒƒjƒ…[‚©‚ç Ý’è ‚ð‘I‘ð‚µ‚ÄÝ’èƒEƒBƒ“ƒhƒE‚ð—§‚¿ã‚°‚ÄA ƒ}ƒXƒRƒbƒg¨ƒAƒjƒ ‚Ì€–Ú‚Å•ÒW‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B Úׂ̓z[ƒ€ƒy[ƒW‚Ü‚½‚ÍÝ’èƒEƒBƒ“ƒhƒE“à‚̂ӂ«‚¾‚µ€–Ú‚É‚ ‚é§Œä•¶Žš ˆê——‚ð‚²——‚­‚¾‚³‚¢B ‚È‚¨AÝ’è•ÏX‚µ‚½‚ ‚Ƃ̓}ƒXƒRƒbƒg‚̕ۑ¶‚ð‚¨–Y‚ê‚È‚­B Q. Ž©•ª‚ŃIƒŠƒWƒiƒ‹‚̃}ƒXƒRƒbƒg‚Íì‚ê‚È‚¢‚©? A. ‚à‚¿‚ë‚ñì‚ê‚Ü‚·B Ú‚µ‚­‚̓z[ƒ€ƒy[ƒW‚ð‚²——‚­‚¾‚³‚¢B Q. ƒtƒH[ƒJƒX‚ª‚È‚¢‚Æ‚«‚ȂǂɃ^ƒXƒNƒo[‚ÉÀ‚点‚½‚¢B A. Ý’èƒEƒBƒ“ƒhƒE‚Åu‹¤’ÊÝ’èv¨uˆÚ“®v¨uƒz[ƒ€ƒ|ƒWƒVƒ‡ƒ“v‚ÅA ƒtƒH[ƒJƒX(ƒtƒHƒAƒOƒ‰ƒEƒ“ƒh)ƒEƒBƒ“ƒhƒE‚ª‚È‚¢‚Æ‚«‚Ɖæ–Êã•”‚Ƀ}ƒX ƒRƒbƒg‚ª‚Í‚Ýo‚·‚Æ‚«‚Ì“®ì‚ðŽw’è‚Å‚«‚Ü‚·B Q. ‹N“®Žž‚ÉŽž•ñ‚⃃Cƒ‹’…M‚¨’m‚点(Biff)‹@”\‚ðŽ©“®“I‚É—LŒø‚É‚µ‚½‚¢B A. ‹N“®Žž‚̃IƒvƒVƒ‡ƒ“‚ŃXƒCƒbƒ`‚Å‚«‚Ü‚·B macopix.exe -b ‚Å‹N“®Žž‚ÉBiff‚ðON macopix.exe -s ‚Å‹N“®Žž‚ÉŽž•ñ‚ðON‚ƂȂè‚Ü‚·B —¼•ûŽg‚¢‚½‚¢‚Æ‚«‚Í macopix.exe -b -s ‚Æ‚·‚邱‚Æ‚à‚à‚¿‚ë‚ñ‚Å‚«‚Ü‚·B ƒVƒ‡[ƒgƒJƒbƒg‚Ì"ƒŠƒ“ƒNæ"‚ȂǂÉã‹L‚̃IƒvƒVƒ‡ƒ“‚ð‚‚¯‚½‚肵‚Ä—˜—p ‚µ‚Ä‚­‚¾‚³‚¢B Q. •¡”‚̃ƒCƒ‹ƒAƒJƒEƒ“ƒg‚ðŽ‚Á‚Ä‚¢‚Ä‚»‚ꂼ‚ê‚ÉBiff‚ðŽg‚¢‚½‚¢‚ª...B A. ‚ЂƂ‚ÌÝ’èƒtƒ@ƒCƒ‹‚ɂ͂ЂƂ‚̃ƒCƒ‹ƒAƒJƒEƒ“ƒg‚µ‚©“o˜^‚Å‚«‚Ü‚¹‚ñB ‚µ‚½‚ª‚Á‚ÄAÝ’èƒtƒ@ƒCƒ‹‚ð‚Ó‚½‚ˆÈã—pˆÓ‚µ‚Ăӂ½‚ˆÈã‚Ìmacopix.exe ‚𓯎ž‹N“®‚·‚邯‚¢‚¤Œ`‚łȂç‚ÎŽÀŒ»‚͂ł«‚Ü‚·B •W€‚ÌÝ’èƒtƒ@ƒCƒ‹‚Ímacopix.exe‚Ì‚ ‚éƒfƒBƒŒƒNƒgƒŠ‚Ì UserData\macopix.ini ƒtƒ@ƒCƒ‹‚Å‚·B ‚±‚̃tƒ@ƒCƒ‹‚ɃAƒJƒEƒ“ƒg1‚ÌÝ’è‚ðƒZ[ƒu‚µA UserData\mail2.ini ‚Æ‚¢‚¤Ý’èƒtƒ@ƒCƒ‹–¼‚ŃAƒJƒEƒ“ƒg2‚ÌÝ’è‚ðƒZ[ƒu‚µ‚½ã‚ÅA macopix.exe -b macopix.exe -b -r mail2.ini ‚ȂǂƂ·‚邯A‚»‚ꂼ‚ê•Ê‚ÌBiff‚ð—˜—p‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B Q. Windows2000‚Ń^ƒXƒNƒgƒŒƒC‚̃AƒCƒRƒ“‚ÌF‚ª‚¨‚©‚µ‚¢? A. Žd—l‚Å‚·(о)B Windows2000‚ł͕W€‚ł̓VƒXƒeƒ€16F‚̃AƒCƒRƒ“‚µ‚©ƒ^ƒXƒNƒgƒŒƒC‚Å ³í‚É•\ަ‚Å‚«‚Ü‚¹‚ñB 256FˆÈã‚̃AƒCƒRƒ“‚Ì•\ަ‚ð‰Â”\‚É‚·‚éƒtƒŠ[ƒEƒFƒA“™‚ð—˜—p‚·‚é‚©A Ý’èƒEƒBƒ“ƒhƒE‚©‚çƒ^ƒXƒNƒgƒŒƒC‚̃AƒCƒRƒ“‚ð•\ަ‚µ‚È‚¢‚悤‚ÉÝ’è‚·‚é ‚±‚Æ‚ª‚Å‚«‚Ü‚·B WindowsXPˆÈ~‚ł͂±‚Ì–â‘è‚Í‚¨‚±‚è‚Ü‚¹‚ñB Q. ‚Ó‚«‚¾‚µEŽžŒv‚Ì•\ަ‚ªd‚¢/‚¿‚ç‚‚­B A. ƒfƒtƒHƒ‹ƒg‚ł͔wŒi‚݂̂𔼓§–¾•\ަ‚·‚éÝ’è‚ɂȂÁ‚Ä‚¢‚Ü‚·B ‚±‚ê‚ð "”wŒi‚Ì‚Ý"”¼“§–¾‚·‚éƒIƒvƒVƒ‡ƒ“‚ð‚Í‚¸‚· ‚à‚µ‚­‚Í •s“§–¾“x‚ð100%‚É‚µ‚Ä”¼“§–¾‚ÍŽg‚í‚È‚¢‚悤‚É‚·‚é ‚±‚Ƃŕ‰‰×‚𑽭ŒyŒ¸‚Å‚«‚邯Žv‚¢‚Ü‚·B ¥Windows”Å‚ðƒ\[ƒX‚©‚çƒRƒ“ƒpƒCƒ‹ msys,mingw,Gtk+/Win32AOpenSSL-Win32A‚»‚µ‚ÄTAR32.DLL‚ð—pˆÓ (ƒCƒ“ƒXƒg[ƒ‹)‚µ‚Ä‚¨‚«‚Ü‚·B ‚Ü‚½UNLHA32.DLL‚ðŽg‚¤‚悤‚ɃRƒ“ƒpƒCƒ‹‚·‚邱‚Æ‚à‚Å‚«‚Ü‚·B‚»‚Ìê‡‚Í ‚»‚¿‚ç‚àƒCƒ“ƒXƒg[ƒ‹‚µ‚Ä‚¨‚«‚Ü‚·B ‘OŽÒ‚ɂ‚¢‚Ă̓[ƒ‹ƒG[ƒWƒFƒ“ƒg‚Ì"sylpheed-win32"‚ɂ‚¢‚Ă̋Lq‚ª ŽQl‚É‚È‚é‚ÆŽv‚¢‚Ü‚·B URL: http://sylpheed.sraoss.jp/wiki/ - msysã‚ÌŒÂlƒfƒBƒŒƒNƒgƒŠ‚É source‚ð“WŠJB - UNLHA32.DLL‚ðŽg‚¤ê‡‚Í‚»‚¿‚ç‚ð—pˆÓB UNLHA32.DLL‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚½ƒfƒBƒŒƒNƒgƒŠ (C:\Program Files\ArchiverDll\UNLHA32\) ‚É‚ ‚é UNLHA32.DLL UNLHA32.H ‚ðmsysã‚̃fƒBƒŒƒNƒgƒŠ‚ɃRƒs[B % pexports UNLHA32.DLL > unlha32.def unlha32.def‚ð•ÒW stdcallƒXƒ^ƒbƒN’·(@n)‚ð•t‰Á Unlha ¨ Unlha@16 UnlhaCloseArchive ¨ UnlhaCloseArchive@4 UnlhaOpenArchive ¨ UnlhaOpenArchive@12 UnlhaFindFirst ¨ UnlhaFindFirst@12 % dlltool -d unlha32.def -l libunlha32.a - ‚±‚¤‚µ‚Ăł«‚½ libunlha32.a ‚Æ UNLHA32.H‚ð“WŠJ‚µ‚½source‚̂Ȃ©‚Ì src/ ƒfƒBƒŒƒNƒgƒŠ‚ɃRƒs[‚µ‚Ä‚¨‚­B (TAR32.DLL‚à“¯—l‚È€”õ‚ð‚·‚é‚ªA‚·‚łɀ”õ‚Å‚«‚½‚à‚Ì‚ðsourceƒcƒŠ[ ‚É“¯«‚µ‚Ä‚¢‚éB) - make—p‚̃XƒNƒŠƒvƒg‚ª‚ ‚é‚Ì‚ÅsourceƒA[ƒJƒCƒu’†‚Å % ./makewin32.sh ‚ðŽÀs‚·‚ê‚΂悢B - $HOME/dist/ ‚̉º‚Émake‚³‚ê‚éB ¥’˜ìŒ “I˜b‚Æ‚© The code in this distribution is Copyright 2002-2008 by Kurumi Chimari. ‚±‚̃vƒƒOƒ‰ƒ€‚̓tƒŠ[ƒ\ƒtƒgƒEƒFƒA‚Å‚·B‚ ‚È‚½‚Í‚±‚ê‚ðA Free Software@ Foundation ‚É‚æ‚Á‚Ä”­s‚³‚ꂽGNUˆê”ÊŒöO—˜—p‹–‘ø‘ (ƒo[ƒWƒ‡ƒ“2A ‚Ü‚½‚Í(”CˆÓ‚É)‚»‚êˆÈ~‚̃o[ƒWƒ‡ƒ“‚̂ǂ¿‚ç‚©)‚Ì’è‚ß‚éðŒ‚É]‚Á‚ÄA ‚±‚ê‚ðÄ”z•zA‚»‚µ‚Ä(‚ ‚é‚¢‚Í)C³‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B ‚±‚̃vƒƒOƒ‰ƒ€‚Í—L—p‚Å‚ ‚邱‚Æ‚ðŠè‚Á‚Ä”z•z‚³‚ê‚Ü‚·‚ªA*‘S‚­‚Ì–³•ÛØ*‚Å‚·B *¤‹Æ‰Â”\«‚Ì•ÛØ*‚â*“Á’è‚Ì–Ú“I‚Ö‚Ì“K‡«*‚ÍAŒ¾ŠO‚ÉŽ¦‚³‚ꂽ‚à‚Ì‚àŠÜ‚ß ‘S‚­‘¶Ý‚µ‚Ü‚¹‚ñBÚ‚µ‚­‚ÍGNUˆê”ÊŒöO—˜—p‹–‘ø‘‚ð‚²——‚­‚¾‚³‚¢B ‚ ‚È‚½‚Í‚±‚̃vƒƒOƒ‰ƒ€‚ƂƂà‚ÉGNUˆê”ÊŒöO—˜—p‹–‘ø‘‚Ì•¡»‚ðˆê•”Žó‚¯Žæ‚Á‚½ ‚Í‚¸‚Å‚·B‚à‚µŽó‚¯Žæ‚Á‚Ä‚¢‚È‚¯‚ê‚ÎAFree Software Foundation‚܂ſ‹ ‚µ‚Ä‚­‚¾‚³‚¢(ˆ¶æ‚Í Free Software Foundation, Inc., 51 Franklin St., Fifth Floor, Boston, MA 02110-1301 USA)B ‰Á‚¦‚Ä“Á•ʂȗáŠO‚Æ‚µ‚ÄAK.Chimari‚Í‚±‚̃vƒƒOƒ‰ƒ€‚̃R[ƒh‚ðOpenSSLƒ‰ƒCƒuƒ‰ƒŠ (‚ ‚é‚¢‚ÍOpenSSL‚Æ“¯‚¶ƒ‰ƒCƒZƒ“ƒX‚ª“K—p‚³‚ꂽOpenSSL‚̉ü•Ï‚³‚ꂽƒo[ƒWƒ‡ƒ“) ‚ÆƒŠƒ“ƒN‚µAƒŠƒ“ƒN‚³‚ꂽ—¼ŽÒ‚ðŠÜ‚ÞŒ‹‡’˜ì•¨‚ð”Еz‚·‚é‹–‰Â‚ð‚ ‚½‚¦‚Ü‚·B ‚ ‚È‚½‚ÍOpenSSLˆÈŠO‚ÅŽg‚í‚ê‚Ä‚¢‚é‚·‚ׂẴR[ƒh‚ÉŠÖ‚µ‚Ă͑S–Ê“I‚ÉGNUˆê”ÊŒöO —˜—p‹–‘ø‘‚É]‚í‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB‚ ‚È‚½‚ª‚±‚̃tƒ@ƒCƒ‹‚ð‰ü•Ï‚µ‚½‚È‚ç‚ÎA ‚ ‚È‚½‚Í‚±‚̃o[ƒWƒ‡ƒ“‚̃tƒ@ƒCƒ‹‚Ɉø‚«‘±‚«Ý‚¯‚邱‚Æ‚à‚Å‚«‚Ü‚·‚ªA‚»‚¤‚·‚é‹`–± ‚Í‚ ‚è‚Ü‚¹‚ñB‚à‚µ—áŠO‚ðÝ‚¯‚½‚­‚È‚¯‚ê‚ÎA‚±‚Ì—áŠOð€‚ð‚ ‚È‚½‚̃o[ƒWƒ‡ƒ“‚©‚ç ‚Í휂µ‚Ä‚­‚¾‚³‚¢B GLibAGTK+Alibiconv ƒ‰ƒCƒuƒ‰ƒŠ‚Í GNU LGPL ‚É]‚¢‚Ü‚·BÚ×‚Í COPYING.LIB ‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B Windows”ŃoƒCƒiƒŠƒpƒbƒP[ƒW‚É“¯«‚³‚ê‚éOpenSSLƒ‰ƒCƒuƒ‰ƒŠ(libeay.dll, ssleay32.dll)‚ÍOpenSSLƒ‰ƒCƒZƒ“ƒX‚¨‚æ‚ÑSSLeayƒ‰ƒCƒZƒ“ƒX‚É‚µ‚½‚ª‚Á‚Ä ”z•z‚³‚ê‚Ä‚¢‚Ü‚·B Ú‚µ‚­‚ÍLICENSE.SSL‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B ‚±‚̃vƒƒOƒ‰ƒ€ƒ\[ƒX‚¨‚æ‚уoƒCƒiƒŠƒpƒbƒP[ƒW‚É“¯«‚³‚ê‚Ä‚¢‚é TAR32.DLL‚Í‹g‰ªP•v‚³‚ñ쬂̃tƒŠ[ƒ\ƒtƒgƒEƒFƒA(GPL€‹’)‚Å‚·B ŽQÆURL http://www.csdinc.co.jp/archiver/lib/tar32.html Windows‚ւ̑Ήž‚ɂ‚«‚Ü‚µ‚Ä‚ÍAƒtƒH[ƒJƒXƒEƒBƒ“ƒhƒE‚Ö‚Ì’Ç]‚Ȃǂɂ¨ ‚¢‚ÄA‚µ‚ë‚€‚䂤‚³‚ñ‚©‚瑽‘å‚ȃqƒ“ƒg‚𒸂«‚Ü‚µ‚½B‚±‚±‚ÉŠ´ŽÓ\‚µã‚°‚Ü‚·B macopix-1.7.4/README.ja0000644000076400007640000005006211030076230011360 00000000000000################################################################# UNIXÍÑ ¥Ç¥¹¥¯¥È¥Ã¥×¥Þ¥¹¥³¥Ã¥È ¥×¥í¥°¥é¥à macopix : Mascot Constructive Pilot for X ver 1.7.4 ÆüËܸì¥É¥­¥å¥á¥ó¥È : README.jp 2008.06.24 Kurumi Chimari chimari@rosegray.sakura.ne.jp http://rosegray.sakura.ne.jp/ ################################################################# ============================================================= ¢£ Ìܼ¡ ¢£ - ¤³¤Î¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ - ưºî´Ä¶­ - ¥¤¥ó¥¹¥È¡¼¥ë - ¼ÂºÝ¤Ëư¤«¤·¤Æ¤ß¤ë - ºîÀ®¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¡¦É¬Íפʥե¡¥¤¥ë - ¥Þ¥¹¥³¥Ã¥È¤Ë¤Ä¤¤¤Æ - ¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼¤Ë¤Ä¤¤¤Æ - Biffµ¡Ç½¤Ë¤Ä¤¤¤Æ - »þÊóµ¡Ç½ - ¤Î¤Ã¤«¤ê¥­¥ã¥é¤Ë¤Ä¤¤¤Æ - ¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸µ¡Ç½¤Ë¤Ä¤¤¤Æ - ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥á¤Ë¤Ä¤¤¤Æ - ÆüËܸìEUC°Ê³°¤Î¥í¥±¡¼¥ë¤Ç¤Îưºî - Gtk+2.x¤ª¤è¤ÓGtk+-1.2ÈÇ¤Ç¤ÎÆ°ºî¤Î°ã¤¤ - SSL¤Î¥µ¥Ý¡¼¥È¤Ë¤Ä¤¤¤Æ - ȾƩÌÀ¤Î¥µ¥Ý¡¼¥È¤Ë¤Ä¤¤¤Æ - TO DO - Ãøºî¸¢ÅªÏäȤ« ============================================================= ¢§¤³¤Î¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ MaCoPiX¤ÏUNIX/X Window System¤Þ¤¿¤ÏMicrosoft Windows¤Çưºî¤¹¤ë¥Ç¥¹¥¯¥È¥Ã¥× ¥Þ¥¹¥³¥Ã¥È¥×¥í¥°¥é¥à¤Ç¡¢GNU GPL2¤Ë¤·¤¿¤¬¤Ã¤ÆÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë¥Õ¥ê¡¼¥½¥Õ¥È¥¦¥§ ¥¢¤Ç¤¹¡£ ver1.6.0¤«¤éMicrosoft Windows(2000,XP°Ê¹ß¡¦Vista¤Ï̤¸¡¾Ú)¤Ç¤Îưºî¤Ë¤âÂбþ ¤·¤Þ¤·¤¿(mingw & Gtk+/Win32¤Ç¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¤Îbinary¤òÇÛÉÛ)¡£ ÆÃ¤Ë¤³¤È¤ï¤ê¤Î¤Ê¤¤¸Â¤ê¤Ï¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÏUNIXÈǤˤĤ¤¤Æ¤Î²òÀâ¤òµ­½Ò¤·¤Þ¤¹¡£ WindowsÈǤˤĤ¤¤Æ¤Ï¡¢¥¢¡¼¥«¥¤¥ÖÆâ¤Î"Readme-win32.jp"¥Õ¥¡¥¤¥ë¤ò¤´Í÷¤¯¤À¤µ¤¤¡£ ¤¤¤Á¤ª¤¦¡¢¤ª¤¹¤ï¤ê¥Þ¥¹¥³¥Ã¥È¥¢¥×¥ê¤Ç¤¢¤ëActX(Activate X WindowSystem)¤Îȯ Ÿ·Ï¡Ä¡Ä ¤È¤¤¤¦¤³¤È¤ò¹Í¤¨¤Æ¤¿¤ê¤·¤Þ¤¹¡£ ¸½Ãʳ¬¤ÇºîÀ®¤Ç¤­¤ë¥Þ¥¹¥³¥Ã¥È¤Ï ¡¦¥Õ¥©¡¼¥«¥¹Äɽ¾·¿ (ActX like) ¡¦°ÌÃÖ¸ÇÄê·¿ (¤½¤Î¤Þ¤Þ¥Ç¥¹¥¯¥È¥Ã¥×¤Ë¤Ï¤Ã¤Ä¤±¤ë¥Þ¥¹¥³¥Ã¥È) ¤ÎÆó¼ïÎà¤Ç¤¹¡£ ¤Þ¤¿¡¢¤½¤ì¤¾¤ì¤ËÂФ·¤Æ¥Ç¥¸¥¿¥ë»þ·×¤Î̵ͭ¤ò»ØÄê¤Ç¤­¤ë¤¿¤á¡¢»þ·×·¿¥¢¥¯¥»¥µ¥ê ¤È¤·¤Æ¤â»ÈÍѤǤ­¤ë¤«¤È»×¤¤¤Þ¤¹¡£(»þ·×¤Îµ¡Ç½¤Ï¤Þ¤ÀÉϼå¤Ç¤¹¤¬¡Ä¡Ä) ¤µ¤é¤ËBiffµ¡Ç½(POP3/APOP/local spool/Maildir)¤â»ý¤Á¹ç¤ï¤»¤Æ¤¤¤Þ¤¹¡£ ¤È¤ê¤¢¤¨¤º¡¢¥Þ¥¹¥³¥Ã¥È¤ÎºîÀ®¤«¤é¥×¥í¥Õ¥¡¥¤¥ë¤Î³Æ¼ïÊѹ¹¤Ë¤¤¤¿¤ë¤Þ¤Ç¡¢¥æ¡¼¥¶¡¼ ¥ì¥Ù¥ë¤Ç¤Ï¥Æ ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ËľÀÜ¿¨¤é¤º¤È¤â¥á¥Ë¥å¡¼¤«¤éGUI¤Ç¤¹¤Ù¤ÆÊѹ¹¤Ç¤­ ¤ë¤è¤¦¤Ë¹Í¤¨¤Æ¤¤¤Þ¤¹¡£ ¤Ê¤ª¡¢ActX¤È¤Î¥Õ¥¡¥¤¥ë¸ß´¹À­¤Ï¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¤´Ãí°Õ²¼¤µ¤¤¡£ ¢§Æ°ºî´Ä¶­ X Window System¤¬Æ°ºî¤¹¤ëUNIX´Ä¶­¡¢¤â¤·¤¯¤ÏMicrosoft Windows¤Çưºî¤·¤Þ¤¹¡£ [for UNIX] ¡¦Gtk+ 2.2°Ê¹ß (¤â¤·¤¯¤ÏGtk+ 1.2.0°Ê¹ß/gdk-pixbuf 0.7.0°Ê¹ß/libpng) ¡¦gettext 0.10°Ê¹ß ¡¦¤Þ¤¿¡¢gdk-pixbuf¤¬¥µ¥Ý¡¼¥È¤¹¤ë¤¹¤Ù¤Æ¤Î²èÁü·Á¼°¤òÆÉ¤ß¹þ¤à¤³¤È¤¬¤Ç¤­¤Þ ¤¹¤¬¡¢¤½¤ì¤Ë¤Ï³Æ²èÁü·Á¼°¤ËÂбþ¤·¤¿library(libtiff, libpngÅù)¤¬É¬Í×¤È ¤Ê¤ê¤Þ¤¹(ºî¼Ô¤ÎMaCoPiX¥Þ¥¹¥³¥Ã¥È¤ÏPNG¤ÇÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹)¡£ [for Microsoft Windows (¥Ð¥¤¥Ê¥êÇÛÉÛ)] ¡¦Windows2000,XP°Ê¹ß ¡¦TAR32.DLL(GPL)¤òƱº­ ¢¨»²¾È¡ÖÅý¹ç¥¢¡¼¥«¥¤¥Ð¥×¥í¥¸¥§¥¯¥È¡× URL http://www.csdinc.co.jp/archiver/ ¡¦Â¾Gtk+Åù¤ÎɬÍפʥ饤¥Ö¥é¥ê¤â¥Ð¥¤¥Ê¥êÇÛÉÛÈǤˤ¹¤Ù¤Æ´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£ (WinÈǤˤĤ¤¤Æ¤ÏGtk+win32 ver2.10.0°Ê¹ß¤¬É¬Í×[¥Ð¥¤¥Ê¥êÈÇ¤ËÆ±º­]) ¢§¥¤¥ó¥¹¥È¡¼¥ë (UNIXÈÇ/source¤«¤é) 1. source¤òŸ³«¤·¡¢¤Ç¤­¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë°Üư 2. ./configure ################################################################## ./configure ¤Î¥ª¥×¥·¥ç¥ó [Gtk+] (¥Ç¥Õ¥©¥ë¥È¤ÏGtk+2.x) ./configure --with-gtk1 (Gtk+1.2¤òÍøÍѤ¹¤ë¾ì¹ç) [Cairo] (¥Ç¥Õ¥©¥ë¥È¤Ï¥ª¥ó) ./configure --disable-cairo (Cairo¤ò»È¤ï¤Ê¤¤¾ì¹ç) [SSL] (¥Ç¥Õ¥©¥ë¥È¤ÏOpenSSL) ./configure --withe-gnutls (GNUTLS¤òOpenSSL¤Î¤«¤ï¤ê¤Ë»È¤¦¾ì¹ç) ./configure --disable-ssl (SSL¤ò»È¤ï¤Ê¤¤¾ì¹ç) [Win32] (¥Ç¥Õ¥©¥ë¥È¤Ïfor UNIX) ./configure --with-win32 (Win32ÍѤËmake¤¹¤ë¾ì¹ç) [TAR32] (¥Ç¥Õ¥©¥ë¥È¤Ï¥ª¥Õ) ./configure --with-tar32 (TAR32.DLL¤ò»È¤¦¾ì¹ç) [UNLHA32] (¥Ç¥Õ¥©¥ë¥È¤Ï¥ª¥Õ) ./configure --with-unlha32 (UNLHA32.DLL¤ò»È¤¦¾ì¹ç) ################################################################## ¢¨ Win32ÈÇ¤Ï ./configure --with-win32 --with-tar32 ¤ÇºîÀ½¤·¤Æ¤¤¤Þ¤¹¡£ 3. make 4. su 5. make install (gettext¤Ë¤è¤ë¥á¥Ë¥å¡¼¤Î¿¹ñ¸ìÂбþ¡Ä¡Ä¤È¤¤¤Ã¤Æ¤âÆüËܸì¤À¤±¤Ç¤¹¤¬¡Ä¡Ä ¤òÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï su¤Ë¤Ê¤Ã¤Æ make install¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹) ¢§¼ÂºÝ¤Ëư¤«¤·¤Æ¤ß¤ë ¤È¤ê¤¢¤¨¤º¡¢¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¤È¸½ºß¤Î¤È¤³°ÕÌ£¤¬¤¢¤ê¤Þ¤»¤ó(¤©)¡£ ¡Ä¡Ä¥Þ¥¹¥³¥Ã¥È¥¢¡¼¥«¥¤¥Ö(*.tar.gz)¤ò¤É¤³¤«(ºî¼Ô¤Î¥Ú¡¼¥¸¤«¤é¥À¥¦¥ó¥í¡¼¥É ¤Ç¤­¤Þ¤¹)¤«¤é¼ê¤Ë¤¤¤ì¤¿¤Î¤Á¤Ëmacopix¤òµ¯Æ°¤·¡¢GUI¤Ë¤·¤¿¤¬¤Ã¤Æ¥Þ¥¹¥³¥Ã¥È¤Î ¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£ ver1.6.4°Ê¹ß¤Ç¤Ï´ðËÜŪ¤Ë¥Þ¥¹¥³¥Ã¥È¥¢¡¼¥«¥¤¥Ö(*.tar.gz)¤ò¥À¥¦¥ó¥í¡¼¥É¤·¡¢ ɽ¼¨¤·¤Æ¤¤¤ë¥Þ¥¹¥³¥Ã¥È(½é²óµ¯Æ°»þ¤Ë¤Ï½é²óµ¯Æ°¥á¥Ã¥»¡¼¥¸¥¦¥£¥ó¥É¥¦)¾å¤Ë *.tar.gz¥Õ¥¡¥¤¥ë¤Î¤Þ¤Þ¥É¥é¥Ã¥°&¥É¥í¥Ã¥×¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë ¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ % macopix ¤Þ¤¿ % macopix mascot.mcpx ¤È¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò»ØÄê(mascot.mcpx¤Ï¥À¥¦¥ó¥í¡¼¥É¡¡or ¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿ ¥Þ¥¹¥³¥Ã¥È¤ËÂбþ¤¹¤ë¥Õ¥¡¥¤¥ë̾¤ËŬµ¹Êѹ¹)¤·¤Æ¼Â¹Ô¤¹¤ë¤È¡¢¥Þ¥¹¥³¥Ã¥È¤òµ¯Æ° »þ¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£°ìÅÙµ¯Æ°¤·¤Æ¤·¤Þ¤¨¤Ð¡¢¥Þ¥¹¥³¥Ã¥È¤ÎÊѹ¹Åù¤Ï¥Ý¥Ã ¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¤«¤é¿ï»þ¤Ç¤­¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥óÅù¤Ï¤Þ¤À¤Þ¤ÀÊѹ¹¤Î;ÃϤ¬¤¢¤ê¤Þ¤¹¤¬ -h ¥ª¥×¥·¥ç¥ó¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­ ¤Þ¤¹¡£ ¢§ºîÀ®¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¡¦É¬Íפʥե¡¥¤¥ë MaCoPiX¤Ï¼Â¹Ô¥Õ¥¡¥¤¥ë°Ê³°¤Ë a. ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë(³ÈÄ¥»Ò .mcpx) ¡Ä¡Ä¤È¤½¤ì¤ËÉտ魯¤ë²èÁü¥Õ¥¡¥¤¥ë¡¦²»À¼¥Õ¥¡¥¤¥ë b. ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë(³ÈÄ¥»Ò .rc) c. ¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼ÍÑ¥Õ¥¡¥¤¥ë(³ÈÄ¥»Ò .menu) ¤Î³Æ¥Õ¥¡¥¤¥ë¤ò»ÈÍÑ¡¦¤Þ¤¿¤ÏºîÀ®¤·¤Þ¤¹¡£ ´ðËÜŪ¤Ë¤Ï¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥ê(HOME$/.macopix/)¤Î²¼¤Ë¥³¥Ô¡¼¤Þ¤¿¤ÏºîÀ®¤µ¤ì ¤ë»ÅÁȤߤˤʤäƤ¤¤Þ¤¹¡£ a.¤Ë¤Ä¤¤¤Æ¤Ï¸å½Ò¤Î¡Ö¥Þ¥¹¥³¥Ã¥È¤Ë¤Ä¤¤¤Æ¡×¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ b.¤Ï¡¢¥Þ¥¹¥³¥Ã¥È¤ò¥á¥Ë¥å¡¼Åù¤«¤éÊѹ¹¤·¤Æ¤âÊݸ¤µ¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤òµ­½Ò¤·¤Æ¤¤ ¤ë¥Õ¥¡¥¤¥ë¤Ç¤¹¡£ ÆÃ¤Ë»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î macopix.rc ¤¬ÆÉ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£ ¤³¤ì°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ïµ¯Æ°»þ¤Î -r ¥ª¥×¥·¥ç¥ó¤ò»È¤¤¤Þ¤¹¡£ c.¤Ï¡¢¤è¤¯»È¤¦¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤òÅÐÏ¿¤·¤Æ¤ª¤¯¤¿¤á¤Î¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼¤ÎÆâÍÆ ¤òµ­½Ò¤·¤¿¥Õ¥¡¥¤¥ë¤Ç¤¹¡£ ¸å½Ò¤Î¡Ö¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼¤Ë¤Ä¤¤¤Æ¡×¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¢§¥Þ¥¹¥³¥Ã¥È¤Ë¤Ä¤¤¤Æ ¥Þ¥¹¥³¥Ã¥È¤ÏActX¤È»÷¤¿¤è¤¦¤Ê´¶¤¸¤Ç ¡¦¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë (*.mcpx) ¡¦¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë (gdk-pixbuf¤ÇÆÉ¤ß¹þ¤à¤¿¤á·Á¼°¤ÏÌ䤤¤Þ¤»¤ó) ¤«¤éÀ®¤êΩ¤Á¤Þ¤¹¡£ ¤â¤Á¤í¤óalphaÃͤǥޥ¹¥¯¤ò»ØÄê¤Ç¤­¤ë¤è¤¦¤Ê²èÁü·Á¼°(png,gif,xpmÅù)¤ò»È¤¨¤Ð¡¢ Èó¶ë·Á¤Î¥Þ¥¹¥³¥Ã¥È¤òɽ¼¨¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£ µ¯Æ°»þ¤Ë¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò»ØÄê¤Ç¤­¤Þ¤¹¤¬¡¢ ¤½¤ÎºÝ¤Ë¤Ï 1. ¥«¥ì¥ó¥È¤«¤é¤ÎÁêÂС¢¤â¤·¤¯¤ÏÀäÂХѥ¹ 2. User Directory ($HOME/.macopixrc/) (WinÈÇ¤Ç¤Ï macopix.exe¤Î¤¢¤ë¾ì½ê¤Î UserData\) 3. Common Directory (/usr/share/macopix/ etc.) (WinÈǤϤʤ·) ¤Î½çÈ֤ǥޥ¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò¥µ¡¼¥Á¤·¤Þ¤¹¡£ 2¤Î¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥ê¤Ï½é²óµ¯Æ°»þ¤Ë¾¡¼ê¤ËºîÀ®¤µ¤ì¤Þ¤¹¡£ 3¤Ë¤Ä¤¤¤Æ¤Ïmake»þ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£ ¤Þ¤¿¡¢¥¤¥á¡¼¥¸¤Ë´Ø¤·¤Æ¤Ï¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ëÃæ¤Ç¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Þ¤¹ ¤¬¡¢¤³¤ì¤â 1. ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¥Ç¥£¥ì¥¯¥È¥ê 2. User Pixmap Directory ($HOME/.macopixrc/pixmap/) (WinÈÇ¤Ï UserData\pixmap\) 3. Common Pixmap Directory (/usr/share/macopix/pixmap/ ?) (WinÈǤϤʤ·) ¤ò¼«Æ°Åª¤Ë¥µ¡¼¥Á¤·¤Æ¥í¡¼¥É¤·¤Þ¤¹¡£ ¤Þ¤¿¡¢¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë¤ò»ØÄꤷ¤Æ¤¤¤ë¤È¡¢¥Þ¥¹¥³¥Ã¥È¤ò¥í¡¼¥É¤·¤¿ºÝ¤Ë¼«Æ°Åª¤Ë ¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥Þ¥¹¥³¥Ã¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£ µ¯Æ°»þ¤Ë -O (--over-write) ¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤¿¾ì¹ç¤Ï¡¢1>3>2¤ÎÍ¥Àè½ç°Ì¤Ë ¤Ê¤ê¤Þ¤¹¡£(rpm ¤ò»ÈÍѤ·¤¿¾ì¹ç¤Ï¡¢3¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥Þ¥¹¥³¥Ã¥È¤¬¥¤¥ó¥¹¥È¡¼¥ë ¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤ò2¤Ë¾å½ñ¤­¤¹¤ë¤¿¤á¤Ç¤¹¡£) ¥Þ¥¹¥³¥Ã¥È¤ò»ÈÍѤ¹¤ëÅÀ¤ÇÃí°Õ¤¬É¬ÍפʤΤϡ¢»ÈÍѤ·¤Æ¤¤¤ëlocale¤Ë½¾¤Ã¤¿¥Þ¥¹ ¥³¥Ã¥È¤ò»ÈÍѤ·¤Ê¤¤¤È¡¢¥Þ¥¹¥³¥Ã¥È¤Î¤Õ¤­¤À¤·¤¬É½¼¨¤µ¤ì¤Ê¤¤¡¦¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼ ¤Ç¥Þ¥¹¥³¥Ã¥È¤¬É½¼¨¤µ¤ì¤Ê¤¤¡Ä¡Ä¤È¤¤¤¦¾É¾õ¤¬¤Ç¤ë¤³¤È¤Ç¤¹¡£ ÅöÌ̤Ï"ja" locale(ÆüËܸìEUC)¤Î¥Þ¥¹¥³¥Ã¥È¤òÇÛÉÛ¤¹¤ë¤Ä¤â¤ê¤Ç¤¹¤Î¤Ç¡¢»ÈÍÑ¤ÎºÝ ¤Ï´Ä¶­ÊÑ¿ôLANG ¤¬ÆüËܸì´Ä¶­¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Æµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤(Gtk+1.2¤Î¾ì¹ç)¡£ ¤½¤Î¾¤Î´Ä¶­¤ÎÊý¤Ï¡¢¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò¤½¤ì¤¾¤ì¤Î´Ä¶­¤ØËÝÌõ¤·¤Æ¤¤¤¿¤À¤±¤ì ¤Ð¡¢¤Õ¤­¤À¤·¤Îɽ¼¨Åù¤â²Äǽ¤Ç¤¹¡£ ¤Þ¤¿¡¢³Ælocale¤ËÂбþ¤·¤¿ po/ ¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î gettext¤Î¥á¥Ã¥»¡¼¥¸¥Õ¥¡¥¤¥ë ¤òºîÀ®¤·¤Æ¤¤¤¿¤À¤±¤ì¤Ð¡¢³Æ¥À¥¤¥¢¥í¥°¤â¿¹ñ¸ì²½¤¬¤Ç¤­¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤è¤¦¤Ê ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤¿¾ì¹ç¤Ïºî¼Ô¤Þ¤Ç¤´Ï¢Íí²¼¤µ¤¤¡£ ¢§¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼¤Ë¤Ä¤¤¤Æ ¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¤Î¡Ö¥Þ¥¹¥³¥Ã¥È¥é¥ó¥Á¥ã¡×¤ÎÉôʬ¤Ë¤è¤¯»È¤¦¥Þ¥¹¥³¥Ã¥È¤ò ÅÐÏ¿¤·¤Æ¤ª¤­´Êñ¤ËÊѹ¹¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ëµ¡Ç½¤Ç¤¹¡£ ¤³¤ì¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¥é¥ó¥Á¥ã¥á¥Ë¥å¡¼ÍÑ¥Õ¥¡¥¤¥ë(*.menu)¤òÍѰդ¹¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£ ¥á¥Ë¥å¡¼ÍÑ¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¤Ï¿ï»þ¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¤«¤é¤ÎÆÉ¤ß¹þ¤ß¡¦¿·µ¬ ºîÀ®¤¬²Äǽ¤Ç¤¹¡£¤Þ¤¿¡¢ÀßÄê¥À¥¤¥¢¥í¥°Ãæ¤Ç¤ÎÊÔ½¸¤â¼«Í³¤Ë¤Ç¤­¤Þ¤¹¡£ ActX¤Î¥á¥Ë¥å¡¼µ¡Ç½¤È°ã¤¦ÅÀ¤Ï¡¢¥á¥Ë¥å¡¼¤¬¡Ö¥«¥Æ¥´¥ê¡¼¡×¢ª¡Ö¥Þ¥¹¥³¥Ã¥È¡×¤È ¤¤¤¦ÆóÁع½Â¤¤È¤Ê¤Ã¤Æ¤¤¤ëÅÀ¤Ç¤¹¡£ ³Æ¥Þ¥¹¥³¥Ã¥È¤Ï¡Ö¥«¥Æ¥´¥ê¡¼¡×(¤¿¤È¤¨¤Ð¥²¡¼¥àÊ̤ʤÉ)Ê̤ËÅÐÏ¿¤µ¤ì¤Ê¤¯¤Æ¤Ï ¤Ê¤ê¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢³Æ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Ë¤Ï°ì¤Ä¥Ç¥Õ¥©¥ë¥È¤Î¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£ ¤â¤·¡¢µ¯Æ°»þ¤Ë¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤¬ÌÀµ­µî¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Þ¥¹¥³¥Ã¥È¤«¤é¥é¥ó¥À¥à¤Ë¥Þ¥¹¥³¥Ã¥È¤òÁªÂò ¤·¤ÆÉ½¼¨¤·¤Þ¤¹¡£ ¤µ¤é¤Ë¥Ç¥Õ¥©¥ë¥È¥á¥Ë¥å¡¼¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¥á¥Ë¥å¡¼¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì ¤Æ¤¤¤ë´Ä¶­¤Ç¤Ï¡¢µ¯Æ°»þ¤Ë¥á¥Ë¥å¡¼ÁªÂò¥À¥¤¥¢¥í¥°¤¬¤¢¤é¤ï¤ì¤Æµ¯Æ°¥á¥Ë¥å¡¼ (¥Þ¥¹¥³¥Ã¥È¤Ï¥á¥Ë¥å¡¼¤«¤é¥é¥ó¥À¥à¤ËÁªÂò)¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ µ¯Æ°»þ¤Ë¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë¤Ë¤Ï -m ¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤Þ¤¹¡£ ¢§Biffµ¡Ç½¤Ë¤Ä¤¤¤Æ ¥á¡¼¥ëÃå¿®¥Á¥§¥Ã¥¯¤ò 1. local spool (UNIX mbox·Á¼° : /var/spool/mail/$USER Åù) 2. POP3 (SSL/TLS) 3. POP3 (APOPǧ¾Ú) (SSL/TLS) 4. qmail (Maildir·Á¼°) 5. MH + Procmail ¤Ë¤Ä¤¤¤Æ¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ŬÀÚ¤ÊÀßÄê¤ò¤·¤¿¤Î¤Á¤Ë¡¢-b ¥ª¥×¥·¥ç¥ó¤Çµ¯Æ°¡¢¤Þ¤¿¤Ï¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼ ¾å¤Ç¤ÎÀßÄê¤Ë¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ POP¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¥Ñ¥¹¥ï¡¼¥ÉÅù¤¬¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Ëʿʸ¤Ç½ñ¤«¤ì¤Þ¤¹ ¤Î¤Ç¤´Ãí°Õ²¼¤µ¤¤¡£ (´ðËÜŪ¤Ë¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Ï600¡Ä¡Ä¥æ¡¼¥¶¡¼¤Î¤ß±ÜÍ÷¡¦ÊÔ½¸ ²Ä¡Ä¡Ä¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹) - POP3/APOP¤ò¤´ÍøÍѤξì¹ç GUI¡Ö¥µ¡¼¥Ð¡¼¾ðÊó¡×¤Ë¤Æ"¥¢¥É¥ì¥¹", "¥æ¡¼¥¶¡¼ID", "¥Ñ¥¹¥ï¡¼¥É", "POP3¥Ý¡¼¥ÈÈÖ¹æ"(Ä̾ï¤ÏÊѹ¹¤·¤Ê¤¯¤Æ¤è¤¤)¤òGUI¤ÇÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ "¥Õ¥¡¥¤¥ë"¤òÀßÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ ¤Þ¤¿ver1.6.2¤«¤é»î¸³Åª¤ËPOP over SSL (SSL/TLS)¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ - qmail (Maildir·Á¼°)¤ò¤´ÍøÍѤξì¹ç GUI¡Ö¥µ¡¼¥Ð¡¼¾ðÊó¡×¤Ë¤Æ"¥Õ¥¡¥¤¥ë"Éôʬ¤ËMaildir¥Ç¥£¥ì¥¯¥È¥ê¤Î¿·Ãå¥á¥¤¥ë ¤¬³ÊǼ¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ (Ä̾ï¤Ï $HOME/Maildir/new ) - MH + Procmail GUI¡Ö¥µ¡¼¥Ð¡¼¾ðÊó¡×¤Ë¤Æ"¥Õ¥¡¥¤¥ë"Éôʬ¤Ëprocmail¤Î¥í¥°¥Õ¥¡¥¤¥ë (Ä̾ï $HOME/.procmailrc Ãæ¤ÇLOGFILE=¤Ç»ØÄꤵ¤ì¤ë)[procmail.log]¤ò ¥Õ¥ë¥Ñ¥¹¤Ç»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ ¤Þ¤¿¡¢MH¤ÎMail³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê¤Ï $HOME/.procmailrc Ãæ¤Ç "MAILDIR="¤Ë¤Æ »ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê ¡ä $HOME/Mail ¤ÎÍ¥Àè½ç°Ì¤Ç¼«Æ°ÀßÄꤵ¤ì¤Þ¤¹¡£ fetchmail¤Ê¤É¤ò»È¤Ã¤¿Äê´üŪ¤Ê¥Ý¡¼¥ê¥ó¥°¤ò¥á¡¼¥ë¥µ¡¼¥Ð¡¼¤Ë¤¿¤¤¤·¤Æ ¹Ô¤¤¤¿¤¤¤È¤­¤Ï¡¢GUI¤Î"ưºî¤Ë´Ø¤¹¤ë¾ðÊó"¤Î¤Ê¤«¤Î"¥Ý¡¼¥ê¥ó¥°"¤Ë¤½¤Î¤È¤­¤Î ¥³¥Þ¥ó¥É¥é¥¤¥ó¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ ¢§»þÊóµ¡Ç½ ËèÀµ»þ(00ʬ¤Ë¤Ê¤Ã¤¿¤È¤­)¤ËǤ°Õ¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¤ê¡¢¥Þ¥¹¥³¥Ã¥È¤ÎÊѹ¹¤ò ¤·¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ŬÀÚ¤ÊÀßÄê¤ò¤·¤¿¤Î¤Á¤Ë¡¢-s ¥ª¥×¥·¥ç¥ó¤Çµ¯Æ°¡¢¤Þ¤¿¤Ï¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ë¥å¡¼¾å ¤Ç¤ÎÀßÄê¤Ë¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤Þ¤ì¤Þ¤¹¡£ ¥Þ¥¹¥³¥Ã¥È¤ÎÊѹ¹¤Ï¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾õÂ֤Ǥʤ±¤ì¤Ð¼Â¹Ô¤µ¤ì ¤Þ¤»¤ó¤Î¤Ç¤´Ãí°Õ²¼¤µ¤¤¡£ ¢§¤Î¤Ã¤«¤ê¥­¥ã¥é¤Ë¤Ä¤¤¤Æ ¼Â¸³Åª¥ê¥ê¡¼¥¹¤È¤¤¤¦¤«¡¢¼«Ê¬¤Ç¥Þ¥¹¥³¥Ã¥È¤ò³«È¯¤¹¤ë¿Í¸þ¤±¤ËWindowsÈÇ "¤Î¤Ã¤«¤ê¥­¥ã¥é"¤Î¥Ç¡¼¥¿¤ÎÆÉ¤ß¹þ¤ß¡¦½ñ¤­¹þ¤ß¤¬¤Ç¤­¤Þ¤¹¡£ ¤Î¤Ã¤«¤ê¥­¥ã¥é¤Î¥Ç¡¼¥¿¤òľÀܯɤ߹þ¤à¤È¤¤¤¦¤è¤ê¤Ï¡¢MaCoPiX¥Ç¡¼¥¿·Á¼°¤Ø¤Î ÊÑ´¹¥µ¥Ý¡¼¥ÈÄøÅ٤Ȥª¹Í¤¨²¼¤µ¤¤¡£ ¾Ü¤·¤¯¤Ï¥¢¡¼¥«¥¤¥ÖÃæ¤ÎNKR.README.jp¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¢§¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸µ¡Ç½¤Ë¤Ä¤¤¤Æ µ¯Æ°Ãæ¤Î¥Þ¥¹¥³¥Ã¥È¤ËǤ°Õ¤Î¤Õ¤­¤À¤·¥á¥Ã¥»¡¼¥¸¤ò³°Éô¤«¤éɽ¼¨¤µ¤»¤ëµ¡Ç½¤Ç¤¹¡£ 1. ¤Þ¤º¡¢MaCoPiX¤ò --sockmsg ¥ª¥×¥·¥ç¥óÉÕ¤­¤Çµ¯Æ°¤¹¤ë¡£ ¤³¤Î¥ª¥×¥·¥ç¥óÉÕ¤­¤Çµ¯Æ°¤Ç¤­¤ëMaCoPiX¤Ï¤Ò¤È¤Ä¤Î¤ß¤Ç¤¹¡£ 2. ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é macopix --message "¤´¤­¤²¤ó¤è¤¦" ¤È¼Â¹Ô¤¹¤ë¤È --message ¥ª¥×¥·¥ç¥ó¤Ç¤¢¤¿¤¨¤¿Ê¸»úÎ󤬤դ­¤À¤·¤Ëɽ¼¨¤µ¤ì ¤Þ¤¹¡£ ¤Õ¤­¤À¤·¤ÎÀ©¸æÊ¸»ú(%c,%a,%p,%n)¤â»ÈÍѤǤ­¤Þ¤¹¡£ ʸ»ú¥³¡¼¥É¤Ï³Ælocale¤Ë¤¢¤ï¤»¤Æ¤¯¤À¤µ¤¤¡£ 3. ¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸¤Î¾ÃÌǤޤǤλþ´Ö¤ò¥á¥Ã¥»¡¼¥¸¤´¤È¤ËÊѤ¨¤¿¤¤¾ì¹ç¤Ï macopix --message "¤´¤­¤²¤ó¤è¤¦" --message-expire 5000 ¤Î¤è¤¦¤Ë --message-expire ¥ª¥×¥·¥ç¥ó¤Çɽ¼¨»þ´Ö¤òľÀÜ»ØÄê(ñ°Ì¤Ï[ms]) ¤Ç¤­¤Þ¤¹¡£ ¤Þ¤¿¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¾Êά¤·¤¿¤È¤­¤Ë»È¤ï¤ì¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÃͤò¤«¤¨¤¿¤¤ ¾ì¹ç¤ÏGUI¤«¤éÊѹ¹¤Ç¤­¤Þ¤¹¡£¡¡ 4. ¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸¤Î¤Õ¤­¤À¤·¤Ç¤Ï¡¢À©¸æÊ¸»ú¤òµ­½Ò¤·¤Ê¤¯¤Æ¤â¡¢¤Õ¤­¤À¤·¤Î ʸ»ú¤ò¥¿¥¤¥Ô¥ó¥°¤Î¤è¤¦¤Ë°ìʸ»ú¤º¤Ä½ç¤Ëɽ¼¨¤·¤Æ¤¤¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹ (¥¹¥Æ¥Ã¥×ɽ¼¨)¡£ Ä̾ï¤Î°ì³çɽ¼¨¤È¥¹¥Æ¥Ã¥×ɽ¼¨¤Î¤É¤Á¤é¤ò»È¤¦¤«¡¢¤Þ¤¿¡¢¥¹¥Æ¥Ã¥×ɽ¼¨¤Î´Ö³Ö (¥Õ¥ì¡¼¥à¿ô)¤Ë¤Ä¤¤¤Æ¤ÏGUI¤«¤é¥Ç¥Õ¥©¥ë¥È¤òÀßÄê¤Ç¤­¤Þ¤¹¡£ ¢§¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥áµ¡Ç½¤Ë¤Ä¤¤¤Æ ¥½¥±¥Ã¥È¤Ë¤è¤ë¥Ñ¥¤¥×¥¢¥¯¥»¥¹¤òÍøÍѤ·¤¿¥Þ¥¹¥³¥Ã¥È´ÖÄÌ¿®¤Ë¤è¤Ã¤Æ¥Þ¥¹¥³¥Ã¥È ¤Î¥¯¥ê¥Ã¥¯/¥é¥ó¥À¥à¥¢¥Ë¥á¤òϢư¤µ¤»¤ëµ¡Ç½¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð¥Þ¥ê¤ß¤Æ¤Î¾Í»Ò¤µ¤Þ¤Èʹ̦¤òƱ»þ¤Ëµ¯Æ°¤·¤Æ¤ª¤¤¤Æ¡¢¤É¤Á¤é¤«¤ò¤Ä¤Ã¤Ä ¤¤¤Æ¤ß¤ë¤È¡Ä¡Ä¤È¤¤¤¦¤«¤ó¤¸¤Ç¤¹¡£ - ³Æ¥Þ¥¹¥³¥Ã¥È¤Ïµ¯Æ°»þ¤Ë /tmp/macopix-(userID)/macopix-(mascot file) ¤È¤¤¤¦¥Ñ¥¤¥×¤òºîÀ®¤·¤Þ¤¹¡£¥¢¥×¥ê¤òÄ̾ェ뤵¤»¤Ê¤«¤Ã¤¿¾ì¹ç¤Ê¤É¤Ï¥Ñ¥¤¥× ¥Õ¥¡¥¤¥ë¼«ÂΤϻĤê¤Þ¤¹¤¬¡¢¼¡¤Îµ¯Æ°»þ¤Ê¤É¤Ë¤Ï±Æ¶Á¤·¤Þ¤»¤ó¡£ - ¤´¤¯¤Þ¤ì¤Ë¥½¥±¥Ã¥È¥á¥Ã¥»¡¼¥¸ÍѤΥѥ¤¥×¥Õ¥¡¥¤¥ë /tmp/macopix-(userID)/macopix ¤¬»Ä¤Ã¤Æ¤¤¤ë¾õÂÖ¤Ç macopix --sockmsg ¤Ç¤Îµ¯Æ°¤Ë¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ë¤è¤¦ ¤Ç¤¹¡£ ¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¾åµ­¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æmacopix¤òµ¯Æ°¤·¤Ê¤ª¤·¤Æ¤¯¤À¤µ¤¤¡£ - Ʊ¤¸¥Þ¥¹¥³¥Ã¥È¤¬Ê£¿ôµ¯Æ°¤·¤¿¤È¤­¤Ï¡Ö¸å¾¡¤Á¡×¤È¤Ê¤ê¤Þ¤¹¡£ ¤¿¤À¤·¡¢Àè¤Ëµ¯Æ°¤·¤Æ¤¤¤¿¥Þ¥¹¥³¥Ã¥È¤òÊѹ¹or½ªÎ»¤·¤¿¤È¤­¤Ë¤â¥Ñ¥¤¥×¤¬ÊĤ¸ ¤é¤ì¤Þ¤¹(¸½ºß¤Î¤È¤³¤í¤Î»ÅÍÍ)¡£ - µ¡Ç½¤ò»È¤¦¤¿¤á¤Ë¤Ï¤¢¤é¤«¤¸¤á¥Þ¥¹¥³¥Ã¥È¤Î¥¢¥Ë¥á¥Ñ¥¿¡¼¥óÀßÄê¤ËÂоݥޥ¹ ¥³¥Ã¥È¥Õ¥¡¥¤¥ë¡¢Áê¼ê¤Î¥¢¥Ë¥á¥Ñ¥¿¡¼¥ó¡¢Áê¼ê¤Î¥¢¥¯¥·¥ç¥ó¤Þ¤Ç¤ÎÃÙ±ä¥Õ¥ì¡¼ ¥à¿ô¡¢Áê¼ê¤Ë¤·¤ã¤Ù¤é¤»¤¿¤¤¤Õ¤­¤À¤·¥á¥Ã¥»¡¼¥¸¤ò»ØÄꤷ¤Æ¤ª¤­¤Þ¤¹¡£ ¢§ÆüËܸìEUC°Ê³°¤Î¥í¥±¡¼¥ë¤Ç¤Îưºî ºî¼ÔÄ󶡤ÎMaCoPiXÍÑ¥Þ¥¹¥³¥Ã¥È¤ÏÆüËܸìEUC¤Çµ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¤¿¤á¡¢Æ±¤¸ÆüËܸì´Ä¶­¤Ç¤¢¤Ã¤¿¤È¤·¤Æ¤âja_JP.eucJP°Ê³°¤Î¥í¥±¡¼¥ë(Îã. ja_JP.UTF-8 in Fedora Core 1)¤Ç¤Ï¡¢¥Þ¥¹¥³¥Ã¥È¤Î¤Õ¤­¤À¤·¤ä¥á¥Ë¥å¡¼¤Ø¤Î ¥¨¥ó¥È¥ê¡¼Ì¾¤¬Àµ¾ï¤Ëɽ¼¨¤µ¤ì¤Þ¤»¤ó (Gtk+1.2¤Î¾ì¹ç)¡£ ¡¡¡¡Gtk+2.x¤Ë¤ª¤¤¤Æ¤Ï¡¢ 1. mcpx¥Õ¥¡¥¤¥ëÆâ¤Î¡¡[General] code=xxxx ÀßÄê 2. ¸½ºß¤Îlocale 3. MaCoPiX ¥Ç¥Õ¥©¥ë¥È (EUC-JP) ¤È¤¤¤¦Í¥Àè½ç°Ì¤Ç¥³¡¼¥É¤òÍý²ò¤·¤Þ¤¹¤Î¤Ç¡¢UTF-8¤ÇÆüËܸì¤Îɽ¼¨¤Ç¤­¤ë¥Õ¥©¥ó¥È ¤ò»ØÄꤷ¤Æ¤¤¤ë¸Â¤ê¤Ïɸ½à¤Î¥Þ¥¹¥³¥Ã¥È¤Ç¤ÎÆüËܸìɽ¼¨¤Ï¤É¤Îlocale¤Ç¤âÌäÂê¤Ê¤¤ ¤È»×¤ï¤ì¤Þ¤¹¡£ ¥³¡¼¥É¤Ë´Ø¤¹¤ëÌäÂê¤ò²óÈò¤¹¤ë¤¿¤á(ÆÃ¤ËGtk+1.2)¤Ë¤Ï - ¥¤¥ó¥¹¥È¡¼¥ëºÑ¤ß¤Î¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë(*.mcpx)¤Î¥³¡¼¥É¤ò¥í¥±¡¼¥ë¤Ë¤¢¤ï ¤»¤ÆÊѹ¹ - ¥¤¥ó¥¹¥È¡¼¥ëºÑ¤ß¤Î¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë(*.menu)¤Î¥³¡¼¥É¤ò¥í¥±¡¼¥ë¤Ë¤¢¤ï¤» ¤ÆÊѹ¹ ¤¹¤ë¤³¤È¤¬É¬ÍפǤ¹¡£ ¤¿¤À¤·¡¢¤³¤ì¤Ï¤¢¤¯¤Þ¤Ç¤âÆüËܸì´Ä¶­¤É¤¦¤·¤Ç¤ÎÊÑ´¹¤Ê¤Î¤Ç¡¢Â¾¹ñ¸ì¤Ç»ÈÍѤ·¤¿¤¤ ¾ì¹ç¤Ï¥Þ¥¹¥³¥Ã¥È/¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ÎËÝÌõºî¶È¤¬É¬Íפˤʤê¤Þ¤¹¡£ ¤Þ¤¿¡¢ÆüËܸ첽¤µ¤ì¤¿¥á¥Ë¥å¡¼Åù¤Ïgettext¤¬Å¬µ¹ÊÑ´¹¤·¤Æ¤¯¤ì¤ë¤è¤¦¤Ç¡¢ÆÃ¤Ë Êѹ¹¤ÏɬÍפʤ¤¤Ï¤º¤Ç¤¹¡£ ¢§Gtk+2.x¤ª¤è¤ÓGtk+-1.2ÈÇ¤Ç¤ÎÆ°ºî¤Î°ã¤¤ ¸½ºß¤Î¤È¤³¤í¡¢¥Õ¥©¥ó¥È¤Ë¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤¬¤«¤«¤ë°Ê³°¤Ë°Ê²¼¤Î¤è¤¦¤Ê°ã¤¤¤¬ ¤¢¤ê¤Þ¤¹¡£ °ã¤¤¤Î¤¢¤ëÅÀ¤Ï°Ê²¼¤ÎÄ̤ê¤Ë¤Ê¤ê¤Þ¤¹¡£ ¡¡¡¡¡¡¡¡- ¥Þ¥¹¥³¥Ã¥È¤Î¥³¡¼¥É¤Î²ò¼á ¡¡¡¡¡¡¡¡ ¡¡Gtk+1.2¤Î´Ä¶­¤Ç¤Ï¡¢¥Þ¥¹¥³¥Ã¥È¤ª¤è¤Ó¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤Ïlocale ´Ä¶­¤È°ìÃפ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¡¡¡¡¡¡¡¡¡¡ Gtk+2.x¤Ç¤Ï¡¢ 1. mcpx¥Õ¥¡¥¤¥ëÆâ¤Î¡¡[General] code=xxxx ÀßÄê 2. ¸½ºß¤Îlocale 3. MaCoPiX ¥Ç¥Õ¥©¥ë¥È (EUC-JP) ¡¡¡¡¡¡¡¡¡¡¡¡ ¤È¤¤¤¦Í¥Àè½ç°Ì¤Ç¥Þ¥¹¥³¥Ã¥È¤Î¥³¡¼¥É¤òÍý²ò¤·¤è¤¦¤È¤·¤Þ¤¹¡£ ¤½¤ì¤âÍý²ò¤¬¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¸Â¤Ã¤Æ"ÉÔÀµ¤Êʸ»ú¥³¡¼¥É"¤È¥¨¥é¡¼É½¼¨¤¬ ½Ð¤Þ¤¹¡£ - ¥Õ¥©¥ó¥È¤Î»ØÄê ¤Õ¤­¤À¤·/»þ·×ɽ¼¨ÍѤΥե©¥ó¥È¤Î»ØÄê¤ÏGtk+-2.x/1.2¤Ç¤½¤ì¤¾¤ì¤ª¤Î¤º¤È ÊѤï¤Ã¤Æ¤­¤Þ¤¹¡£ ¤ª¤³¤é¤ì¤¿¾ì¹ç¤Ï³Æ¥Õ¥©¥ó¥È¥À¥¤¥¢¥í¥°¤«¤éÁªÂò¤ò¤¹¤ì¤ÐÌäÂê¤Ê¤¤¤Ï¤º¤Ç¤¹¡£ ¤Þ¤¿¡¢Gtk+2.x¤Ç¤Ï¥Õ¥©¥ó¥È¤Îɽ¼¨¤Ï¤­¤ì¤¤¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤½¤Î¤Ö¤ó¥á¥â¥ê¤ò ¾ÃÈñ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¤´Ãí°Õ¤¯¤À¤µ¤¤¡£ ¢§SSL¤Î¥µ¥Ý¡¼¥È¤Ë¤Ä¤¤¤Æ ËÜ¥×¥í¥°¥é¥à¤Ç¤ÏBiffµ¡Ç½¤Ë¤ª¤¤¤ÆPOP over SSL¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤ËOpenSSL ¤â¤·¤¯¤ÏGNUTLS¤Ë¥ê¥ó¥¯¤·¤Æ(¤Þ¤¿¤Ï¤³¤ì¤é¤È¤Ï¥ê¥ó¥¯¤»¤º¤Ë)¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£ OpenSSL¤ÏÈóGPL¤Î¥½¥Õ¥È¥¦¥§¥¢¤Ç¤¢¤ê¡¢¤½¤ì¤È¥ê¥ó¥¯¤¹¤ë¤¿¤á¤Ë²¼µ­¤ÎGPL¤Ø¤Î Î㳰Ŭ±þ¤¬É¬ÍפȤʤê¤Þ¤¹¡£¤³¤ì¤¬µ¤¤Ë¤Ê¤ë¾ì¹ç¤ÏGNUTLS¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤é¤ÎÀÚÂØ¤Ï ./configure»þ¤Î¥ª¥×¥·¥ç¥ó¤ÇÁªÂò¤Ç¤­¤Þ¤¹¡£ - OpenSSL (¥Ç¥Õ¥©¥ë¥È) - GNUTLS (./configure --with-gnutls) - SSL¤ò»È¤ï¤Ê¤¤ (./configure --disable-ssl) ¤Ê¤ª¡¢--with-gnutls¤ò»ØÄꤷ¤Æ¤â¡¢É¬Í×¾ò·ï¤òËþ¤¿¤µ¤Ê¤¤¾ì¹ç¤ÏOpenSSL¤¬»ÈÍÑ ¤µ¤ì¤Þ¤¹¤Î¤Ç ¤´Ãí°Õ¤¯¤À¤µ¤¤¡£(gnutls-1.4.1¤Çưºî¤ò³Îǧ¡£gnutls-1.0.2¤Ç¤Ï¥³¥ó¥Ñ¥¤¥ë¤Ç¤­ ¤Þ¤»¤ó) ¼ÂºÝ¤Îưºî¤Ë´Ø¤·¤Æ¤Ï¡¢ - GNUTLS¤Ï SSL v2¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤ - GNUTLS¤Ç¤ÏSSL¸¡¾Ú¤Î³Îǧºî¶È¤¬É¬Íפʾì¹ç¤â¾ï¤Ë¥¹¥­¥Ã¥×¤µ¤ì¤ë ¤È¤¤¤¦°ã¤¤¤¬¤¢¤ê¤Þ¤¹¡£¥é¥¤¥»¥ó¥¹´ØÏ¢¤ÎÌäÂê¤ò½ü¤±¤Ð¡¢¸½¾õ¤Ç¤ÏOpenSSL¤Îưºî ¤ÎÊý¤¬¿ä¾©¤µ¤ì¤Þ¤¹¡£ ¢§È¾Æ©ÌÀ¤Î¥µ¥Ý¡¼¥È¤Ë¤Ä¤¤¤Æ ¤Õ¤­¤À¤·¡¦¥Ñ¥Í¥ë»þ·×¤òȾƩÌÀɽ¼¨¤¹¤ëµ¡Ç½¤ò¡¢UNIXÈǤǤâver1.7.0°Ê¹ß¤Ç¥µ¥Ý¡¼ ¥È¤·¤Æ¤¤¤Þ¤¹(WindowsÈǤǤÏɸ½à¤Ç¥µ¥Ý¡¼¥È)¡£ ¤¿¤À¤·¡¢¤³¤Îµ¡Ç½¤Ç¤ÏCairo¤ò»ÈÍѤ¹¤ë¤¿¤á - Gtk+ 2.8°Ê¹ß ¤Ç¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤Þ¤¿¡¢¼ÂºÝ¤Î»ÈÍѤˤ¢¤¿¤Ã¤Æ¤Ï¡¢ - ȾƩÌÀ¥¦¥£¥ó¥É¥¦¤ÎÉÁ²è¤ËÂбþ¤·¤¿Window Manager (Compiz, Beryl, KWinÅù) * ¡Ö¥Ç¥¹¥¯¥È¥Ã¥×¸ú²Ì¡×¤ä¡Ö»ë³Ð¸ú²Ì¡×¤òON etc. ¤ò»ÈÍѤ·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ »ÈÍѤ·¤Æ¤¤¤ë´Ä¶­¤¬È¾Æ©ÌÀɽ¼¨¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ï¡¢Gtk+2.10°Ê¹ß¤Î´Ä¶­ ¤Ç¤Ï¼«Æ°Åª¤ËȽÊ̤µ¤ì¤Þ¤¹¡£Gtk+2.8¤Î¾ì¹ç¤Ï¡¢¶¦ÄÌÀßÄê>¥Õ¥©¥ó¥È¡¦¿§¤Î¹àÌÜÆâ ¤Ë¶¯À©Åª¤ËȾƩÌÀɽ¼¨¤ò¤µ¤»¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤Ê¤ª¡¢È¾Æ©ÌÀ¤ËÂбþ¤·¤Ê¤¤´Ä¶­¤Ç¤â¤Õ¤­¤À¤·¡¦¥Ñ¥Í¥ë»þ·×¤òCairo¤ò»ÈÍѤ·¤ÆÉÁ²è ¤Ç¤­¤Þ¤¹¡£(½¾Íè¤ÎGDK¤Ë¤è¤ëÉÁ²è¤Ë¤â¥¹¥¤¥Ã¥Á¤ÇÀÚ¤êÂØ¤¨²Äǽ) Cairo¤òÍѤ¤¤¿¾ì¹ç¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Î¤«¤«¤Ã¤¿³°ÏȤòÉÁ²è¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢ ½¾Íè¤Îɽ¼¨¤è¤ê¤â¿¾¯¸«±É¤¨¤¬¤è¤¯¤Ê¤ê¤Þ¤¹¡£È¾Æ©ÌÀ¤¬»È¤¨¤Ê¤¤´Ä¶­¤Ç¤Ï¿§¤ÎÉÔ Æ©ÌÀÅÙ¤ÏÇØÌ̤ËÇò¿§¤ò½Å¤Í¤¿¾õÂ֤Ǿå½ñ¤­¤µ¤ì¤Æ¤¤¤­¤Þ¤¹(Cairo¤Î¾ì¹ç¤Î¤ß)¡£ ´üÂԤɤª¤ê¤Î¿§¤Ë¤Ê¤é¤Ê¤¤¾ì¹ç¤Ï¡¢³Æ¿§¤ÎÉÔÆ©ÌÀÅÙ¤ò255(100%)¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ ¥Þ¥¹¥³¥Ã¥È¡¦Biff²èÁü¤ÎȾƩÌÀ¤ÊÉÁ²è¤Ë¤Ä¤¤¤Æ¤Ï¡¢¾åµ­¤ÈƱ¤¸È¾Æ©ÌÀɽ¼¨¤Ë ¡¡Âбþ¤·¤¿´Ä¶­¤Ë¤ÆÍøÍѤǤ­¤Þ¤¹¡£ ¤Þ¤¿¡¢¤³¤ÎȾƩÌÀÉÁ²è¤ò¤·¤¿¤È¤­¤Ï¥Þ¥¹¥³¥Ã¥È(¤ª¤è¤Ó¥á¡¼¥ëÃå¿®²èÁü)¤ÎÎØ ³Ô¤¬¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹½èÍý¤µ¤ì¡¢¤è¤êåºÎï¤Ê½Ì¾®É½¼¨¤ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¡¡¤Ê¤ª¡¢¤³¤Îµ¡Ç½¤ÏÂбþ¤·¤Ê¤¤´Ä¶­¤Ç¤Ï¼«Æ°Åª¤Ë¥ª¥Õ¤Ë¤Ê¤ê¤Þ¤¹(Gtk+2.10°Ê¹ß)¡£ ¤µ¤é¤Ë¡¢È¾Æ©ÌÀÂбþ¤Ç¤ÎÉÁ²è»þ¤Ï´Ê°×½èÍý¤Ê¤¬¤é¥Þ¥¹¥³¥Ã¥È¤Î±Æ¤òɽ¼¨¤¹¤ë¤³ ¤È¤â²Äǽ¤Ç¤¹¡£ WindowsÈǤˤĤ¤¤Æ¤Ï¡¢Windows Native¤ÊȾƩÌÀɽ¼¨¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢ ÆÃ¤ËɬÍפʾò·ï¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤¿¤À¤·¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ê¤É°ìÉô¤Îµ¡Ç½¤Ï ưºî¤·¤Þ¤»¤ó¡£ Cairo¤Ç¤Îɽ¼¨¤Ç¤Ï¡¢¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¿§¤ÎÉÔÆ©ÌÀÅÙ¤Ï̵»ë¤µ¤ì¡¢½¾Íè¤Î¤Õ¤­ ¤À¤·¡¦¥Ñ¥Í¥ë»þ·×¤Ë¤¿¤¤¤·¤Æ»ØÄꤷ¤Æ¤¤¤¿ÉÔÆ©ÌÀÅÙ¤¬»È¤ï¤ì¤Þ¤¹¤Î¤Ç¡¢¤´Ãí °Õ¤¯¤À¤µ¤¤¡£ ¢§TO DO ¡¦Win¤Ç¤Îsockmsg¥â¡¼¥ÉÂбþ? ¡¦alarm/»þ·×µ¡Ç½¤Î½¼¼Â? ¡Ä¡Ä¡Ä¡Ä¡Ä¡Ä ¢§Ãøºî¸¢ÅªÏäȤ« The code in this distribution is Copyright 2002-2008 by Kurumi Chimari. ¤³¤Î¥×¥í¥°¥é¥à¤Ï¥Õ¥ê¡¼¥½¥Õ¥È¥¦¥§¥¢¤Ç¤¹¡£¤¢¤Ê¤¿¤Ï¤³¤ì¤ò¡¢ Free Software¡¡ Foundation ¤Ë¤è¤Ã¤ÆÈ¯¹Ô¤µ¤ì¤¿GNU°ìÈ̸ø½°ÍøÍѵöÂú½ñ (¥Ð¡¼¥¸¥ç¥ó2¡¢ ¤Þ¤¿¤Ï(Ǥ°Õ¤Ë)¤½¤ì°Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¤É¤Á¤é¤«)¤ÎÄê¤á¤ë¾ò·ï¤Ë½¾¤Ã¤Æ¡¢ ¤³¤ì¤òºÆÇÛÉÛ¡¢¤½¤·¤Æ(¤¢¤ë¤¤¤Ï)½¤Àµ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¥×¥í¥°¥é¥à¤ÏÍ­ÍѤǤ¢¤ë¤³¤È¤ò´ê¤Ã¤ÆÇÛÉÛ¤µ¤ì¤Þ¤¹¤¬¡¢*Á´¤¯¤Î̵ÊݾÚ*¤Ç¤¹¡£ *¾¦¶È²ÄǽÀ­¤ÎÊݾÚ*¤ä*ÆÃÄê¤ÎÌÜŪ¤Ø¤ÎŬ¹çÀ­*¤Ï¡¢¸À³°¤Ë¼¨¤µ¤ì¤¿¤â¤Î¤â´Þ¤á Á´¤¯Â¸ºß¤·¤Þ¤»¤ó¡£¾Ü¤·¤¯¤ÏGNU°ìÈ̸ø½°ÍøÍѵöÂú½ñ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£ ¤¢¤Ê¤¿¤Ï¤³¤Î¥×¥í¥°¥é¥à¤È¤È¤â¤ËGNU°ìÈ̸ø½°ÍøÍѵöÂú½ñ¤ÎÊ£À½¤ò°ìÉô¼õ¤±¼è¤Ã¤¿ ¤Ï¤º¤Ç¤¹¡£¤â¤·¼õ¤±¼è¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢Free Software Foundation¤Þ¤ÇÀÁµá ¤·¤Æ¤¯¤À¤µ¤¤(°¸Àè¤Ï Free Software Foundation, Inc., 51 Franklin St., Fifth Floor, Boston, MA 02110-1301 USA)¡£ ²Ã¤¨¤ÆÆÃÊ̤ÊÎã³°¤È¤·¤Æ¡¢K.Chimari¤Ï¤³¤Î¥×¥í¥°¥é¥à¤Î¥³¡¼¥É¤òOpenSSL¥é¥¤¥Ö ¥é¥ê(¤¢¤ë¤¤¤ÏOpenSSL¤ÈƱ¤¸¥é¥¤¥»¥ó¥¹¤¬Å¬ÍѤµ¤ì¤¿OpenSSL¤Î²þÊѤµ¤ì¤¿ ¥Ð¡¼¥¸¥ç¥ó)¤È¥ê¥ó¥¯¤·¡¢¥ê¥ó¥¯¤µ¤ì¤¿Î¾¼Ô¤ò´Þ¤à·ë¹çÃøºîʪ¤òÈÒÉÛ¤¹¤ëµö²Ä¤ò ¤¢¤¿¤¨¤Þ¤¹¡£ ¤¢¤Ê¤¿¤ÏOpenSSL°Ê³°¤Ç»È¤ï¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥³¡¼¥É¤Ë´Ø¤·¤Æ¤ÏÁ´ÌÌŪ¤ËGNU°ìÈÌ ¸ø½°ÍøÍѵöÂú½ñ¤Ë½¾¤ï¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤¢¤Ê¤¿¤¬¤³¤Î¥Õ¥¡¥¤¥ë¤ò²þÊѤ·¤¿¤Ê ¤é¤Ð¡¢¤¢¤Ê¤¿¤Ï¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥Õ¥¡¥¤¥ë¤Ë°ú¤­Â³¤­Àߤ±¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤¬¡¢ ¤½¤¦¤¹¤ëµÁ̳¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤â¤·Îã³°¤òÀߤ±¤¿¤¯¤Ê¤±¤ì¤Ð¡¢¤³¤ÎÎã³°¾ò¹à¤ò¤¢¤Ê ¤¿¤Î¥Ð¡¼¥¸¥ç¥ó¤«¤é¤Ïºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£ macopix-1.7.4/AUTHORS0000644000076400007640000000050111010740430011146 00000000000000main-branch (http://rosegray.sakura.ne.jp/) Kurumi Chimari contributors (beside the above; based on Changelog) Satoshi Iwamoto Yusuke Shiroyama Christoph Hohmann Danny Milosavljevic Ying-Chun Liu macopix-1.7.4/README-win32-en.txt0000644000076400007640000002103711016202327013147 00000000000000################################################################# Desktop Mascots Program for UNIX/MS Windows macopix : Mascot Constructive Pilot for X ver 1.7.3 Quick document for Windows(binary) version 2008.05.24 Kurumi Chimari chimari@rosegray.sakura.ne.jp http://rosegray.sakura.ne.jp/ ################################################################# ------------------------------------------------------------------------------- [ Name ] MaCoPiX-1.7.3-win32 [ Developer ] Kurumi Chimari [ URL ] http://rosegray.sakura.ne.jp/ [ e-mail ] chimari@rosegray.sakura.ne.jp [ OS Types ] Microsoft Windows 2000 Professional / XP [ Type of Soft ] Desktop Mascot Software (Freeware following GPL2) [ Copying ] GNU GPL2 (See Doc\COPYING) [ Copyright ](C) 2002-2008 Kurumi Chimari ------------------------------------------------------------------------------- ============================================================= - Contents - - About this program - Main features - System requirement - Windows version - Installation - Starting up - Installation of mascots - Biff function - FAQ - Building windows version for source tar-ball - Copyright ============================================================= ## About this program MaCoPiX is a desktop mascot program. This program is a free software distributed under the GNU GPL2. Currently, you can make following types of mascots using MaCoPiX. - Focus follower (Window sitters : likely ActX) - Fix style (Desktop wappen?) Furthermore, you can select with or without a digital clock for each types of mascots. So, MaCoPiX can be used as a sort of desktop clock applications. (But the clock function could be still poor.) And, the biff function is also available for POP/APOP environments. SSL/TLS protocol for POP/APOP has been supported experimentally in ver.1.6.2. At once, users can create mascots and change their settings from GUI instead of editing mascot files directly. ## Main features - Focus follower / Fixed desktop mascots - Biff function [POP3/APOP] - Clock function - Detailed and varied settings fro GUI (Mascot can be build from GUI) - Multiple execution ## Environment [for Microsoft Windows (binary version)] - Windows2000,XP or later (Still unconfirmed on Vista) - Including TAR32.DLL(GPL) in the binary distribution. * You can download it (free-software, GPL) form the HP of "Common Archiver Library Project". URL http://www.csdinc.co.jp/archiver/index-e.html - All required libraries (Gtk+ etc.) are also included in the binary package. ## Windows version MaCoPiX has a common source code for Windows and UNIX. Current windows version does not include "Socket Message function (includes duet message mode)" . But, windows version has some original features. - Automatic extraction of mascot tar+gz archive using "TAR32.DLL". - Alpha blending transparency (balloon, clock, mascots, biff image) [Currently, ver1.7.0 starts to support transparency also on UNIX only with some compositing window managers which supoort to render translucent windows.] For windows Biff function is only for POP/APOP. (not using any local spools). All required libraries are included in this binary archive. Please copy the whole extracted folders and use it. If you have installer version, please use installer. ## Installation - Starting up In anyway, you have to download one mascot file at least. Without mascot files, you cannot do anything with MaCoPiX. 1. Download main program of MaCoPiX-win32(this archive) 2. Install main program 3. Download MaCoPiX mascot archive (anyone you like) (MaCoPiX-mascot-HxB-0.10.tar.gz etc..) 4. Start up macopix.exe 5. Install mascots. From "MaCoPiX Starting Up" message window "Install" -> "Launcher menu" Appoint downloaded mascot archive (.tar.gz) 6. Mascots are installed automatically (UserData\ directory automatically created in the program directory) ## Installation of Mascots 1. Download MaCoPiX mascot archive (anyone you like) (MaCoPiX-mascot-HxB-0.10.tar.gz etc..) 2. Start up macopix.exe 3. From right click menu of mascot "Install" -> "Launcher Menu" Appoint downloaded mascot archive (.tar.gz) 6. Mascots are installed automatically (to UserData\ directory in the program directory) ## BIFF function This function is still testing version for Windows. Please be careful to use it. Basically, windows does not use any local spool. So, the biff function of MaCoPiX-win32 can check only POP/APOP server. (default : every 60secs) POP/APOP with SSL/TLS protocols are now supported experimentally. MaCoPiX-win32 cannot access IMAP servers. In default, your password for the POP server will be filed in the setting (UserData/macopix.ini). If you pay attention the security on your PC, please uncheck "Save password" in the Biff setting window. In this case, you have to enter password for POP server at starting up of MaCoPiX POP function, but more secure. ## FAQ TBD ## Building MaCoPiX-Win32 from source tar-ball msys,mingw,Gtk+/Win32, and TAR32.DLL are required. You can also use UNLHA32.DLL. If you need, install it. You can refer to a MUA program "sylpheed" page, which also has the UNIX/Win common source code. URL: http://sylpheed.sraoss.jp/wiki/ - Extract source archive to the user directory on msys sytem. - Prepare UNLHA32.DLL (If you need) Copy UNLHA32.DLL (C:\Program Files\ArchiverDll\UNLHA32\) UNLHA32.H to a directory on msys. % pexports UNLHA32.DLL > unlha32.def Edit unlha32.def . Add stdcall stack length (@n) Unlha -> Unlha@16 UnlhaCloseArchive -> UnlhaCloseArchive@4 UnlhaOpenArchive -> UnlhaOpenArchive@12 UnlhaFindFirst -> UnlhaFindFirst@12 % dlltool -d unlha32.def -l libunlha32.a - Copy libunlha32.a & UNLHA32.H to src/ directory in the source tree. (For TAR32.DLL, the save procedure is required. But already prepared in the distributed archive.) - Run the script for make in the source directory % ./makewin32.sh - Program files are built in $HOME/dist/ . ## Copyright, Copying The code in this distribution is Copyright 2002-2008 by Kurumi Chimari. 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 St, Fifth Floor, Boston, MA 02110-1301 USA In addition, as a special exception, K.Chimari gives permission to link this code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. GLib,GTK+,libiconv libraries are free software distributed under the LGPL. Please see COPYING.LIB for more details. OpenSSL libraries is distributed under the Open SSL and SSLeay licenses. Please see LICENSE.SSL for more details. TAR32.DLL is free software distributed under the GPL, developed by Mr. Tsuneo Yoshioka. Please see URL http://www.csdinc.co.jp/archiver/lib/tar32.html macopix-1.7.4/ChangeLog0000644000076400007640000003560411030076202011665 000000000000002008.6.24 ver1.7.4 - Fixed a bug on compilation under Gtk+2.10 or earlier. 2008.5.24 ver1.7.3 - "Drop Shadow of Mascot" is now avairable also on Windows. But no anti-aliased for image and shadow outlines. 2008.5.23 ver1.7.2 - Fixed a problem with clickable areas on mascot and biff images renderd by cairo (Gtk+2.10 or later).[UNIX] - Scaled image rendering routine is modified to use GdkPixbuf instead of Cairo. [UNIX] - Added "Drop Shadow of Mascot" otion with Cairo rendering mode. [UNIX] 2008.05.21 ver1.7.1 - Added a new cairo rendering mode of mascot and biff images. This supports anti-aliased mascot edge with scaled-down (up) mascots. But, the clickable area on a mascot image expands to a whole rectangle are of mascot image, which includes transparent pixels. [UNIX] - Cairo and Magnification switch settings moved to a new "Rendering" page in the configuration window. 2008.05.15 ver1.7.0 - Fixed a bug on animation loops on Gtk+2.12. - Fixed a bug of mis-reading long subject on th biff mode. - Replaced some Gtk+ deprecated code (GtkTooltips etc.). - To fix a problem to fail auto-title-bar-scaling with CompiZ, new focus follow mode for Compiz added [UNIX]. With Compiz, please select "Auto-Scaling (for Compiz)" in mascot config (common->move->title-bar size). Plain "Auto-Scaling" should be the ordinal style scaling for all other environment. - Added a mode to ignore title-bar-less windows [UNIX]. With some rather older window managers (MWM etc.), this function could disturb focus following. - Added actions (ignore/vanish/home position) for title-bar-less windows. [UNIX/Windows] - Added a new rendering argorithm for Balloon/Panel Clock using Cairo (Gtk+2.8 or later, pangogairo recommended). You can switch it with ordinal Gdk rendering. [UNIX/Windows] - With cairo rendering, added new support for translucent (alpha blending) balloon and panel clock with compositing window managers (Compiz, KWin etc.). [UNIX] This function has been checked with Compiz[Fedora8,Fedora Core6,Ubuntu8.04] KWin[Fedora8] . With translucent KWin, you should turn OFF shadows and check "Raise with Mascot shaping..." in the config window of MaCoPiX (Common > Move > Foreground Mapping). - Added auto-detection for home position. [UNIX] - Upgraded Gtk+Win32 version to Gtk+2.12.9. [Windows] 2007.05.29 ver1.6.4 - Drag & Drop Installation of mascot menu (*tar.gz). - Bug fix of gui.c on the compile with gtk+1.2 - Improving Socket Message Mode. Added Stepping Balloon mode (Gtk+2 only).GUI and command line options are also changed for this update. - Added the exception statement of GPL in README to link with the OpenSSL. - Changes in SSL POP. Bug fix to skip confirmation window with successful server certification. SSL certification verify results display on SSL manager. - Reacessing with POP immediately after the SSL certificate confirmation window closed. - Remapping of biff pix after mascot changing. - Added support of GNUTLS (from patches by Ying-Chun Liu). You can select OpenSSL(def.) or GNUTLS in configure option. 2007.05.14 ver1.6.3 - Replaced MD5 codes to GPLed ones. (patched by Ying-Chun Liu). - Replaced some Gtk+ deprecated functions (GtkCombo etc.) - Bug fix for abnormal termination in succesive initialization of POP over SSL Biff. - version up of OpenSSL to 0.9.8e (Windows). 2007.05.02 ver1.6.2 - Supporting POP3 over SSL (SSL/TLS), experimentally. (still not confirmed with TLS) - Bug fix for popup menu construction. - Balloon messages for file save. 2007.04.16 ver1.6.1 - Added an option toremain characters opaque in transparent balloon and panel clock.[Windows] - Timing adjustment for clock and bolloon drawings. - Added icons to menu and button items (Gtk+-2). 2007.04.10 ver1.6.0 - Support Win2000/XP version. - Attached application icon (temporary?). - Supporting extrantion function with UNLHA32.DLL and TAR32.DLL for macot installtion on Windows version. Binary version for Windows should be compiled only without UNLHA32.DLL(non-GPL)function, but distributed with TAR32.DLL(GPL). - Also in the UNIX version, the menu filescan be installed directly from *.tar.gz file, using GNU tar commnad (with "z" option). - Using FileChooser instead of FileSelection with Gtk+2.4 or later. - Refine the progress-bar for Mascot-Installation. - Add tray icon function in the task bar (only w/Gtk+2.10 or later). - Added BIFF function (POP3) for Windows version. [using winsock2]. APOP should work also. But, not confirmed yet. - Added selection to save (or not to save) the password for POP/APOP in the resource file. (for Windows security) In the case of no password, it can be inputed in the password dialog window at the biff-starting. - Bug fix for ON/OFF of SPAM detection. - Fixed some memory leaks in mascot changings, clock and balloon. - Supporting transparent (alpha blending) windows (for Windows pnly). - MAX_PIXMAP / MAX_ANIME_FRAME are reset to 64. 2006.10.11 ver1.4.1 - Bug fix for freeze up rarely happened on POP3 Biff. - Added ON/OFF for tooltips on biff pix. 2006.09.07 ver1.4.0 - Trouble shooting with GCC4.x (Checked with gcc-4.1.1 on Fedora Core 5). - Trouble shooting on MIME decoding for long From/ Subject lines (up to 10lines). - New tooltip on the biff image window. If you are using POP, you can also see the From/ Subject for your latest mail. - Added new control character for the biff balloon message. "%f"(From of the lastest mail), "%s"(Subject of the latest mail). - Improvement of the biff timing with POP. - The maximum POP scannig number of mails is now changable (default 40mails). - Added a "--message-expire" options for the socket meeage mode. The expire time[msec] for each messages can be determined with this option (default = 10sec). 2005.09.15 ver1.3.2 - A bug on the common directory in ver 1.3.1 was fixed. 2005.09.07 ver1.3.1 - Change default target for configure script to Gtk+2. If you want to make with an old Gtk+1.2 system, use "--with-gtk1" option in the script. - MIME decoding on mail header without nkf is now available. - MAX_PIXMAP is reset to 32pixes (for Hayate X Blade). The bug which the maximum number of pixmap is set as "MAX_PIXMAP-1" has been fixed. - Default Colors for Clock and Balloon is now editable and can be saved in the Resource file. - Bug fix for excluded SPAM count on biff function. - Instead of gettext, glib-gettext has been employed. 2004.11.29 ver1.2.2 - Installation of mascots and menus with GUI, using pop-up and startup menu. - Fix a compiling problem with FreeBSD and cygwin - Changed site URL and mail address, due to th change of main site. 2004.09.29 ver1.2.1 - Character Code Support for non-Japanese locale environment, based on a patch described by Danny Milosavljevic. Character code of mascot file should be understood, according to the following priority. 1. [General] code=xxxx setting in .mcpx file 2. current locale environment 3. MaCoPiX default (EUC-JP) This function should be worked only with Gtk+2. - Some bug fixes in menu configuration GUI. - Change the directory of pipe files in /tmp . 2004.08.14 ver1.2.0 - Socket Message Mode is newly added by Christoph Hohmann. - Duet Animation function is newly added. This function realize the simple anime connection between two mascots. - Comic Market 66 version. 2004.05.13 ver1.0.4 - New support of MH + Procmail type mail spool in biff function. - Bug fix for the clock drawing. - Bug fix for the positioning of the biff pixmap with magnified mascots. - Multiple files selection in the image/menu file selection dialog (only with Gtk+2). 2004.04.11 ver1.0.3 - A bug in the color initialization for some PPC or Solaris systems is fixed. - Change mouse cursors. - SPAM exception in the arrived mail list. 2004.02.16 ver1.0.2 - "UTF-8" code conversion of mascots and menus in Gtk+2.x mode. Your mascot and menu files should agree with your locale also in Gtk+2.x MaCoPiX. (So, the code specification in ver 1.0.1, which required UTF-8 in those files, is expired now.) 2004.02.14 ver1.0.1 - "UTF-8" coding appointment in Gtk+2.x Now japanized menus are available in all "ja"-locale environment. - gettext files updated to ver0.12.1 base 2004.02.14 ver1.0.0 - Gtk+2.0 Supporting. You should use "./configure --with-gtk2" for making with Gtk+2.0 (Default is still for Gtk+1.2) - Bug fix for segmentation fault in biff for local spool or Maildir without reference mail file. - GUI configuration for Nokkari-Chara Code converter 2004.02.08 ver0.9.0 - Start up Menu Selection dialog in the case of no appointment of (default)menu / mascot to start up. - This type of menu selection can be used also from the pop-up menu. - Load/Save for Nokkari-Chara data (one of Window Sitter applications for MS Windows) support. Please read NKR.README.jp (sorry in Japanese) for this function. - Add to read HOME$/.gtkrc in startup. - The size of the biff list window is now changeable. - New support of qmail (Maildir) type mailbox in biff function. - Fixed abnormal program termination in start up w/Biff option and w/o network. 2003.09.27 ver0.8.6 - User file consistency check mode is added. It works, if the loaded masccot/menu file is older than the corresponding one in Common Dir. - Print out of installed menu list in the help message. - On-line Manual is added. - A control character "%m" (number of stored mails) in balloon systems are added. (by Iwamoto-san) 2003.05.23 ver0.8.5 - Bug fix in the drag motion at home position - Bug fix in the treatment for maximum of frames - Adding --install-user-mascot --install-user-menu --install-common-mascot --install-common-menu options. These support to install mascot and menu files. 2003.04.22 ver0.8.4 - Bug fix in the expiration of the biff balloon - Some adjustment on the image test-putting - Focus follow : Offset for shaped title bars - Focus follow : Selectable window corner as the starting point for focus following. 2003.04.18 ver0.8.3 - Side selection of the biff image position - Improvement of the configuration dialog - Bug fix (?) for the subject listing for local spool (by Mamedore-san) 2003.04.16 ver0.8.2 - Improvement of the drawing routine. Even with quick changes of the window shape, there are no flickering any more. 2003.04.15 ver0.8.1 - Modification of the Home Position function. Separation of the routine for sticking out from desktop area and non-existence of the focus window. 2003.04.07 ver0.8.0 - First public release. 2003.03.31 ver0.7.3 - Bug fix for the POP3 function (by Iwamoto-san) - Bug fix for home position function on KDE3. 2003.03.16 ver0.7.2 - The problem of POP3 to access the mail server which has too many files was fixed (by Iwamoto-san). - Digit type selection for Clock - Time signal function 2003.03.11 ver0.7.0 - Biff function(POP3/APOP/local spool) 2003.03.05 ver0.6.5 - Adjustment of the installer - Bug fix for font-set 2003.03.03 ver0.6.3 - Various bug fix - Animation test function in the anime configuration 2003.02.21 ver0.6.0 - Launcher menu function - Sound function - Resource file is now selectable at the starting - Set the name of the application to MaCoPiX 2002.12.24 ver0.5.1 - Revision concerned with default fonts 2002.12.16 ver0.5.0 - Test release macopix-1.7.4/configure.in0000644000076400007640000002557711030075663012446 00000000000000dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(src/main.c) PACKAGE=macopix dnl version number MAJOR_VERSION=1 MINOR_VERSION=7 MICRO_VERSION=4 BUILD_REVISION=0 INTERFACE_AGE=0 BINARY_AGE=0 EXTRA_VERSION= VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(MAJOR_VERSION) AC_SUBST(MINOR_VERSION) AC_SUBST(MICRO_VERSION) AC_SUBST(BUILD_REVISION) dnl libtool versioning LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` LT_REVISION=$INTERFACE_AGE LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` AC_SUBST(LT_RELEASE) AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) dnl Specify a header configuration file AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE dnl Checks for programs. dnl AC_ARG_PROGRAM AC_PROG_CC AC_ISC_POSIX AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_CPP dnl AC_PROG_RANLIB AM_PROG_LEX AC_PROG_YACC AM_PROG_LIBTOOL AC_CHECK_PROG(WINDRES, windres, windres) AM_CONDITIONAL(HAVE_WINDRES, test x"$WINDRES" != x) # Checks for header files. AC_FUNC_ALLOCA AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([argz.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/utsname.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_STRUCT_TM AC_C_VOLATILE # Checks for library functions. AC_FUNC_CLOSEDIR_VOID AC_FUNC_FORK AC_FUNC_LSTAT AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_TYPE_SIGNAL AC_FUNC_STAT AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify dup2 getcwd gethostbyname mempcpy memset mkdir munmap nl_langinfo setlocale socket stpcpy strcasecmp strchr strcspn strdup strrchr strstr strtol strtoul isascii memmove strncasecmp]) dnl Win32 AC_ARG_WITH(win32, AC_HELP_STRING([--with-win32], [Make for Win32]), [use_win32=yes]) if test x"${use_win32}" = "xyes"; then AC_DEFINE(USE_WIN32,[], [Make for Win32]) AC_DEFINE(USE_BIFF,[], [Use Biff function]) CFLAGS="$CFLAGS -mms-bitfields" LDFLAGS="$LDFLAGS -mwindows" WINMM_LIBS="-lwinmm" WINSOCK_LIBS="-lws2_32" else AC_DEFINE(USE_BIFF,[], [Use Biff function]) AC_DEFINE(USE_SOCKMSG,[], [Use Socket Message function]) AC_DEFINE(USE_COMMON,[], [Use Common Directory]) AC_DEFINE(USE_GTAR,[], [Use Gnu tar]) WINMM_LIBS="" WINSOCK_LIBS="" fi AC_DEFINE(USE_SSL,[], [Use SSL for POP]) AC_SUBST(WINMM_LIBS) AC_SUBST(WINSOCK_LIBS) dnl UNLHA32 AC_ARG_WITH(unlha32, AC_HELP_STRING([--with-unlha32], [Make with UNLHA32 for Win32]), [use_unlha32=yes]) if test x"${use_unlha32}" = "xyes"; then AC_DEFINE(USE_UNLHA32,[], [Make with UNLHA32 for Win32]) UNLHA32_LIBS="-L. -lunlha32" else UNLHA32_LIBS="" fi AC_SUBST(UNLHA32_LIBS) dnl TAR32 AC_ARG_WITH(tar32, AC_HELP_STRING([--with-tar32], [Make with TAR32 for Win32]), [use_tar32=yes]) if test x"${use_tar32}" = "xyes"; then AC_DEFINE(USE_TAR32,[], [Make with TAR32 for Win32]) TAR32_LIBS="-L. -ltar32" else TAR32_LIBS="" fi AC_SUBST(TAR32_LIBS) dnl Gtk+ AC_ARG_WITH(gtk1, AC_HELP_STRING([--with-gtk1], [use Gtk+1.2 insted of Gtk+2]), [use_gtk1=yes]) if test x"${use_gtk1}" = "xyes"; then AM_PATH_GLIB(1.2.6,, AC_MSG_ERROR(Test for GLIB failed. See the file 'INSTALL' for help.), gthread) AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)) AM_PATH_GDK_PIXBUF(0.7.0, , AC_MSG_ERROR(Cannot find GdkPixbuf: Is gdk-pixbuf-config in path?)) dnl for libpng (In the case of Gtk+2, gdk_pixbuf_save are used.) AC_CHECK_LIB(png,png_create_write_struct, [PNGLIB_LIBS="-lz -lpng -lm"], [AC_MSG_ERROR(libpng is required.)], -lz -lm) else AM_PATH_GLIB_2_0(2.0.0,, AC_MSG_ERROR([glib-2.x is required]), gthread gobject) AM_PATH_GTK_2_0(2.0.0,, AC_MSG_ERROR([gtk+-2.x is required]), gthread gobject) AC_DEFINE(USE_GTK2,[], [Use Gtk+2.x instead of Gtk+1.x]) PNGLIB_LIBS="" fi AC_SUBST(PNGLIB_LIBS) dnl Checks for iconv AM_ICONV dnl for gettext ALL_LINGUAS="ja" GETTEXT_PACKAGE=macopix AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.]) AM_GLIB_GNU_GETTEXT dnl AM_GNU_GETTEXT dnl AC_CHECK_FUNC(gettext, AC_CHECK_LIB(intl, gettext)) if test x"${use_win32}" = "xyes"; then localedir='share/locale' WIN32_ICONV_LIBS="-liconv" dnl a temoral measure to solve a problem on MinGW glib iconv else localedir='${prefix}/${DATADIRNAME}/locale' WIN32_ICONV_LIBS="" fi AC_SUBST(localedir) AC_SUBST(WIN32_ICONV_LIBS) dnl for Maintainer mode (DISABLE_DEPRECATED) AC_ARG_WITH(maintain, AC_HELP_STRING([--with-maintain], [For Maintainer]), [use_maint=yes]) if test x"${use_maint}" = "xyes"; then DISABLE_DEPRECATED="-g -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" else DISABLE_DEPRECATED="" fi AC_SUBST(DISABLE_DEPRECATED) dnl AC_PROG_INTLTOOL dnl ####################################################################### dnl # Cairo (Translucent) support dnl ####################################################################### AC_ARG_ENABLE(cairo, [ --disable-cairo Disable translucent drawing with Cairo], [ac_cv_enable_cairo=$enableval], [ac_cv_enable_ssl=yes]) if test $ac_cv_enable_cairo = no; then AC_DEFINE(DISABLE_CAIRO, 1, Define if you wanna disable Cairo.) fi dnl ####################################################################### dnl # SSL support dnl ####################################################################### AC_ARG_ENABLE(ssl, [ --disable-ssl Disable SSL support using OpenSSL/GNUTLS], [ac_cv_enable_ssl=$enableval], [ac_cv_enable_ssl=yes]) dnl Check for GNUTLS AC_MSG_CHECKING([whether to use SSL]) if test $ac_cv_enable_ssl = yes; then AC_MSG_RESULT(yes) AC_ARG_WITH(gnutls, AC_HELP_STRING([--with-gnutls], [Make with GNUTLS instead of OpenSSL]), [use_gnutls=yes]) dnl # dnl # Check for GnuTLS if it's specified. dnl # AC_MSG_CHECKING([whether to use GNUTLS]) if test "x$use_gnutls" = "xyes"; then AC_MSG_RESULT(yes) use_gnutls="no" prefix=`eval echo $prefix` AC_ARG_WITH(gnutls-includes, [ --with-gnutls-includes=PREFIX location of GnuTLS includes.], [ with_gnutls_includes="$withval" ], [ with_gnutls_includes="$prefix/include" ]) have_gnutls_includes="no" if test "x$with_gnutls_includes" != "xno"; then CPPFLAGS_save="$CPPFLAGS" AC_MSG_CHECKING(for GnuTLS includes) AC_MSG_RESULT("") CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes" AC_CHECK_HEADERS(gnutls/gnutls.h, [ gnutls_includes="yes" ]) CPPFLAGS="$CPPFLAGS_save" if test "x$gnutls_includes" != "xno" -a \ "x$gnutls_includes" != "x"; then have_gnutls_includes="yes" if test "x$with_gnutls_includes" != "xNONE/include"; then GNUTLS_CFLAGS="-I$with_gnutls_includes" fi else GNUTLS_CFLAGS="" fi else AC_MSG_CHECKING(for GnuTLS includes) AC_MSG_RESULT(no) fi AC_ARG_WITH(gnutls-libs, [AC_HELP_STRING([--with-gnutls-libs=PREFIX], [location of GnuTLS libraries.])], [ with_gnutls_libs="$withval" ]) if test "x$with_gnutls_libs" != "xno" -a \ "x$have_gnutls_includes" != "xno"; then LIBS_save="$LIBS" case $with_gnutls_libs in ""|-L*) ;; *) with_gnutls_libs="-L$with_gnutls_libs" ;; esac AC_CACHE_CHECK([for GnuTLS libraries], gnutls_libs, [ LIBS="$LIBS $with_gnutls_libs -lgnutls -lgcrypt -lgnutls-openssl" AC_TRY_LINK_FUNC(gnutls_init, gnutls_libs="yes", gnutls_libs="no") LIBS="$LIBS_save" ]) if test "x$gnutls_libs" != "xno"; then AC_DEFINE(USE_SSL, 1, Define if you use SSL.) AC_DEFINE(USE_GNUTLS, 1, Define if you use GNUTLS to support SSL.) msg_gnutls="GnuTLS" GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt -lgnutls-openssl" use_gnutls="yes" else GNUTLS_CFLAGS="" GNUTLS_LIBS="" fi else AC_MSG_CHECKING(for GnuTLS libraries) AC_MSG_RESULT(no) fi else AC_MSG_RESULT(no) GNUTLS_CFLAGS="" GNUTLS_LIBS="" fi AC_SUBST(GNUTLS_CFLAGS) AC_SUBST(GNUTLS_LIBS) dnl Check for OpenSSL AC_MSG_CHECKING([whether to use OpenSSL]) if test "x$use_gnutls" != "xyes"; then AC_MSG_RESULT(yes) dnl First check with pkg-config PKG_CHECK_MODULES(OPENSSL, openssl, [:], [:]) if test "x$OPENSSL_LIBS" != "x"; then CFLAGS="$CFLAGS $OPENSSL_CFLAGS" LIBS="$LIBS $OPENSSL_LIBS" AC_MSG_CHECKING([if openssl is available]) AC_MSG_RESULT(yes) AC_DEFINE(USE_SSL, 1, Define if you use SSL.) AC_DEFINE(USE_OPENSSL, 1, Define if you use OPENSSL to support SSL.) else dnl If pkg-config fails, run compile/link test. AC_MSG_CHECKING([if openssl is available]) ac_save_LIBS="$LIBS" if test x"${use_win32}" = "xyes"; then LIBS="$LIBS -lssl32 -leay32" else LIBS="$LIBS -lssl -lcrypto" fi AC_TRY_LINK([ #include ], [ return OPENSSL_VERSION_NUMBER; ], [ AC_MSG_RESULT(yes) AC_DEFINE(USE_SSL, 1, Define if you use SSL.) ], [ AC_MSG_RESULT(no) LIBS="$ac_save_LIBS" ac_cv_enable_ssl=no ]) AC_DEFINE(USE_OPENSSL, 1, Define if you use OPENSSLto support SSL.) fi else AC_MSG_RESULT(no) fi AC_MSG_RESULT(no) fi manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual' AC_SUBST(manualdir) prefixdir='${prefix}/share/' AC_SUBST(prefixdir) if test x"${use_win32}" = "xyes"; then commondir='share/${PACKAGE}/' else commondir='${prefix}/share/${PACKAGE}/' fi AC_SUBST(commondir) AC_CONFIG_FILES([Makefile po/Makefile.in m4/Makefile src/version.h src/macopix_res.rc src/Makefile]) AC_OUTPUT dnl Output the configuration summary echo "" echo "##############################################################################" if test x"${use_win32}" = "xyes"; then echo " $PACKAGE $VERSION build for Win32 " fi if test x"${use_gtk1}" = "xyes"; then echo " $PACKAGE $VERSION with Gtk+1.x " else echo " $PACKAGE $VERSION with Gtk+2.x " echo "" echo " (If you want to make with Gtk+1.x, use \"./configure --with-gtk1\" .)" fi echo "" if test $ac_cv_enable_ssl = yes; then if test "x$use_gnutls" != "xyes"; then echo " Compiling with OpenSSL to support SSL" echo " (If you want to use GNUTLS instead of OpenSSL," echo " use \"./configure --with-gnutls\" .)" else echo " Compiling with GNUTLS to support SSL" fi else echo " Compiling without SSL support" fi echo "##############################################################################" echo "" echo "The binary will be installed in $prefix/bin" echo "The common directory will be $prefix/share/$PACKAGE/" echo "" echo "Configure finished, type 'make' to build." macopix-1.7.4/config.h.in0000664000076400007640000002301611030076472012143 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* Define if you wanna disable Cairo. */ #undef DISABLE_CAIRO /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Define text domain. */ #undef GETTEXT_PACKAGE /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ #undef HAVE_ARGZ_H /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the `dup2' function. */ #undef HAVE_DUP2 /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_GNUTLS_GNUTLS_H /* Define if you have the iconv() function. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `isascii' function. */ #undef HAVE_ISASCII /* Define to 1 if you have the header file. */ #undef HAVE_LANGINFO_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_LSTAT_EMPTY_STRING_BUG /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `nl_langinfo' function. */ #undef HAVE_NL_LANGINFO /* Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. */ #undef HAVE_REALLOC /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_EXT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `stpcpy' function. */ #undef HAVE_STPCPY /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strcspn' function. */ #undef HAVE_STRCSPN /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UTSNAME_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to 1 if you have the `__argz_count' function. */ #undef HAVE___ARGZ_COUNT /* Define to 1 if you have the `__argz_next' function. */ #undef HAVE___ARGZ_NEXT /* Define to 1 if you have the `__argz_stringify' function. */ #undef HAVE___ARGZ_STRINGIFY /* Define as const if the declaration of iconv() needs const. */ #undef ICONV_CONST /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Use Biff function */ #undef USE_BIFF /* Use Common Directory */ #undef USE_COMMON /* Define if you use GNUTLS to support SSL. */ #undef USE_GNUTLS /* Use Gnu tar */ #undef USE_GTAR /* Use Gtk+2.x instead of Gtk+1.x */ #undef USE_GTK2 /* Define if you use OPENSSLto support SSL. */ #undef USE_OPENSSL /* Use Socket Message function */ #undef USE_SOCKMSG /* Define if you use SSL. */ #undef USE_SSL /* Make with TAR32 for Win32 */ #undef USE_TAR32 /* Make with UNLHA32 for Win32 */ #undef USE_UNLHA32 /* Make for Win32 */ #undef USE_WIN32 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef mode_t /* Define to `long int' if does not define. */ #undef off_t /* Define to `int' if does not define. */ #undef pid_t /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc /* Define to `unsigned int' if does not define. */ #undef size_t /* Define as `fork' if `vfork' does not work. */ #undef vfork /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ #undef volatile macopix-1.7.4/src/0000777000076400007640000000000011030100030010741 500000000000000macopix-1.7.4/src/Makefile.am0000644000076400007640000000224711013207212012731 00000000000000bin_PROGRAMS = macopix macopix_SOURCES =\ main.c callbacks.c pixmap.c gui.c balloon.c clock.c configfile.c\ utils.c\ mail.c pop.c md5c.c md5ify.c nokkari.c bmp.c bmpwrite.c sockmsg.c\ codeconv.c unmime.c base64.c quoted-printable.c unlha.c untar.c\ trayicon.c alpha.c ssl.c sslmanager.c dnd.c\ intl.h main.h configfile.h libpop.h md5.h nokkari.h\ bmp.h sockmsg.h codeconv.h unmime.h base64.h quoted-printable.h\ macopix_icon.h tar32api.h ssl.h if HAVE_WINDRES MACOPIX_RES = macopix.res macopix.res: macopix_res.rc $(WINDRES) $< -O coff -o $@ else MACOPIX_RES = endif EXTRA_DIST = \ macopix_res.rc.in\ macopix.ico\ def_biff.xpm\ def_biff_r.xpm\ tar32.dll\ libtar32.a INCLUDES = @GTK_CFLAGS@ @GDK_PIXBUF_CFLAGS@ $(GNUTLS_CFLAGS)\ $(DISABLE_DEPRECATED) LDADD = @GTK_LIBS@ @GDK_PIXBUF_LIBS@ $(PNGLIB_LIBS) $(WINMM_LIBS)\ $(MACOPIX_RES) $(WINSOCK_LIBS) $(UNLHA32_LIBS) $(TAR32_LIBS) $(GNUTLS_LIBS) $(WIN32_ICONV_LIBS) CLEANFILES = *~ DISTCLEANFILES = .deps/*.P AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\" -DCOMMON_DIR=\""$(commondir)"\"\ -DPREFIX_DIR=\""$(prefixdir)"\" macopix-1.7.4/src/def_biff.xpm0000644000076400007640000000147410113753503013161 00000000000000/* XPM */ const char *def_biff[] = { /* width height num_colors chars_per_pixel */ " 24 19 10 1", /* colors */ ". c None", "# c #181818", "a c #8c94bd", "b c #c61010", "c c #c6cef7", "d c #f77b9c", "e c #ff4242", "f c #ffb5c6", "g c #ffdee7", "h c #ffffff", /* pixels */ "...ggggggggggggggg......", ".ggfffffffffffffffff....", ".gaahhhhhhhhhhhhhaaf#...", "gfacahhhhhhhhhhhacafd...", "gfacahhhhhhhhhhhacafd#..", "gfahcahhhhhhhhhaccafd#..", "gfahcahhhhhhhhhaccafd#..", "gfahhcahheeehhachcafd#..", "gfahhccaaaebaachhcafd#..", "gfahhhacccbcccahhcafd#..", "gfahhahhhhhhhhhahcafd#..", "gfahahhhhhhhhhhhacafd#..", "gfaacccccccccccccaafd#..", ".faaaaaaaaaaaaaaaaad##..", ".ddffffffffffffffffd#...", "..#dddddddddddddffffd...", "....############dddffd..", ".................##dddd.", "....................####" }; macopix-1.7.4/src/libtar32.a0000644000076400007640000011644610566670701012513 00000000000000! / 1172009393 0 0 0 2636 ` l òò¨¨VVººrr * *"Ø"Ø%%(:(:*Ü*Ü-x-x002¸2¸5p5p8$8$:Ä:Ä=d=d@@B¼B¼EXEXHHJ¼J¼MhMhP(P(RàRàUvUvX.X.ZØZØ]†]†`(`(bÐbÐeŠeŠh4h4jâjâmmp2p2rôrôu u xBxBzèzè}Š}Š€4€4‚܂܅„…„ˆ2ˆ2ŠèŠè’’’´’´•V•V—ô—ôš~š~__libtar32_a_iname__head_libtar32_a_TarSetOwnerWindowEx__imp__TarSetOwnerWindowEx_TarSetOwnerWindow__imp__TarSetOwnerWindow_TarSetCursorMode__imp__TarSetCursorMode_TarSetCursorInterval__imp__TarSetCursorInterval_TarSetBackGroundMode__imp__TarSetBackGroundMode_TarQueryFunctionList__imp__TarQueryFunctionList_TarOpenArchive@12__imp__TarOpenArchive@12_TarKillOwnerWindowEx__imp__TarKillOwnerWindowEx_TarGetWriteTime__imp__TarGetWriteTime_TarGetVersion__imp__TarGetVersion_TarGetTime__imp__TarGetTime_TarGetRunning__imp__TarGetRunning_TarGetRatio__imp__TarGetRatio_TarGetOriginalSizeEx__imp__TarGetOriginalSizeEx_TarGetOriginalSize__imp__TarGetOriginalSize_TarGetOSType__imp__TarGetOSType_TarGetMethod__imp__TarGetMethod_TarGetFileName@12__imp__TarGetFileName@12_TarGetFileCount__imp__TarGetFileCount_TarGetDate__imp__TarGetDate_TarGetCursorMode__imp__TarGetCursorMode_TarGetCursorInterval__imp__TarGetCursorInterval_TarGetCreateTime__imp__TarGetCreateTime_TarGetCompressedSizeEx__imp__TarGetCompressedSizeEx_TarGetCompressedSize__imp__TarGetCompressedSize_TarGetCRC__imp__TarGetCRC_TarGetBackGroundMode__imp__TarGetBackGroundMode_TarGetAttribute__imp__TarGetAttribute_TarGetArchiveType__imp__TarGetArchiveType_TarGetArcTime__imp__TarGetArcTime_TarGetArcRatio__imp__TarGetArcRatio_TarGetArcOriginalSize__imp__TarGetArcOriginalSize_TarGetArcOSType__imp__TarGetArcOSType_TarGetArcFileSize__imp__TarGetArcFileSize_TarGetArcFileName__imp__TarGetArcFileName_TarGetArcDate__imp__TarGetArcDate_TarGetArcCompressedSize__imp__TarGetArcCompressedSize_TarGetAccessTime__imp__TarGetAccessTime_TarFindNext@8__imp__TarFindNext@8_TarFindFirst@12__imp__TarFindFirst@12_TarExtractMem__imp__TarExtractMem_TarConfigDialog__imp__TarConfigDialog_TarCompressMem__imp__TarCompressMem_TarCommandLine__imp__TarCommandLine_TarCloseArchive@4__imp__TarCloseArchive@4_TarClearOwnerWindow__imp__TarClearOwnerWindow_TarCheckArchive__imp__TarCheckArchive_Tar@16__imp__Tar@16_IsSupported__imp__IsSupported_GetPluginInfo__imp__GetPluginInfo_GetFileInfo__imp__GetFileInfo_GetFile__imp__GetFile_GetArchiveInfo__imp__GetArchiveInfodkhct.o/ 1172009393 0 0 100666 573 ` L.text `.data@À.bss€À.idata$4@À.idata$5@À.idata$7 @Àtar32.dll.fileþÿgfake.text.data.bss.idata$4.idata$5.idata$7 __libtar32_a_iname dkhch.o/ 1172009393 0 0 100666 683 ` L>.text `.data@À.bss€À.idata$2 @À.idata$5@À.idata$4@À  .fileþÿgfakehnamefthunk.text.data.bss.idata$2.idata$5.idata$4)__head_libtar32_a__libtar32_a_iname dkhcs00052.o/ 1172009393 0 0 100666 634 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%4TarSetOwnerWindowEx .text.data.bss.idata$7.idata$5.idata$4.idata$64F_TarSetOwnerWindowEx__imp__TarSetOwnerWindowEx__head_libtar32_adkhcs00051.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%3TarSetOwnerWindow .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarSetOwnerWindow__imp__TarSetOwnerWindow__head_libtar32_adkhcs00050.o/ 1172009393 0 0 100666 624 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%2TarSetCursorMode .text.data.bss.idata$7.idata$5.idata$4.idata$6.@_TarSetCursorMode__imp__TarSetCursorMode__head_libtar32_adkhcs00049.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%1TarSetCursorInterval .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarSetCursorInterval__imp__TarSetCursorInterval__head_libtar32_adkhcs00048.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%0TarSetBackGroundMode .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarSetBackGroundMode__imp__TarSetBackGroundMode__head_libtar32_adkhcs00047.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%/TarQueryFunctionList .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarQueryFunctionList__imp__TarQueryFunctionList__head_libtar32_adkhcs00046.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%.TarOpenArchive .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarOpenArchive@12__imp__TarOpenArchive@12__head_libtar32_adkhcs00045.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%-TarKillOwnerWindowEx .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarKillOwnerWindowEx__imp__TarKillOwnerWindowEx__head_libtar32_adkhcs00044.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%,TarGetWriteTime .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarGetWriteTime__imp__TarGetWriteTime__head_libtar32_adkhcs00043.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%+TarGetVersion .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarGetVersion__imp__TarGetVersion__head_libtar32_adkhcs00042.o/ 1172009393 0 0 100666 608 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%*TarGetTime .text.data.bss.idata$7.idata$5.idata$4.idata$6"4_TarGetTime__imp__TarGetTime__head_libtar32_adkhcs00041.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%)TarGetRunning .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarGetRunning__imp__TarGetRunning__head_libtar32_adkhcs00040.o/ 1172009393 0 0 100666 610 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%(TarGetRatio .text.data.bss.idata$7.idata$5.idata$4.idata$6$6_TarGetRatio__imp__TarGetRatio__head_libtar32_adkhcs00039.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%'TarGetOriginalSizeEx .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarGetOriginalSizeEx__imp__TarGetOriginalSizeEx__head_libtar32_adkhcs00038.o/ 1172009393 0 0 100666 632 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%&TarGetOriginalSize .text.data.bss.idata$7.idata$5.idata$4.idata$62D_TarGetOriginalSize__imp__TarGetOriginalSize__head_libtar32_adkhcs00037.o/ 1172009393 0 0 100666 612 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%%TarGetOSType .text.data.bss.idata$7.idata$5.idata$4.idata$6&8_TarGetOSType__imp__TarGetOSType__head_libtar32_adkhcs00036.o/ 1172009393 0 0 100666 612 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%$TarGetMethod .text.data.bss.idata$7.idata$5.idata$4.idata$6&8_TarGetMethod__imp__TarGetMethod__head_libtar32_adkhcs00035.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%#TarGetFileName .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarGetFileName@12__imp__TarGetFileName@12__head_libtar32_adkhcs00034.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%"TarGetFileCount .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarGetFileCount__imp__TarGetFileCount__head_libtar32_adkhcs00033.o/ 1172009393 0 0 100666 608 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%!TarGetDate .text.data.bss.idata$7.idata$5.idata$4.idata$6"4_TarGetDate__imp__TarGetDate__head_libtar32_adkhcs00032.o/ 1172009393 0 0 100666 624 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ% TarGetCursorMode .text.data.bss.idata$7.idata$5.idata$4.idata$6.@_TarGetCursorMode__imp__TarGetCursorMode__head_libtar32_adkhcs00031.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%TarGetCursorInterval .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarGetCursorInterval__imp__TarGetCursorInterval__head_libtar32_adkhcs00030.o/ 1172009393 0 0 100666 624 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetCreateTime .text.data.bss.idata$7.idata$5.idata$4.idata$6.@_TarGetCreateTime__imp__TarGetCreateTime__head_libtar32_adkhcs00029.o/ 1172009393 0 0 100666 644 ` L„ .text,\ `.data@À.bss€À.idata$74fÀ.idata$58pÀ.idata$4<zÀ.idata$6@Àÿ%TarGetCompressedSizeEx .text.data.bss.idata$7.idata$5.idata$4.idata$6:L_TarGetCompressedSizeEx__imp__TarGetCompressedSizeEx__head_libtar32_adkhcs00028.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%TarGetCompressedSize .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarGetCompressedSize__imp__TarGetCompressedSize__head_libtar32_adkhcs00027.o/ 1172009393 0 0 100666 602 ` Lt .text,L `.data@À.bss€À.idata$74VÀ.idata$58`À.idata$4<jÀ.idata$6 @Àÿ%TarGetCRC .text.data.bss.idata$7.idata$5.idata$4.idata$6 2_TarGetCRC__imp__TarGetCRC__head_libtar32_adkhcs00026.o/ 1172009393 0 0 100666 636 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%TarGetBackGroundMode .text.data.bss.idata$7.idata$5.idata$4.idata$66H_TarGetBackGroundMode__imp__TarGetBackGroundMode__head_libtar32_adkhcs00025.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetAttribute .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarGetAttribute__imp__TarGetAttribute__head_libtar32_adkhcs00024.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetArchiveType .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarGetArchiveType__imp__TarGetArchiveType__head_libtar32_adkhcs00023.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%TarGetArcTime .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarGetArcTime__imp__TarGetArcTime__head_libtar32_adkhcs00022.o/ 1172009393 0 0 100666 620 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetArcRatio .text.data.bss.idata$7.idata$5.idata$4.idata$6*<_TarGetArcRatio__imp__TarGetArcRatio__head_libtar32_adkhcs00021.o/ 1172009393 0 0 100666 638 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%TarGetArcOriginalSize .text.data.bss.idata$7.idata$5.idata$4.idata$68J_TarGetArcOriginalSize__imp__TarGetArcOriginalSize__head_libtar32_adkhcs00020.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetArcOSType .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarGetArcOSType__imp__TarGetArcOSType__head_libtar32_adkhcs00019.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetArcFileSize .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarGetArcFileSize__imp__TarGetArcFileSize__head_libtar32_adkhcs00018.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetArcFileName .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarGetArcFileName__imp__TarGetArcFileName__head_libtar32_adkhcs00017.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%TarGetArcDate .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarGetArcDate__imp__TarGetArcDate__head_libtar32_adkhcs00016.o/ 1172009393 0 0 100666 646 ` L„ .text,\ `.data@À.bss€À.idata$74fÀ.idata$58pÀ.idata$4<zÀ.idata$6@Àÿ%TarGetArcCompressedSize .text.data.bss.idata$7.idata$5.idata$4.idata$6<N_TarGetArcCompressedSize__imp__TarGetArcCompressedSize__head_libtar32_adkhcs00015.o/ 1172009393 0 0 100666 624 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarGetAccessTime .text.data.bss.idata$7.idata$5.idata$4.idata$6.@_TarGetAccessTime__imp__TarGetAccessTime__head_libtar32_adkhcs00014.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%TarFindNext .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarFindNext@8__imp__TarFindNext@8__head_libtar32_adkhcs00013.o/ 1172009393 0 0 100666 618 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ% TarFindFirst .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarFindFirst@12__imp__TarFindFirst@12__head_libtar32_adkhcs00012.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ% TarExtractMem .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_TarExtractMem__imp__TarExtractMem__head_libtar32_adkhcs00011.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ% TarConfigDialog .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarConfigDialog__imp__TarConfigDialog__head_libtar32_adkhcs00010.o/ 1172009393 0 0 100666 620 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ% TarCompressMem .text.data.bss.idata$7.idata$5.idata$4.idata$6*<_TarCompressMem__imp__TarCompressMem__head_libtar32_adkhcs00009.o/ 1172009393 0 0 100666 620 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ% TarCommandLine .text.data.bss.idata$7.idata$5.idata$4.idata$6*<_TarCommandLine__imp__TarCommandLine__head_libtar32_adkhcs00008.o/ 1172009393 0 0 100666 626 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarCloseArchive .text.data.bss.idata$7.idata$5.idata$4.idata$60B_TarCloseArchive@4__imp__TarCloseArchive@4__head_libtar32_adkhcs00007.o/ 1172009393 0 0 100666 634 ` L€ .text,X `.data@À.bss€À.idata$74bÀ.idata$58lÀ.idata$4<vÀ.idata$6@Àÿ%TarClearOwnerWindow .text.data.bss.idata$7.idata$5.idata$4.idata$64F_TarClearOwnerWindow__imp__TarClearOwnerWindow__head_libtar32_adkhcs00006.o/ 1172009393 0 0 100666 622 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%TarCheckArchive .text.data.bss.idata$7.idata$5.idata$4.idata$6,>_TarCheckArchive__imp__TarCheckArchive__head_libtar32_adkhcs00005.o/ 1172009393 0 0 100666 584 ` Lp .text,H `.data@À.bss€À.idata$74RÀ.idata$58\À.idata$4<fÀ.idata$6@Àÿ%Tar .text.data.bss.idata$7.idata$5.idata$4.idata$6_Tar@16$__imp__Tar@16__head_libtar32_adkhcs00004.o/ 1172009393 0 0 100666 610 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%IsSupported .text.data.bss.idata$7.idata$5.idata$4.idata$6$6_IsSupported__imp__IsSupported__head_libtar32_adkhcs00003.o/ 1172009393 0 0 100666 614 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%GetPluginInfo .text.data.bss.idata$7.idata$5.idata$4.idata$6(:_GetPluginInfo__imp__GetPluginInfo__head_libtar32_adkhcs00002.o/ 1172009393 0 0 100666 610 ` Lx .text,P `.data@À.bss€À.idata$74ZÀ.idata$58dÀ.idata$4<nÀ.idata$6@Àÿ%GetFileInfo .text.data.bss.idata$7.idata$5.idata$4.idata$6$6_GetFileInfo__imp__GetFileInfo__head_libtar32_adkhcs00001.o/ 1172009393 0 0 100666 589 ` Lt .text,L `.data@À.bss€À.idata$74VÀ.idata$58`À.idata$4<jÀ.idata$6 @Àÿ%GetFile .text.data.bss.idata$7.idata$5.idata$4.idata$6_GetFile%__imp__GetFile__head_libtar32_a dkhcs00000.o/ 1172009393 0 0 100666 620 ` L| .text,T `.data@À.bss€À.idata$74^À.idata$58hÀ.idata$4<rÀ.idata$6@Àÿ%GetArchiveInfo .text.data.bss.idata$7.idata$5.idata$4.idata$6*<_GetArchiveInfo__imp__GetArchiveInfo__head_libtar32_amacopix-1.7.4/src/unlha.c0000644000076400007640000000543710622753110012164 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // unlzh.c // Using UNLHA32.DLL for mascots installation (for Windows) // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_UNLHA32 #ifdef USE_WIN32 #include #include "UNLHA32.H" #endif // USE_WIN32 extern gchar* to_utf8(); extern gchar* to_locale(); extern gchar* my_dirname(); extern gchar* my_basename(); gchar* unlha_menu(); void unlha_fail(); void menu_fail(); gchar* unlha_menu(gchar *lzhfile) { HARC hArc; INDIVIDUALINFO ii; char szCmdLine[2048],buf[2048]; gchar *lzhdir; gchar *menufile; hArc=UnlhaOpenArchive(NULL, lzhfile, M_ERROR_MESSAGE_ON); if (hArc == NULL) { unlha_fail(lzhfile); exit(1); } if(UnlhaFindFirst(hArc, MENU_EXTENSION, &ii)!=0){ menu_fail(lzhfile); exit(1); } UnlhaCloseArchive(hArc); //lzhdir=g_strconcat(my_dirname(lzhfile),"/",NULL); GetTempPath(2048, buf); if(access(buf,W_OK)==0){ lzhdir=g_strdup(buf); } else{ lzhdir=g_strconcat(my_dirname(lzhfile),G_DIR_SEPARATOR_S,NULL); } menufile=g_strconcat(lzhdir,ii.szFileName,NULL); strcpy(szCmdLine, "e "); strcat(szCmdLine, "\""); strcat(szCmdLine, lzhfile); strcat(szCmdLine, "\""); strcat(szCmdLine, " -x1a1 -c "); strcat(szCmdLine, "\""); strcat(szCmdLine, lzhdir); strcat(szCmdLine, "\""); strcat(szCmdLine, " *.*"); Unlha(NULL, szCmdLine, NULL, 0); g_free(lzhdir); return(menufile); } void unlha_fail(gchar* lzhfile){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", to_utf8(lzhfile), NULL); #else g_print (_("Cannot Open %s\n"),to_utf8(lzhfile)); #endif } void menu_fail(gchar* lzhfile){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: A Menu File is not found in"), " ", to_utf8(lzhfile), NULL); #else g_print (_("A Menu Files is not found in %s\n"),to_utf8(lzhfile)); #endif } #endif // USE_UNLHA32 macopix-1.7.4/src/bmpwrite.c0000644000076400007640000002560110622155331012702 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // bmpwrite.c // Read and write bmp image files // originated from gimp-1.3 *** see below copyright *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* bmpwrite.c Writes Bitmap files. Even RLE encoded ones. */ /* (Windows (TM) doesn't read all of those, but who */ /* cares? ;-) */ /* I changed a few things over the time, so perhaps */ /* it dos now, but now there's no Windows left on */ /* my computer... */ /* Alexander.Schulz@stud.uni-karlsruhe.de */ /* * The GIMP -- an image manipulation program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ---------------------------------------------------------------------------- */ #include "main.h" #include #include #include #include "bmp.h" int WriteBMP (const gchar *filename, GdkPixbuf *pbuf) { FILE *outfile; gint Red[MAXCOLORS]; gint Green[MAXCOLORS]; gint Blue[MAXCOLORS]; gint rows, cols, Spcols, channels, MapSize, SpZeile; glong BitsPerPixel; gint colors; guchar puffer[50]; gint encoded; guchar *pixels; /* first: can we save this image? */ pixels = (guchar *) gdk_pixbuf_get_pixels (pbuf) ; colors = 0; BitsPerPixel = 24; MapSize = 0; channels = 4; /* Perhaps someone wants RLE encoded Bitmaps */ encoded = 0; /* Let's take some file */ outfile = fopen (filename, "wb"); if (!outfile) { g_message ("Can't open %s", filename); return 0; } /* fetch the image */ /* Now, we need some further information ... */ cols = gdk_pixbuf_get_width (pbuf); rows = gdk_pixbuf_get_height(pbuf); /* ... that we write to our headers. */ Spcols = cols; if ((((Spcols * BitsPerPixel) / 8) % 4) == 0) { SpZeile = ((Spcols * BitsPerPixel) / 8); } else { SpZeile = ((gint) (((Spcols * BitsPerPixel) / 8) / 4) + 1) * 4; } Bitmap_File_Head.bfSize = 0x36 + MapSize + (rows * SpZeile); Bitmap_File_Head.zzHotX = 0; Bitmap_File_Head.zzHotY = 0; Bitmap_File_Head.bfOffs = 0x36 + MapSize; Bitmap_File_Head.biSize = 40; Bitmap_Head.biWidth = cols; Bitmap_Head.biHeight = rows; Bitmap_Head.biPlanes = 1; Bitmap_Head.biBitCnt = BitsPerPixel; Bitmap_Head.biCompr = 0; Bitmap_Head.biSizeIm = SpZeile * rows; Bitmap_Head.biClrUsed = 0; Bitmap_Head.biClrImp = Bitmap_Head.biClrUsed; /* And now write the header and the colormap (if any) to disk */ Write (outfile, "BM", 2); FromL (Bitmap_File_Head.bfSize, &puffer[0x00]); FromS (Bitmap_File_Head.zzHotX, &puffer[0x04]); FromS (Bitmap_File_Head.zzHotY, &puffer[0x06]); FromL (Bitmap_File_Head.bfOffs, &puffer[0x08]); FromL (Bitmap_File_Head.biSize, &puffer[0x0C]); Write (outfile, puffer, 16); FromL (Bitmap_Head.biWidth, &puffer[0x00]); FromL (Bitmap_Head.biHeight, &puffer[0x04]); FromS (Bitmap_Head.biPlanes, &puffer[0x08]); FromS (Bitmap_Head.biBitCnt, &puffer[0x0A]); FromL (Bitmap_Head.biCompr, &puffer[0x0C]); FromL (Bitmap_Head.biSizeIm, &puffer[0x10]); FromL (Bitmap_Head.biXPels, &puffer[0x14]); FromL (Bitmap_Head.biYPels, &puffer[0x18]); FromL (Bitmap_Head.biClrUsed, &puffer[0x1C]); FromL (Bitmap_Head.biClrImp, &puffer[0x20]); Write (outfile, puffer, 36); WriteColorMap (outfile, Red, Green, Blue, MapSize); /* After that is done, we write the image ... */ WriteImage (outfile, pixels, cols, rows, encoded, channels, BitsPerPixel, SpZeile, MapSize); /* ... and exit normally */ fclose (outfile); return 1; } void WriteColorMap (FILE *f, gint red[MAXCOLORS], gint green[MAXCOLORS], gint blue[MAXCOLORS], gint size) { gchar trgb[4]; gint i; size /= 4; trgb[3] = 0; for (i = 0; i < size; i++) { trgb[0] = (guchar) blue[i]; trgb[1] = (guchar) green[i]; trgb[2] = (guchar) red[i]; Write (f, trgb, 4); } } void WriteImage (FILE *f, guchar *src, gint width, gint height, gint encoded, gint channels, gint bpp, gint spzeile, gint MapSize) { guchar buf[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}; guchar puffer[8]; guchar *temp, v; guchar *Zeile, *ketten; gint xpos, ypos, i, j, rowstride, laenge, thiswidth; gint breite, n, k; xpos = 0; rowstride = width * channels; /* We'll begin with the 24 bit Bitmaps, they are easy :-) */ if (bpp == 24) { for (ypos = height - 1; ypos >= 0; ypos--) /* for each row */ { for (i = 0; i < width; i++) /* for each pixel */ { temp = src + (ypos * rowstride) + (xpos * channels); buf[2] = (guchar) *temp; temp++; buf[1] = (guchar) *temp; temp++; buf[0] = (guchar) *temp; xpos++; Write (f, buf, 3); } Write (f, &buf[3], spzeile - (width * 3)); #if 0 cur_progress++; if ((interactive_bmp) && ((cur_progress % 5) == 0)) gimp_progress_update ((gdouble) cur_progress / (gdouble) max_progress); #endif xpos = 0; } } else { switch (encoded) /* now it gets more difficult */ { /* uncompressed 1,4 and 8 bit */ case 0: { thiswidth = (width / (8 / bpp)); if (width % (8 / bpp)) thiswidth++; for (ypos = height - 1; ypos >= 0; ypos--) /* for each row */ { for (xpos = 0; xpos < width;) /* for each _byte_ */ { v = 0; for (i = 1; (i <= (8 / bpp)) && (xpos < width); i++, xpos++) /* for each pixel */ { temp = src + (ypos * rowstride) + (xpos * channels); v=v | ((guchar) *temp << (8 - (i * bpp))); } Write (f, &v, 1); } Write (f, &buf[3], spzeile - thiswidth); xpos = 0; #if 0 cur_progress++; if ((interactive_bmp) && ((cur_progress % 5) == 0)) gimp_progress_update ((gdouble) cur_progress / (gdouble) max_progress); #endif } break; } default: { /* Save RLE encoded file, quite difficult */ laenge = 0; buf[12] = 0; buf[13] = 1; buf[14] = 0; buf[15] = 0; Zeile = (guchar *) g_malloc (width / (8 / bpp) + 10); ketten = (guchar *) g_malloc (width / (8 / bpp) + 10); for (ypos = height - 1; ypos >= 0; ypos--) { /* each row separately */ /*printf("Line: %i\n",ypos); */ j = 0; /* first copy the pixels to a buffer, * making one byte from two 4bit pixels */ for (xpos = 0; xpos < width;) { v = 0; for (i = 1; (i <= (8 / bpp)) && (xpos < width); i++, xpos++) { /* for each pixel */ temp = src + (ypos * rowstride) + (xpos * channels); v = v | ((guchar) * temp << (8 - (i * bpp))); } Zeile[j++] = v; } breite = width / (8 / bpp); if (width % (8 / bpp)) breite++; /* then check for strings of equal bytes */ for (i = 0; i < breite;) { j = 0; while ((i + j < breite) && (j < (255 / (8 / bpp))) && (Zeile[i + j] == Zeile[i])) j++; ketten[i] = j; /*printf("%i:",ketten[i]); */ i += j; } /*printf("\n"); */ /* then write the strings and the other pixels to the file */ for (i = 0; i < breite;) { if (ketten[i] < 3) /* strings of different pixels ... */ { j = 0; while ((i + j < breite) && (j < (255 / (8 / bpp))) && (ketten[i + j] < 3)) j += ketten[i + j]; /* this can only happen if j jumps over * the end with a 2 in ketten[i+j] */ if (j > (255 / (8 / bpp))) j -= 2; /* 00 01 and 00 02 are reserved */ if (j > 2) { Write (f, &buf[12], 1); n = j * (8 / bpp); if (n + i * (8 / bpp) > width) n--; Write (f, &n, 1); laenge += 2; Write (f, &Zeile[i], j); /*printf("0.%i.",n); */ /*for (k=j;k;k--) printf("#"); */ laenge += j; if ((j) % 2) { Write (f, &buf[12], 1); laenge++; /*printf("0"); */ } /*printf("|"); */ } else { for (k = i; k < i + j; k++) { n = (8 / bpp); if (n + i * (8 / bpp) > width) n--; Write (f, &n, 1); Write (f, &Zeile[k], 1); /*printf("%i.#|",n); */ laenge += 2; } } i += j; } else /* strings of equal pixels */ { n = ketten[i] * (8 / bpp); if (n + i * (8 / bpp) > width) n--; Write (f, &n, 1); Write (f, &Zeile[i], 1); /*printf("%i.#|",n); */ i += ketten[i]; laenge += 2; } } /*printf("\n"); */ Write (f, &buf[14], 2); /* End of row */ laenge += 2; #if 0 cur_progress++; if ((interactive_bmp) && ((cur_progress % 5) == 0)) gimp_progress_update ((gdouble) cur_progress / (gdouble) max_progress); #endif } fseek (f, -2, SEEK_CUR); /* Overwrite last End of row ... */ Write (f, &buf[12], 2); /* ... with End of file */ fseek (f, 0x22, SEEK_SET); /* Write length of image */ FromL (laenge, puffer); Write (f, puffer, 4); fseek (f, 0x02, SEEK_SET); /* Write length of file */ laenge += (0x36 + MapSize); FromL (laenge, puffer); Write (f, puffer, 4); g_free (ketten); g_free (Zeile); break; } } } #if 0 if (interactive_bmp) gimp_progress_update (1); #endif } /* ********************************************************** bmpwrite.c *** */ macopix-1.7.4/src/utils.c0000644000076400007640000002033711015732211012205 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // utils.c // Utility functions for MaCoPiX // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_WIN32 #include #include #endif #define BUFFSIZE 200 typedef struct{ char *buf; char *ptr; }ST_STR; // Prototype of functions in this file void copy_file(); #ifdef USE_COMMON void check_common_dir(); gboolean check_common_dir2(); #endif #ifdef USE_WIN32 gchar* get_win_home(); gchar* WindowsVersion(); #endif gchar* get_rc_dir(); void pop_debug_print (const gchar *format, ...) G_GNUC_PRINTF(1, 2); #ifdef __GTK_STOCK_H__ GtkWidget* gtkut_button_new_from_stock(); #endif gchar* my_dirname(); gchar* my_basename(); gboolean my_main_iteration(); void my_signal_connect(); extern gchar* to_utf8(); extern gchar* to_locale(); #ifndef USE_WIN32 gchar* GetCurrentWMName(); #endif gdouble GetCurrentResolution(); void copy_file(gchar *src, gchar *dest) { FILE *src_fp, *dest_fp; gchar *buf; gint n_read; if(strcmp(src,dest)==0) return; buf=g_malloc0(sizeof(gchar)*1024); if ((src_fp = fopen(src, "rb")) == NULL) { g_print(_("Cannot open copy source file %s"),src); exit(1); } if ((dest_fp = fopen(dest, "wb")) == NULL) { g_print(_("Cannot open copy destination file %s"),dest); exit(1); } while (!feof(src_fp)){ n_read = fread(buf, sizeof(gchar), sizeof(buf), src_fp); fwrite(buf, n_read, 1, dest_fp); } fclose(dest_fp); fclose(src_fp); #ifndef USE_WIN32 chmod(dest, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); #endif g_free(buf); } #ifdef USE_COMMON void check_common_dir(void){ struct stat st; if (access(COMMON_DIR, F_OK) == 0) { if (stat(COMMON_DIR, &st)<0){ fprintf(stderr,_("Cannot read status of directry %s .\n"),COMMON_DIR); exit(1); } if (! S_ISDIR(st.st_mode)) { fprintf(stderr,_("%s is not directory.\n"),COMMON_DIR); exit(1); } } else{ fprintf(stderr,_("Creating the common directory \"%s\"\n"),COMMON_DIR); #ifdef USE_WIN32 mkdir(COMMON_DIR); mkdir(COMMON_DIR PIXDIR); mkdir(COMMON_DIR SOUNDDIR); #else mkdir(COMMON_DIR,(S_IRWXU|S_IRWXG|S_IRWXO)); mkdir(COMMON_DIR PIXDIR,(S_IRWXU|S_IRWXG|S_IRWXO)); mkdir(COMMON_DIR SOUNDDIR,(S_IRWXU|S_IRWXG|S_IRWXO)); #endif } } gboolean check_common_dir2(){ struct stat st; mode_t modes; // Checking Access to PREFIXDIR if (stat(PREFIX_DIR, &st)<0){ return(FALSE); } else{ if ((S_ISDIR(st.st_mode)&& (access(PREFIX_DIR, R_OK|W_OK|X_OK)==0))){ if (stat(COMMON_DIR, &st)<0){ // COMMON_DIR is NO-existing return(TRUE); } else{ if ((S_ISDIR(st.st_mode)&& (access(COMMON_DIR, R_OK|W_OK|X_OK)==0))){ // COMMON_DIR is existing and permision is OK return(TRUE); } else{ // COMMON_DIR is existing and permision is NG return(FALSE); } } } else{ // PREFIX_DIR is not accesible return(FALSE); } } } #endif #ifdef USE_WIN32 gchar* get_win_home(void){ gchar WinPath[257]; GetModuleFileName( NULL, WinPath, 256 ); return(my_dirname(WinPath)); } #endif gchar* get_rc_dir(void){ #ifdef USE_WIN32 return(get_win_home()); #else return(g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR,NULL)); #endif } #ifdef USE_WIN32 // gchar* WindowsVersion() { // Get OS Info for WinXP and 2000 or later // for Win9x, OSVERSIONINFO should be used instead of OSVERSIONINFOEX OSVERSIONINFOEX osInfo; gchar *windowsName; static gchar buf[1024]; windowsName = NULL; osInfo.dwOSVersionInfoSize=sizeof(OSVERSIONINFOEX); GetVersionEx ((LPOSVERSIONINFO)&osInfo); switch (osInfo.dwMajorVersion) { case 4: switch (osInfo.dwMinorVersion) { case 0: if(osInfo.dwPlatformId == VER_PLATFORM_WIN32_NT){ windowsName = g_strdup("Windows NT 4.0"); } else{ windowsName = g_strdup("Windows 95"); } break; case 10: windowsName = g_strdup("Windows 98"); break; case 90: windowsName = g_strdup("Windows Me"); break; } break; case 5: switch (osInfo.dwMinorVersion) { case 0: windowsName = g_strdup("Windows 2000"); break; case 1: windowsName = g_strdup("Windows XP"); break; case 2: windowsName = g_strdup("Windows Server 2003"); break; } break; case 6: windowsName = g_strdup("Windows Vista"); break; } if(!windowsName) windowsName = g_strdup("Windows UNKNOWN"); //OutPut if(osInfo.wServicePackMajor!=0){ g_snprintf(buf, sizeof(buf), "Microsoft %s w/SP%d (%ld.%02ld.%ld)", windowsName, osInfo.wServicePackMajor, osInfo.dwMajorVersion, osInfo.dwMinorVersion, osInfo.dwBuildNumber); } else{ g_snprintf(buf, sizeof(buf), "Microsoft %s (%ld.%02ld.%ld)", windowsName, osInfo.dwMajorVersion, osInfo.dwMinorVersion, osInfo.dwBuildNumber); } g_free(windowsName); return(buf); } #endif void pop_debug_print(const gchar *format, ...) { #ifdef POP_DEBUG va_list args; gchar buf[BUFFSIZE]; va_start(args, format); g_vsnprintf(buf, sizeof(buf), format, args); va_end(args); fprintf(stderr,"%s", buf); fflush(stderr); #endif } #ifdef __GTK_STOCK_H__ GtkWidget* gtkut_button_new_from_stock(gchar *txt, const gchar *stock){ GtkWidget *button; GtkWidget *box; GtkWidget *image; GtkWidget *label; GtkWidget *box2; box2=gtk_hbox_new(TRUE,0); box=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(box2),box, FALSE,FALSE,0); gtk_container_set_border_width(GTK_CONTAINER(box),0); if(txt){ image=gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON); gtk_box_pack_start(GTK_BOX(box),image, FALSE,FALSE,2); } else{ image=gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU); gtk_box_pack_start(GTK_BOX(box),image, FALSE,FALSE,0); } gtk_widget_show(image); if(txt){ label=gtk_label_new (txt); gtk_box_pack_start(GTK_BOX(box),label, FALSE,FALSE,2); gtk_widget_show(label); } button=gtk_button_new(); gtk_container_add(GTK_CONTAINER(button),box2); gtk_widget_show(button); return(button); } #endif gchar* my_dirname(const gchar *file_name){ #ifdef USE_GTK2 return(g_path_get_dirname(file_name)); #else return(g_dirname(file_name)); #endif } gchar* my_basename(const gchar *file_name){ #ifdef USE_GTK2 return(g_path_get_basename(file_name)); #else return(g_basename(file_name)); #endif } gboolean my_main_iteration(gboolean may_block){ #ifdef USE_GTK2 return(g_main_context_iteration(NULL, may_block)); #else return(g_main_iteration(may_block)); #endif } void my_signal_connect(GtkWidget *widget, const gchar *detailed_signal, void *func, gpointer data) { #ifdef USE_GTK2 g_signal_connect(G_OBJECT(widget), detailed_signal, G_CALLBACK(func), data); #else gtk_signal_connect(GTK_OBJECT(widget), detailed_signal, GTK_SIGNAL_FUNC(func), data); #endif } #if defined(USE_GTK2) && !defined(USE_WIN32) gchar* GetCurrentWMName(GtkWidget *widget){ GdkScreen *screen = gtk_widget_get_screen(widget); //GdkScreen *screen = gdk_screen_get_default(); return((gchar *)gdk_x11_screen_get_window_manager_name(screen)); } #endif gdouble GetCurrentResolution(void){ #if GTK_CHECK_VERSION(2,10,0) GdkScreen *screen = gdk_screen_get_default(); return(gdk_screen_get_resolution(screen)); #else return(96.0); #endif } macopix-1.7.4/src/mail.c0000644000076400007640000015762211015647742012015 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // mail.c // Biff functions for MaCoPiX (POP3 /APOP and local spool) // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_BIFF #ifdef USE_WIN32 #include #endif #include #ifdef HAVE_SYS_WAIT_H #include #endif #include #include "codeconv.h" #define BUFFSIZE 200 #define BUFFSIZE5 1000 #define HEADER_MAX 256 #define MIME_BUFFSIZE 1024 void biff_init(); gint SetMailChecker(); gint ResetMailChecker(); gboolean MailChecker(); void make_biff_pix(); void display_biff_balloon(); void remap_biff_pix(); void mail_check(); void mail_check_mbox(); void mail_check_qmail(); void mail_check_pop3(); #ifdef USE_WIN32 unsigned __stdcall get_pop3(); #else int get_pop3(); #endif gchar * fs_get_mbox(); gchar * fs_get_procmail(); gchar * fs_get_qmail(); void fs_get_pop3(); void pop3_error(); #ifndef USE_WIN32 void pop3_signal(); void pop3_data_read(); #endif char* strbuf(); void make_fs_max(); void create_biff_dialog(); static void close_biff(); static void mailer_start(); gchar* set_mhdir(); void mail_arg_init(); void strip_last_ret(); extern void pop_debug_print (const gchar *format, ...) G_GNUC_PRINTF(1, 2); // extern void ext_play(); extern void sound_play(); extern GtkWidget *biff_pix; extern typMascot *Mascot; extern gboolean flag_balloon; extern gint dw_configure_biff_pix(); extern gint dw_expose_biff_pix(); extern void biff_drag_begin(); extern void biff_drag_end(); extern void biff_window_motion(); extern void conv_unmime_header(); extern void conv_unmime_header_overwrite(); extern void create_pop_pass_dialog(); #ifdef __GTK_STOCK_H__ extern GtkWidget* gtkut_button_new_from_stock(); #endif #ifdef USE_SSL extern gint ssl_manager_verify_cert(); #endif extern void my_signal_connect(); extern gboolean my_main_iteration(); // global argument #ifndef USE_WIN32 int pop3_fd[2]; #endif gchar *pop_froms; time_t former_newest; void biff_init(typMascot *mascot) { pop_debug_print("\nBiff init\n"); mascot->mail.size=0; mascot->mail.last_check=0; mascot->mail.count=0; mascot->mail.fetched_count = 0; // POP3 fetched fs this access mascot->mail.displayed_count = 0; // POP3 displayed fs mascot->mail.spam_count = 0; // SPAM count mascot->mail.status = NO_MAIL; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f= NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s=NULL; if(pop_froms) g_free(pop_froms); pop_froms=strbuf(NULL); #ifdef __GTK_TOOLTIP_H__ //gtk_widget_set_tooltip_text(mascot->mail.e_draw, //gtk_widget_set_tooltip_text(mascot->mail.e_draw, gtk_widget_set_tooltip_text(biff_pix, _("Initializing Biff...")); #else gtk_tooltips_set_tip(GTK_TOOLTIPS(mascot->mail.tooltips), //mascot->mail.e_draw, biff_pix, _("Initializing Biff..."), NULL); #endif if(mascot->mail.tooltips_fl){ #ifdef __GTK_TOOLTIP_H__ //gtk_widget_set_tooltip_text(mascot->mail.e_draw,NULL); gtk_widget_set_tooltip_text(biff_pix,NULL); #else gtk_tooltips_enable(mascot->mail.tooltips); #endif } else{ #ifdef __GTK_TOOLTIP_H__ //gtk_widget_set_tooltip_text(mascot->mail.e_draw,NULL); gtk_widget_set_tooltip_text(biff_pix,NULL); #else gtk_tooltips_disable(mascot->mail.tooltips); #endif } mascot->mail.pop_readed=FALSE; if((mascot->mail.type==MAIL_POP3)||(mascot->mail.type==MAIL_APOP)){ if(mascot->mail.pop_pass==NULL){ if((mascot->mail.pop_server!=NULL)&&(mascot->mail.pop_id!=NULL)){ create_pop_pass_dialog(); // Get Pop Pass from GUI } } } if(mascot->mail.ssl_cert_skip) mascot->mail.ssl_cert_res=SSL_CERT_ACCEPT; else mascot->mail.ssl_cert_res=SSL_CERT_NONE; if(mascot->mail.ssl_sub) g_free(mascot->mail.ssl_sub); mascot->mail.ssl_sub=NULL; if(mascot->mail.ssl_iss) g_free(mascot->mail.ssl_iss); mascot->mail.ssl_iss=NULL; mascot->mail.ssl_verify=0; } gint SetMailChecker(gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; if(mascot->mail.proc_id>0){ g_source_remove((guint)mascot->mail.proc_id); fflush(stdin); fflush(stdout); } gtk_widget_unmap(biff_pix); if(mascot->mail.flag){ biff_init(mascot); MailChecker(mascot); mascot->mail.proc_id =(gint)g_timeout_add((guint32)(mascot->mail.interval*1000), (GSourceFunc)MailChecker, (gpointer)mascot); pop_debug_print("proc_id=%d\n",mascot->mail.proc_id); } } gint ResetMailChecker(gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; if(mascot->mail.pop_child_fl){ return (0); } if(mascot->mail.proc_id>0){ g_source_remove((guint)mascot->mail.proc_id); fflush(stdin); fflush(stdout); } gtk_widget_unmap(biff_pix); if(mascot->mail.flag){ MailChecker(mascot); mascot->mail.proc_id =(gint)g_timeout_add((guint32)(mascot->mail.interval*1000), (GSourceFunc)MailChecker, (gpointer)mascot); pop_debug_print("proc_id=%d\n",mascot->mail.proc_id); } return (0); } gboolean MailChecker(gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; if(mascot->flag_menu) return(TRUE); gdk_flush(); ext_play(mascot,mascot->mail.polling); mail_check(mascot); gdk_flush(); if((mascot->mail.type!=MAIL_POP3)&&(mascot->mail.type!=MAIL_APOP)) display_biff_balloon(mascot); gdk_flush(); return(TRUE); } void make_biff_pix(typMascot *mascot){ biff_pix = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(biff_pix),FALSE); #endif gtk_widget_set_app_paintable(biff_pix, TRUE); gtk_widget_set_events(GTK_WIDGET (biff_pix), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(biff_pix); #ifdef USE_GTK2 gtk_window_set_resizable(GTK_WINDOW(biff_pix),TRUE); #endif gdk_window_set_decorations(biff_pix->window, 0); #ifndef USE_WIN32 /* gdk_window_set_override_redirect is not implemented (for warning) */ gdk_window_set_override_redirect(biff_pix->window,TRUE); #endif my_signal_connect(biff_pix, "configure_event", dw_configure_biff_pix, (gpointer)Mascot); my_signal_connect(biff_pix, "expose_event", dw_expose_biff_pix, (gpointer)Mascot); my_signal_connect(biff_pix, "button_press_event", biff_drag_begin, (gpointer)Mascot); my_signal_connect(biff_pix, "button_release_event", biff_drag_end, (gpointer)Mascot); my_signal_connect(biff_pix, "motion_notify_event", biff_window_motion, (gpointer)Mascot); #ifdef USE_GTK2 gtk_window_resize (GTK_WINDOW(biff_pix), 1, 1); #endif } void display_biff_balloon(typMascot *mascot) { gchar *text_tip=NULL; if(mascot->mail.tooltips_fl){ if(mascot->mail.count!=0){ if((mascot->mail.type==MAIL_POP3)||(mascot->mail.type==MAIL_APOP)){ if(mascot->mail.spam_count!=0){ if((mascot->mail.last_f!=NULL)&&(mascot->mail.last_s!=NULL)) text_tip=g_strdup_printf(_("You have %d mails (%d SPAMs).\n [Latest Mail]\n From: %s\n Subject: %s"), mascot->mail.count,mascot->mail.spam_count, mascot->mail.last_f,mascot->mail.last_s); } else{ if((mascot->mail.last_f!=NULL)&&(mascot->mail.last_s!=NULL)) text_tip=g_strdup_printf(_("You have %d mails.\n [Latest Mail]\n From: %s\n Subject: %s"), mascot->mail.count, mascot->mail.last_f,mascot->mail.last_s); } if(text_tip){ #ifdef __GTK_TOOLTIP_H__ gtk_widget_set_tooltip_text(biff_pix, //gtk_widget_set_tooltip_text(mascot->mail.e_draw, text_tip); #else gtk_tooltips_set_tip(GTK_TOOLTIPS(mascot->mail.tooltips), biff_pix, //mascot->mail.e_draw, text_tip,NULL); #endif g_free(text_tip); } } else{ text_tip=g_strdup_printf(_("You have %d mails."),mascot->mail.count); #ifdef __GTK_TOOLTIP_H__ // gtk_widget_set_tooltip_text(mascot->mail.e_draw, gtk_widget_set_tooltip_text(biff_pix, text_tip); #else gtk_tooltips_set_tip(GTK_TOOLTIPS(mascot->mail.tooltips), //mascot->mail.e_draw, biff_pix, text_tip,NULL); #endif g_free(text_tip); } } else{ #ifdef __GTK_TOOLTIP_H__ //gtk_widget_set_tooltip_text(mascot->mail.e_draw, gtk_widget_set_tooltip_text(biff_pix, _("You have no mails.")); #else gtk_tooltips_set_tip(GTK_TOOLTIPS(mascot->mail.tooltips), //mascot->mail.e_draw, biff_pix, _("You have no mails."), NULL); #endif } } if(mascot->mail.status == POP3_ERROR){ gtk_widget_unmap(biff_pix); if(flag_balloon==FALSE){ mascot->balseq=0; mascot->bal_mode=BALLOON_POPERROR; DoBalloon(mascot); flag_balloon=TRUE; mascot->mail.status = NO_MAIL; } } else if(mascot->mail.status == POP3_SSL_CERT){ gtk_widget_unmap(biff_pix); #ifdef USE_SSL mascot->mail.ssl_cert_res=ssl_manager_verify_cert(mascot); if(mascot->mail.ssl_cert_res==SSL_CERT_ACCEPT) ResetMailChecker((gpointer)mascot); #endif } else if(mascot->mail.status != NO_MAIL){ MoveBiffPix(mascot,mascot->x,mascot->y); gtk_widget_map(biff_pix); } else{ gtk_widget_unmap(biff_pix); } if(mascot->mail.status==NEW_MAIL){ sound_play(mascot,mascot->mail.sound); if((mascot->mail.word)&&(flag_balloon==FALSE)) { mascot->balseq=0; mascot->bal_mode=BALLOON_MAIL; DoBalloon(mascot); flag_balloon=TRUE; if((mascot->mail.type==MAIL_POP3)||(mascot->mail.type==MAIL_APOP)){ mascot->mail.status=KEEP_NEW_MAIL; } } } } void remap_biff_pix(typMascot *mascot){ if(!mascot->mail.flag) return; if(mascot->mail.status == (POP3_ERROR|POP3_SSL_CERT)){ gtk_widget_unmap(biff_pix); } else if(mascot->mail.status != NO_MAIL){ MoveBiffPix(mascot,mascot->x,mascot->y); gtk_widget_map(biff_pix); } else{ gtk_widget_unmap(biff_pix); } } void mail_check(typMascot *mascot){ #ifndef USE_WIN32 static struct sigaction act; #endif switch(mascot->mail.type){ case MAIL_LOCAL: case MAIL_PROCMAIL: mail_check_mbox(mascot); break; case MAIL_POP3: case MAIL_APOP: #ifndef USE_WIN32 act.sa_handler=pop3_signal; sigemptyset(&act.sa_mask); act.sa_flags=0; sigaction(SIGUSR1, &act,0); #endif mail_check_pop3(mascot); break; case MAIL_QMAIL: mail_check_qmail(mascot); break; } } void mail_check_mbox(typMascot *mascot){ struct stat t; DIR *dp; struct dirent *entry; time_t newest_time=0; int filenum=0; int mc=0; FILE *fp; char buf[BUFFSIZE]; int wo_spam; if (!stat(mascot->mail.file, &t)){ if(t.st_size == 0){ // ¥á¥¤¥ë¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤¬¥¼¥í mascot->mail.status = NO_MAIL; mascot->mail.count = 0; } else{ wo_spam = mascot->mail.count - mascot->mail.spam_count; if (t.st_size < mascot->mail.size){ // mailbox smaller in size; some mails have been deleted mascot->mail.status = OLD_MAIL; } else if (t.st_atime > t.st_mtime){ // mailbox read after most recent write mascot->mail.status = OLD_MAIL; } else if (t.st_size > mascot->mail.size){ // mailbox modified after most recent read, and larger in size // this implies the arrival of some new mails mascot->mail.status = NEW_MAIL; // get mail count if((fp=fopen(mascot->mail.file,"r"))!= NULL){ do{ if(fgets(buf,BUFFSIZE-1,fp)==NULL) break; if(strncmp(buf,"From ",5)==0){ mc++; } } while (1); fclose(fp); mascot->mail.count = mc; } } else if ((t.st_size == mascot->mail.size)&& ((mascot->mail.status == NEW_MAIL)|| (mascot->mail.status ==KEEP_NEW_MAIL))){ mascot->mail.status=KEEP_NEW_MAIL; } else{ mascot->mail.status = NO_MAIL; // no such mailbox mascot->mail.count = 0; } if( mc == mascot->mail.spam_count){ mascot->mail.status = NO_MAIL; // SPAM¤À¤±¤Î¤È¤­ } else if((mc - mascot->mail.spam_count) == wo_spam){ mascot->mail.status = KEEP_NEW_MAIL; // Áý¤¨¤¿¤Î¤¬SPAM¤À¤±¤À¤Ã¤¿¤È¤­ } } } else{ // ¥á¥¤¥ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¤È¤­ mascot->mail.status = NO_MAIL; mascot->mail.count = 0; } mascot->mail.size = t.st_size; } void mail_check_qmail(typMascot *mascot){ struct stat t; DIR *dp; struct dirent *entry; char tmp[256]; time_t newest_time=0; int filenum=0; int wo_spam; if ((dp=opendir(mascot->mail.file))==NULL){ mascot->mail.status = NO_MAIL; mascot->mail.count = 0; return; } while((entry=readdir(dp))!=NULL){ if(entry->d_name[0]!='.'){ sprintf(tmp,"%s/%s",mascot->mail.file,entry->d_name); if (!stat(tmp, &t)){ filenum++; if (t.st_mtime>newest_time){ newest_time=t.st_mtime; } } } } closedir(dp); if(filenum==0){ mascot->mail.status = NO_MAIL; mascot->mail.count = 0; } else{ wo_spam = mascot->mail.count - mascot->mail.spam_count; if(newest_time==former_newest){ mascot->mail.status = KEEP_NEW_MAIL; } else if(newest_time>former_newest){ mascot->mail.status = NEW_MAIL; } else{ mascot->mail.status = OLD_MAIL; } if( filenum == mascot->mail.spam_count){ mascot->mail.status = NO_MAIL; // SPAM¤À¤±¤Î¤È¤­ } else if((filenum - mascot->mail.spam_count) == wo_spam){ mascot->mail.status = KEEP_NEW_MAIL; // Áý¤¨¤¿¤Î¤¬SPAM¤À¤±¤À¤Ã¤¿¤È¤­ } } former_newest=newest_time; mascot->mail.count = filenum; } void mail_check_pop3(typMascot *mascot){ #ifdef USE_WIN32 DWORD dwErrorNumber; SECURITY_ATTRIBUTES SecAttrib; // ¥»¥­¥å¥ê¥Æ¥£Â°À­ //DWORD dwThreadID; unsigned int dwThreadID; HANDLE hPipe; HANDLE hThread; BOOL fConnected; if(mascot->mail.pop_child_fl){ return ; } mascot->mail.pop_child_fl=TRUE; /*hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)get_pop3, (LPVOID)mascot, 0, &dwThreadID);*/ pop_debug_print("Begin POP Thread.\n"); hThread = (HANDLE)_beginthreadex(NULL,0, get_pop3, (LPVOID)mascot, 0, &dwThreadID); if (hThread == NULL) { dwErrorNumber = GetLastError(); fprintf(stderr,"_beginthreadex() error(%ld).\n", dwErrorNumber); //ExitProcess(dwErrorNumber); pop3_error(mascot); mascot->mail.pop_child_fl=FALSE; } else{ CloseHandle(hThread); } #else int status = 0; static int pid; char *buff = NULL; char buf[BUFFSIZE]; if(mascot->mail.pop_child_fl){ return ; } mascot->mail.pop_child_fl=TRUE; if(pipe(pop3_fd)==-1) { fprintf(stderr,"pipe open error\n"); } waitpid(pid,0,WNOHANG); if( (pid = fork()) <0){ fprintf(stderr,"fork error\n"); } else if(pid ==0) { pop_debug_print("child\n"); status = get_pop3(mascot); pop_debug_print("get pop3 end\n"); pop_debug_print("pop3 fs status = %d\n", mascot->mail.pop3_fs_status); if(buff) g_free(buff); buff = strbuf(NULL); // stand by buff sprintf(buf,"%d\n",mascot->mail.status); // Write mail status buff = strbuf(buf); if(status == POP3_SSL_CERT){ if(mascot->mail.ssl_sub!=NULL){ sprintf(buf,"%s\n",mascot->mail.ssl_sub); // SSL subject } else{ sprintf(buf,"\n"); } buff = strbuf(buf); if(mascot->mail.ssl_iss!=NULL){ sprintf(buf,"%s\n",mascot->mail.ssl_iss); // SSL issuer } else{ sprintf(buf,"\n"); } buff = strbuf(buf); sprintf(buf,"%ld\n",mascot->mail.ssl_verify); // SSL verify_result buff = strbuf(buf); } if((status != POP3_ERROR)&&(status != POP3_SSL_CERT)){ // POP status is GOOD? sprintf(buf,"%d\n",mascot->mail.count); // write total mail count buff = strbuf(buf); sprintf(buf,"%d\n",mascot->mail.fetched_count); // write fetched mail count buff = strbuf(buf); sprintf(buf,"%d\n",mascot->mail.pop3_fs_status); // write POP status buff = strbuf(buf); sprintf(buf,"%d\n",mascot->mail.spam_count); // write SPAM count buff = strbuf(buf); if(mascot->mail.last_f!=NULL){ sprintf(buf,"%s\n",mascot->mail.last_f); // Last_from } else{ sprintf(buf,"\n"); } buff = strbuf(buf); if(mascot->mail.last_s!=NULL){ sprintf(buf,"%s\n",mascot->mail.last_s); // Last_subject } else{ sprintf(buf,"\n"); } buff = strbuf(buf); buff = strbuf(pop_froms); // write fs data } if(close(STDOUT_FILENO)==-1) fprintf(stderr,"pipe close error\n"); if(dup2(pop3_fd[1],STDOUT_FILENO)==-1) fprintf(stderr,"pipe duplicate error\n"); if(close(pop3_fd[0])==-1) fprintf(stderr,"pipe close error\n"); pop_debug_print("pipe open/close end\n"); pop_debug_print("buff size = %d\n", strlen(buff)); printf ("%s",buff); pop_debug_print("child end\n"); kill(getppid(), SIGUSR1); //calling pop3_data_read fflush(stdout); fflush(stdin); _exit(-1); } else{ pop_debug_print("Parent: --------------------------------\n"); pop_debug_print("Parent: forked a child with pid = %d\n", (int)pid); pop_debug_print("Parent: mail status = %d\n", mascot->mail.status); } #endif //USE_WIN32 } #ifdef USE_WIN32 unsigned __stdcall get_pop3(LPVOID lpvPipe) { typMascot *mascot; signed int ret; int num; long size; gchar *apop_key; int wo_spam; static int pid; int pre_mail_count; mascot = (typMascot *)lpvPipe; pre_mail_count = mascot->mail.count; // store mail count pop_debug_print("Conncet %s : %d\n", mascot->mail.pop_server, mascot->mail.pop_port); apop_key=g_malloc0(sizeof(gchar)*BUFFSIZE); memset(apop_key, '\0', BUFFSIZE); ret = popConnect(mascot->mail.pop_server, mascot->mail.pop_port, apop_key, mascot->mail.ssl_mode, mascot->mail.ssl_nonblock, mascot->mail.ssl_cert_res, &mascot->mail.ssl_sub, &mascot->mail.ssl_iss, &mascot->mail.ssl_verify); if( ret != 0 ){ if(apop_key) g_free(apop_key); if(ret==-(30+4)){ pop_debug_print("popConnect() [ret=%d] : Certification is required\n", ret); mascot->mail.status = POP3_SSL_CERT; } else{ fprintf(stderr, "ERR: popConnect() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; pop3_error(mascot); } mascot->mail.pop_child_fl=FALSE; mascot->mail.pop_readed=TRUE; _endthreadex(0); //ExitThread(0); //return(POP3_ERROR); } pop_debug_print("POP LOGIN %s %s %s\n",mascot->mail.pop_id, mascot->mail.pop_pass, apop_key); ret = popLogin(mascot->mail.pop_id, mascot->mail.pop_pass, apop_key, mascot->mail.ssl_mode); if( ret != 0 ){ if(apop_key) g_free(apop_key); fprintf(stderr, "ERR: popLogin() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; popQuit(mascot->mail.ssl_mode); popClose(); pop3_error(mascot); mascot->mail.pop_child_fl=FALSE; mascot->mail.pop_readed=TRUE; _endthreadex(0); //ExitThread(0); //return(POP3_ERROR); } pop_debug_print("POP STAT\n"); ret = popStat(&num, &size, mascot->mail.ssl_mode); if( ret != 0 ){ if(apop_key) g_free(apop_key); fprintf(stderr, "ERR: popStat() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; popQuit(mascot->mail.ssl_mode); popClose(); pop3_error(mascot); mascot->mail.pop_child_fl=FALSE; mascot->mail.pop_readed=TRUE; _endthreadex(0); //ExitThread(0); //return(POP3_ERROR); } pop_debug_print("mail: %d, size: %ld\n", num, size); if(num == 0){ // ¥á¡¼¥ë̵¤· mascot->mail.status = NO_MAIL; mascot->mail.fetched_count = 0; mascot->mail.spam_count = 0; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); } else{ wo_spam = mascot->mail.count - mascot->mail.spam_count; if(num == mascot->mail.count){ // ¥á¡¼¥ëÁý¸º¤Ê¤· mascot->mail.status = KEEP_NEW_MAIL; mascot->mail.fetched_count = 0; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; } else if(num > mascot->mail.count){ // ¥á¡¼¥ëÁý¤¨¤¿ mascot->mail.status = NEW_MAIL; fs_get_pop3(num,mascot); // ¤³¤³¤ÇSPAM¤Î¿ô, pop_froms¤¬¹¹¿·¤µ¤ì¤ë // for WIN32 fs_get_pop3 should not initialize pop_froms } else{ // ¥á¡¼¥ë¿ô¤¬¸º¤Ã¤Æ¤¤¤¿¤é¤¹¤Ù¤Æ¿·µ¬¥á¡¼¥ë¤È¸«¤Ê¤¹ mascot->mail.status = NEW_MAIL; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_f) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); mascot->mail.count = 0; mascot->mail.spam_count = 0; fs_get_pop3(num,mascot); } if( num == mascot->mail.spam_count){ mascot->mail.status = NO_MAIL; // SPAM¤À¤±¤Î¤È¤­ if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); } else if((num - mascot->mail.spam_count) == wo_spam){ mascot->mail.status = KEEP_NEW_MAIL; // Áý¤¨¤¿¤Î¤¬SPAM¤À¤±¤À¤Ã¤¿¤È¤­ } } pop_debug_print("data read end\n"); popQuit(mascot->mail.ssl_mode); popClose(); pop_debug_print("pop quit\n"); mascot->mail.count = num; /*************** from pop3 data read *********/ // Should be in parent process in UNIX ver pop_debug_print("POP Thread: pop3 data read\n"); if( mascot->mail.status == POP3_ERROR ){ // POP3 status is ERR pop3_error(mascot); } #ifdef USE_SSL else if( mascot->mail.status == POP3_SSL_CERT){ // SSL Certification //mascot->mail.ssl_cert_res=ssl_manager_verify_cert(mascot); } #endif else{ if(mascot->mail.last_f!=NULL){ #ifdef USE_GTK2 if(g_utf8_validate(mascot->mail.last_f,-1,NULL)){ #endif strip_last_ret(mascot->mail.last_f); #ifdef USE_GTK2 } else{ mascot->mail.last_f = g_strdup(_("(Decode Error)")); } #endif } if(mascot->mail.last_s!=NULL){ #ifdef USE_GTK2 if(g_utf8_validate(mascot->mail.last_s,-1,NULL)){ #endif strip_last_ret(mascot->mail.last_s); #ifdef USE_GTK2 } else{ mascot->mail.last_s = g_strdup(_("(Decode Error)")); } #endif } } if(mascot->mail.count == 0){ mascot->mail.displayed_count = 0; } else { if(mascot->mail.pop3_fs_status == POP3_OK_NORMAL){ if(pre_mail_count > mascot->mail.count){ //¥á¡¼¥ë¸º¤Ã¤¿ mascot->mail.displayed_count = mascot->mail.fetched_count; } else { // added or no changed mascot->mail.displayed_count += mascot->mail.fetched_count; } } else if(mascot->mail.pop3_fs_status == POP3_OK_FS_OVER){ gchar buf[BUFFSIZE], *tmp_froms; //¤³¤³¤Ï̵¾ò·ï¤Ç fs clear ¤·¤Æ¤è¤¤ mascot->mail.displayed_count = mascot->mail.fetched_count; sprintf(buf,_(" \n ***** %d mails are skipped *****\n \n"), mascot->mail.count - mascot->mail.displayed_count); tmp_froms=strdup(pop_froms); if(pop_froms) g_free(pop_froms); pop_froms=strbuf(NULL); pop_froms=strbuf(buf); pop_froms=strbuf(tmp_froms); if(tmp_froms) g_free(tmp_froms); } } mascot->mail.pop_child_fl=FALSE; mascot->mail.pop_readed=TRUE; pop_debug_print("POP Thread: status = %d\n",mascot->mail.status); pop_debug_print("POP Thread: pop3 fs status = %d\n",mascot->mail.pop3_fs_status); pop_debug_print("POP Thread: count = %d\n",mascot->mail.count); pop_debug_print("POP Thread: fetched count = %d\n",mascot->mail.fetched_count); pop_debug_print("POP Thread: disped count = %d\n",mascot->mail.displayed_count); pop_debug_print("POP Thread: spam count = %d\n",mascot->mail.spam_count); if(mascot->mail.last_f!=NULL) pop_debug_print("Last From: %s\n",mascot->mail.last_f); if(mascot->mail.last_s!=NULL) pop_debug_print("Last Subject: %s\n",mascot->mail.last_s); if(pop_froms!=NULL) pop_debug_print("data2 = %s\n",pop_froms); pop_debug_print("POP Thread: Done\n"); /*************** end of pop3 data read *********/ if(apop_key) g_free(apop_key); _endthreadex(0); //ExitThread(0); //return(mascot->mail.status); } #else int get_pop3(typMascot *mascot) { signed int ret; int num; long size; gchar *apop_key; int wo_spam; pop_debug_print("Conncet %s : %d\n", mascot->mail.pop_server, mascot->mail.pop_port); apop_key=g_malloc0(sizeof(gchar)*BUFFSIZE); memset(apop_key, '\0', BUFFSIZE); ret = popConnect(mascot->mail.pop_server, mascot->mail.pop_port, apop_key, mascot->mail.ssl_mode, mascot->mail.ssl_nonblock, mascot->mail.ssl_cert_res, &mascot->mail.ssl_sub, &mascot->mail.ssl_iss, &mascot->mail.ssl_verify); if( ret != 0 ){ if(apop_key) g_free(apop_key); if(ret==-(30+4)){ pop_debug_print("popConnect() [ret=%d] : Certification is required\n", ret); mascot->mail.status = POP3_SSL_CERT; return(POP3_SSL_CERT); } else{ fprintf(stderr, "ERR: popConnect() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; return(POP3_ERROR); } } pop_debug_print("POP LOGIN %s %s %s\n",mascot->mail.pop_id, mascot->mail.pop_pass, apop_key); ret = popLogin(mascot->mail.pop_id, mascot->mail.pop_pass, apop_key, mascot->mail.ssl_mode); if( ret != 0 ){ fprintf(stderr, "ERR: popLogin() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; popQuit(mascot->mail.ssl_mode); popClose(); if(apop_key) g_free(apop_key); return(POP3_ERROR); } pop_debug_print("POP STAT\n"); ret = popStat(&num, &size, mascot->mail.ssl_mode); if( ret != 0 ){ fprintf(stderr, "ERR: popStat() [ret=%d]\n", ret); mascot->mail.status = POP3_ERROR; popQuit(mascot->mail.ssl_mode); popClose(); if(apop_key) g_free(apop_key); return(POP3_ERROR); } pop_debug_print("mail: %d, size: %ld\n", num, size); if(num == 0){ // ¥á¡¼¥ë̵¤· mascot->mail.status = NO_MAIL; mascot->mail.fetched_count = 0; mascot->mail.spam_count = 0; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); } else{ wo_spam = mascot->mail.count - mascot->mail.spam_count; if(num == mascot->mail.count){ // ¥á¡¼¥ëÁý¸º¤Ê¤· mascot->mail.status = KEEP_NEW_MAIL; mascot->mail.fetched_count = 0; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; if(pop_froms) g_free(pop_froms); // Á°¤Î fs ¤ò¥¯¥ê¥¢ pop_froms = strbuf(NULL); } else if(num > mascot->mail.count){ // ¥á¡¼¥ëÁý¤¨¤¿ mascot->mail.status = NEW_MAIL; fs_get_pop3(num,mascot); // ¤³¤³¤ÇSPAM¤Î¿ô¤¬¹¹¿·¤µ¤ì¤ë } else{ // ¥á¡¼¥ë¿ô¤¬¸º¤Ã¤Æ¤¤¤¿¤é¤¹¤Ù¤Æ¿·µ¬¥á¡¼¥ë¤È¸«¤Ê¤¹ mascot->mail.status = NEW_MAIL; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); mascot->mail.count = 0; mascot->mail.spam_count = 0; fs_get_pop3(num,mascot); } if( num == mascot->mail.spam_count){ mascot->mail.status = NO_MAIL; // SPAM¤À¤±¤Î¤È¤­ } else if((num - mascot->mail.spam_count) == wo_spam){ mascot->mail.status = KEEP_NEW_MAIL; // Áý¤¨¤¿¤Î¤¬SPAM¤À¤±¤À¤Ã¤¿¤È¤­ } } pop_debug_print("data read end\n"); popQuit(mascot->mail.ssl_mode); popClose(); if(apop_key) g_free(apop_key); pop_debug_print("pop quit\n"); mascot->mail.count = num; return(mascot->mail.status); } #endif //USE_WIN32 void pop3_error(typMascot *mascot){ if( mascot->mail.status < 0){ // POP3 status is ERR fprintf(stderr,"POP3 error\n"); mascot->mail.count = 0; mascot->mail.spam_count = 0; mascot->mail.fetched_count = 0; mascot->mail.displayed_count = 0; mascot->mail.status = POP3_ERROR; if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f = NULL; if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s = NULL; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); } } #ifndef USE_WIN32 void pop3_signal(int sig){ pop_debug_print("get child end\n"); pop3_data_read(Mascot); } void pop3_data_read(typMascot *mascot) { FILE *fp; char buf[BUFFSIZE]; int pre_mail_count; if(mascot->mail.pop_child_fl){ pre_mail_count = mascot->mail.count; // store mail count pop_debug_print("Parent: pop3 data read\n"); close(pop3_fd[1]); if( (fp = fdopen( pop3_fd[0], "r" )) == NULL ){ fprintf(stderr,"pipe open error\n"); } else{ fgets( buf,BUFFSIZE-1,fp ); // read mail status mascot->mail.status = atoi(buf); if( mascot->mail.status == POP3_ERROR){ // POP3 status is ERR pop3_error(mascot); } #ifdef USE_SSL else if( mascot->mail.status == POP3_SSL_CERT){ // SSL Certification if(mascot->mail.ssl_sub) g_free(mascot->mail.ssl_sub); fgets( buf,BUFFSIZE-1,fp ); if(strlen(buf)>=2){ mascot->mail.ssl_sub = g_strdup(buf); strip_last_ret(mascot->mail.ssl_sub); } else{ mascot->mail.ssl_sub = NULL; } if(mascot->mail.ssl_iss) g_free(mascot->mail.ssl_iss); fgets( buf,BUFFSIZE-1,fp ); if(strlen(buf)>=2){ mascot->mail.ssl_iss = g_strdup(buf); strip_last_ret(mascot->mail.ssl_iss); } else{ mascot->mail.ssl_iss = NULL; } fgets( buf,BUFFSIZE-1,fp ); // SSL verify_result mascot->mail.ssl_verify = atoi(buf); } #endif else{ fgets( buf,BUFFSIZE-1,fp ); // read total mail count mascot->mail.count = atoi(buf); fgets( buf,BUFFSIZE-1,fp ); // read fetched mail count mascot->mail.fetched_count = atoi(buf); fgets( buf,BUFFSIZE-1,fp ); // read pop status mascot->mail.pop3_fs_status = atoi(buf); fgets( buf,BUFFSIZE-1,fp ); // read SPAM count mascot->mail.spam_count = atoi(buf); fgets( buf,BUFFSIZE-1,fp ); // Last From if(mascot->mail.last_f) g_free(mascot->mail.last_f); if(strlen(buf)>=2){ #ifdef USE_GTK2 if(g_utf8_validate(buf,-1,NULL)){ #endif mascot->mail.last_f = g_strdup(buf); strip_last_ret(mascot->mail.last_f); #ifdef USE_GTK2 } else{ mascot->mail.last_f = g_strdup(_("(Decode Error)")); } #endif } else{ mascot->mail.last_f = NULL; } fgets( buf,BUFFSIZE-1,fp ); // Last Sub if(mascot->mail.last_s) g_free(mascot->mail.last_s); if(strlen(buf)>=2){ #ifdef USE_GTK2 if(g_utf8_validate(buf,-1,NULL)){ #endif mascot->mail.last_s = g_strdup(buf); strip_last_ret(mascot->mail.last_s); #ifdef USE_GTK2 } else{ mascot->mail.last_s = g_strdup(_("(Decode Error)")); } #endif } else{ mascot->mail.last_s = NULL; } if(mascot->mail.count == 0){ if(pop_froms) g_free(pop_froms); // fs data clear pop_froms = strbuf(NULL); mascot->mail.displayed_count = 0; } else { if(mascot->mail.pop3_fs_status == POP3_OK_NORMAL){ if(pre_mail_count > mascot->mail.count){ //¥á¡¼¥ë¸º¤Ã¤¿ // ¥á¡¼¥ë¸º¤Ã¤¿¾ì¹ç¤ÏÁ´Éô¼è¤êľ¤·¤Ê¤Î¤Ç fs clear mascot->mail.displayed_count = mascot->mail.fetched_count; if(pop_froms) g_free(pop_froms); pop_froms = strbuf(NULL); } else { mascot->mail.displayed_count += mascot->mail.fetched_count; } while( fgets( buf,BUFFSIZE-1,fp ) != NULL ){ pop_froms = strbuf( buf ); } } else if(mascot->mail.pop3_fs_status == POP3_OK_FS_OVER){ //¤³¤³¤Ï̵¾ò·ï¤Ç fs clear ¤·¤Æ¤è¤¤ mascot->mail.displayed_count = mascot->mail.fetched_count; if(pop_froms) g_free(pop_froms); // fs data clear pop_froms = strbuf(NULL); sprintf(buf,_(" \n ***** %d mails are skipped *****\n \n"), mascot->mail.count - mascot->mail.displayed_count); pop_froms = strbuf( buf ); while( fgets( buf,BUFFSIZE-1,fp ) != NULL ){ pop_froms = strbuf( buf ); } } } } fclose( fp ); } close(pop3_fd[0]); //gdk_flush(); //display_biff_balloon(mascot); //gdk_flush(); mascot->mail.pop_child_fl=FALSE; mascot->mail.pop_readed=TRUE; pop_debug_print("Parent: status = %d\n",mascot->mail.status); pop_debug_print("Parent: pop3 fs status = %d\n",mascot->mail.pop3_fs_status); pop_debug_print("Parent: count = %d\n",mascot->mail.count); pop_debug_print("Parent: fetched count = %d\n",mascot->mail.fetched_count); pop_debug_print("Parent: disped count = %d\n",mascot->mail.displayed_count); pop_debug_print("Parent: spam count = %d\n",mascot->mail.spam_count); if(mascot->mail.last_f!=NULL) pop_debug_print("Last From: %s\n",mascot->mail.last_f); if(mascot->mail.last_s!=NULL) pop_debug_print("Last Subject: %s\n",mascot->mail.last_s); if(pop_froms!=NULL) pop_debug_print("data2 = %s\n",pop_froms); } } #endif // ¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤«¤é From: Subject: ¤ò¼èÆÀ gchar * fs_get_mbox(typMascot *mascot){ FILE *fp; char buf[BUFFSIZE],bufs[BUFFSIZE5]; gchar *froms=NULL; char *p; gboolean ed_fl=FALSE, spam_flag; fpos_t pos; int i; char *f, *s, *sdel; froms=strbuf(NULL); mascot->mail.spam_count=0; if((fp=fopen(mascot->mail.file,"r"))!= NULL){ do{ if(fgets(buf,BUFFSIZE-1,fp)==NULL) break; if(strncmp(buf,"From ",5)==0){ // £±¤Ä¤Î¥á¡¼¥ë¤Î»Ï¤Þ¤ê f=s=NULL; spam_flag = FALSE; for(;;){ if((p=fgets(buf,BUFFSIZE-1,fp))==NULL ||buf[0]=='\n'||buf[0]=='\0') break; if(g_strncasecmp(buf,"from:",5)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp,&pos); if((p=fgets(buf,BUFFSIZE-1,fp))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; /* tnaka start */ if( strlen(bufs)) { f = g_strdup(bufs); fsetpos(fp,&pos); } /* tnaka end */ break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); /* °ì¹Ô¤¬200byte°Ê¾å */ } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ } else{ f=g_strdup(bufs); fsetpos(fp,&pos); break; } } if(ed_fl) break; } else if(g_strncasecmp(buf,"subject:",8)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp,&pos); if((p=fgets(buf,BUFFSIZE-1,fp))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; /* tnaka start */ if( strlen(bufs)) { s = g_strdup(bufs); fsetpos(fp,&pos); } /* tnaka end */ break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); /* °ì¹Ô¤¬200byte°Ê¾å */ } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ } else{ s=g_strdup(bufs); fsetpos(fp,&pos); break; } } if(ed_fl) break; } else if(strncmp(buf, mascot->mail.spam_mark, strlen(mascot->mail.spam_mark))==0){ spam_flag = TRUE; mascot->mail.spam_count++; } } // // From: Subject: // ¤Î½ç¤Ëɽ¼¨¤µ¤»¤ë // if ( (!spam_flag) || (!mascot->mail.spam_check) ){ if (f) { conv_unmime_header_overwrite(f); froms=strbuf(f); g_free(f); } else{ froms=strbuf("From: (no From: in original)\n"); } if (s) { froms=strbuf(" "); conv_unmime_header_overwrite(s); froms=strbuf(s); g_free(s); } else{ froms=strbuf(" Subject: (no Subject: in original)\n"); } } ed_fl = FALSE; /* tnaka */ } while (p != NULL && buf[0] != '\n' && buf[0] != '\0') p = fgets(buf, BUFFSIZE - 1, fp); } while (1); fclose(fp); } return(froms); } // MH + Procmail ¤«¤é gchar * fs_get_procmail(typMascot *mascot){ FILE *fp,*fp_folder; gchar buf[BUFFSIZE],tmp[10],bufs[BUFFSIZE5]; gchar *folder_file,folder_tmp[BUFFSIZE]; gchar *froms=NULL, *p; gboolean ed_fl=FALSE; fpos_t pos; int i; gchar *f, *s, *sdel; froms=strbuf(NULL); if((fp=fopen(mascot->mail.file,"r"))==NULL){ return; } while(!feof(fp)){ f=s=NULL; if(fgets(buf,BUFFSIZE-1,fp)==NULL) break; if(strncmp(buf," Folder:",9)==0){ sscanf(buf,"%s%s",tmp,folder_tmp); folder_file=g_strconcat(set_mhdir(),G_DIR_SEPARATOR, folder_tmp,NULL); if((fp_folder=fopen(folder_file,"r"))!=NULL){ while(!feof(fp_folder)){ if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0') break; if(g_strncasecmp(buf,"from:",5)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp_folder,&pos); if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); /* °ì¹Ô¤¬200byte°Ê¾å */ } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ } else{ f=g_strdup(bufs); fsetpos(fp_folder,&pos); break; } } if(ed_fl) break; } else if(g_strncasecmp(buf,"subject:",8)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp_folder,&pos); if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); /* °ì¹Ô¤¬200byte°Ê¾å */ } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ } else{ s=g_strdup(bufs); fsetpos(fp_folder,&pos); break; } } if(ed_fl) break; } } fclose(fp_folder); // // From: Subject: // ¤Î½ç¤Ëɽ¼¨¤µ¤»¤ë // if (f) { conv_unmime_header_overwrite(f); froms=strbuf(f); g_free(f); } else{ froms=strbuf("From: (no From: in original)\n"); } if (s) { froms=strbuf(" "); conv_unmime_header_overwrite(s); froms=strbuf(s); g_free(s); } else{ froms=strbuf(" Subject: (no Subject: in original)\n"); } } } } fclose(fp); if(folder_file) g_free(folder_file); return(froms); } // Qmail ¤«¤é gchar * fs_get_qmail(typMascot *mascot){ FILE *fp_folder; gchar buf[BUFFSIZE],tmp[10],bufs[BUFFSIZE5]; gchar folder_file[BUFFSIZE],folder_tmp[BUFFSIZE]; gchar *froms=NULL, *p; gboolean ed_fl=FALSE, spam_flag; fpos_t pos; int i; DIR *dp; struct dirent *entry; gchar *f, *s, *sdel; mascot->mail.spam_count=0; froms=strbuf(NULL); if ((dp=opendir(mascot->mail.file))==NULL){ return; } while((entry=readdir(dp))!=NULL){ f=s=NULL; if(entry->d_name[0]!='.'){ sprintf(folder_file,"%s/%s",mascot->mail.file,entry->d_name); if((fp_folder=fopen(folder_file,"r"))!=NULL){ spam_flag = FALSE; while(!feof(fp_folder)){ if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0') break; if(strncmp(buf, mascot->mail.spam_mark, strlen(mascot->mail.spam_mark))==0){ spam_flag = TRUE; mascot->mail.spam_count++; } } if( (spam_flag) && (mascot->mail.spam_check) ){ fclose(fp_folder); continue; } rewind(fp_folder); while(!feof(fp_folder)){ if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0') break; if(g_strncasecmp(buf,"from:",5)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp_folder,&pos); if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); // °ì¹Ô¤¬200byte°Ê¾å } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; // \t ¤ò¾å½ñ¤­ strcat(bufs,sdel); // Ê£¿ô¹Ô } else{ f=g_strdup(bufs); fsetpos(fp_folder,&pos); break; } } if(ed_fl) break; } else if(g_strncasecmp(buf,"subject:",8)==0) { strcpy(bufs,buf); ///***for(i=0;i<10;i++){ while(1){ fgetpos(fp_folder,&pos); if((p=fgets(buf,BUFFSIZE-1,fp_folder))==NULL ||buf[0]=='\n'||buf[0]=='\0'){ ed_fl=TRUE; break; } if(bufs[strlen(bufs)-1]!='\n'){ strcat(bufs,buf); /* °ì¹Ô¤¬200byte°Ê¾å */ } else if((buf[0]==' ') || (buf[0]=='\t')){ bufs[strlen(bufs)-1]='\0'; sdel = &buf[1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ } else{ s=g_strdup(bufs); fsetpos(fp_folder,&pos); break; } } if(ed_fl) break; } } fclose(fp_folder); // // From: Subject: // ¤Î½ç¤Ëɽ¼¨¤µ¤»¤ë // if (f) { conv_unmime_header_overwrite(f); froms=strbuf(f); g_free(f); } else{ froms=strbuf("From: (no From: in original)\n"); } if (s) { froms=strbuf(" "); conv_unmime_header_overwrite(s); froms=strbuf(s); g_free(s); } else{ froms=strbuf(" Subject: (no Subject: in original)\n"); } } } } closedir(dp); return(froms); } // pop3 server ¤«¤é From: Subject: ¤ò¼èÆÀ void fs_get_pop3(int num, typMascot *mascot){ int funcret; char buffer_header[HEADER_MAX][POP_MAX_LINE], bufs[BUFFSIZE5]; char buffer[POP_MAX_LINE]; int mail_cnt, header, header_line, i; int mail_cnt_start; char *f, *s, *sdel, tmp_fs[256]; int disp=0; gboolean spam_flag; #ifndef USE_WIN32 char *tmp_froms; tmp_froms=strbuf(NULL); #endif pop_debug_print("fs read num = %d mail_count = %d\n", num, mascot->mail.count); if((num - mascot->mail.count) > mascot->mail.pop_max_fs){ //overflow mail_cnt_start = num - mascot->mail.pop_max_fs +1; mascot->mail.fetched_count = mascot->mail.pop_max_fs; mascot->mail.pop3_fs_status = POP3_OK_FS_OVER; } else { // under mail_cnt_start = mascot->mail.count +1; mascot->mail.fetched_count = num - mascot->mail.count; mascot->mail.pop3_fs_status = POP3_OK_NORMAL; } pop_debug_print("fs read num = %d mail_cnt_start = %d\n", num, mail_cnt_start); pop_debug_print("fs mail_fetched = %d\n", mascot->mail.fetched_count); for(mail_cnt = mail_cnt_start; mail_cnt <= num; mail_cnt++){ sprintf(buffer, "TOP %d %d\r\n", mail_cnt, 0); // get header only funcret = popWriteLine(buffer, mascot->mail.ssl_mode); if( funcret != 0 ){ fprintf(stderr,"write err = %d\n",funcret); #ifndef USE_WIN32 mascot->mail.status=POP3_ERROR; #endif return; } for(header=0; header < HEADER_MAX; header++){ funcret = popReadLine(buffer_header[header], POP_MAX_LINE, mascot->mail.ssl_mode); //pop_debug_print("%d %d %s\n",mail_cnt,header,buffer_header[header]); if( funcret != 0 ){ fprintf(stderr,"read err\n"); #ifndef USE_WIN32 mascot->mail.status=POP3_ERROR; #endif return; } if( strcmp(buffer_header[header], ".\r\n") == 0 ) break; buffer_header[header][strlen(buffer_header[header])-2]=' '; // \r delete } header_line = header-1; spam_flag = FALSE; if(mascot->mail.spam_check){ for(header=0; header < header_line; header++){ if(strncmp(buffer_header[header], mascot->mail.spam_mark, strlen(mascot->mail.spam_mark))==0){ spam_flag = TRUE; mascot->mail.spam_count++; pop_debug_print("SPAM detected = %d\n", mascot->mail.spam_count); } } } if( (spam_flag) && (mascot->mail.spam_check) ) continue; f=s=NULL; for(header=0; header < header_line; header++){ if(g_strncasecmp(buffer_header[header],"from:",5)==0) { strcpy(bufs, buffer_header[header]); //bufs=g_strconcat(buffer_header[header],NULL); ///***for(i=1;i<10;i++){ i=1; while(1){ if((i+header) > header_line) break; if((buffer_header[i+header][0]==' ') || (buffer_header[i+header][0]=='\t')){ bufs[strlen(bufs)-2]='\0'; sdel = &buffer_header[i+header][1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ //bufs=g_strconcat(bufs,sdel,NULL); /* Ê£¿ô¹Ô */ } else{ f=g_strdup(bufs); break; } i++; } } else if(g_strncasecmp(buffer_header[header],"subject:",8)==0) { strcpy(bufs, buffer_header[header]); //bufs=g_strconcat(buffer_header[header],NULL); ///***for(i=1;i<10;i++){ i=1; while(1){ if((i+header) > header_line) break; if((buffer_header[i+header][0]==' ') || (buffer_header[i+header][0]=='\t')){ bufs[strlen(bufs)-2]='\0'; sdel = &buffer_header[i+header][1]; /* \t ¤ò¾å½ñ¤­ */ strcat(bufs,sdel); /* Ê£¿ô¹Ô */ //bufs=g_strconcat(bufs,sdel,NULL); /* Ê£¿ô¹Ô */ } else{ s=g_strdup(bufs); break; } i++; } } } if (f) { conv_unmime_header_overwrite(f); #ifdef USE_WIN32 pop_froms=strbuf(f); #else tmp_froms=strbuf(f); #endif if(mascot->mail.last_f) g_free(mascot->mail.last_f); mascot->mail.last_f=g_strdup(f+strlen("From: ")); strip_last_ret(mascot->mail.last_f); g_free(f); } else{ #ifdef USE_WIN32 pop_froms=strbuf("From: (no From: in original)\n"); #else tmp_froms=strbuf("From: (no From: in original)\n"); #endif } if (s) { #ifdef USE_WIN32 pop_froms=strbuf(" "); #else tmp_froms=strbuf(" "); #endif conv_unmime_header_overwrite(s); #ifdef USE_WIN32 pop_froms=strbuf(s); #else tmp_froms=strbuf(s); #endif if(mascot->mail.last_s) g_free(mascot->mail.last_s); mascot->mail.last_s=g_strdup(s+strlen("Subject: ")); strip_last_ret(mascot->mail.last_s); g_free(s); } else{ #ifdef USE_WIN32 pop_froms=strbuf(" Subject: (no Subject: in original)\n"); #else tmp_froms=strbuf(" Subject: (no Subject: in original)\n"); #endif } } #ifndef USE_WIN32 if(pop_froms) g_free(pop_froms); pop_froms=strbuf(NULL); pop_froms=strbuf(tmp_froms); if(tmp_froms) g_free(tmp_froms); #endif pop_debug_print("fs_get_pop3 end\n"); } // char* strbuf(char *p) { static char *start = NULL; static char *next; static int len, len2, l; if (p == NULL) { len = len2 = 4096; start = next = (char *) g_malloc(len + 1); start[0] = '\0'; } else if (start != NULL) { l = strlen(p); while (len - l < 0) { char *p; len2 += 256; len += 256; p = (char *) g_realloc(start, len2 + 1); start = p; next = p + len2 - len; } strcpy(next,p); len -= l; next += l; } return start; } void make_fs_max(GtkWidget *widget, typMascot *mascot){ GtkWidget *label; gchar tmp_fs_max[256]; gchar tmp_fs[8]; if(mascot->mail.displayed_count != mascot->mail.count){ if(mascot->mail.spam_count!=0){ sprintf(tmp_fs_max, _("Displaying the newest %d mails out of %ds. [%d SPAMs are excluded.]"), mascot->mail.displayed_count, mascot->mail.count, mascot->mail.spam_count); } else{ sprintf(tmp_fs_max, _("Displaying the newest %d mails out of %ds."), mascot->mail.displayed_count, mascot->mail.count); } } else{ if(mascot->mail.spam_count!=0){ sprintf(tmp_fs_max,_("You have %d new mails. [%d SPAMs are excluded.]"), mascot->mail.count, mascot->mail.spam_count); } else{ sprintf(tmp_fs_max,_("You have %d new mails."), mascot->mail.count); } } label=gtk_label_new(tmp_fs_max); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0); gtk_table_attach (GTK_TABLE (widget), label, 0, 5, 1, 2, GTK_FILL, GTK_SHRINK , 0, 0); } // ¥á¥¤¥ëÃå¿®¥ê¥¹¥È¤ÎÀ¸À® void create_biff_dialog(typMascot *mascot) { GtkWidget *biff_main; GtkWidget *biff_tbl; GtkWidget *biff_text; GtkWidget *button; GtkWidget *biff_scroll; gchar *tmp_froms=NULL; gchar *tmp; gchar *fp_1, *fp_2; gchar *p; gchar *buf_unmime; gchar *err_msg; #ifdef USE_GTK2 GtkTextBuffer *text_buffer; GtkTextIter start_iter, end_iter; GtkTextMark *end_mark; #endif // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); mascot->flag_menu=TRUE; #ifdef USE_GTK2 biff_main = gtk_window_new(GTK_WINDOW_TOPLEVEL); text_buffer = gtk_text_buffer_new(NULL); #else biff_main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_widget_set_usize (biff_main, mascot->mail.win_width, mascot->mail.win_height); if(mascot->mail.type==MAIL_POP3|MAIL_APOP){ tmp=g_strconcat(_("MaCoPiX : Arrived mail list")," [", mascot->mail.pop_server,"]",NULL); } else{ tmp=g_strdup(_("MaCoPiX : Arrived mail list")); } gtk_window_set_title(GTK_WINDOW(biff_main), tmp); g_free(tmp); gtk_widget_realize(biff_main); my_signal_connect(biff_main,"destroy",close_biff, GTK_WIDGET(biff_main)); gtk_container_set_border_width (GTK_CONTAINER (biff_main), 5); // 6x3¤Î¥Æ¡¼¥Ö¥ë biff_tbl = gtk_table_new (6, 3, FALSE); gtk_container_add (GTK_CONTAINER (biff_main), biff_tbl); #ifdef USE_GTK2 biff_scroll = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(biff_scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); biff_text = gtk_text_view_new_with_buffer (text_buffer); gtk_text_view_set_editable (GTK_TEXT_VIEW (biff_text), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (biff_text), FALSE); gtk_container_add(GTK_CONTAINER(biff_scroll), biff_text); gtk_table_attach_defaults (GTK_TABLE (biff_tbl), biff_scroll, 0, 5, 0, 1); #else biff_text = gtk_text_new (NULL, NULL); gtk_text_set_editable (GTK_TEXT (biff_text), FALSE); gtk_table_attach_defaults (GTK_TABLE(biff_tbl), biff_text, 0, 5, 0, 1); biff_scroll = gtk_vscrollbar_new (GTK_TEXT (biff_text)->vadj); gtk_table_attach (GTK_TABLE (biff_tbl), biff_scroll, 5, 6, 0, 1, GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0); #endif switch(mascot->mail.type){ case MAIL_LOCAL: tmp_froms=fs_get_mbox(mascot); break; case MAIL_POP3: case MAIL_APOP: tmp_froms=g_strdup(pop_froms); make_fs_max(biff_tbl, mascot); break; case MAIL_QMAIL: tmp_froms=fs_get_qmail(mascot); break; case MAIL_PROCMAIL: tmp_froms=fs_get_procmail(mascot); break; } #ifdef USE_GTK2 gtk_text_buffer_create_tag (text_buffer, "underline", "underline", PANGO_UNDERLINE_SINGLE, NULL); gtk_text_buffer_create_tag (text_buffer, "big_gap_after_line", "pixels_below_lines", 5, NULL); gtk_text_buffer_create_tag (text_buffer, "heading", "weight", PANGO_WEIGHT_BOLD, //"size", 15 * PANGO_SCALE, NULL); gtk_text_buffer_get_start_iter(text_buffer, &start_iter); if((strlen(tmp_froms)<5)||(mascot->mail.status == NO_MAIL)){ err_msg=g_strdup(_(" === Failed to get From/Subject list of arrived mails. ===")); g_locale_to_utf8(err_msg,-1,NULL,NULL,NULL); gtk_text_buffer_insert (text_buffer, &start_iter, err_msg,-1); g_free(err_msg); } else{ p=(gchar *)strtok(tmp_froms,"\n"); do{ buf_unmime=g_strdup(p); if(g_strncasecmp(buf_unmime," subject:",9)==0){ gtk_text_buffer_insert_with_tags_by_name (text_buffer, &start_iter, "Subject: ", -1, "heading", "big_gap_after_line", NULL); if(g_utf8_validate(buf_unmime+9,-1,NULL)){ gtk_text_buffer_insert_with_tags_by_name (text_buffer, &start_iter, buf_unmime+9, -1, "underline", "big_gap_after_line", NULL); } else gtk_text_buffer_insert (text_buffer, &start_iter, "(invalid/no subject in original)", -1); } else if(g_strncasecmp(buf_unmime,"from:",5)==0){ gtk_text_buffer_insert_with_tags_by_name (text_buffer, &start_iter, "From: ", -1, "heading", NULL); if(g_utf8_validate(buf_unmime+5,-1,NULL)) gtk_text_buffer_insert (text_buffer, &start_iter, buf_unmime+5, -1); else gtk_text_buffer_insert (text_buffer, &start_iter, "(invalid/no from in original)", -1); } else{ if(g_utf8_validate(buf_unmime,-1,NULL)) gtk_text_buffer_insert (text_buffer, &start_iter, buf_unmime, -1); } gtk_text_buffer_insert (text_buffer, &start_iter, "\n", -1); if(buf_unmime) g_free(buf_unmime); }while((p=(gchar *)strtok(NULL,"\n"))!=NULL); } gtk_text_buffer_get_end_iter(text_buffer, &end_iter); gtk_text_buffer_place_cursor(text_buffer, &end_iter); end_mark= gtk_text_buffer_create_mark(text_buffer, "end", &end_iter, FALSE); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(biff_text), end_mark, 0.0, FALSE, 0.0, 0.0); gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(biff_text), &end_iter,0.0, FALSE,0.0, 0.0); #else if((strlen(tmp_froms)<5)||(mascot->mail.status == NO_MAIL)){ gtk_text_insert (GTK_TEXT (biff_text), NULL, NULL, NULL, _(" === Failed to get From/Subject list of arrived mails. ==="),-1); } else{ p=(gchar *)strtok(tmp_froms,"\n"); do{ gtk_text_insert (GTK_TEXT (biff_text), NULL, NULL, NULL, p, -1); gtk_text_insert (GTK_TEXT (biff_text), NULL, NULL, NULL, "\n", -1); }while((p=(gchar *)strtok(NULL,"\n"))!=NULL); } gtk_adjustment_set_value(GTK_TEXT (biff_text)->vadj, (gfloat)(GTK_TEXT(biff_text)->text_len)); #endif #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Start Mailer"),GTK_STOCK_EXECUTE); #else button=gtk_button_new_with_label(_("Start Mailer")); #endif gtk_table_attach(GTK_TABLE(biff_tbl), button, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",mailer_start, GTK_WIDGET(biff_main)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Close"),GTK_STOCK_CLOSE); #else button=gtk_button_new_with_label(_("Close")); #endif gtk_table_attach(GTK_TABLE(biff_tbl), button, 4, 5, 2, 3, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",close_biff, GTK_WIDGET(biff_main)); gtk_widget_show_all(biff_main); gdk_flush(); } static void close_biff(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); //Mascot->mail.win_width=dialog->allocation.width; //Mascot->mail.win_height=dialog->allocation.height; while (my_main_iteration(FALSE)); gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); Mascot->flag_menu=FALSE; gdk_flush(); } // Biff win¤«¤é¤Î¥á¥¤¥éµ¯Æ° static void mailer_start(GtkWidget *w, GtkWidget *dialog) { while (my_main_iteration(FALSE)); gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); Mascot->flag_menu=FALSE; ext_play(Mascot,Mascot->mail.mailer); gdk_flush(); } gchar* set_mhdir(){ FILE *fp; gchar *c=NULL,buf[256],*mhd=NULL, *tmp; c=g_strconcat(g_get_home_dir(),PROCMAILRC,NULL); if((fp=fopen(c,"r"))!=NULL){ while(!feof(fp)){ if(fgets(buf,256-1,fp)==NULL) break; if(strncmp(buf,"MAILDIR=",8)==0){ tmp=buf+8; if(strncmp(tmp,"$HOME",5)==0){ mhd=g_strconcat(g_get_home_dir(),tmp+5,NULL); } else{ mhd=tmp; } break; } } } if(mhd==NULL){ mhd=g_strconcat(g_get_home_dir(),MH_MAIL_DIR,NULL); } if(mhd[strlen(mhd)-1]=='\n') mhd[strlen(mhd)-1]='\0'; if(c) g_free(c); return mhd; } void mail_arg_init(){ pop_froms=NULL; former_newest=0; } void strip_last_ret(gchar *p){ if(p[strlen(p)-1]=='\n') p[strlen(p)-1]='\0'; } #endif // USE_BIFF macopix-1.7.4/src/quoted-printable.c0000644000076400007640000001322110622156126014326 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // quoted-printable.c // CodeConversion and MIME decoding // originatedd from Sylpheed and Sylpheed-Gtk2 // *** See below copyright. *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2003 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "main.h" #ifdef USE_BIFF #include #include static gboolean get_hex_value(guchar *out, gchar c1, gchar c2); static void get_hex_str(gchar *out, guchar ch); #define MAX_LINELEN 76 #define IS_LBREAK(p) \ (*(p) == '\0' || *(p) == '\n' || (*(p) == '\r' && *((p) + 1) == '\n')) #define SOFT_LBREAK_IF_REQUIRED(n) \ if (len + (n) > MAX_LINELEN || \ (len + (n) == MAX_LINELEN && (!IS_LBREAK(inp + 1)))) { \ *outp++ = '='; \ *outp++ = '\n'; \ len = 0; \ } void qp_encode_line(gchar *out, const guchar *in) { const guchar *inp = in; gchar *outp = out; guchar ch; gint len = 0; while (*inp != '\0') { ch = *inp; if (IS_LBREAK(inp)) { *outp++ = '\n'; len = 0; if (*inp == '\r') inp++; inp++; } else if (ch == '\t' || ch == ' ') { if (IS_LBREAK(inp + 1)) { SOFT_LBREAK_IF_REQUIRED(3); *outp++ = '='; get_hex_str(outp, ch); outp += 2; len += 3; inp++; } else { SOFT_LBREAK_IF_REQUIRED(1); *outp++ = *inp++; len++; } } else if ((ch >= 33 && ch <= 60) || (ch >= 62 && ch <= 126)) { SOFT_LBREAK_IF_REQUIRED(1); *outp++ = *inp++; len++; } else { SOFT_LBREAK_IF_REQUIRED(3); *outp++ = '='; get_hex_str(outp, ch); outp += 2; len += 3; inp++; } } if (len > 0) *outp++ = '\n'; *outp = '\0'; } gint qp_decode_line(gchar *str) { gchar *inp = str, *outp = str; while (*inp != '\0') { if (*inp == '=') { if (inp[1] && inp[2] && get_hex_value(outp, inp[1], inp[2]) == TRUE) { inp += 3; } else if (inp[1] == '\0' || isspace((guchar)inp[1])) { /* soft line break */ break; } else { /* broken QP string */ *outp = *inp++; } } else { *outp = *inp++; } outp++; } *outp = '\0'; return outp - str; } gint qp_decode_q_encoding(guchar *out, const gchar *in, gint inlen) { const gchar *inp = in; guchar *outp = out; if (inlen < 0) inlen = G_MAXINT; while (inp - in < inlen && *inp != '\0') { if (*inp == '=' && inp + 3 - in <= inlen) { if (get_hex_value(outp, inp[1], inp[2]) == TRUE) { inp += 3; } else { *outp = *inp++; } } else if (*inp == '_') { *outp = ' '; inp++; } else { *outp = *inp++; } outp++; } *outp = '\0'; return outp - out; } gint qp_get_q_encoding_len(const guchar *str) { const guchar *inp = str; gint len = 0; while (*inp != '\0') { if (*inp == 0x20) len++; else if (*inp == '=' || *inp == '?' || *inp == '_' || *inp < 32 || *inp > 127 || isspace(*inp)) len += 3; else len++; inp++; } return len; } void qp_q_encode(gchar *out, const guchar *in) { const guchar *inp = in; gchar *outp = out; while (*inp != '\0') { if (*inp == 0x20) *outp++ = '_'; else if (*inp == '=' || *inp == '?' || *inp == '_' || *inp < 32 || *inp > 127 || isspace(*inp)) { *outp++ = '='; get_hex_str(outp, *inp); outp += 2; } else *outp++ = *inp; inp++; } *outp = '\0'; } #define HEX_TO_INT(val, hex) \ { \ gchar c = hex; \ \ if ('0' <= c && c <= '9') { \ val = c - '0'; \ } else if ('a' <= c && c <= 'f') { \ val = c - 'a' + 10; \ } else if ('A' <= c && c <= 'F') { \ val = c - 'A' + 10; \ } else { \ val = -1; \ } \ } static gboolean get_hex_value(guchar *out, gchar c1, gchar c2) { gint hi, lo; HEX_TO_INT(hi, c1); HEX_TO_INT(lo, c2); if (hi == -1 || lo == -1) return FALSE; *out = (hi << 4) + lo; return TRUE; } #define INT_TO_HEX(hex, val) \ { \ if ((val) < 10) \ hex = '0' + (val); \ else \ hex = 'A' + (val) - 10; \ } static void get_hex_str(gchar *out, guchar ch) { gchar hex; INT_TO_HEX(hex, ch >> 4); *out++ = hex; INT_TO_HEX(hex, ch & 0x0f); *out++ = hex; } #endif macopix-1.7.4/src/main.c0000644000076400007640000044203311016176575012012 00000000000000/// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // A unified desktop mascot program // for UNIX / X Window System with Gdk Environment // // main.c // The Main code for MaCoPiX // // Gtk+ > 1.2.6 (or Gtk+ > 2.2.0) // Gdk-pixbuf > 0.7.0(?) (or Gtk+ > 2.2.0) // GNU GetText > 0.10.0 are necessary. // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_SOCKMSG #include "sockmsg.h" #endif // USE_SOCKMSG #include #ifdef USE_WIN32 #include #define usleep(x) g_usleep(x) #ifdef USE_BIFF #include #endif #else #include #endif #include #include #include #include "macopix_icon.h" #ifdef USE_SSL #include "ssl.h" #endif // *** GLOBAL ARGUMENT *** typMascot *Mascot; GtkWidget *win_main, *clock_main, *balloon_main, *conf_main; #ifdef USE_WIN32 GtkWidget *win_sdw; #endif #ifdef USE_BIFF GtkWidget *biff_pix; #endif #ifdef USE_WIN32 GtkWidget *clock_fg, *balloon_fg; #endif GtkWidget *PopupMenu; GdkDrawable *pixmap_main[2]={NULL,NULL}, *pixmap_clk[2]={NULL,NULL}, *pixmap_bal[2]={NULL,NULL}; #ifdef USE_WIN32 GdkDrawable *pixmap_sdw[2]={NULL,NULL}; #endif gboolean FlagInstalledMenu; // ¥¹¥×¥é¥¤¥È½é´ü²½ static typSprite sprite_void[MAX_PIXMAP+1]; //Callbacks extern void MoveMascot(); extern void drag_begin(); extern void drag_end(); extern gint dw_configure_main(); extern gint dw_expose_main(); #ifdef USE_WIN32 extern gint dw_configure_sdw(); extern gint dw_expose_sdw(); #endif extern void window_motion(); extern void focus_in(); extern void focus_out(); extern gint time_update(); extern void NkrChangeMascot(); extern void callbacks_arg_init(); extern void clock_update(); extern void screen_changed(); //GUI extern GtkWidget * make_popup_menu(); #ifdef USE_WIN32 extern void make_clock_fg(); #endif extern void create_cons_dialog(); extern void create_smenu_dialog(); extern void gui_arg_init(); extern void popup_message(); extern void popup_progress(); extern void destroy_progress(); extern void my_signal_connect(); extern gboolean my_main_iteration(); //Pixmap extern void LoadPixmaps(); extern void LoadBiffPixmap(); extern void InitComposite(); //BALLOON extern void make_balloon(); #ifdef USE_WIN32 extern void make_balloon_fg(); #endif extern void balloon_arg_init(); //Clock extern void make_clock(); extern void DrawPanelClock0(); // UTILS extern void copy_file(); #ifdef USE_COMMON extern void check_common_dir(); #endif #ifdef USE_WIN32 extern gchar* get_win_home(); #endif extern void unlink_all(); extern gchar* my_dirname(); extern gchar* my_basename(); // Mail #ifdef USE_BIFF extern gint SetMailChecker(); extern make_biff_pix(); extern void mail_arg_init(); #endif // SockMsg #ifdef USE_SOCKMSG extern SockMsgInitResult sockmsg_init2(); extern SockMsgInitResult sockmsg_init(); extern void sockmsg_send_msg(); extern void duet_sv_done(); extern void sockmsg_set_mascot(); extern void sockmsg_done(); #endif // TrayIcon #ifdef __GTK_STATUS_ICON_H__ extern void trayicon_create(); extern void trayicon_show(); extern void trayicon_hyde(); extern void trayicon_destroy(); extern void trayicon_set_tooltip(); #endif // SSL #ifdef USE_SSL extern void ssl_init(void); #endif // DnD extern void signal_drag_data_received(); // Prototype of functions in this file gchar* to_utf8(); gchar* to_locale(); gchar* all_random_menu_mascot_file(); void ReadMenu(); void SaveMenu(); void ScanMenu(); gboolean ScanMenu2(); void InitDefCol(); void ReadRC(); void SaveRC(); void SaveDefMenu(); void ReadMascot(); void MascotInstall(); gchar* FullPathMascotFile(); gboolean FullPathMascotCehck(); gchar* FullPathPixmapFile(); gchar* FullPathSoundFile(); gchar* FullPathRcFile(); gchar* ReadMascotName(); void SaveMascot(); void SetFontForReleaseData(); void SetColorForReleaseData(); void InitMascot(); void InitMascot0(); void get_option(); void get_rc_option(); void usage(); #ifdef USE_COMMON void print_common_dir(); #endif #ifdef USE_GTK2 gchar *x_locale_to_utf8(gchar *srcstr, gssize len, gsize *r, gsize *w, GError **error, gchar *locale) { gchar *res; GIConv converter; // Default Code described in mascot file if(locale){ converter = g_iconv_open ("UTF-8//IGNORE", locale); res = g_convert_with_iconv (srcstr, len, converter, r, w, error); g_iconv_close(converter); if (res){ return res; } } // 2nd current locale res = g_locale_to_utf8 (srcstr, len, r, w, error); if (res) { locale=NULL; return res; } // 3rd MaCoPiX default (EUC-JP) converter = g_iconv_open ("UTF-8//IGNORE", DEF_CODE1); res = g_convert_with_iconv (srcstr, len, converter, r, w, error); g_iconv_close(converter); if (res) { locale=g_strdup(DEF_CODE1); return (res); } else{ return (srcstr); } } #endif #ifdef USE_GTK2 gchar *x_locale_from_utf8(gchar *srcstr, gssize len, gsize *r, gsize *w, GError **error, gchar *locale) { gchar *res; gchar *tmp_locale; GIConv converter; // Default Code described in mascot file if(locale){ tmp_locale=g_strconcat(locale,"//IGNORE",NULL); converter = g_iconv_open (tmp_locale,"UTF-8"); g_free(tmp_locale); res = g_convert_with_iconv (srcstr, len, converter, r, w, error); g_iconv_close(converter); if (res) return res; } // 2nd current locale res = g_locale_to_utf8 (srcstr, len, r, w, error); if (res) return res; // 3rd MaCoPiX default (EUC-JP) converter = g_iconv_open (DEF_CODE1 "//IGNORE","UTF-8"); res = g_convert_with_iconv (srcstr, len, converter, r, w, error); g_iconv_close(converter); if (res) return res; else return (srcstr); } #endif gchar* to_utf8(gchar *input){ #ifdef USE_GTK2 return(x_locale_to_utf8(input,-1,NULL,NULL,NULL,NULL)); #else return(g_strdup(input)); #endif } gchar* to_locale(gchar *input){ #ifdef USE_GTK2 #ifdef USE_WIN32 //return(x_locale_from_utf8(input,-1,NULL,NULL,NULL,"SJIS")); return(g_win32_locale_filename_from_utf8(input)); #else return(x_locale_from_utf8(input,-1,NULL,NULL,NULL,NULL)); #endif #else return(input); #endif } gchar* all_random_menu_mascot_file(typMascot *mascot) { int i_cat, i_tgt, i_all=0, dest_total, dest_cat=0, dest_tgt=0; dest_total=RANDOM(mascot->menu_total); for(i_cat=0;i_catmenu_cat_max;i_cat++){ for(i_tgt=0;i_tgtmenu_tgt_max[i_cat];i_tgt++){ if(i_all==dest_total){ dest_cat=i_cat; dest_tgt=i_tgt; } i_all++; } } return(mascot->menu_tgt[dest_cat][dest_tgt]); } // ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß void ReadMenu(typMascot *mascot, gint offset_i_cat, gchar *merge_file) { ConfigFile *cfgfile; gchar *filename=NULL, *filename2=NULL, *filename0=NULL; gchar tmp0[10], f_tmp0[10]; int i_cat, i_tgt; gboolean flag_end=FALSE, install_flag=FALSE; gint m_place=0; struct stat statbuf; time_t user_mtime=0, common_mtime=0; gchar *dummy; gint menu_total_for_install; #ifdef USE_GTK2 gchar progress_txt[128]; #endif mascot->flag_consow=FALSE; if(!mascot->menu_file){ // ¥á¥Ë¥å¡¼¤Ê¤· mascot->menu_total=0; mascot->menu_cat_max=0; return; } /// ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 1. Current¤«¤é if(!merge_file){ filename = g_strdup(mascot->menu_file); } else{ filename = g_strdup(merge_file); } if(access(filename,F_OK)==0){ m_place=1; } if(mascot->flag_ow){ #ifdef USE_COMMON // 4. Common Directory if(m_place==0){ filename = g_strconcat(COMMON_DIR,my_basename(mascot->menu_file), NULL); if(access(filename,F_OK)==0){ m_place=4; } } #endif // 3. USER Directory if(m_place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #endif if(access(filename,F_OK)==0){ m_place=3; } } } else{ // 3. USER Directory if(m_place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #endif if(access(filename,F_OK)==0){ m_place=3; } } #ifdef USE_COMMON // 4. Common Directory if(m_place==0){ filename = g_strconcat(COMMON_DIR,my_basename(mascot->menu_file), NULL); if(access(filename,F_OK)==0){ m_place=4; } } #endif } // ¤ß¤Ä¤«¤é¤Ê¤¤ if(m_place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Menu File."), " ", my_basename(to_utf8(mascot->menu_file)), NULL); #else g_print(_("Cannot Find Menu File %s\n"),my_basename(mascot->menu_file)); #endif exit(1); } // ¥æ¡¼¥¶¡¼ ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤½¤Î¥Õ¥¡¥¤¥ë¤¬¤Ê¤«¤Ã¤¿¤é¥³¥Ô¡¼¤¹¤ë if((m_place==1)||(m_place==4)){ if(mascot->flag_install){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); filename2 = g_strconcat(COMMON_DIR, my_basename(mascot->menu_file), NULL); } else{ #endif #ifdef USE_WIN32 filename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #else filename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #endif #ifdef USE_COMMON } #endif if((access(filename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(filename,filename2)!=0){ g_print(_("Installing %s -> %s\n"),filename,filename2); copy_file(filename,filename2); install_flag=TRUE; FlagInstalledMenu=TRUE; } } } } #ifdef USE_COMMON // Consistency Check if(mascot->cons_check_mode!=CONS_IGNORE){ if(m_place!=4){ filename0 = g_strconcat(COMMON_DIR,my_basename(mascot->menu_file), NULL); if(access(filename0,F_OK)==0){ stat(filename0, &statbuf); common_mtime=statbuf.st_mtime; } #ifdef USE_WIN32 filename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #else filename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->menu_file), NULL); #endif if(access(filename2,F_OK)==0){ stat(filename2, &statbuf); user_mtime=statbuf.st_mtime; } stat(filename, &statbuf); if((user_mtime==statbuf.st_mtime)&&(user_mtimecons_check_mode==CONS_MANUAL){ create_cons_dialog(mascot,my_basename(filename), user_mtime,common_mtime,TRUE); } else if(mascot->cons_check_mode==CONS_AUTOOW){ mascot->flag_consow=TRUE; } if(mascot->flag_consow){ g_print(_("Installing %s -> %s\n"),filename0,filename2); // Copy Common -> User copy_file(filename0,filename2); install_flag=TRUE; FlagInstalledMenu=TRUE; } } } } #endif if(offset_i_cat==0){ // Ä̾ïÆÉ¤ß¹þ¤ß mascot->menu_file=g_strdup(filename); mascot->menu_total=0; mascot->menu_cat_max=0;// ¤³¤ì¤Ï­¤·»»¤Ç¤Ï¤Ê¤¤¤Î¤Çmerge¤Ç¤â¥¯¥ê¥¢¤Ç¤­¤ë¡£ } cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { #ifdef USE_GTK2 if(!xmms_cfg_read_string(cfgfile, "General", "code",&mascot->menu_code)) mascot->menu_code = NULL; #endif if(mascot->flag_install){ popup_progress(mascot,"MaCoPiX: Installing Mascots..."); #ifdef USE_GTK2 gtk_progress_bar_set_text(GTK_PROGRESS_BAR(mascot->pdata->pbar), _("Preparing for Installation")); #else gtk_progress_set_format_string(GTK_PROGRESS(mascot->pdata->pbar), _("Preparing for Installation")); #endif // PRESCAN for INSTALLING menu_total_for_install=0; for(i_cat=offset_i_cat;i_catmenu_cat[i_cat])) mascot->menu_cat[i_cat]=NULL; #ifdef USE_GTK2 if(mascot->menu_cat[i_cat]){ mascot->menu_cat[i_cat]= x_locale_to_utf8(mascot->menu_cat[i_cat],-1,NULL,NULL,NULL,mascot->menu_code); if(!mascot->menu_cat[i_cat]) mascot->menu_cat[i_cat]=g_strdup(_("(Invalid Character Code)")); } #endif for(i_tgt=0;i_tgtmenu_tgt[i_cat][i_tgt])){ if(i_tgt==0){ if(i_cat==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _(" Cannot read the Menu File correctly!!"), NULL); #else g_print(_(" Cannot read the Menu File correctly!!\n")); #endif exit(1); } flag_end=TRUE; mascot->menu_cat_max=i_cat; break; } else{ mascot->menu_tgt_max[i_cat]=i_tgt; break; } } else{ if(FlagInstalledMenu){ MascotInstall(mascot,mascot->menu_tgt[i_cat][i_tgt]); } mascot->menu_tgt_name[i_cat][i_tgt] =ReadMascotName(mascot, mascot->menu_tgt[i_cat][i_tgt]); if(mascot->flag_install){ #ifdef USE_GTK2 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(mascot->pdata->pbar), (gdouble)((i_tgt+1)/(gfloat)menu_total_for_install)); #else gtk_progress_set_percentage(GTK_PROGRESS(mascot->pdata->pbar), (gfloat)((i_tgt+1)/(gfloat)menu_total_for_install)); #endif #ifdef USE_GTK2 g_sprintf(progress_txt, _("Installing mascots [%2d/%2d]"), i_tgt+1,menu_total_for_install); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(mascot->pdata->pbar), progress_txt); #else gtk_progress_set_format_string(GTK_PROGRESS(mascot->pdata->pbar), _("Installing mascots [%p%%]")); #endif while (my_main_iteration(FALSE)); gdk_flush(); usleep(INTERVAL*1e3); } mascot->menu_total++; } } if(flag_end) break; } xmms_cfg_free(cfgfile); if(mascot->flag_install){ #ifdef USE_GTK2 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(mascot->pdata->pbar),1.0); #else gtk_progress_set_percentage(GTK_PROGRESS(mascot->pdata->pbar),1.0); #endif destroy_progress(mascot); } } if(install_flag) mascot->menu_file=g_strdup(filename2); g_free(filename); g_free(filename0); g_free(filename2); mascot->flag_consow=FALSE; if(mascot->installed_menu_dir){ unlink_all(mascot->installed_menu_dir); mascot->installed_menu_dir=NULL; } FlagInstalledMenu=FALSE; /*for(i_cat=0;i_catmenu_cat_max;i_cat++){ g_print(" Category : %s \n", mascot->menu_cat[i_cat]); for(i_tgt=0;i_tgtmenu_tgt_max[i_cat];i_tgt++){ g_print(" File : %s \n", mascot->menu_tgt[i_cat][i_tgt]); } }*/ } // ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤Î¸¡º÷ void ScanMenu(typScanMenu *smenu, gboolean flag_print) { DIR *dirp; struct dirent *entry; struct stat statbuf; gchar *dirname=NULL, *cwdname=NULL; gchar *cp, *extp; gint i_menu=0; if(flag_print){ g_print(_(" ================== Installed Menus ================== \n")); } cwdname=g_malloc0(sizeof(gchar)*1024); getcwd(cwdname,1024); extp=g_strdup(MENU_EXTENSION); extp++; smenu->max_menu=0; /// ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ #ifdef USE_COMMON // Common Directory dirname = g_strdup(COMMON_DIR); if((dirp = opendir(dirname)) == NULL){ if(flag_print){ g_print(_(" !!! Common Directory - %s - does not exist.\n"), dirname); } } else{ if(flag_print){ g_print(_(" [Common Directory]\n")); } chdir(dirname); while((entry = readdir(dirp))!=NULL){ stat(entry->d_name, &statbuf); if(S_ISREG(statbuf.st_mode)){ cp=entry->d_name; cp+=strlen(entry->d_name)-strlen(MENU_EXTENSION)+1; if(!strcmp(extp,cp)){ // ³ÈÄ¥»Ò¤¬ .menu¤À¤Ã¤¿¤é smenu->file[i_menu]=g_strdup(entry->d_name); if(ScanMenu2(smenu,i_menu)){ if(flag_print){ if(smenu->flag_combine[i_menu]){ g_print(_(" %20s * %2d categories -- Combined Menu --\n"), smenu->file[i_menu], smenu->num[i_menu]); } else{ g_print(_(" %20s : %2d mascots [%s]\n"), smenu->file[i_menu], smenu->num[i_menu], smenu->cat[i_menu]); } } smenu->dir[i_menu]=SMENU_DIR_COMMON; i_menu++; } } } } } if(flag_print){ g_print("\n"); } #endif // USER Directory #ifdef USE_WIN32 dirname = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else dirname = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif if((dirp = opendir(dirname)) == NULL){ if(flag_print){ g_print(_(" !!! User Directory - %s - does not exist.\n"), dirname); } } else{ if(flag_print){ g_print(_(" [User Directory]\n")); } chdir(dirname); while((entry = readdir(dirp))!=NULL){ stat(entry->d_name, &statbuf); if(S_ISREG(statbuf.st_mode)){ cp=entry->d_name; cp+=strlen(entry->d_name)-strlen(MENU_EXTENSION)+1; if(!strcmp(extp,cp)){ // ³ÈÄ¥»Ò¤¬ .menu¤À¤Ã¤¿¤é smenu->file[i_menu]=g_strdup(entry->d_name); if(ScanMenu2(smenu,i_menu,entry->d_name)){ if(flag_print){ if(smenu->flag_combine[i_menu]){ g_print(_(" %20s * %2d categories -- Combined Menu --\n"), smenu->file[i_menu], smenu->num[i_menu]); } else{ g_print(_(" %20s : %2d mascots [%s]\n"), smenu->file[i_menu], smenu->num[i_menu], smenu->cat[i_menu]); } } smenu->dir[i_menu]=SMENU_DIR_USER; i_menu++; } } } } } smenu->max_menu=i_menu; chdir(cwdname); g_free(dirname); g_free(cwdname); } gboolean ScanMenu2(typScanMenu *smenu,gint i_menu) { ConfigFile *cfgfile; int i_cat, i_tgt; gchar tmp0[10], f_tmp0[10]; gchar *dummy=NULL; gboolean flag_end=FALSE; gchar *menu_code; smenu->flag_combine[i_menu]=FALSE; smenu->num[i_menu]=0; cfgfile = xmms_cfg_open_file(smenu->file[i_menu]); if (cfgfile) { #ifdef USE_GTK2 if(!xmms_cfg_read_string(cfgfile, "General", "code",&menu_code)) menu_code = NULL; #endif for(i_cat=0;i_catcat[i_menu]=g_strdup(dummy); } } for(i_tgt=0;i_tgtnum[i_menu]=i_cat; smenu->flag_combine[i_menu]=TRUE; flag_end=TRUE; break; } } else{ smenu->num[i_menu]=i_tgt; break; } } } if(flag_end) break; } xmms_cfg_free(cfgfile); g_free(dummy); } return(TRUE); } // ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤Î½ñ¤­¹þ¤ß void SaveMenu(typMascot *mascot) { ConfigFile *cfgfile; gchar *filename; gchar tmp0[10], f_tmp0[10]; int i_cat, i_tgt; #ifdef USE_GTK2 gchar *tmp_conv=NULL; #endif filename = g_strdup(mascot->menu_file); cfgfile = xmms_cfg_open_file(filename); //if (!cfgfile) cfgfile = xmms_cfg_new(); cfgfile = xmms_cfg_new(); #ifdef USE_GTK2 if(mascot->menu_code) xmms_cfg_write_string(cfgfile, "General", "code", mascot->menu_code); #endif for(i_cat=0;i_catmenu_cat_max;i_cat++){ sprintf(f_tmp0,"Menu%02d",i_cat); #ifdef USE_GTK2 if(mascot->menu_cat[i_cat]){ tmp_conv= x_locale_from_utf8(mascot->menu_cat[i_cat],-1,NULL,NULL,NULL,mascot->menu_code); if(!tmp_conv) tmp_conv=g_strdup(_("(Invalid Character Code)")); } xmms_cfg_write_string(cfgfile, f_tmp0, "Name",tmp_conv); #else xmms_cfg_write_string(cfgfile, f_tmp0, "Name",mascot->menu_cat[i_cat]); #endif for(i_tgt=0;i_tgtmenu_tgt_max[i_cat];i_tgt++){ sprintf(tmp0,"file%02d",i_tgt); xmms_cfg_write_string(cfgfile, f_tmp0, tmp0, mascot->menu_tgt[i_cat][i_tgt]); } } xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); g_free(filename); #ifdef USE_GTK2 g_free(tmp_conv); #endif } void InitDefCol(typMascot* mascot){ // Default Color for GUI GdkColor init_colclk = {0, COLOR_CLK_R, COLOR_CLK_G, COLOR_CLK_B}; GdkColor init_colclksd = {0, COLOR_CLKSD_R, COLOR_CLKSD_G, COLOR_CLKSD_B}; GdkColor init_colclkbg = {0, COLOR_CLKBG_R, COLOR_CLKBG_G, COLOR_CLKBG_B}; GdkColor init_colclkbd = {0, COLOR_CLKBD_R, COLOR_CLKBD_G, COLOR_CLKBD_B}; GdkColor init_colbal = {0, COLOR_BAL_R, COLOR_BAL_G, COLOR_BAL_B}; GdkColor init_colbalbg = {0, COLOR_BALBG_R, COLOR_BALBG_G, COLOR_BALBG_B}; GdkColor init_colbalbd = {0, COLOR_BALBD_R, COLOR_BALBD_G, COLOR_BALBD_B}; mascot->def_colclk=g_malloc0(sizeof(GdkColor)); mascot->def_colclksd=g_malloc0(sizeof(GdkColor)); mascot->def_colclkbg=g_malloc0(sizeof(GdkColor)); mascot->def_colclkbd=g_malloc0(sizeof(GdkColor)); mascot->def_colbal=g_malloc0(sizeof(GdkColor)); mascot->def_colbalbg=g_malloc0(sizeof(GdkColor)); mascot->def_colbalbd=g_malloc0(sizeof(GdkColor)); mascot->def_colclk=gdk_color_copy(&init_colclk); mascot->def_colclksd=gdk_color_copy(&init_colclksd); mascot->def_colclkbg=gdk_color_copy(&init_colclkbg); mascot->def_colclkbd=gdk_color_copy(&init_colclkbd); mascot->def_colbal=gdk_color_copy(&init_colbal); mascot->def_colbalbg=gdk_color_copy(&init_colbalbg); mascot->def_colbalbd=gdk_color_copy(&init_colbalbd); #ifdef USE_CAIRO mascot->def_alpclk =CAIRO_DEF_ALPHA_OTHER; mascot->def_alpclkbg=CAIRO_DEF_ALPHA_CLK; mascot->def_alpclkbd=CAIRO_DEF_ALPHA_OTHER; mascot->def_alpclksd=CAIRO_DEF_ALPHA_SDW; mascot->def_alpbal =CAIRO_DEF_ALPHA_OTHER; mascot->def_alpbalbg=CAIRO_DEF_ALPHA_BAL; mascot->def_alpbalbd=CAIRO_DEF_ALPHA_OTHER; #endif } // Á´ÂÎÀßÄê¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß // ¤¢¤¯¤Þ¤Ç¤â¥Ç¥Õ¥©¥ë¥È¤Ê¤Î¤Çget_option¤è¤ê¤âÁ°¤Ë¼Â¹Ô¤¹¤ë // µ¯Æ°»þ¤Ë·èÄê ¥Þ¥¹¥³¥Ã¥È¤òÊѹ¹¤·¤Æ¤âÊݸ¤µ¤ì¤ë¥Ñ¥é¥á¡¼¥¿ void ReadRC(typMascot *mascot, gboolean def_flag) { ConfigFile *cfgfile; gchar *filename; gchar *field_tmp=NULL; gint col_tmp; // USER_DIR¤¬¤Ê¤¤¤È¤­¤ÏºîÀ®¤¹¤ë : ¤ª¤½¤é¤¯½é²óµ¯Æ°»þ¤Î¤ß #ifdef USE_WIN32 filename = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #else filename = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif if (access(filename, F_OK) != 0) { g_print(_("Creating User-Dir %s .\n"), filename); #ifdef USE_WIN32 mkdir(filename); #else mkdir(filename,(S_IRWXU|S_IRGRP|S_IROTH)); #endif } #ifdef USE_WIN32 filename = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, PIXDIR, NULL); #else filename = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, PIXDIR, NULL); #endif if (access(filename, F_OK) != 0) { g_print(_("Creating User-PixmapDir %s .\n"), filename); #ifdef USE_WIN32 mkdir(filename); #else mkdir(filename,(S_IRWXU|S_IRGRP|S_IROTH|S_IXGRP|S_IXOTH)); #endif } #ifdef USE_WIN32 filename = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, SOUNDDIR, NULL); #else filename = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, SOUNDDIR, NULL); #endif if (access(filename, F_OK) != 0) { g_print(_("Creating User-SoundDir %s .\n"), filename); #ifdef USE_WIN32 mkdir(filename); #else mkdir(filename,(S_IRWXU|S_IRGRP|S_IROTH|S_IXGRP|S_IXOTH)); #endif } if(!mascot->rcfile){ #ifdef USE_WIN32 mascot->rcfile = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S, USER_DIR,USER_RCFILE, NULL); #else mascot->rcfile = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S, USER_DIR,USER_RCFILE, NULL); #endif } else{ mascot->rcfile = FullPathRcFile(mascot->rcfile); } filename = g_strdup(mascot->rcfile); cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { if(def_flag) field_tmp=g_strdup("Default-General"); else field_tmp=g_strdup("General"); if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "auto_install", &mascot->flag_install)) mascot->flag_install=FALSE; #ifdef USE_CAIRO if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "force_composite", &mascot->force_composite)) mascot->force_composite=FALSE; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "cairo_image", &mascot->flag_img_cairo)) #ifdef USE_WIN32 mascot->flag_img_cairo=FALSE; #else mascot->flag_img_cairo=TRUE; #endif if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "cairo_balloon", &mascot->flag_bal_cairo)) mascot->flag_bal_cairo=TRUE; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "cairo_clock", &mascot->flag_clk_cairo)) mascot->flag_clk_cairo=TRUE; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "magnify", &mascot->magnify)) mascot->magnify=100; if(!xmms_cfg_read_int(cfgfile, field_tmp, "ip_style", &mascot->ip_style)) mascot->ip_style=MAG_IP_BILINEAR; if(!xmms_cfg_read_string(cfgfile, field_tmp, "font_clock", &mascot->deffontname_clk)) mascot->deffontname_clk=g_strdup(FONT_CLK); if(!xmms_cfg_read_string(cfgfile, field_tmp, "font_balloon", &mascot->deffontname_bal)) mascot->deffontname_bal=g_strdup(FONT_BAL); if(!xmms_cfg_read_string(cfgfile, field_tmp, "menu", &mascot->menu_file)) mascot->menu_file=NULL; #ifndef USE_WIN32 if(!xmms_cfg_read_string(cfgfile, field_tmp, "sound_command", &mascot->sound_command)) mascot->sound_command=NULL; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "cons_check_mode", &mascot->cons_check_mode)) mascot->cons_check_mode=CONS_MANUAL; #ifdef USE_GTAR if(!xmms_cfg_read_string(cfgfile, field_tmp, "tar_command", &mascot->tar_command)) mascot->tar_command=g_strdup(MENU_EXTRACT_GTAR_COMMAND); #endif #ifdef __GTK_STATUS_ICON_H__ if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "tray_icon_flag", &mascot->tray_icon_flag)) mascot->tray_icon_flag=TRUE; #endif // Color for Clock if(def_flag) field_tmp=g_strdup("Default-ClockColor"); else field_tmp=g_strdup("ClockColor"); if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_r", &col_tmp)) col_tmp=COLOR_CLK_R; mascot->def_colclk->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_g", &col_tmp)) col_tmp=COLOR_CLK_G; mascot->def_colclk->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_b", &col_tmp)) col_tmp=COLOR_CLK_B; mascot->def_colclk->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_OTHER; mascot->def_alpclk=col_tmp; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "shadow_r", &col_tmp)) col_tmp=COLOR_CLKSD_R; mascot->def_colclksd->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "shadow_g", &col_tmp)) col_tmp=COLOR_CLKSD_G; mascot->def_colclksd->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "shadow_b", &col_tmp)) col_tmp=COLOR_CLKSD_B; mascot->def_colclksd->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "shadow_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_SDW; mascot->def_alpclksd=col_tmp; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_r", &col_tmp)) col_tmp=COLOR_CLKBG_R; mascot->def_colclkbg->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_g", &col_tmp)) col_tmp=COLOR_CLKBG_G; mascot->def_colclkbg->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_b", &col_tmp)) col_tmp=COLOR_CLKBG_B; mascot->def_colclkbg->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_CLK; mascot->def_alpclkbg=col_tmp; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_r", &col_tmp)) col_tmp=COLOR_CLKBD_R; mascot->def_colclkbd->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_g", &col_tmp)) col_tmp=COLOR_CLKBD_G; mascot->def_colclkbd->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_b", &col_tmp)) col_tmp=COLOR_CLKBD_B; mascot->def_colclkbd->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_OTHER; mascot->def_alpclkbd=col_tmp; #endif // Color for Balloon if(def_flag) field_tmp=g_strdup("Default-BalloonColor"); else field_tmp=g_strdup("BalloonColor"); if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_r", &col_tmp)) col_tmp=COLOR_BAL_R; mascot->def_colbal->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_g", &col_tmp)) col_tmp=COLOR_BAL_G; mascot->def_colbal->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_b", &col_tmp)) col_tmp=COLOR_BAL_B; mascot->def_colbal->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "text_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_OTHER; mascot->def_alpbal=col_tmp; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_r", &col_tmp)) col_tmp=COLOR_BALBG_R; mascot->def_colbalbg->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_g", &col_tmp)) col_tmp=COLOR_BALBG_G; mascot->def_colbalbg->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_b", &col_tmp)) col_tmp=COLOR_BALBG_B; mascot->def_colbalbg->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "bg_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_BAL; mascot->def_alpbalbg=col_tmp; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_r", &col_tmp)) col_tmp=COLOR_BALBD_R; mascot->def_colbalbd->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_g", &col_tmp)) col_tmp=COLOR_BALBD_G; mascot->def_colbalbd->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_b", &col_tmp)) col_tmp=COLOR_BALBD_B; mascot->def_colbalbd->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, field_tmp, "border_p", &col_tmp)) col_tmp=CAIRO_DEF_ALPHA_OTHER; mascot->def_alpbalbd=col_tmp; #endif // Focus Movement etc. if(def_flag) field_tmp=g_strdup("Default-Move"); else field_tmp=g_strdup("Move"); if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "relative_x", &mascot->flag_xp)) mascot->flag_xp=FALSE; if(!xmms_cfg_read_int(cfgfile, field_tmp, "offset",&mascot->offset)) mascot->offset=0; if(!xmms_cfg_read_int(cfgfile, field_tmp, "offsetp",&mascot->offsetp)) mascot->offsetp=0; if(!xmms_cfg_read_int(cfgfile, field_tmp, "ff_side",&mascot->ff_side)) mascot->ff_side=FF_SIDE_RIGHT; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "raise_force", &mascot->raise_force)) mascot->raise_force=FALSE; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "raise_kwin", &mascot->raise_kwin)) mascot->raise_kwin=FALSE; if(!xmms_cfg_read_int(cfgfile, field_tmp, "autobar2", &mascot->focus_autobar)) mascot->focus_autobar=AUTOBAR_ORDINAL; #ifdef USE_WIN32 if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "task_force", &mascot->task_force)) mascot->task_force=FALSE; #endif if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "no_capbar", &mascot->no_capbar)) mascot->no_capbar=FALSE; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bar_size",&mascot->bar_size)) mascot->bar_size=0; if(!xmms_cfg_read_int(cfgfile, field_tmp, "bar_offset",&mascot->bar_offset)) mascot->bar_offset=0; if(!xmms_cfg_read_int(cfgfile, field_tmp, "homepos_nf",&mascot->homepos_nf)) mascot->homepos_nf=HOMEPOS_VANISH; if(!xmms_cfg_read_int(cfgfile, field_tmp, "homepos_out",&mascot->homepos_out)) mascot->homepos_out=HOMEPOS_NEVER; if(!xmms_cfg_read_int(cfgfile, field_tmp, "homepos_nb",&mascot->homepos_nb)) mascot->homepos_nb=HOMEPOS_NEVER; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "home_auto", &mascot->home_auto)) mascot->home_auto=TRUE; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "home_auto_vanish", &mascot->home_auto_vanish)) mascot->home_auto_vanish=FALSE; if(!xmms_cfg_read_int(cfgfile, field_tmp, "home_x",&mascot->home_x)) mascot->home_x=0; if(!xmms_cfg_read_int(cfgfile, field_tmp, "home_y",&mascot->home_y)) mascot->home_y=0; #ifdef USE_CAIRO if(def_flag) field_tmp=g_strdup("Default-Shadow"); else field_tmp=g_strdup("Shadow"); if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "flag", &mascot->sdw_flag)) mascot->sdw_flag=TRUE; if(!xmms_cfg_read_float(cfgfile, field_tmp, "x",&mascot->sdw_x)) mascot->sdw_x=CAIRO_SHADOW_X; if(!xmms_cfg_read_float(cfgfile, field_tmp, "y",&mascot->sdw_y)) mascot->sdw_y=CAIRO_SHADOW_Y; if(!xmms_cfg_read_int(cfgfile, field_tmp, "alpha",&mascot->sdw_alpha)) mascot->sdw_alpha=CAIRO_SHADOW_ALPHA; #endif // »þÊó if(def_flag) field_tmp=g_strdup("Default-Signal"); else field_tmp=g_strdup("Signal"); if(!xmms_cfg_read_int(cfgfile, field_tmp, "type",&mascot->signal.type)) mascot->signal.type=SIGACT_NO; if(!xmms_cfg_read_string(cfgfile, field_tmp, "command",&mascot->signal.com)) mascot->signal.com=NULL; #ifdef USE_BIFF // Biff if(def_flag) field_tmp=g_strdup("Default-Biff"); else field_tmp=g_strdup("Biff"); if(!xmms_cfg_read_int(cfgfile, field_tmp, "type",&mascot->mail.type)) mascot->mail.type=MAIL_NO; if(!xmms_cfg_read_string(cfgfile, field_tmp, "pop-id", &mascot->mail.pop_id)) mascot->mail.pop_id=NULL; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "pop-save", &mascot->mail.pop_save)) mascot->mail.pop_save=TRUE; if(mascot->mail.pop_save){ if(!xmms_cfg_read_string(cfgfile, field_tmp, "pop-pass", &mascot->mail.pop_pass)) mascot->mail.pop_pass=NULL; } if(!xmms_cfg_read_string(cfgfile, field_tmp, "pop-server", &mascot->mail.pop_server)) mascot->mail.pop_server=NULL; #ifdef USE_SSL if(!xmms_cfg_read_int(cfgfile, field_tmp, "ssl-mode",&mascot->mail.ssl_mode)) mascot->mail.ssl_mode=SSL_NONE; #else mascot->mail.ssl_mode=SSL_NONE; #endif #ifdef USE_SSL if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "ssl-cert-skip", &mascot->mail.ssl_cert_skip)) mascot->mail.ssl_cert_skip=FALSE; #else mascot->mail.ssl_cert_skip=FALSE; #endif #ifdef USE_SSL if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "ssl-nonblock", &mascot->mail.ssl_nonblock)) mascot->mail.ssl_nonblock=TRUE; #else mascot->mail.ssl_nonblock=TRUE; #endif if(!xmms_cfg_read_int(cfgfile, field_tmp, "pop-port", &mascot->mail.pop_port)){ #ifdef USE_SSL if(mascot->mail.ssl_mode==SSL_TUNNEL){ mascot->mail.pop_port=POP3_SSL_PORT_NO; } else{ mascot->mail.pop_port=POP3_PORT_NO; } #else mascot->mail.pop_port=POP3_PORT_NO; #endif } if(!xmms_cfg_read_string(cfgfile, field_tmp, "file", &mascot->mail.file)) mascot->mail.file=NULL; if(!xmms_cfg_read_string(cfgfile, field_tmp, "polling", &mascot->mail.polling)) mascot->mail.polling=NULL; if(!xmms_cfg_read_string(cfgfile, field_tmp, "mailer", &mascot->mail.mailer)) mascot->mail.mailer=NULL; if(!xmms_cfg_read_int(cfgfile, field_tmp, "interval", &mascot->mail.interval)) mascot->mail.interval=DEF_MAIL_INTERVAL; if(!xmms_cfg_read_int(cfgfile, field_tmp, "win-width", &mascot->mail.win_width)) mascot->mail.win_width=BIFF_WIN_WIDTH; if(!xmms_cfg_read_int(cfgfile, field_tmp, "win-height", &mascot->mail.win_height)) mascot->mail.win_height=BIFF_WIN_HEIGHT; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "spam-check", &mascot->mail.spam_check)) mascot->mail.spam_check=SPAM_CHECK; if(!xmms_cfg_read_string(cfgfile, field_tmp, "spam-mark", &mascot->mail.spam_mark)) mascot->mail.spam_mark=g_strdup(SPAM_M_SPAMASSASIN); if(!xmms_cfg_read_int(cfgfile, field_tmp, "pop-max-fs", &mascot->mail.pop_max_fs)) mascot->mail.pop_max_fs=POP3_MAX_FS; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "tooltips", &mascot->mail.tooltips_fl)) mascot->mail.tooltips_fl=BIFF_TOOLTIPS; #endif // USE_BIFF #ifdef USE_SOCKMSG // ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥á if(def_flag) field_tmp=g_strdup("Default-Duet"); else field_tmp=g_strdup("Duet"); if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "use_click", &mascot->duet_use_click)) mascot->duet_use_click=TRUE; if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "use_random", &mascot->duet_use_random)) mascot->duet_use_random=TRUE; #endif // USE_SOCKMSG #ifdef USE_SOCKMSG // ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥á if(def_flag) field_tmp=g_strdup("Default-Sockmsg"); else field_tmp=g_strdup("Sockmsg"); if(!xmms_cfg_read_int(cfgfile, field_tmp, "type", &mascot->sockmsg_type)) mascot->sockmsg_type=SOCK_NORMAL; if(!xmms_cfg_read_int(cfgfile, field_tmp, "interval", &mascot->sockmsg_step)) mascot->sockmsg_step=SOCK_INTERVAL; if(!xmms_cfg_read_int(cfgfile, field_tmp, "expire_def", &mascot->sockmsg_expire_def)) mascot->sockmsg_expire_def=(SYS_BALLOON_EXPIRE)*(INTERVAL); #endif // USE_SOCKMSG #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) || defined(USE_WIN32) // Alpha Percentage if(def_flag) field_tmp=g_strdup("Default-Alpha"); else field_tmp=g_strdup("Alpha"); if(!xmms_cfg_read_boolean(cfgfile, field_tmp, "force_def",&mascot->force_def_alpha)) mascot->force_def_alpha=FALSE; if(!xmms_cfg_read_int(cfgfile, field_tmp, "main",&mascot->def_alpha_main)) mascot->def_alpha_main=DEF_ALPHA_MAIN; #ifdef USE_BIFF if(!xmms_cfg_read_int(cfgfile, field_tmp, "biff",&mascot->def_alpha_biff)) mascot->def_alpha_biff=DEF_ALPHA_BIFF; #endif #endif #ifdef USE_WIN32 if(!xmms_cfg_read_int(cfgfile, field_tmp, "balloon",&mascot->def_alpha_bal)) mascot->def_alpha_bal=DEF_ALPHA_BAL; if(!xmms_cfg_read_int(cfgfile, field_tmp, "clock",&mascot->def_alpha_clk)) mascot->def_alpha_clk=DEF_ALPHA_CLK; if(!xmms_cfg_read_boolean(cfgfile,field_tmp,"balloonfg",&mascot->def_flag_balfg)) mascot->def_flag_balfg=TRUE; if(!xmms_cfg_read_boolean(cfgfile,field_tmp,"clockfg",&mascot->def_flag_clkfg)) mascot->def_flag_clkfg=TRUE; #endif xmms_cfg_free(cfgfile); } else{ // USER_RCFILE¤¬¤Ê¤¤¤È¤­¤ÏºîÀ®¤¹¤ë : ¤ª¤½¤é¤¯½é²óµ¯Æ°»þ¤Î¤ß mascot->flag_install=FALSE; #ifdef USE_CAIRO mascot->force_composite=FALSE; #ifdef USE_WIN32 mascot->flag_img_cairo=FALSE; #else mascot->flag_img_cairo=TRUE; #endif mascot->flag_bal_cairo=TRUE; mascot->flag_clk_cairo=TRUE; #endif mascot->flag_ow=FALSE; mascot->flag_ow_ini=FALSE; mascot->magnify=100; mascot->ip_style=MAG_IP_BILINEAR; mascot->deffontname_clk=g_strdup(FONT_CLK); mascot->deffontname_bal=g_strdup(FONT_BAL); mascot->cons_check_mode=CONS_MANUAL; #ifdef USE_GTAR mascot->tar_command=g_strdup(MENU_EXTRACT_GTAR_COMMAND); #endif #ifdef __GTK_STATUS_ICON_H__ mascot->tray_icon_flag=TRUE; #endif mascot->flag_xp=FALSE; mascot->offset=0; mascot->offsetp=0; mascot->ff_side=FF_SIDE_RIGHT; mascot->raise_force=FALSE; mascot->raise_kwin=FALSE; mascot->focus_autobar=AUTOBAR_ORDINAL; #ifdef USE_WIN32 mascot->task_force=FALSE; #endif mascot->no_capbar=FALSE; mascot->bar_size=0; mascot->bar_offset=0; mascot->homepos_nf=HOMEPOS_VANISH; mascot->homepos_out=HOMEPOS_NEVER; mascot->homepos_nb=HOMEPOS_NEVER; mascot->home_auto=TRUE; mascot->home_auto_vanish=FALSE; mascot->home_x=0; mascot->home_y=0; #ifdef USE_CAIRO mascot->sdw_flag=TRUE; mascot->sdw_x=CAIRO_SHADOW_X; mascot->sdw_y=CAIRO_SHADOW_Y; mascot->sdw_alpha=CAIRO_SHADOW_ALPHA; #endif mascot->signal.type=SIGACT_NO; mascot->signal.com=NULL; #ifdef USE_BIFF mascot->mail.type=MAIL_NO; mascot->mail.pop_id=NULL; mascot->mail.pop_save=TRUE; mascot->mail.pop_pass=NULL; mascot->mail.pop_server=NULL; mascot->mail.file=NULL; mascot->mail.ssl_mode=SSL_NONE; mascot->mail.ssl_cert_skip=FALSE; mascot->mail.ssl_nonblock=TRUE; mascot->mail.pop_port=POP3_PORT_NO; mascot->mail.polling=NULL; mascot->mail.mailer=NULL; mascot->mail.interval=DEF_MAIL_INTERVAL; mascot->mail.win_width=BIFF_WIN_WIDTH; mascot->mail.win_height=BIFF_WIN_HEIGHT; mascot->mail.spam_check=SPAM_CHECK; mascot->mail.spam_mark=g_strdup(SPAM_M_SPAMASSASIN); mascot->mail.pop_max_fs=POP3_MAX_FS; mascot->mail.tooltips_fl=BIFF_TOOLTIPS; #endif // USE_BIFF #ifdef USE_SOCKMSG mascot->duet_use_click=TRUE; mascot->duet_use_random=TRUE; mascot->sockmsg_type=SOCK_NORMAL; mascot->sockmsg_step=SOCK_INTERVAL; mascot->sockmsg_expire_def=(SYS_BALLOON_EXPIRE)*(INTERVAL); #endif // USE_SOCKMSG #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) || defined(USE_WIN32) mascot->force_def_alpha=FALSE; mascot->def_alpha_main=DEF_ALPHA_MAIN; #ifdef USE_BIFF mascot->def_alpha_biff=DEF_ALPHA_BIFF; #endif #endif #ifdef USE_WIN32 mascot->def_alpha_bal=DEF_ALPHA_BAL; mascot->def_alpha_clk=DEF_ALPHA_CLK; mascot->def_flag_clkfg=TRUE; mascot->def_flag_balfg=TRUE; #endif SaveRC(mascot,TRUE); SaveRC(mascot,FALSE); } g_free(field_tmp); g_free(filename); } // Á´ÂÎÀßÄê¥Õ¥¡¥¤¥ë¤Î½ñ¤­¹þ¤ß void SaveRC(typMascot *mascot, gboolean def_flag) { ConfigFile *cfgfile; gchar *filename; gchar *field_tmp=NULL; filename = g_strdup(mascot->rcfile); cfgfile = xmms_cfg_open_file(filename); if (!cfgfile) cfgfile = xmms_cfg_new(); // General Setup if(def_flag) field_tmp=g_strdup("Default-General"); else field_tmp=g_strdup("General"); xmms_cfg_write_string(cfgfile, field_tmp, "prog_ver",VERSION); xmms_cfg_write_boolean(cfgfile, field_tmp, "auto_install",mascot->flag_install); #ifdef USE_CAIRO xmms_cfg_write_boolean(cfgfile, field_tmp, "force_composite",mascot->force_composite); xmms_cfg_write_boolean(cfgfile, field_tmp, "cairo_image",mascot->flag_img_cairo); xmms_cfg_write_boolean(cfgfile, field_tmp, "cairo_balloon",mascot->flag_bal_cairo); xmms_cfg_write_boolean(cfgfile, field_tmp, "cairo_clock",mascot->flag_clk_cairo); #endif xmms_cfg_write_int(cfgfile, field_tmp, "magnify",mascot->magnify); xmms_cfg_write_int(cfgfile, field_tmp, "ip_style",mascot->ip_style); xmms_cfg_write_string(cfgfile, field_tmp, "font_clock",mascot->deffontname_clk); xmms_cfg_write_string(cfgfile, field_tmp, "font_balloon",mascot->deffontname_bal); //if(mascot->menu_file) xmms_cfg_write_string(cfgfile, field_tmp, "menu", // mascot->menu_file); //else xmms_cfg_remove_key(cfgfile,field_tmp, "menu"); #ifndef USE_WIN32 if(mascot->sound_command) xmms_cfg_write_string(cfgfile, field_tmp, "sound_command",mascot->sound_command); else xmms_cfg_remove_key(cfgfile,field_tmp, "sound_command"); xmms_cfg_write_int(cfgfile, field_tmp, "cons_check_mode",mascot->cons_check_mode); #endif #ifdef USE_GTAR if(mascot->tar_command) xmms_cfg_write_string(cfgfile, field_tmp, "tar_command",mascot->tar_command); else xmms_cfg_remove_key(cfgfile,field_tmp, "tar_command"); #endif #ifdef __GTK_STATUS_ICON_H__ xmms_cfg_write_boolean(cfgfile, field_tmp, "tray_icon_flag",mascot->tray_icon_flag); #endif // Color for Clock if(def_flag) field_tmp=g_strdup("Default-ClockColor"); else field_tmp=g_strdup("ClockColor"); if(( mascot->def_colclk->red ==COLOR_CLK_R) &&(mascot->def_colclk->green==COLOR_CLK_G) &&(mascot->def_colclk->blue ==COLOR_CLK_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "text_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "text_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "text_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "text_r",mascot->def_colclk->red); xmms_cfg_write_int(cfgfile, field_tmp, "text_g",mascot->def_colclk->green); xmms_cfg_write_int(cfgfile, field_tmp, "text_b",mascot->def_colclk->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_OTHER) xmms_cfg_remove_key(cfgfile,field_tmp, "text_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "text_p",mascot->def_alpclk); #endif if(( mascot->def_colclksd->red ==COLOR_CLKSD_R) &&(mascot->def_colclksd->green==COLOR_CLKSD_G) &&(mascot->def_colclksd->blue ==COLOR_CLKSD_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "shadow_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "shadow_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "shadow_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "shadow_r",mascot->def_colclksd->red); xmms_cfg_write_int(cfgfile, field_tmp, "shadow_g",mascot->def_colclksd->green); xmms_cfg_write_int(cfgfile, field_tmp, "shadow_b",mascot->def_colclksd->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_SDW) xmms_cfg_remove_key(cfgfile,field_tmp, "shadow_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "shadow_p",mascot->def_alpclksd); #endif if(( mascot->def_colclkbg->red ==COLOR_CLKBG_R) &&(mascot->def_colclkbg->green==COLOR_CLKBG_G) &&(mascot->def_colclkbg->blue ==COLOR_CLKBG_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "bg_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "bg_r",mascot->def_colclkbg->red); xmms_cfg_write_int(cfgfile, field_tmp, "bg_g",mascot->def_colclkbg->green); xmms_cfg_write_int(cfgfile, field_tmp, "bg_b",mascot->def_colclkbg->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_CLK) xmms_cfg_remove_key(cfgfile,field_tmp, "bg_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "bg_p",mascot->def_alpclkbg); #endif if(( mascot->def_colclkbd->red ==COLOR_CLKBD_R) &&(mascot->def_colclkbd->green==COLOR_CLKBD_G) &&(mascot->def_colclkbd->blue ==COLOR_CLKBD_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "border_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "border_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "border_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "border_r",mascot->def_colclkbd->red); xmms_cfg_write_int(cfgfile, field_tmp, "border_g",mascot->def_colclkbd->green); xmms_cfg_write_int(cfgfile, field_tmp, "border_b",mascot->def_colclkbd->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_OTHER) xmms_cfg_remove_key(cfgfile,field_tmp, "border_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "border_p",mascot->def_alpclkbd); #endif // Color for Balloon if(def_flag) field_tmp=g_strdup("Default-BalloonColor"); else field_tmp=g_strdup("BalloonColor"); if(( mascot->def_colbal->red ==COLOR_BAL_R) &&(mascot->def_colbal->green==COLOR_BAL_G) &&(mascot->def_colbal->blue ==COLOR_BAL_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "text_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "text_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "text_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "text_r",mascot->def_colbal->red); xmms_cfg_write_int(cfgfile, field_tmp, "text_g",mascot->def_colbal->green); xmms_cfg_write_int(cfgfile, field_tmp, "text_b",mascot->def_colbal->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_OTHER) xmms_cfg_remove_key(cfgfile,field_tmp, "text_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "text_p",mascot->def_alpbal); #endif if(( mascot->def_colbalbg->red ==COLOR_BALBG_R) &&(mascot->def_colbalbg->green==COLOR_BALBG_G) &&(mascot->def_colbalbg->blue ==COLOR_BALBG_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "bg_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "bg_r",mascot->def_colbalbg->red); xmms_cfg_write_int(cfgfile, field_tmp, "bg_g",mascot->def_colbalbg->green); xmms_cfg_write_int(cfgfile, field_tmp, "bg_b",mascot->def_colbalbg->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_BAL) xmms_cfg_remove_key(cfgfile,field_tmp, "bg_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "bg_p",mascot->def_alpbalbg); #endif if(( mascot->def_colbalbd->red ==COLOR_BALBD_R) &&(mascot->def_colbalbd->green==COLOR_BALBD_G) &&(mascot->def_colbalbd->blue ==COLOR_BALBD_B)){ xmms_cfg_remove_key(cfgfile,field_tmp, "border_r"); xmms_cfg_remove_key(cfgfile,field_tmp, "border_g"); xmms_cfg_remove_key(cfgfile,field_tmp, "border_b"); } else{ xmms_cfg_write_int(cfgfile, field_tmp, "border_r",mascot->def_colbalbd->red); xmms_cfg_write_int(cfgfile, field_tmp, "border_g",mascot->def_colbalbd->green); xmms_cfg_write_int(cfgfile, field_tmp, "border_b",mascot->def_colbalbd->blue); } #ifdef USE_CAIRO if(mascot->def_alpclk==CAIRO_DEF_ALPHA_OTHER) xmms_cfg_remove_key(cfgfile,field_tmp, "border_p"); else xmms_cfg_write_int(cfgfile, field_tmp, "border_p",mascot->def_alpbalbd); #endif // Focus Movement etc. if(def_flag) field_tmp=g_strdup("Default-Move"); else field_tmp=g_strdup("Move"); xmms_cfg_write_boolean(cfgfile, field_tmp, "relative_x",mascot->flag_xp); xmms_cfg_write_int(cfgfile, field_tmp, "offset",mascot->offset); xmms_cfg_write_int(cfgfile, field_tmp, "offsetp",mascot->offsetp); xmms_cfg_write_int(cfgfile, field_tmp, "ff_side",mascot->ff_side); xmms_cfg_write_boolean(cfgfile, field_tmp, "raise_force",mascot->raise_force); xmms_cfg_write_boolean(cfgfile, field_tmp, "raise_kwin",mascot->raise_kwin); xmms_cfg_write_int(cfgfile, field_tmp, "autobar2",mascot->focus_autobar); #ifdef USE_WIN32 xmms_cfg_write_boolean(cfgfile, field_tmp, "task_force",mascot->task_force); #endif xmms_cfg_write_boolean(cfgfile, field_tmp, "no_capbar",mascot->no_capbar); xmms_cfg_write_int(cfgfile, field_tmp, "bar_size",mascot->bar_size); xmms_cfg_write_int(cfgfile, field_tmp, "bar_offset",mascot->bar_offset); xmms_cfg_write_int(cfgfile, field_tmp, "homepos_nf",mascot->homepos_nf); xmms_cfg_write_int(cfgfile, field_tmp, "homepos_out",mascot->homepos_out); xmms_cfg_write_int(cfgfile, field_tmp, "homepos_nb",mascot->homepos_nb); xmms_cfg_remove_key(cfgfile,field_tmp, "homepos"); xmms_cfg_write_boolean(cfgfile, field_tmp, "home_auto",mascot->home_auto); xmms_cfg_write_boolean(cfgfile, field_tmp, "home_auto_vanish",mascot->home_auto_vanish); xmms_cfg_write_int(cfgfile, field_tmp, "home_x",mascot->home_x); xmms_cfg_write_int(cfgfile, field_tmp, "home_y",mascot->home_y); #ifdef USE_CAIRO // Shadow with Cairo if(def_flag) field_tmp=g_strdup("Default-Shadow"); else field_tmp=g_strdup("Shadow"); xmms_cfg_write_boolean(cfgfile, field_tmp, "flag",mascot->sdw_flag); xmms_cfg_write_float(cfgfile, field_tmp, "x",mascot->sdw_x); xmms_cfg_write_float(cfgfile, field_tmp, "y",mascot->sdw_y); xmms_cfg_write_int(cfgfile, field_tmp, "alpha",mascot->sdw_alpha); #endif // »þÊó if(def_flag) field_tmp=g_strdup("Default-Signal"); else field_tmp=g_strdup("Signal"); xmms_cfg_write_int(cfgfile, field_tmp, "type",mascot->signal.type); if(mascot->signal.com) xmms_cfg_write_string(cfgfile, field_tmp, "command",mascot->signal.com); else xmms_cfg_remove_key(cfgfile,field_tmp, "command"); #ifdef USE_BIFF // Biff if(def_flag) field_tmp=g_strdup("Default-Biff"); else field_tmp=g_strdup("Biff"); xmms_cfg_write_int(cfgfile, field_tmp, "type",mascot->mail.type); if(mascot->mail.pop_id) xmms_cfg_write_string(cfgfile, field_tmp, "pop-id",mascot->mail.pop_id); else xmms_cfg_remove_key(cfgfile,field_tmp, "pop-id"); xmms_cfg_write_boolean(cfgfile, field_tmp, "pop-save", mascot->mail.pop_save); if(mascot->mail.pop_save){ if(mascot->mail.pop_pass) xmms_cfg_write_string(cfgfile, field_tmp, "pop-pass", mascot->mail.pop_pass); else xmms_cfg_remove_key(cfgfile,field_tmp, "pop-pass"); } else{ xmms_cfg_remove_key(cfgfile,field_tmp, "pop-pass"); } if(mascot->mail.pop_server) xmms_cfg_write_string(cfgfile, field_tmp, "pop-server", mascot->mail.pop_server); else xmms_cfg_remove_key(cfgfile,field_tmp, "pop-server"); #ifdef USE_SSL xmms_cfg_write_int(cfgfile, field_tmp, "ssl-mode",mascot->mail.ssl_mode); xmms_cfg_write_boolean(cfgfile, field_tmp, "ssl-cert-skip",mascot->mail.ssl_cert_skip); xmms_cfg_write_boolean(cfgfile, field_tmp, "ssl-nonblock",mascot->mail.ssl_nonblock); #endif if(mascot->mail.pop_port!=POP3_PORT_NO) xmms_cfg_write_int(cfgfile, field_tmp, "pop-port", mascot->mail.pop_port); else xmms_cfg_remove_key(cfgfile,field_tmp, "pop-port"); if(mascot->mail.file) xmms_cfg_write_string(cfgfile, field_tmp, "file", mascot->mail.file); else xmms_cfg_remove_key(cfgfile,field_tmp, "file"); if(mascot->mail.polling) xmms_cfg_write_string(cfgfile, field_tmp, "polling", mascot->mail.polling); else xmms_cfg_remove_key(cfgfile,field_tmp, "polling"); if(mascot->mail.mailer) xmms_cfg_write_string(cfgfile, field_tmp, "mailer", mascot->mail.mailer); else xmms_cfg_remove_key(cfgfile,field_tmp, "mailer"); xmms_cfg_write_int(cfgfile, field_tmp, "interval",mascot->mail.interval); xmms_cfg_write_int(cfgfile, field_tmp, "win-width",mascot->mail.win_width); xmms_cfg_write_int(cfgfile, field_tmp, "win-height",mascot->mail.win_height); xmms_cfg_write_boolean(cfgfile, field_tmp, "spam-check",mascot->mail.spam_check); if(mascot->mail.spam_mark) xmms_cfg_write_string(cfgfile, field_tmp, "spam-mark", mascot->mail.spam_mark); else xmms_cfg_remove_key(cfgfile,field_tmp, "spam-mark"); xmms_cfg_write_int(cfgfile, field_tmp, "pop-max-fs",mascot->mail.pop_max_fs); xmms_cfg_write_boolean(cfgfile, field_tmp, "tooltips",mascot->mail.tooltips_fl); #endif #ifdef USE_SOCKMSG // Duet¥¢¥Ë¥á if(def_flag) field_tmp=g_strdup("Default-Duet"); else field_tmp=g_strdup("Duet"); xmms_cfg_write_boolean(cfgfile, field_tmp, "use_click", mascot->duet_use_click); xmms_cfg_write_boolean(cfgfile, field_tmp, "use_random", mascot->duet_use_random); #endif // USE_SOCKMSG #ifdef USE_SOCKMSG // Sockmsg if(def_flag) field_tmp=g_strdup("Default-Sockmsg"); else field_tmp=g_strdup("Sockmsg"); xmms_cfg_write_int(cfgfile, field_tmp, "type", mascot->sockmsg_type); xmms_cfg_write_int(cfgfile, field_tmp, "interval", mascot->sockmsg_step); xmms_cfg_write_int(cfgfile, field_tmp, "expire_def", mascot->sockmsg_expire_def); #endif // USE_SOCKMSG #ifdef USE_WIN32 // Alpha Percentage if(def_flag) field_tmp=g_strdup("Default-Alpha"); else field_tmp=g_strdup("Alpha"); xmms_cfg_write_boolean(cfgfile, field_tmp, "force_def", mascot->force_def_alpha); xmms_cfg_write_int(cfgfile, field_tmp, "main",mascot->def_alpha_main); #ifdef USE_BIFF xmms_cfg_write_int(cfgfile, field_tmp, "biff",mascot->def_alpha_biff); #endif xmms_cfg_write_int(cfgfile, field_tmp, "balloon",mascot->def_alpha_bal); xmms_cfg_write_int(cfgfile, field_tmp, "clock",mascot->def_alpha_clk); #endif xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); // POP¥æ¡¼¥¶¡¼¾ðÊó¤ò½ñ¤­¹þ¤àͽÄ꤬¤¢¤ë¤¿¤á¥Ç¥Õ¥©¥ë¥È¤Ç¥æ¡¼¥¶¡¼¤Î¤ß¤Î // rw¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó( chmod 600 )¤È¤¹¤ë #ifndef USE_WIN32 if((chmod(filename,(S_IRUSR | S_IWUSR ))) != 0){ g_print("Cannot Chmod Resource File %s! Please check!!!\n",filename); } #endif g_free(field_tmp); g_free(filename); } // ¥Ç¥Õ¥©¥ë¥È¥á¥Ë¥å¡¼¤òRC-file¤ËÊݸ void SaveDefMenu(typMascot *mascot, gboolean def_flag) { ConfigFile *cfgfile; gchar *filename; gchar *field_tmp=NULL; filename = g_strdup(mascot->rcfile); cfgfile = xmms_cfg_open_file(filename); if (!cfgfile) cfgfile = xmms_cfg_new(); // General Setup if(def_flag) field_tmp=g_strdup("Default-General"); else field_tmp=g_strdup("General"); if(mascot->menu_file) xmms_cfg_write_string(cfgfile, field_tmp, "menu", mascot->menu_file); else xmms_cfg_remove_key(cfgfile,field_tmp, "menu"); xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); // POP¥æ¡¼¥¶¡¼¾ðÊó¤ò½ñ¤­¹þ¤àͽÄ꤬¤¢¤ë¤¿¤á¥Ç¥Õ¥©¥ë¥È¤Ç¥æ¡¼¥¶¡¼¤Î¤ß¤Î // rw¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó( chmod 600 )¤È¤¹¤ë #ifndef USE_WIN32 if((chmod(filename,(S_IRUSR | S_IWUSR ))) != 0){ g_print("Cannot Chmod Resource File %s! Please check!!!\n",filename); } #endif g_free(field_tmp); g_free(filename); } // ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß void ReadMascot(typMascot *mascot, gboolean def_flag) { ConfigFile *cfgfile; gchar *filename=NULL, *filename2=NULL, *filename0=NULL; gchar tmp[64], tmp0[64]; int i_pix=0, i_ptn=0, i_frm=0, i_pix2=0; gint i_tmp; gchar *f_tmp0=NULL; gint place=0; gboolean install_flag=FALSE; struct stat statbuf; time_t common_mtime=0,user_mtime=0; gint col_tmp; #ifdef USE_GTK2 gchar *tmp_conv=NULL; #endif gboolean flag_def_col=FALSE; mascot->random_total=0; mascot->click_total=0; mascot->flag_consow=FALSE; /// ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. Current¤«¤é if(place==0){ filename = g_strdup(mascot->file); if(access(filename,F_OK)==0){ place=2; } } if(mascot->flag_ow){ #ifdef USE_COMMON // 4. Common Directory if(place==0){ if(filename) g_free(filename); filename = g_strconcat(COMMON_DIR,my_basename(mascot->file), NULL); if(access(filename,F_OK)==0){ place=4; } } #endif // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ if(filename) g_free(filename); filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, my_basename(mascot->file),NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ if(filename) g_free(filename); #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #endif if(access(filename,F_OK)==0){ place=3; } } } else{ // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ if(filename) g_free(filename); filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, my_basename(mascot->file),NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ if(filename) g_free(filename); #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #endif if(access(filename,F_OK)==0){ place=3; } } #ifdef USE_COMMON // 4. Common Directory if(place==0){ if(filename) g_free(filename); filename = g_strconcat(COMMON_DIR,my_basename(mascot->file), NULL); if(access(filename,F_OK)==0){ place=4; } } #endif } if(place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Mascot File."), " ", my_basename(to_utf8(mascot->file)), NULL); #else g_print(_("Cannot Find Mascot File %s\n"), my_basename(to_utf8(mascot->file))); #endif exit(1); } // ¥Þ¥¹¥³¥Ã¥È¤ÎUser Directory¤Ø¤Î¥¤¥ó¥¹¥È¡¼¥ë if((place==1)||(place==2)||(place==4)){ if((mascot->flag_install)&&(!FlagInstalledMenu)){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); if(filename2) g_free(filename2); filename2 = g_strconcat(COMMON_DIR, my_basename(mascot->file), NULL); } else{ #endif if(filename2) g_free(filename2); #ifdef USE_WIN32 filename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #else filename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #endif #ifdef USE_COMMON } #endif if((access(filename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(filename,filename2)!=0){ g_print(_("Installing %s -> %s\n"),filename,filename2); copy_file(filename,filename2); install_flag=TRUE; } } } } #ifdef USE_COMMON // Consistency Check if(mascot->cons_check_mode!=CONS_IGNORE){ if(place!=4){ if(filename0) g_free(filename0); filename0 = g_strconcat(COMMON_DIR,my_basename(mascot->file), NULL); if(access(filename0,F_OK)==0){ stat(filename0, &statbuf); common_mtime=statbuf.st_mtime; } if(filename2) g_free(filename2); #ifdef USE_WIN32 filename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #else filename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, my_basename(mascot->file), NULL); #endif if(access(filename2,F_OK)==0){ stat(filename2, &statbuf); user_mtime=statbuf.st_mtime; } stat(filename, &statbuf); if((user_mtime==statbuf.st_mtime)&&(user_mtimecons_check_mode==CONS_MANUAL){ create_cons_dialog(mascot,my_basename(filename), user_mtime,common_mtime,FALSE); } else if(mascot->cons_check_mode==CONS_AUTOOW){ mascot->flag_consow=TRUE; } if(mascot->flag_consow){ g_print(_("Installing %s -> %s\n"),filename0,filename2); // Copy Common -> User copy_file(filename0,filename2); install_flag=TRUE; } } } } #endif if(mascot->file) g_free(mascot->file); mascot->file=g_strdup(filename); cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { // General if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-General"); else f_tmp0=g_strdup("General"); #ifdef USE_GTK2 if(!xmms_cfg_read_string(cfgfile, f_tmp0, "code",&mascot->code)) mascot->code = NULL; #endif if(!xmms_cfg_read_string(cfgfile, f_tmp0, "name",&mascot->name)) mascot->name=NULL; #ifdef USE_GTK2 if(mascot->name){ mascot->name= x_locale_to_utf8(mascot->name,-1,NULL,NULL,NULL,mascot->code); if(!mascot->name) mascot->name=g_strdup(_("(Invalid Character Code)")); } #endif if(!xmms_cfg_read_string(cfgfile, f_tmp0, "copyright",&mascot->copyright)) mascot->copyright=NULL; if(!xmms_cfg_read_boolean(cfgfile, f_tmp0, "default_color",&flag_def_col)) flag_def_col=FALSE; // Focus Movement etc. if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Move"); else f_tmp0=g_strdup("Move"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "move",&mascot->move)) mascot->move=MOVE_FIX; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "xoff",&mascot->xoff)) mascot->xoff=0; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "yoff",&mascot->yoff)) mascot->yoff=0; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "fix_x",&mascot->xfix)) mascot->x=0; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "fix_y",&mascot->yfix)) mascot->y=0; // Clock if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Clock"); else f_tmp0=g_strdup("Clock"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "x",&mascot->clk_x)) mascot->clk_x=INIT_CLK_POS; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "y",&mascot->clk_y)) mascot->clk_y=INIT_CLK_POS; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_x",&mascot->clktext_x)) mascot->clktext_x=INIT_CLK_TEXT; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_y",&mascot->clktext_y)) mascot->clktext_y=INIT_CLK_TEXT; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "sd_x",&mascot->clksd_x)) mascot->clksd_x=INIT_CLK_SD; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "sd_y",&mascot->clksd_y)) mascot->clksd_y=INIT_CLK_SD; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border",&mascot->wclkbd)) mascot->wclkbd=INIT_CLK_BORDER; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "mode",&mascot->clkmode)) mascot->clkmode=CLOCK_NO; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "type",&mascot->clktype)) mascot->clktype=CLOCK_TYPE_24S; if(!xmms_cfg_read_boolean(cfgfile, f_tmp0, "shadow",&mascot->flag_clksd)) mascot->flag_clksd=TRUE; if(!xmms_cfg_read_boolean(cfgfile, f_tmp0, "round",&mascot->flag_clkrd)) mascot->flag_clkrd=TRUE; if(!xmms_cfg_read_string(cfgfile, f_tmp0, "font",&mascot->fontname_clk)) mascot->fontname_clk=NULL; // mascot->fontname_clk=g_strconcat(FONT_CLK,NULL); // Balloon if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Balloon"); else f_tmp0=g_strdup("Balloon"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_x",&mascot->baltext_x)) mascot->baltext_x=INIT_BAL_TEXT; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_y",&mascot->baltext_y)) mascot->baltext_y=INIT_BAL_TEXT; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border",&mascot->wbalbd)) mascot->wbalbd=INIT_BAL_BORDER; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "position",&mascot->bal_defpos)) mascot->bal_defpos=BAL_POS_LEFT; if(!xmms_cfg_read_string(cfgfile, f_tmp0, "font",&mascot->fontname_bal)) mascot->fontname_bal=NULL; // mascot->fontname_bal=g_strconcat(FONT_BAL,NULL); // Color for Clock if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-ClockColor"); else f_tmp0=g_strdup("ClockColor"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_r", &col_tmp)) col_tmp=mascot->def_colclk->red; mascot->colclk->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_g", &col_tmp)) col_tmp=mascot->def_colclk->green; mascot->colclk->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_b", &col_tmp)) col_tmp=mascot->def_colclk->blue; mascot->colclk->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_p", &col_tmp)) col_tmp=mascot->def_alpclk; mascot->alpclk=col_tmp; #endif if((!flag_def_col) &&(mascot->colclk->red ==COLOR_CLK_R) &&(mascot->colclk->green==COLOR_CLK_G) &&(mascot->colclk->blue ==COLOR_CLK_B) #ifdef USE_CAIRO &&(mascot->alpclk ==CAIRO_DEF_ALPHA_OTHER) #endif ){ mascot->colclk->red =mascot->def_colclk->red; mascot->colclk->green=mascot->def_colclk->green; mascot->colclk->blue =mascot->def_colclk->blue; #ifdef USE_CAIRO mascot->alpclk =mascot->def_alpclk; #endif } if(!xmms_cfg_read_int(cfgfile, f_tmp0, "shadow_r", &col_tmp)) col_tmp=mascot->def_colclksd->red; mascot->colclksd->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "shadow_g", &col_tmp)) col_tmp=mascot->def_colclksd->green; mascot->colclksd->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "shadow_b", &col_tmp)) col_tmp=mascot->def_colclksd->blue; mascot->colclksd->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "sahdow_p", &col_tmp)) col_tmp=mascot->def_alpclksd; mascot->alpclksd=col_tmp; #endif if((!flag_def_col) &&(mascot->colclksd->red ==COLOR_CLKSD_R) &&(mascot->colclksd->green==COLOR_CLKSD_G) &&(mascot->colclksd->blue ==COLOR_CLKSD_B) #ifdef USE_CAIRO &&(mascot->alpclksd ==CAIRO_DEF_ALPHA_SDW) #endif ){ mascot->colclksd->red =mascot->def_colclksd->red; mascot->colclksd->green=mascot->def_colclksd->green; mascot->colclksd->blue =mascot->def_colclksd->blue; #ifdef USE_CAIRO mascot->alpclksd =mascot->def_alpclksd; #endif } if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_r", &col_tmp)) col_tmp=mascot->def_colclkbg->red; mascot->colclkbg->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_g", &col_tmp)) col_tmp=mascot->def_colclkbg->green; mascot->colclkbg->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_b", &col_tmp)) col_tmp=mascot->def_colclkbg->blue; mascot->colclkbg->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_p", &col_tmp)) col_tmp=mascot->def_alpclkbg; mascot->alpclkbg=col_tmp; #endif if((!flag_def_col) &&(mascot->colclkbg->red ==COLOR_CLKBG_R) &&(mascot->colclkbg->green==COLOR_CLKBG_G) &&(mascot->colclkbg->blue ==COLOR_CLKBG_B) #ifdef USE_CAIRO &&(mascot->alpclkbg ==CAIRO_DEF_ALPHA_CLK) #endif ){ mascot->colclkbg->red =mascot->def_colclkbg->red; mascot->colclkbg->green=mascot->def_colclkbg->green; mascot->colclkbg->blue =mascot->def_colclkbg->blue; #ifdef USE_CAIRO mascot->alpclkbg =mascot->def_alpclkbg; #endif } if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_r", &col_tmp)) col_tmp=mascot->def_colclkbd->red; mascot->colclkbd->red=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_g", &col_tmp)) col_tmp=mascot->def_colclkbd->green; mascot->colclkbd->green=col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_b", &col_tmp)) col_tmp=mascot->def_colclkbd->blue; mascot->colclkbd->blue=col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_p", &col_tmp)) col_tmp=mascot->def_alpclkbd; mascot->alpclkbd=col_tmp; #endif if((!flag_def_col) &&(mascot->colclkbd->red ==COLOR_CLKBD_R) &&(mascot->colclkbd->green==COLOR_CLKBD_G) &&(mascot->colclkbd->blue ==COLOR_CLKBD_B) #ifdef USE_CAIRO &&(mascot->alpclkbd ==CAIRO_DEF_ALPHA_OTHER) #endif ){ mascot->colclkbd->red =mascot->def_colclkbd->red; mascot->colclkbd->green=mascot->def_colclkbd->green; mascot->colclkbd->blue =mascot->def_colclkbd->blue; #ifdef USE_CAIRO mascot->alpclkbd =mascot->def_alpclkbd; #endif } // Color for Balloon if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-BalloonColor"); else f_tmp0=g_strdup("BalloonColor"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_r", &col_tmp)) col_tmp=mascot->def_colbal->red; mascot->colbal->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_g", &col_tmp)) col_tmp=mascot->def_colbal->green; mascot->colbal->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_b", &col_tmp)) col_tmp=mascot->def_colbal->blue; mascot->colbal->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "text_p", &col_tmp)) col_tmp=mascot->def_alpbal; mascot->alpbal=col_tmp; #endif if((!flag_def_col) &&(mascot->colbal->red ==COLOR_BAL_R) &&(mascot->colbal->green==COLOR_BAL_G) &&(mascot->colbal->blue ==COLOR_BAL_B) #ifdef USE_CAIRO &&(mascot->alpbal ==CAIRO_DEF_ALPHA_OTHER) #endif ){ mascot->colbal->red =mascot->def_colbal->red; mascot->colbal->green=mascot->def_colbal->green; mascot->colbal->blue =mascot->def_colbal->blue; #ifdef USE_CAIRO mascot->alpbal =mascot->def_alpbal; #endif } if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_r", &col_tmp)) col_tmp=mascot->def_colbalbg->red; mascot->colbalbg->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_g", &col_tmp)) col_tmp=mascot->def_colbalbg->green; mascot->colbalbg->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_b", &col_tmp)) col_tmp=mascot->def_colbalbg->blue; mascot->colbalbg->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "bg_p", &col_tmp)) col_tmp=mascot->def_alpbalbg; mascot->alpbalbg=col_tmp; #endif if((!flag_def_col) &&(mascot->colbalbg->red ==COLOR_BALBG_R) &&(mascot->colbalbg->green==COLOR_BALBG_G) &&(mascot->colbalbg->blue ==COLOR_BALBG_B) #ifdef USE_CAIRO &&(mascot->alpbalbg ==CAIRO_DEF_ALPHA_BAL) #endif ){ mascot->colbalbg->red =mascot->def_colbalbg->red; mascot->colbalbg->green=mascot->def_colbalbg->green; mascot->colbalbg->blue =mascot->def_colbalbg->blue; #ifdef USE_CAIRO mascot->alpbalbg =mascot->def_alpbalbg; #endif } if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_r", &col_tmp)) col_tmp=mascot->def_colbalbd->red; mascot->colbalbd->red=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_g", &col_tmp)) col_tmp=mascot->def_colbalbd->green; mascot->colbalbd->green=(guint)col_tmp; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_b", &col_tmp)) col_tmp=mascot->def_colbalbd->blue; mascot->colbalbd->blue=(guint)col_tmp; #ifdef USE_CAIRO if(!xmms_cfg_read_int(cfgfile, f_tmp0, "border_p", &col_tmp)) col_tmp=mascot->def_alpbalbd; mascot->alpbalbd=col_tmp; #endif if((!flag_def_col) &&(mascot->colbalbd->red ==COLOR_BALBD_R) &&(mascot->colbalbd->green==COLOR_BALBD_G) &&(mascot->colbalbd->blue ==COLOR_BALBD_B) #ifdef USE_CAIRO &&(mascot->alpbalbd ==CAIRO_DEF_ALPHA_OTHER) #endif ){ mascot->colbalbd->red =mascot->def_colbalbd->red; mascot->colbalbd->green=mascot->def_colbalbd->green; mascot->colbalbd->blue =mascot->def_colbalbd->blue; #ifdef USE_CAIRO mascot->alpbalbd =mascot->def_alpbalbd; #endif } #ifdef USE_BIFF // BiffÍѥǡ¼¥¿ if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Biff"); else f_tmp0=g_strdup("Biff"); if(!xmms_cfg_read_string(cfgfile, f_tmp0, "pix-file",&filename0)) // BiffÍѲèÁü¥Õ¥¡¥¤¥ë mascot->mail.pix_file=NULL; else mascot->mail.pix_file=FullPathPixmapFile(mascot, filename0); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "pix-pos",&mascot->mail.pix_pos)) mascot->mail.pix_pos=MAIL_PIX_RIGHT; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "pix-x",&mascot->mail.pix_x)) mascot->mail.pix_x=0; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "pix-y",&mascot->mail.pix_y)) mascot->mail.pix_y=0; if(!xmms_cfg_read_string(cfgfile, f_tmp0, "word",&mascot->mail.word)) // BiffÍѤդ­¤À¤·¥á¥Ã¥»¡¼¥¸ mascot->mail.word=NULL; #ifdef USE_GTK2 if(mascot->mail.word){ mascot->mail.word= x_locale_to_utf8(mascot->mail.word, -1,NULL,NULL,NULL,mascot->code); if(!mascot->mail.word) mascot->mail.word=g_strdup(_("(Invalid Character Code)")); } #endif if(!xmms_cfg_read_string(cfgfile, f_tmp0, "sound",&mascot->mail.sound)) // BiffÃå¿®»þºÆÀ¸ÍÑ¥Õ¥¡¥¤¥ë mascot->mail.sound=NULL; #endif // USE_BIFF #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) || defined(USE_WIN32) // Alpha Percentage if(mascot->force_def_alpha){ mascot->alpha_main=mascot->def_alpha_main; #ifdef USE_BIFF mascot->alpha_biff=mascot->def_alpha_biff; #endif #ifdef USE_WIN32 mascot->alpha_bal=mascot->def_alpha_bal; mascot->alpha_clk=mascot->def_alpha_clk; mascot->flag_balfg=mascot->def_flag_balfg; mascot->flag_clkfg=mascot->def_flag_clkfg; #endif } else{ if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Alpha"); else f_tmp0=g_strdup("Alpha"); if(!xmms_cfg_read_int(cfgfile, f_tmp0, "main",&mascot->alpha_main)) mascot->alpha_main=mascot->def_alpha_main; #ifdef USE_BIFF if(!xmms_cfg_read_int(cfgfile, f_tmp0, "biff",&mascot->alpha_biff)) mascot->alpha_biff=mascot->def_alpha_biff; #endif #ifdef USE_WIN32 if(!xmms_cfg_read_int(cfgfile, f_tmp0, "balloon",&mascot->alpha_bal)) mascot->alpha_bal=mascot->def_alpha_bal; if(!xmms_cfg_read_int(cfgfile, f_tmp0, "clock",&mascot->alpha_clk)) mascot->alpha_clk=mascot->def_alpha_clk; if(!xmms_cfg_read_boolean(cfgfile, f_tmp0,"balloonfg",&mascot->flag_balfg)) mascot->flag_balfg=mascot->def_flag_balfg; if(!xmms_cfg_read_boolean(cfgfile, f_tmp0,"clockfg",&mascot->flag_clkfg)) mascot->flag_clkfg=mascot->def_flag_clkfg; #endif } #endif // Pixmap¥Ç¡¼¥¿ if(f_tmp0) g_free(f_tmp0); if(def_flag) f_tmp0=g_strdup("Default-Pixmap"); else f_tmp0=g_strdup("Pixmap"); for(i_pix=0;i_pixsprites[i_pix].pixmap!=NULL){ //g_object_unref(G_OBJECT(mascot->sprites[i_pix].pixmap)); // fprintf(stderr,"Clear\n"); //} //mascot->sprites[i_pix].pixmap=NULL; //if(mascot->sprites[i_pix].mask!=NULL){ // g_object_unref(G_OBJECT(mascot->sprites[i_pix].mask)); //fprintf(stderr,"Clear\n"); //} //mascot->sprites[i_pix].mask=NULL; sprintf(tmp, "pixmap%02d", i_pix); if(!xmms_cfg_read_string(cfgfile, f_tmp0, tmp, &filename0)){ for(i_pix2=i_pix;i_pix2sprites[i_pix2].filename) g_free(mascot->sprites[i_pix2].filename); mascot->sprites[i_pix2].filename=NULL; } break; } else{ mascot->sprites[i_pix].filename= FullPathPixmapFile(mascot, filename0); } } // Animation¥Ç¡¼¥¿ // ³Æ¥Ñ¥¿¡¼¥ó¤Î¥Õ¥ì¡¼¥à0¤Îpix¥Õ¥¡¥¤¥ë̾¤¬¤Ê¤¤¤È¤¦¤Á¤­¤ê for(i_ptn=0;i_ptnrandom_weight[i_ptn])) // ¥é¥ó¥À¥à¥¢¥Ë¥á½Å¤ß mascot->random_weight[i_ptn]=0; mascot->random_total+=mascot->random_weight[i_ptn]; if(!xmms_cfg_read_int(cfgfile, tmp0, "click_weight", &mascot->click_weight[i_ptn])) // ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á½Å¤ß mascot->click_weight[i_ptn]=0; mascot->click_total+=mascot->click_weight[i_ptn]; if(!xmms_cfg_read_int(cfgfile, tmp0, "balloon_lxoff", &mascot->bal_lxoff[i_ptn])) // ¤Õ¤­¤À¤·¥ª¥Õ¥»¥Ã¥È X Left mascot->bal_lxoff[i_ptn]=0; if(!xmms_cfg_read_int(cfgfile, tmp0, "balloon_lyoff", &mascot->bal_lyoff[i_ptn])) // ¤Õ¤­¤À¤·¥ª¥Õ¥»¥Ã¥È Y Left mascot->bal_lyoff[i_ptn]=0; if(!xmms_cfg_read_int(cfgfile, tmp0, "balloon_rxoff", &mascot->bal_rxoff[i_ptn])) // ¤Õ¤­¤À¤·¥ª¥Õ¥»¥Ã¥È X Right mascot->bal_rxoff[i_ptn]=0; if(!xmms_cfg_read_int(cfgfile, tmp0, "balloon_ryoff", &mascot->bal_ryoff[i_ptn])) // ¤Õ¤­¤À¤·¥ª¥Õ¥»¥Ã¥È Y Right mascot->bal_ryoff[i_ptn]=0; if(!xmms_cfg_read_string(cfgfile, tmp0, "click_word", &mascot->click_word[i_ptn])) // ¥Ð¥ë¡¼¥óɽ¼¨Íѥƥ­¥¹¥È mascot->click_word[i_ptn]=NULL; #ifdef USE_GTK2 else if(mascot->click_word[i_ptn]){ mascot->click_word[i_ptn]= x_locale_to_utf8(mascot->click_word[i_ptn], -1,NULL,NULL,NULL,mascot->code); if(!mascot->click_word[i_ptn]) mascot->click_word[i_ptn]=g_strdup(_("(Invalid Character Code)")); } #endif if(!xmms_cfg_read_string(cfgfile, tmp0, "click_sound", &mascot->click_sound[i_ptn])) // ¥¯¥ê¥Ã¥¯»þºÆÀ¸ÍÑ¥Õ¥¡¥¤¥ë mascot->click_sound[i_ptn]=NULL; #ifdef USE_SOCKMSG if(!xmms_cfg_read_string(cfgfile, tmp0, "duet_tgt", &mascot->duet_tgt[i_ptn])) // ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥á mascot->duet_tgt[i_ptn]=NULL; if(!xmms_cfg_read_int(cfgfile, tmp0, "duet_ptn", &mascot->duet_ptn[i_ptn])) mascot->duet_ptn[i_ptn]=2; if(!xmms_cfg_read_string(cfgfile, tmp0, "duet_word", &mascot->duet_word[i_ptn])) mascot->duet_word[i_ptn]=NULL; #ifdef USE_GTK2 else if(mascot->duet_word[i_ptn]){ mascot->duet_word[i_ptn]= x_locale_to_utf8(mascot->duet_word[i_ptn], -1,NULL,NULL,NULL,mascot->code); if(!mascot->duet_word[i_ptn]) mascot->duet_word[i_ptn]=g_strdup(_("(Invalid Character Code)")); } #endif if(!xmms_cfg_read_int(cfgfile, tmp0, "duet_delay", &mascot->duet_delay[i_ptn])) mascot->duet_delay[i_ptn]=DEF_DUET_DELAY; #endif // USE_SOCKMSG // ³Æ¥Õ¥ì¡¼¥à for(i_frm=0;i_frmframe_pix[i_ptn][i_frm])){ sprintf(tmp, "min%02d", i_frm); if(!xmms_cfg_read_int(cfgfile, tmp0, tmp, &mascot->frame_min[i_ptn][i_frm])) // minimum mascot->frame_min[i_ptn][i_frm]=1; sprintf(tmp, "max%02d", i_frm); if(!xmms_cfg_read_int(cfgfile, tmp0, tmp, &mascot->frame_max[i_ptn][i_frm])) // maximum mascot->frame_max[i_ptn][i_frm]=1; if(mascot->frame_min[i_ptn][i_frm]>mascot->frame_max[i_ptn][i_frm]){ i_tmp=mascot->frame_max[i_ptn][i_frm]; mascot->frame_max[i_ptn][i_frm]=mascot->frame_min[i_ptn][i_frm]; mascot->frame_min[i_ptn][i_frm]=i_tmp; } // Block Loop Next Frame ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤¿¤é min ¤Èmax¤òÆÉ¤à sprintf(tmp, "loop%02dnext", i_frm); if(xmms_cfg_read_int(cfgfile, tmp0, tmp, &mascot->frame_loop[i_ptn][i_frm].next)){ sprintf(tmp, "loop%02dmin", i_frm); if(!xmms_cfg_read_int(cfgfile, tmp0, tmp, &mascot->frame_loop[i_ptn][i_frm].min)) // Block Loop Minimum mascot->frame_loop[i_ptn][i_frm].min=1; sprintf(tmp, "loop%02dmax", i_frm); if(!xmms_cfg_read_int(cfgfile, tmp0, tmp, &mascot->frame_loop[i_ptn][i_frm].max)) // Block Loop Maximum mascot->frame_loop[i_ptn][i_frm].max=1; if( mascot->frame_loop[i_ptn][i_frm].min > mascot->frame_loop[i_ptn][i_frm].max){ i_tmp= mascot->frame_loop[i_ptn][i_frm].max; mascot->frame_loop[i_ptn][i_frm].max = mascot->frame_loop[i_ptn][i_frm].min; mascot->frame_loop[i_ptn][i_frm].min=i_tmp; } } else{ mascot->frame_loop[i_ptn][i_frm].next=-1; } if(i_frm==MAX_ANIME_FRAME-1){ //mascot->frame_pix[i_ptn][i_frm+1]=-1; mascot->frame_num[i_ptn]=MAX_ANIME_FRAME; } } else{ // pixmap»ØÄ꤬¤Ê¤¤¤È¤­¤Ï½ªÎ» mascot->frame_pix[i_ptn][i_frm]=-1; mascot->frame_num[i_ptn]=i_frm; break; } } if(i_frm==0){ break; } } xmms_cfg_free(cfgfile); } if(install_flag) { if(mascot->file) g_free(mascot->file); mascot->file=g_strdup(filename2); } if(f_tmp0) g_free(f_tmp0); if(filename) g_free(filename); if(filename2) g_free(filename2); #ifdef USE_GTK2 if(tmp_conv) g_free(tmp_conv); #endif mascot->flag_consow=FALSE; } // ¥Þ¥¹¥³¥Ã¥È¤Î¥¤¥ó¥¹¥È¡¼¥ë : ¥á¥Ë¥å¡¼¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»ÈÍÑ void MascotInstall(typMascot *mascot, gchar *mascotfile) { ConfigFile *cfgfile; gchar *filename=NULL, *filename2=NULL; gchar *pixfilename=NULL, *pixfile=NULL, *pixfilename2=NULL; gchar tmp[64]; int i_pix=0, i_pix2=0; gchar *f_tmp0=NULL; gint place=0,p_place=0; /// ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. Current¤«¤é if(place==0){ filename = g_strdup(mascotfile); if(access(filename,F_OK)==0){ place=2; } } if(mascot->flag_ow){ #ifdef USE_COMMON // 4. Common Directory if(place==0){ filename = g_strconcat(COMMON_DIR,mascotfile, NULL); if(access(filename,F_OK)==0){ place=4; } } #endif // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, mascotfile,NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #endif if(access(filename,F_OK)==0){ place=3; } } } else{ // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, mascotfile,NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #endif if(access(filename,F_OK)==0){ place=3; } } #ifdef USE_COMMON // 4. Common Directory if(place==0){ filename = g_strconcat(COMMON_DIR,mascotfile, NULL); if(access(filename,F_OK)==0){ place=4; } } #endif } if(place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Mascot File."), " ", to_utf8(mascot->file), NULL); #else g_print(_("Cannot Find Mascot File %s\n"),mascotfile); #endif exit(1); } if((place==1)||(place==2)||(place==4)){ if(mascot->flag_install){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); filename2 = g_strconcat(COMMON_DIR, mascotfile, NULL); } else{ #endif #ifdef USE_WIN32 filename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #else filename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #endif #ifdef USE_COMMON } #endif if((access(filename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(filename,filename2)!=0){ g_print(_("Installing %s -> %s\n"),filename,filename2); copy_file(filename,filename2); } } } // Pixmap¥Ç¡¼¥¿ if(mascot->flag_install){ cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { // Pixmap¥Ç¡¼¥¿ f_tmp0=g_strdup("Pixmap"); for(i_pix=0;i_pixflag_ow){ #ifdef USE_COMMON // 4. Common Directory if(p_place==0){ pixfilename = g_strconcat(COMMON_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=4; } } #endif // 3. USER Pixmap Directory if(p_place==0){ #ifdef USE_WIN32 pixfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=3; } } } else{ // 3. USER Pixmap Directory if(p_place==0){ #ifdef USE_WIN32 pixfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=3; } } #ifdef USE_COMMON // 4. Common Directory if(p_place==0){ pixfilename = g_strconcat(COMMON_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=4; } } #endif } if(p_place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Image."), " ", to_utf8(pixfile), NULL); #else g_print(_("Cannot Find Image %s\n"),pixfile); #endif exit(1); } if(p_place==1){ if(mascot->flag_install){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); pixfilename2 = g_strconcat(COMMON_DIR,PIXDIR, pixfile, NULL); } else{ #endif #ifdef USE_WIN32 pixfilename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, pixfile, NULL); #ifdef USE_COMMON } #endif if((access(pixfilename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(pixfilename,pixfilename2)!=0){ g_print(_("Installing %s -> %s\n"), pixfilename,pixfilename2); copy_file(pixfilename,pixfilename2); } } } } } else{ //if(xmms_cfg_read_string(cfgfile, f_tmp0, tmp, &pixfile)) break; } } xmms_cfg_free(cfgfile); } } } } gchar * FullPathMascotFile(typMascot *mascot, gchar *mascotfile) { gchar *filename=NULL; gint place=0; /// ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. Current¤«¤é if(place==0){ filename = g_strdup(mascotfile); if(access(filename,F_OK)==0){ place=2; } } // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, mascotfile,NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #endif if(access(filename,F_OK)==0){ place=3; } } #ifdef USE_COMMON // 4. Common Data Directory if(place==0){ filename = g_strconcat(COMMON_DIR,mascotfile, NULL); if(access(filename,F_OK)==0){ place=4; } } #endif if(place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Mascot File."), " ", to_utf8(mascotfile), NULL); #else g_print(_("Cannot Find Mascot File %s\n"), to_utf8(mascotfile)); #endif exit(1); } return(filename); } gboolean FullPathMascotCheck(typMascot *mascot, gchar *mascotfile) { gchar *filename=NULL; gint place=0; ConfigFile *cfgfile; gchar *f_tmp0=NULL; gchar *pix0=NULL; gboolean flag_mf=FALSE; /// ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. Current¤«¤é if(place==0){ filename = g_strdup(mascotfile); if(access(filename,F_OK)==0){ place=2; } } // 1. ¥á¥Ë¥å¡¼¤ÈƱ¤¸¾ì½ê if(place==0){ if(mascot->menu_file){ filename = g_strconcat(my_dirname(mascot->menu_file),G_DIR_SEPARATOR_S, mascotfile,NULL); if(access(filename,F_OK)==0){ place=1; } } } // 3. USER Directory if(place==0){ #ifdef USE_WIN32 filename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #else filename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, mascotfile, NULL); #endif if(access(filename,F_OK)==0){ place=3; } } #ifdef USE_COMMON // 4. Common Data Directory if(place==0){ filename = g_strconcat(COMMON_DIR,mascotfile, NULL); if(access(filename,F_OK)==0){ place=4; } } #endif if(place!=0){ cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { // Pixmap00¤Î»ØÄ꤬¤È¤ì¤ì¤Ð¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ÈǧÄê f_tmp0=g_strdup("Pixmap"); if(xmms_cfg_read_string(cfgfile, f_tmp0, "pixmap00",&pix0)) flag_mf=TRUE; xmms_cfg_free(cfgfile); } } if(flag_mf){ Mascot->file=filename; return(TRUE); } else{ return(FALSE); } } gchar *FullPathPixmapFile(typMascot *mascot, gchar *pixfile) { gchar *pixfilename=NULL, *pixfilename0=NULL, *pixfilename2=NULL; gint p_place=0; /// ²èÁü¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. ¥Õ¥ë¥Ñ¥¹ if(p_place==0){ pixfilename = g_strdup(pixfile); if(access(pixfilename,F_OK)==0){ p_place=2; } } // 1. ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¾ì½ê if(p_place==0){ pixfilename = g_strconcat(my_dirname(mascot->file), G_DIR_SEPARATOR_S,pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=1; } } if(mascot->flag_ow){ #ifdef USE_COMMON // 4. Common Data Directory if(p_place==0){ pixfilename = g_strconcat(COMMON_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=4; } } #endif // 3. USER Pixmap Directory if(p_place==0){ #ifdef USE_WIN32 pixfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=3; } } } else{ // 3. USER Pixmap Directory if(p_place==0){ #ifdef USE_WIN32 pixfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=3; } } #ifdef USE_COMMON // 4. Common Data Directory if(p_place==0){ pixfilename = g_strconcat(COMMON_DIR,PIXDIR, pixfile, NULL); if(access(pixfilename,F_OK)==0){ p_place=4; } } #endif } if(p_place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Image."), " ", to_utf8(pixfile), NULL); #else g_print(_("Cannot Find Image %s\n"),to_utf8(pixfile)); #endif exit(1); } // 3,4¤Ë¤Ê¤¤¾ì¹ç¤ÏUSER Pixmap Dir¤Ë¥³¥Ô¡¼¤¹¤ë if((p_place==1)||(p_place==2)){ if((mascot->flag_install)&&(!FlagInstalledMenu)){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); pixfilename2 = g_strconcat(COMMON_DIR,PIXDIR, my_basename(pixfile), NULL); } else{ #endif #ifdef USE_WIN32 pixfilename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, my_basename(pixfile), NULL); #ifdef USE_COMMON } #endif if((access(pixfilename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(pixfilename,pixfilename2)!=0){ g_print(_("Installing %s -> %s\n"),pixfilename,pixfilename2); copy_file(pixfilename,pixfilename2); pixfilename=pixfilename2; } } } } else if(mascot->flag_consow){ //Consistency Check #ifdef USE_WIN32 pixfilename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else pixfilename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, my_basename(pixfile), NULL); #ifdef USE_COMMON pixfilename0 = g_strconcat(COMMON_DIR,PIXDIR, my_basename(pixfile), NULL); if((access(pixfilename0,F_OK)==0)&&(access(pixfilename2,F_OK)==0)){ g_print(_("Installing %s -> %s\n"), pixfilename0,pixfilename2); copy_file(pixfilename0,pixfilename2); pixfilename=pixfilename2; } else{ pixfilename0 = g_strconcat(COMMON_DIR, my_basename(pixfile), NULL); if((access(pixfilename0,F_OK)==0)&&(access(pixfilename2,F_OK)==0)){ g_print(_("Installing %s -> %s\n"), pixfilename0,pixfilename2); copy_file(pixfilename0,pixfilename2); pixfilename=pixfilename2; } } #endif } return(pixfilename); } /// ¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ gchar *FullPathSoundFile(typMascot *mascot, gchar *wavfile, gboolean i_fl){ gchar *wavfilename=NULL,*wavfilename2=NULL; gint s_place=0; if(wavfile==NULL) return(NULL); /// ²»À¼¥Õ¥¡¥¤¥ë¤ò½çÈÖ¤Çõ¤¹ // 2. ¥Õ¥ë¥Ñ¥¹ if(s_place==0){ wavfilename = g_strdup(wavfile); if(access(wavfilename,F_OK)==0){ s_place=2; } } // 1. ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¾ì½ê if(s_place==0){ wavfilename = g_strconcat(my_dirname(mascot->file), G_DIR_SEPARATOR_S,wavfile, NULL); if(access(wavfilename,F_OK)==0){ s_place=1; } } if(mascot->flag_ow){ #ifdef USE_COMMON // 4. Common Data Directory if(s_place==0){ wavfilename = g_strconcat(COMMON_DIR,SOUNDDIR, wavfile, NULL); if(access(wavfilename,F_OK)==0){ s_place=4; } } #endif // 3. USER Sound Directory if(s_place==0){ #ifdef USE_WIN32 wavfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else wavfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,SOUNDDIR, wavfile, NULL); if(access(wavfilename,F_OK)==0){ s_place=3; } } } else{ // 3. USER Sound Directory if(s_place==0){ #ifdef USE_WIN32 wavfilename = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else wavfilename = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,SOUNDDIR, wavfile, NULL); if(access(wavfilename,F_OK)==0){ s_place=3; } } #ifdef USE_COMMON // 4. Common Data Directory if(s_place==0){ wavfilename = g_strconcat(COMMON_DIR,SOUNDDIR, wavfile, NULL); if(access(wavfilename,F_OK)==0){ s_place=4; } } #endif } if(s_place==0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Cannot Find Sound File."), " ", to_utf8(wavfile), NULL); #else g_print(_("Cannot Find Sound File %s\n"),to_utf8(wavfile)); #endif exit(1); } // 3,4¤Ë¤Ê¤¤¾ì¹ç¤ÏUSER Sound Dir¤Ë¥³¥Ô¡¼¤¹¤ë if((s_place==1)||(s_place==2)){ if(((mascot->flag_install)&&(!FlagInstalledMenu))||(i_fl)){ #ifdef USE_COMMON if(mascot->flag_common){ check_common_dir(); wavfilename2 = g_strconcat(COMMON_DIR,SOUNDDIR, my_basename(wavfile), NULL); } else{ #endif #ifdef USE_WIN32 wavfilename2 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else wavfilename2 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,SOUNDDIR, my_basename(wavfile), NULL); #ifdef USE_COMMON } #endif if((access(wavfilename2,F_OK)!=0)||(mascot->flag_ow)){ if(strcmp(wavfilename,wavfilename2)!=0){ g_print(_("Installing %s -> %s\n"),wavfilename,wavfilename2); copy_file(wavfilename,wavfilename2); wavfilename=wavfilename2; } } } } return(wavfilename); } /// ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤òõ¤¹ // ¥Õ¥ë¥Ñ¥¹¤Ç¤«¤«¤ì¤Æ¤¤¤Æ¥¢¥¯¥»¥¹¤Ç¤­¤ë¤« // ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð USERDIR²¼¤Çõ¤¹ // ¸«¤Ä¤«¤é¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤ÎRCFILE¤òÊÖ¤»¤Ð¤è¤¤ gchar *FullPathRcFile(gchar *rcfile){ gchar *filename1; // 1. ¥Þ¥¹¥³¥Ã¥È file¤ÈƱ°ì Directory if(access(rcfile,F_OK)==0){ filename1 = g_strdup(rcfile); } else{ #ifdef USE_WIN32 filename1 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else filename1 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,rcfile, NULL); if(access(filename1,F_OK)!=0){ g_print(_("Cannot find resource file %s.\n"),rcfile); g_print(_("Loading default resource file...\n")); #ifdef USE_WIN32 filename1 = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, #else filename1 = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, #endif USER_RCFILE, NULL); } } return(filename1); } // ¥Þ¥¹¥³¥Ã¥È̾¤ÎÆÉ¤ß¹þ¤ß gchar * ReadMascotName(typMascot *mascot, gchar *mascotfile) { ConfigFile *cfgfile; gchar *filename=NULL; gchar *f_tmp0=NULL; gchar *mascotname=NULL; gchar *code=NULL; filename=FullPathMascotFile(mascot, mascotfile); cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { // General f_tmp0=g_strdup("General"); #ifdef USE_GTK2 if(!xmms_cfg_read_string(cfgfile, f_tmp0, "code",&code)) code = NULL; #endif if(!xmms_cfg_read_string(cfgfile, f_tmp0, "name",&mascotname)) mascotname = g_strconcat("(",my_basename(mascotfile),")", NULL); #ifdef USE_GTK2 if(mascotname){ mascotname=x_locale_to_utf8(mascotname,-1,NULL,NULL,NULL,code); if(!mascotname) mascotname=g_strdup(_("(Invalid Character Code)")); } #endif xmms_cfg_free(cfgfile); } g_free(f_tmp0); g_free(filename); g_free(code); return(mascotname); } // ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ë¤Î½ñ¤­¹þ¤ß void SaveMascot(typMascot *mascot, gboolean def_flag) { ConfigFile *cfgfile; gchar *filename; gchar tmp[64], tmp0[64]; int i_pix=0, i_ptn=0, i_frm=0, i_pix2=0; gchar *f_tmp=NULL; #ifdef USE_GTK2 gchar *tmp_conv=NULL; #endif filename = g_strdup(mascot->file); cfgfile = xmms_cfg_open_file(filename); if (!cfgfile) cfgfile = xmms_cfg_new(); // General if(def_flag) f_tmp=g_strdup("Default-General"); else f_tmp=g_strdup("General"); xmms_cfg_write_string(cfgfile, f_tmp, "prog_ver",VERSION); #ifdef USE_GTK2 if(mascot->code){ xmms_cfg_write_string(cfgfile, f_tmp, "code",mascot->code); } else{ xmms_cfg_remove_key(cfgfile,f_tmp, "code"); } if(mascot->name){ tmp_conv= x_locale_from_utf8(mascot->name,-1,NULL,NULL,NULL,mascot->code); xmms_cfg_write_string(cfgfile, f_tmp, "name",tmp_conv); } #else if(mascot->name) xmms_cfg_write_string(cfgfile, f_tmp, "name",mascot->name); #endif if(mascot->copyright) xmms_cfg_write_string(cfgfile, f_tmp, "copyright",mascot->copyright); xmms_cfg_write_boolean(cfgfile, f_tmp, "default_color",TRUE); // Focus Movement etc. if(def_flag) f_tmp=g_strdup("Default-Move"); else f_tmp=g_strdup("Move"); xmms_cfg_write_int(cfgfile, f_tmp, "move",mascot->move); xmms_cfg_write_int(cfgfile, f_tmp, "xoff",mascot->xoff); xmms_cfg_write_int(cfgfile, f_tmp, "yoff",mascot->yoff); xmms_cfg_write_int(cfgfile, f_tmp, "fix_x",mascot->xfix); xmms_cfg_write_int(cfgfile, f_tmp, "fix_y",mascot->yfix); // Clock if(def_flag) f_tmp=g_strdup("Default-Clock"); else f_tmp=g_strdup("Clock"); xmms_cfg_write_int(cfgfile, f_tmp, "mode",mascot->clkmode); xmms_cfg_write_int(cfgfile, f_tmp, "type",mascot->clktype); xmms_cfg_write_int(cfgfile, f_tmp, "x",mascot->clk_x); xmms_cfg_write_int(cfgfile, f_tmp, "y",mascot->clk_y); xmms_cfg_write_int(cfgfile, f_tmp, "text_x",mascot->clktext_x); xmms_cfg_write_int(cfgfile, f_tmp, "text_y",mascot->clktext_y); xmms_cfg_write_int(cfgfile, f_tmp, "sd_x",mascot->clksd_x); xmms_cfg_write_int(cfgfile, f_tmp, "sd_y",mascot->clksd_y); xmms_cfg_write_int(cfgfile, f_tmp, "border",mascot->wclkbd); xmms_cfg_write_boolean(cfgfile, f_tmp, "shadow",mascot->flag_clksd); xmms_cfg_write_boolean(cfgfile, f_tmp, "round",mascot->flag_clkrd); if(strcmp(mascot->fontname_clk,mascot->deffontname_clk)!=0) xmms_cfg_write_string(cfgfile, f_tmp, "font",mascot->fontname_clk); else xmms_cfg_remove_key(cfgfile,f_tmp, "font"); // Balloon if(def_flag) f_tmp=g_strdup("Default-Balloon"); else f_tmp=g_strdup("Balloon"); xmms_cfg_write_int(cfgfile, f_tmp, "text_x",mascot->baltext_x); xmms_cfg_write_int(cfgfile, f_tmp, "text_y",mascot->baltext_y); xmms_cfg_write_int(cfgfile, f_tmp, "border",mascot->wbalbd); xmms_cfg_write_int(cfgfile, f_tmp, "position",mascot->bal_defpos); if(strcmp(mascot->fontname_bal,mascot->deffontname_bal)!=0) xmms_cfg_write_string(cfgfile, f_tmp, "font",mascot->fontname_bal); else xmms_cfg_remove_key(cfgfile,f_tmp, "font"); // Color for Clock if(def_flag) f_tmp=g_strdup("Default-ClockColor"); else f_tmp=g_strdup("ClockColor"); if(( mascot->colclk->red ==mascot->def_colclk->red) &&(mascot->colclk->green==mascot->def_colclk->green) &&(mascot->colclk->blue ==mascot->def_colclk->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "text_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "text_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "text_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "text_r",mascot->colclk->red); xmms_cfg_write_int(cfgfile, f_tmp, "text_g",mascot->colclk->green); xmms_cfg_write_int(cfgfile, f_tmp, "text_b",mascot->colclk->blue); } #ifdef USE_CAIRO if(mascot->alpclk ==mascot->def_alpclk) xmms_cfg_remove_key(cfgfile,f_tmp, "text_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "text_p",mascot->alpclk); #endif if(( mascot->colclksd->red ==mascot->def_colclksd->red) &&(mascot->colclksd->green==mascot->def_colclksd->green) &&(mascot->colclksd->blue ==mascot->def_colclksd->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "shadow_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "shadow_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "shadow_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "shadow_r",mascot->colclksd->red); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_g",mascot->colclksd->green); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_b",mascot->colclksd->blue); } #ifdef USE_CAIRO if(mascot->alpclksd ==mascot->def_alpclksd) xmms_cfg_remove_key(cfgfile,f_tmp, "shadow_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "shadow_p",mascot->alpclksd); #endif if(( mascot->colclkbg->red ==mascot->def_colclkbg->red) &&(mascot->colclkbg->green==mascot->def_colclkbg->green) &&(mascot->colclkbg->blue ==mascot->def_colclkbg->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "bg_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "bg_r",mascot->colclkbg->red); xmms_cfg_write_int(cfgfile, f_tmp, "bg_g",mascot->colclkbg->green); xmms_cfg_write_int(cfgfile, f_tmp, "bg_b",mascot->colclkbg->blue); } #ifdef USE_CAIRO if(mascot->alpclkbg ==mascot->def_alpclkbg) xmms_cfg_remove_key(cfgfile,f_tmp, "bg_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "bg_p",mascot->alpclkbg); #endif if(( mascot->colclkbd->red ==mascot->def_colclkbd->red) &&(mascot->colclkbd->green==mascot->def_colclkbd->green) &&(mascot->colclkbd->blue ==mascot->def_colclkbd->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "border_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "border_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "border_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "border_r",mascot->colclkbd->red); xmms_cfg_write_int(cfgfile, f_tmp, "border_g",mascot->colclkbd->green); xmms_cfg_write_int(cfgfile, f_tmp, "border_b",mascot->colclkbd->blue); } #ifdef USE_CAIRO if(mascot->alpclkbd ==mascot->def_alpclkbd) xmms_cfg_remove_key(cfgfile,f_tmp, "border_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "border_p",mascot->alpclkbd); #endif // Color for Balloon if(def_flag) f_tmp=g_strdup("Default-BalloonColor"); else f_tmp=g_strdup("BalloonColor"); if(( mascot->colbal->red ==mascot->def_colbal->red) &&(mascot->colbal->green==mascot->def_colbal->green) &&(mascot->colbal->blue ==mascot->def_colbal->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "text_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "text_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "text_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "text_r",mascot->colbal->red); xmms_cfg_write_int(cfgfile, f_tmp, "text_g",mascot->colbal->green); xmms_cfg_write_int(cfgfile, f_tmp, "text_b",mascot->colbal->blue); } #ifdef USE_CAIRO if(mascot->alpbal ==mascot->def_alpbal) xmms_cfg_remove_key(cfgfile,f_tmp, "text_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "text_p",mascot->alpbal); #endif if(( mascot->colbalbg->red ==mascot->def_colbalbg->red) &&(mascot->colbalbg->green==mascot->def_colbalbg->green) &&(mascot->colbalbg->blue ==mascot->def_colbalbg->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "bg_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "bg_r",mascot->colbalbg->red); xmms_cfg_write_int(cfgfile, f_tmp, "bg_g",mascot->colbalbg->green); xmms_cfg_write_int(cfgfile, f_tmp, "bg_b",mascot->colbalbg->blue); } #ifdef USE_CAIRO if(mascot->alpbalbg ==mascot->def_alpbalbg) xmms_cfg_remove_key(cfgfile,f_tmp, "bg_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "bg_p",mascot->alpbalbg); #endif if(( mascot->colbalbd->red ==mascot->def_colbalbd->red) &&(mascot->colbalbd->green==mascot->def_colbalbd->green) &&(mascot->colbalbd->blue ==mascot->def_colbalbd->blue)){ xmms_cfg_remove_key(cfgfile,f_tmp, "border_r"); xmms_cfg_remove_key(cfgfile,f_tmp, "border_g"); xmms_cfg_remove_key(cfgfile,f_tmp, "border_b"); } else{ xmms_cfg_write_int(cfgfile, f_tmp, "border_r",mascot->colbalbd->red); xmms_cfg_write_int(cfgfile, f_tmp, "border_g",mascot->colbalbd->green); xmms_cfg_write_int(cfgfile, f_tmp, "border_b",mascot->colbalbd->blue); } #ifdef USE_CAIRO if(mascot->alpbalbd ==mascot->def_alpbalbd) xmms_cfg_remove_key(cfgfile,f_tmp, "border_p"); else xmms_cfg_write_int(cfgfile, f_tmp, "border_p",mascot->alpbalbd); #endif #ifdef USE_BIFF // Biff¥Ç¡¼¥¿ if(def_flag) f_tmp=g_strdup("Default-Biff"); else f_tmp=g_strdup("Biff"); // BiffÍѲèÁü¥Õ¥¡¥¤¥ë if(mascot->mail.pix_file) xmms_cfg_write_string(cfgfile, f_tmp, "pix-file",mascot->mail.pix_file); else xmms_cfg_remove_key(cfgfile,f_tmp, "pix-file"); xmms_cfg_write_int(cfgfile, f_tmp, "pix-pos",mascot->mail.pix_pos); xmms_cfg_write_int(cfgfile, f_tmp, "pix-x",mascot->mail.pix_x); xmms_cfg_write_int(cfgfile, f_tmp, "pix-y",mascot->mail.pix_y); // BiffÍѤդ­¤À¤·¥á¥Ã¥»¡¼¥¸ #ifdef USE_GTK2 if(mascot->mail.word){ tmp_conv= x_locale_from_utf8(mascot->mail.word,-1,NULL,NULL,NULL,mascot->code); xmms_cfg_write_string(cfgfile, f_tmp, "word",tmp_conv); } #else if(mascot->mail.word) xmms_cfg_write_string(cfgfile, f_tmp, "word",mascot->mail.word); #endif else xmms_cfg_remove_key(cfgfile,f_tmp, "word"); // BiffÃå¿®»þºÆÀ¸²»À¼¥Õ¥¡¥¤¥ë if(mascot->mail.sound) xmms_cfg_write_string(cfgfile, f_tmp, "sound",mascot->mail.sound); else xmms_cfg_remove_key(cfgfile, f_tmp, "sound"); #endif // USE_BIFF #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) || defined(USE_WIN32) // Alpha Percentage if(!mascot->force_def_alpha){ if(def_flag) f_tmp=g_strdup("Default-Alpha"); else f_tmp=g_strdup("Alpha"); xmms_cfg_write_int(cfgfile, f_tmp, "main",mascot->alpha_main); #ifdef USE_BIFF xmms_cfg_write_int(cfgfile, f_tmp, "biff",mascot->alpha_biff); #endif #ifdef USE_WIN32 xmms_cfg_write_int(cfgfile, f_tmp, "balloon",mascot->alpha_bal); xmms_cfg_write_int(cfgfile, f_tmp, "clock",mascot->alpha_clk); xmms_cfg_write_boolean(cfgfile, f_tmp,"balloonfg",mascot->flag_balfg); xmms_cfg_write_boolean(cfgfile, f_tmp,"clockfg",mascot->flag_clkfg); #endif } #endif // Pixmap¥Ç¡¼¥¿ if(def_flag) f_tmp=g_strdup("Default-Pixmap"); else f_tmp=g_strdup("Pixmap"); for(i_pix=0;i_pixsprites[i_pix].filename){ xmms_cfg_write_string(cfgfile, f_tmp, tmp, (char *)my_basename(mascot->sprites[i_pix].filename)); } else{ for(i_pix2=i_pix;i_pix2random_weight[i_ptn]!=0){ // ¥é¥ó¥À¥à¥¢¥Ë¥á½Å¤ß xmms_cfg_write_int(cfgfile, tmp0, "random_weight", mascot->random_weight[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "random_weight"); } if(mascot->click_weight[i_ptn]!=0){ // ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á½Å¤ß xmms_cfg_write_int(cfgfile, tmp0, "click_weight", mascot->click_weight[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "click_weight"); } if(mascot->bal_lxoff[i_ptn]!=0){ // ¤Õ¤­¤À¤· offset X[º¸] xmms_cfg_write_int(cfgfile, tmp0, "balloon_lxoff", mascot->bal_lxoff[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "balloon_lxoff"); } if(mascot->bal_lyoff[i_ptn]!=0){ // ¤Õ¤­¤À¤· offset Y[º¸] xmms_cfg_write_int(cfgfile, tmp0, "balloon_lyoff", mascot->bal_lyoff[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "balloon_lyoff"); } if(mascot->bal_rxoff[i_ptn]!=0){ // ¤Õ¤­¤À¤· offset X[±¦] xmms_cfg_write_int(cfgfile, tmp0, "balloon_rxoff", mascot->bal_rxoff[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "balloon_rxoff"); } if(mascot->bal_ryoff[i_ptn]!=0){ // ¤Õ¤­¤À¤· offset Y[±¦] xmms_cfg_write_int(cfgfile, tmp0, "balloon_ryoff", mascot->bal_ryoff[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "balloon_ryoff"); } #ifdef USE_GTK2 if(mascot->click_word[i_ptn]){ tmp_conv= x_locale_from_utf8(mascot->click_word[i_ptn],-1,NULL,NULL,NULL,mascot->code); xmms_cfg_write_string(cfgfile, tmp0, "click_word",tmp_conv); } #else if(mascot->click_word[i_ptn]){ // ¥Ð¥ë¡¼¥óÍѥƥ­¥¹¥È xmms_cfg_write_string(cfgfile, tmp0, "click_word", (gchar *)mascot->click_word[i_ptn]); } #endif else{ xmms_cfg_remove_key(cfgfile,tmp0, "click_word"); } if(mascot->click_sound[i_ptn]){ // ¥¯¥ê¥Ã¥¯»þºÆÀ¸²»À¼¥Õ¥¡¥¤¥ë xmms_cfg_write_string(cfgfile, tmp0, "click_sound", (gchar *)mascot->click_sound[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "click_sound"); } #ifdef USE_SOCKMSG if(mascot->duet_tgt[i_ptn]){ // ¥Ç¥å¥¨¥Ã¥È¥¢¥Ë¥á xmms_cfg_write_string(cfgfile, tmp0, "duet_tgt", (gchar *)mascot->duet_tgt[i_ptn]); xmms_cfg_write_int(cfgfile, tmp0, "duet_ptn", mascot->duet_ptn[i_ptn]); #ifdef USE_GTK2 if(mascot->duet_word[i_ptn]){ tmp_conv= x_locale_from_utf8(mascot->duet_word[i_ptn],-1,NULL,NULL,NULL,mascot->code); xmms_cfg_write_string(cfgfile, tmp0, "duet_word",tmp_conv); } #else if(mascot->duet_word[i_ptn]){ xmms_cfg_write_string(cfgfile, tmp0, "duet_word", (gchar *)mascot->duet_word[i_ptn]); } #endif xmms_cfg_write_int(cfgfile, tmp0, "duet_delay", mascot->duet_delay[i_ptn]); } else{ xmms_cfg_remove_key(cfgfile,tmp0, "duet_tgt"); xmms_cfg_remove_key(cfgfile,tmp0, "duet_ptn"); xmms_cfg_remove_key(cfgfile,tmp0, "duet_word"); xmms_cfg_remove_key(cfgfile,tmp0, "duet_delay"); } #endif // USE_SOCKMSG // ³Æ¥Õ¥ì¡¼¥à for(i_frm=0;i_frmframe_pix[i_ptn][i_frm]!=-1){ // Pixmap sprintf(tmp, "pix%02d", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_pix[i_ptn][i_frm]); // minimum sprintf(tmp, "min%02d", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_min[i_ptn][i_frm]); // maximum sprintf(tmp, "max%02d", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_max[i_ptn][i_frm]); if(mascot->frame_loop[i_ptn][i_frm].next!=-1){ // Block Loop Next Frame sprintf(tmp, "loop%02dnext", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_loop[i_ptn][i_frm].next); // Block Loop Minimum sprintf(tmp, "loop%02dmin", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_loop[i_ptn][i_frm].min); // Block Loop Maximum sprintf(tmp, "loop%02dmax", i_frm); xmms_cfg_write_int(cfgfile, tmp0, tmp, mascot->frame_loop[i_ptn][i_frm].max); } else{ sprintf(tmp, "loop%02dnext", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "loop%02dmin", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "loop%02dmax", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); } } else{ sprintf(tmp, "pix%02d", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "min%02d", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "max%02d", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "loop%02dnext", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "loop%02dmin", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); sprintf(tmp, "loop%02dmax", i_frm); xmms_cfg_remove_key(cfgfile,tmp0,tmp); } } } if(!def_flag){ if(!xmms_cfg_read_string(cfgfile, "Default-General","prog_ver",&f_tmp)){ xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); SaveMascot(mascot,TRUE); } else{ xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); } } else{ xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); } g_free(f_tmp); g_free(filename); #ifdef USE_GTK2 g_free(tmp_conv); #endif } // ¥ê¥ê¡¼¥¹ÍÑ¥Þ¥¹¥³¥Ã¥È¤Î¥Õ¥©¥ó¥È¾ðÊó¤Î½üµî¤â¤·¤¯¤ÏÄɲà void SetFontForReleaseData(typMascot *mascot, gboolean def_flag, gint field, gboolean set_flag) { ConfigFile *cfgfile; gchar *filename=NULL; gchar *f_tmp=NULL; filename = g_strdup(mascot->file); cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { if(field==SET_RELEASE_BALLOON){ // Balloon if(def_flag) f_tmp=g_strdup("Default-Balloon"); else f_tmp=g_strdup("Balloon"); if(!set_flag){ xmms_cfg_remove_key(cfgfile, f_tmp, "font"); } else{ xmms_cfg_write_string(cfgfile, f_tmp, "font",mascot->fontname_bal); } } else if(field==SET_RELEASE_CLOCK){ // Clock if(def_flag) f_tmp=g_strdup("Default-Clock"); else f_tmp=g_strdup("Clock"); if(!set_flag){ xmms_cfg_remove_key(cfgfile, f_tmp, "font"); } else{ xmms_cfg_write_string(cfgfile, f_tmp, "font",mascot->fontname_clk); } } xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); } g_free(f_tmp); g_free(filename); } // ¥ê¥ê¡¼¥¹ÍÑ¥Þ¥¹¥³¥Ã¥È¤«¤é¤Î¿§¾ðÊó¤Î½üµî void SetColorForReleaseData(typMascot *mascot, gboolean def_flag, gint field, gboolean set_flag) { ConfigFile *cfgfile; gchar *filename=NULL; gchar *f_tmp=NULL; filename = g_strdup(mascot->file); cfgfile = xmms_cfg_open_file(filename); if (cfgfile) { if(field==SET_RELEASE_BALLOON){ // Balloon if(def_flag) f_tmp=g_strdup("Default-BalloonColor"); else f_tmp=g_strdup("BalloonColor"); if(!set_flag){ xmms_cfg_remove_key(cfgfile, f_tmp, "text_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "text_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "text_b"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_b"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_b"); #ifdef USE_CAIRO xmms_cfg_remove_key(cfgfile, f_tmp, "text_p"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_p"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_p"); #endif } else{ xmms_cfg_write_int(cfgfile, f_tmp, "text_r",mascot->colbal->red); xmms_cfg_write_int(cfgfile, f_tmp, "text_g",mascot->colbal->green); xmms_cfg_write_int(cfgfile, f_tmp, "text_b",mascot->colbal->blue); xmms_cfg_write_int(cfgfile, f_tmp, "bg_r",mascot->colbalbg->red); xmms_cfg_write_int(cfgfile, f_tmp, "bg_g",mascot->colbalbg->green); xmms_cfg_write_int(cfgfile, f_tmp, "bg_b",mascot->colbalbg->blue); xmms_cfg_write_int(cfgfile, f_tmp, "border_r",mascot->colbalbd->red); xmms_cfg_write_int(cfgfile, f_tmp, "border_g",mascot->colbalbd->green); xmms_cfg_write_int(cfgfile, f_tmp, "border_b",mascot->colbalbd->blue); #ifdef USE_CAIRO xmms_cfg_write_int(cfgfile, f_tmp, "text_p",mascot->alpbal); xmms_cfg_write_int(cfgfile, f_tmp, "bg_p",mascot->alpbalbg); xmms_cfg_write_int(cfgfile, f_tmp, "border_p",mascot->alpbalbd); #endif } } else if(field==SET_RELEASE_CLOCK){ // Clock if(def_flag) f_tmp=g_strdup("Default-ClockColor"); else f_tmp=g_strdup("ClockColor"); if(!set_flag){ xmms_cfg_remove_key(cfgfile, f_tmp, "text_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "text_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "text_b"); xmms_cfg_remove_key(cfgfile, f_tmp, "shadow_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "shadow_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "shadow_b"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_b"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_r"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_g"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_b"); #ifdef USE_CAIRO xmms_cfg_remove_key(cfgfile, f_tmp, "text_p"); xmms_cfg_remove_key(cfgfile, f_tmp, "shadow_p"); xmms_cfg_remove_key(cfgfile, f_tmp, "bg_p"); xmms_cfg_remove_key(cfgfile, f_tmp, "border_p"); #endif } else{ xmms_cfg_write_int(cfgfile, f_tmp, "text_r",mascot->colclk->red); xmms_cfg_write_int(cfgfile, f_tmp, "text_g",mascot->colclk->green); xmms_cfg_write_int(cfgfile, f_tmp, "text_b",mascot->colclk->blue); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_r",mascot->colclksd->red); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_g",mascot->colclksd->green); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_b",mascot->colclksd->blue); xmms_cfg_write_int(cfgfile, f_tmp, "bg_r",mascot->colclkbg->red); xmms_cfg_write_int(cfgfile, f_tmp, "bg_g",mascot->colclkbg->green); xmms_cfg_write_int(cfgfile, f_tmp, "bg_b",mascot->colclkbg->blue); xmms_cfg_write_int(cfgfile, f_tmp, "border_r",mascot->colclkbd->red); xmms_cfg_write_int(cfgfile, f_tmp, "border_g",mascot->colclkbd->green); xmms_cfg_write_int(cfgfile, f_tmp, "border_b",mascot->colclkbd->blue); #ifdef USE_CAIRO xmms_cfg_write_int(cfgfile, f_tmp, "text_p",mascot->alpclk); xmms_cfg_write_int(cfgfile, f_tmp, "shadow_p",mascot->alpclksd); xmms_cfg_write_int(cfgfile, f_tmp, "bg_p",mascot->alpclkbg); xmms_cfg_write_int(cfgfile, f_tmp, "border_p",mascot->alpclkbd); #endif } } xmms_cfg_write_file(cfgfile, filename); xmms_cfg_free(cfgfile); } g_free(f_tmp); g_free(filename); } void InitMascot(typMascot *mascot) { int i_ptn,i_frm; #ifdef USE_SOCKMSG SockMsgInitResult sockres; // ¥Þ¥¹¥³¥Ã¥È¥¢¥¯¥·¥ç¥óÍÑ ¥½¥±¥Ã¥È if(mascot->duet_open){ duet_sv_done(mascot->duet_file,TRUE); mascot->duet_open=FALSE; } { sockres = duet_sv_init((gchar *)my_basename(mascot->file)); switch (sockres) { case SOCKMSG_ERROR: mascot->duet_open=FALSE; break; case SOCKMSG_OPENED: // ¤¹¤Ç¤Ë¥½¥±¥Ã¥È¤¬Â¸ºß¡£ //mascot->duet_open=FALSE; mascot->duet_open=TRUE; mascot->duet_file=g_strdup(my_basename(mascot->file)); duet_set_mascot(mascot); break; default: mascot->duet_open=TRUE; mascot->duet_file=g_strdup(my_basename(mascot->file)); duet_set_mascot(mascot); break; } } #endif // USE_SOCKMSG mascot->xoff=0; mascot->yoff=0; mascot->xfix=0; mascot->yfix=0; #ifdef USE_WIN32 mascot->sdw_height=0; #endif mascot->anime_ptn=0; mascot->anime_frm=0; mascot->anime_seq=0; mascot->anime_seqend=-1; mascot->random_total=0; mascot->click_total=0; mascot->clkmode=CLOCK_NO; mascot->clkmode=CLOCK_TYPE_24S; mascot->clk_x=INIT_CLK_POS; mascot->clk_y=INIT_CLK_POS; mascot->clktext_x=INIT_CLK_TEXT; mascot->clktext_y=INIT_CLK_TEXT; mascot->clksd_x=INIT_CLK_SD; mascot->clksd_y=INIT_CLK_SD; mascot->flag_clksd=TRUE; mascot->flag_clkrd=TRUE; mascot->wclkbd = INIT_CLK_BORDER; mascot->fontname_clk = NULL; mascot->baltext_x=INIT_BAL_TEXT; mascot->baltext_y=INIT_BAL_TEXT; mascot->wbalbd = INIT_BAL_BORDER; mascot->bal_defpos = BAL_POS_LEFT; mascot->bal_pos=mascot->bal_defpos; mascot->fontname_bal = NULL; mascot->colclk=gdk_color_copy(mascot->def_colclk); mascot->colclksd=gdk_color_copy(mascot->def_colclksd); mascot->colclkbg=gdk_color_copy(mascot->def_colclkbg); mascot->colclkbd=gdk_color_copy(mascot->def_colclkbd); mascot->colbal=gdk_color_copy(mascot->def_colbal); mascot->colbalbg=gdk_color_copy(mascot->def_colbalbg); mascot->colbalbd=gdk_color_copy(mascot->def_colbalbd); mascot->def_colclk=gdk_color_copy(mascot->def_colclk); mascot->def_colclksd=gdk_color_copy(mascot->def_colclksd); mascot->def_colclkbg=gdk_color_copy(mascot->def_colclkbg); mascot->def_colclkbd=gdk_color_copy(mascot->def_colclkbd); mascot->def_colbal=gdk_color_copy(mascot->def_colbal); mascot->def_colbalbg=gdk_color_copy(mascot->def_colbalbg); mascot->def_colbalbd=gdk_color_copy(mascot->def_colbalbd); #ifdef USE_BIFF mascot->mail.pix_file=NULL; mascot->mail.pix_pos=MAIL_PIX_RIGHT; mascot->mail.pix_x=0; mascot->mail.pix_y=0; mascot->mail.word=NULL; mascot->mail.sound=NULL; #endif // USE_BIFF #ifdef USE_SOCKMSG mascot->duet_seq=-1; mascot->duet_mode=DUET_RANDOM; #endif // USE_SOCKMSG mascot->code=NULL; for(i_ptn=0;i_ptnframe_num[i_ptn]=0; mascot->random_weight[i_ptn]=0; mascot->click_weight[i_ptn]=0; mascot->bal_lxoff[i_ptn]=0; mascot->bal_lyoff[i_ptn]=0; mascot->bal_rxoff[i_ptn]=0; mascot->bal_ryoff[i_ptn]=0; mascot->click_word[i_ptn]=NULL; mascot->click_sound[i_ptn]=NULL; #ifdef USE_SOCKMSG mascot->duet_tgt[i_ptn]=NULL; mascot->duet_ptn[i_ptn]=1; mascot->duet_word[i_ptn]=NULL; mascot->duet_delay[i_ptn]=DEF_DUET_DELAY; #endif // USE_SOCKMSG for(i_frm=0;i_frmframe_pix[i_ptn][i_frm]=-1; mascot->frame_min[i_ptn][i_frm]=0; mascot->frame_max[i_ptn][i_frm]=0; mascot->frame_loop[i_ptn][i_frm].next=-1; mascot->frame_loop[i_ptn][i_frm].min=0; mascot->frame_loop[i_ptn][i_frm].max=0; mascot->frame_loop[i_ptn][i_frm].seq=0; mascot->frame_loop[i_ptn][i_frm].seqend=0; } } } void InitMascot0(typMascot *mascot){ int i_page; #ifndef USE_WIN32 Window rootwin; #endif int x_root, y_root, width_root, height_root, border, depth; // Root Window¤ÎÂ礭¤µ¼èÆÀ #ifdef USE_WIN32 width_root=GetSystemMetrics(SM_CXVIRTUALSCREEN); height_root=GetSystemMetrics(SM_CYVIRTUALSCREEN); #else XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), GDK_ROOT_WINDOW(), &rootwin, &x_root, &y_root, &width_root, &height_root, &border, &depth); #endif mascot->width_root=width_root; mascot->height_root=height_root; #ifdef USE_SOCKMSG mascot->duet_open=FALSE; mascot->duet_file=NULL; #endif // USE_SOCKMSG mascot->x=0; mascot->y=0; mascot->pixmap_page=1; mascot->bal_page=1; mascot->clk_page=1; mascot->balwidth=0; mascot->balheight=0; mascot->clk_drag=FALSE; mascot->flag_menu=FALSE; for(i_page=0;i_page<2;i_page++){ mascot->gc_main[i_page] = NULL; mascot->gc_mainsd[i_page] = NULL; mascot->gc_clk[i_page] = NULL; mascot->gc_clksd[i_page] = NULL; mascot->gc_clkbg[i_page] = NULL; mascot->gc_clkbd[i_page] = NULL; mascot->gc_clkmask[i_page] = NULL; mascot->gc_bal[i_page] = NULL; mascot->gc_balbg[i_page] = NULL; mascot->gc_balbd[i_page] = NULL; mascot->gc_balmask[i_page] = NULL; } mascot->sprites=sprite_void; #ifdef USE_BIFF mascot->mail.proc_id=-1; mascot->mail.pixmap=NULL; mascot->mail.mask=NULL; mascot->mail.drag=FALSE; mascot->mail.fs_max=NULL; mascot->mail.pop_readed=FALSE; mascot->mail.pop_child_fl=FALSE; #endif // USE_BIFF mascot->clk_pm=FALSE; mascot->colclk=g_malloc0(sizeof(GdkColor)); mascot->colclksd=g_malloc0(sizeof(GdkColor)); mascot->colclkbg=g_malloc0(sizeof(GdkColor)); mascot->colclkbd=g_malloc0(sizeof(GdkColor)); mascot->colbal=g_malloc0(sizeof(GdkColor)); mascot->colbalbg=g_malloc0(sizeof(GdkColor)); mascot->colbalbd=g_malloc0(sizeof(GdkColor)); InitMascot(mascot); } void get_option(int argc, char **argv, typMascot *mascot) { int i_opt; int valid=1; gchar *filename=NULL; mascot->file=NULL; mascot->flag_common=FALSE; //if(argc<2) usage(); i_opt = 1; while((i_opt < argc)&&(valid==1)) { // --- X offset if((strcmp(argv[i_opt],"-o") == 0)|| (strcmp(argv[i_opt],"--offset") == 0)){ if(i_opt+1 < argc ) { char* chkRF; i_opt++; mascot->offset=strtol(argv[i_opt],&chkRF,10); if((mascot->flag_xp='%')==*chkRF){ mascot->offsetp=mascot->offset; mascot->offset=0; if((mascot->offsetp<0 )||(100offsetp))mascot->offsetp=10; } else{ mascot->flag_xp=FALSE; } i_opt++; } else{ valid = 0; } } // --- Menu File else if((strcmp(argv[i_opt],"-m") == 0)|| (strcmp(argv[i_opt],"--menu") == 0)){ if(i_opt+1 < argc ) { i_opt++; mascot->menu_file=g_strdup(argv[i_opt]); i_opt++; } else{ valid = 0; } } // --- Install Menu File else if((strcmp(argv[i_opt],"--install-user-menu") == 0)){ if(i_opt+1 < argc ) { mascot->flag_install=TRUE; mascot->flag_common=FALSE; mascot->flag_ow=TRUE; mascot->flag_ow_ini=TRUE; i_opt++; mascot->menu_file=g_strdup(argv[i_opt]); i_opt++; } else{ valid = 0; } } // --- Install Mascot File else if((strcmp(argv[i_opt],"--install-user-mascot") == 0)){ if(i_opt+1 < argc ) { mascot->flag_install=TRUE; mascot->flag_common=FALSE; mascot->flag_ow=TRUE; mascot->flag_ow_ini=TRUE; i_opt++; if(!FullPathMascotCheck(mascot,argv[i_opt])){ g_print(_("Option \"%s\" is not found. Ignoring...\n"),argv[i_opt]); } i_opt++; } else{ valid = 0; } } #ifdef USE_COMMON // --- Install Menu File to Common Directory else if((strcmp(argv[i_opt],"--install-common-menu") == 0)){ if(i_opt+1 < argc ) { mascot->flag_install=TRUE; mascot->flag_common=TRUE; mascot->flag_ow=TRUE; mascot->flag_ow_ini=TRUE; i_opt++; mascot->menu_file=g_strdup(argv[i_opt]); i_opt++; } else{ valid = 0; } } // --- Install Mascot File to Common Directory else if((strcmp(argv[i_opt],"--install-common-mascot") == 0)){ if(i_opt+1 < argc ) { mascot->flag_install=TRUE; mascot->flag_common=TRUE; mascot->flag_ow=TRUE; mascot->flag_ow_ini=TRUE; i_opt++; if(!FullPathMascotCheck(mascot,argv[i_opt])){ g_print(_("Option \"%s\" is not found. Ignoring...\n"),argv[i_opt]); } i_opt++; } else{ valid = 0; } } #endif // --- Magnification [%] else if((strcmp(argv[i_opt],"-mg") == 0)|| (strcmp(argv[i_opt],"--mag") == 0)){ if(i_opt+1 < argc ) { i_opt++; mascot->magnify=atoi(argv[i_opt]); if(mascot->magnify<10 )mascot->magnify=10; if(mascot->magnify>400 )mascot->magnify=400; i_opt++; } else{ valid = 0; } } // --- Interporation Style [%] else if((strcmp(argv[i_opt],"-i") == 0)|| (strcmp(argv[i_opt],"--ip-style") == 0)){ if(i_opt+1 < argc ) { i_opt++; mascot->ip_style=atoi(argv[i_opt]); if((mascot->ip_styleip_style>MAG_IP_HYPER)) mascot->ip_style=MAG_IP_BILINEAR; i_opt++; } else{ valid = 0; } } // ¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë ON else if ((strcmp(argv[i_opt], "-a") == 0)|| (strcmp(argv[i_opt], "--auto-install") == 0)){ mascot->flag_install=TRUE; i_opt++; } // ¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë OFF else if ((strcmp(argv[i_opt], "-na") == 0)|| (strcmp(argv[i_opt], "--no-auto-install") == 0)){ mascot->flag_install=FALSE; i_opt++; } // ¶¯À©¾å½ñ¤­¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë ON else if ((strcmp(argv[i_opt], "-O") == 0)|| (strcmp(argv[i_opt], "--over-write") == 0)){ mascot->flag_ow=TRUE; mascot->flag_ow_ini=TRUE; i_opt++; } #ifdef USE_BIFF // Biffµ¡Ç½ ON else if ((strcmp(argv[i_opt], "-b") == 0)|| (strcmp(argv[i_opt], "--biff") == 0)){ mascot->mail.flag=TRUE; i_opt++; } #endif // »þÊóµ¡Ç½ ON else if ((strcmp(argv[i_opt], "-s") == 0)|| (strcmp(argv[i_opt], "--signal") == 0)){ mascot->signal.flag=TRUE; i_opt++; } // --- Resource File else if((strcmp(argv[i_opt],"-r") == 0)|| (strcmp(argv[i_opt],"--rcfile") == 0)){ if(i_opt+1 < argc ) { i_opt++; mascot->rcfile=g_strconcat(argv[i_opt],NULL); i_opt++; } else{ valid = 0; } } #ifdef USE_SOCKMSG // Socket Message Mode ON else if((strcmp(argv[i_opt],"--sockmsg") == 0)){ //Do Nothing i_opt++; } // Duet Anime Mode [Click] OFF else if((strcmp(argv[i_opt],"--no-duet-click") == 0)|| (strcmp(argv[i_opt],"-nc") ==0)){ mascot->duet_use_click=FALSE; i_opt++; } // Duet Anime Mode [Random] OFF else if((strcmp(argv[i_opt],"--no-duet-random") == 0)|| (strcmp(argv[i_opt],"-nr") ==0)){ mascot->duet_use_random=FALSE; i_opt++; } #endif // USE_SOCKMSG // Äê·¿°Ê³°¤Î¥ª¥×¥·¥ç¥ó else{ // MascotFile¤Ç¤¢¤ë¤«¤É¤¦¤«¤Î¥Á¥§¥Ã¥¯ // Mascot->file ¤Ø¤Î½ñ¤­¹þ¤ß¤ò¹Ô¤¦ if(!FullPathMascotCheck(mascot,argv[i_opt])){ g_print(_("Option \"%s\" is not found. Ignoring...\n"),argv[i_opt]); } i_opt++; } } g_free(filename); //if(!flag_file) exit(0); } void get_rc_option(int argc, char **argv, typMascot *mascot) { int i_opt; int valid=1; i_opt = 1; while((i_opt < argc)&&(valid==1)) { // --- ¥Ø¥ë¥×¥¹¥¤¥Ã¥Á if ((strcmp(argv[i_opt], "-h") == 0) || (strcmp(argv[i_opt], "--help") == 0)) { i_opt++; usage(); exit(0); } #ifdef USE_COMMON // --- ¶¦Ḁ̈ǥ£¥ì¥¯¥È¥ê¤Îɽ¼¨ else if((strcmp(argv[i_opt],"-c") == 0)|| (strcmp(argv[i_opt],"--common-dir") == 0)){ print_common_dir(); } #endif // --- ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë else if((strcmp(argv[i_opt],"-r") == 0)|| (strcmp(argv[i_opt],"--rcfile") == 0)){ if(i_opt+1 < argc ) { i_opt++; mascot->rcfile=g_strdup(argv[i_opt]); i_opt++; } else{ valid = 0; } } i_opt++; } } #ifdef USE_COMMON void print_common_dir(void) { g_print(_("macopix COMMON DIR:%s\n"),COMMON_DIR); exit(0); } #endif void usage(void) { typScanMenu *smenu; smenu=g_malloc0(sizeof(typScanMenu)); g_print(_(" macopix : Mascot Constructive Pilot for X Ver"VERSION"\n")); g_print(_(" [usage] %% macopix [options] (mascot file)\n")); g_print(_(" -h, --help : Print this message\n")); #ifdef USE_COMMON g_print(_(" -c, --common-dir : Print COMMON Directory\n")); #endif #ifdef USE_BIFF g_print(_(" -b, --biff : Turn on the biff function\n")); #endif // USE_BIFF g_print(_(" -s, --signal : Turn on the time signal\n")); g_print(_(" -o, --offset offset[%%] : Set offset-value for Focus Following\n")); g_print(_(" -r, --rcfile rc-file : Set the resource file\n")); g_print(_(" -m, --menu menu-file : Set the file for quick menu\n")); g_print(_(" -mg --mag magnify : Set magnification percentage of mascot\n")); g_print(_(" -i, --ip-style (0|1|2|3) : Set interpolation style for magnification\n")); g_print(_("## For Installation\n")); g_print(_(" -a, --auto-install : Set mascot auto install ON\n")); g_print(_(" -na --no-auto-install : Set mascot auto install OFF\n")); g_print(_(" -O, --over-write : Permit to overwrite files in user dir\n")); g_print(_(" --install-user-mascot (mascot) : Mascot Installation to User Dir.\n")); g_print(_(" --install-user-menu (menu) : Menu Installation to User Dir.\n")); #ifdef USE_COMMON g_print(_(" --install-common-mascot (mascot): Mascot Installation to Common Dir.\n")); g_print(_(" --install-common-menu (menu) : Menu Installation to Common Dir.\n")); #endif #ifdef USE_SOCKMSG g_print(_("## For Socket Message\n")); g_print(_(" --sockmsg : Start MaCoPiX as Socket Message Receiver\n")); g_print(_(" --message (text) : Send Message to Socket Message Receiver\n")); g_print(_(" --message-expire (time) : Socket Message Expire Time[ms]\n")); g_print(_(" --message-type-lump : Force to Set Lump Sum Balloon\n")); g_print(_(" --message-type-step : Force to Set Stepping Balloon\n")); g_print(_(" --message-step (frame) : Stepping Interval Frame for SockeMsg\n")); g_print(_(" -nc, --no-duet-click : Duet Animation [Click] OFF\n")); g_print(_(" -nr, --no-duet-random : Duet Animation [Random] OFF\n")); #endif // USE_SOCKMSG g_print("\n"); ScanMenu(smenu, TRUE); } int main(int argc, char **argv) { #ifndef USE_WIN32 GdkPixbuf *icon; #endif GtkStyle *style; gint timer; #ifndef USE_GTK2 gchar *rcfile=NULL; #endif int i_opt ; #ifdef USE_SOCKMSG SockMsgInitResult sockres; gchar *msg = NULL; gboolean sockmsg_flag; gint msg_expire; gint msg_step; gint msg_mode; gchar *tmp_msg; #endif #ifdef USE_WIN32 #ifdef USE_BIFF WSADATA wsaData; int nErrorStatus; #endif #endif GtkTargetEntry drag_types[1] = {{"text/uri-list", 0, 0}}; #ifdef USE_SOCKMSG sockmsg_flag=FALSE; i_opt=1; msg_expire=-1; msg_step=-1; msg_mode=-1; #endif // Initialize Global Args in Each Files FlagInstalledMenu=FALSE; gui_arg_init(); #ifdef USE_BIFF mail_arg_init(); #endif balloon_arg_init(); callbacks_arg_init(); // GetText setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); #ifdef USE_GTK2 bind_textdomain_codeset(PACKAGE, "UTF-8"); #endif #ifdef USE_SOCKMSG while(i_opt < argc) { if((strcmp(argv[i_opt],"--message") == 0)){ msg = argv[i_opt + 1]; sockmsg_flag=TRUE; } else if((strcmp(argv[i_opt],"--sockmsg") == 0)){ sockmsg_flag=TRUE; } else if((strcmp(argv[i_opt],"--message-expire") == 0)){ msg_expire = atoi(argv[i_opt + 1]); } else if((strcmp(argv[i_opt],"--message-type-lump") == 0)){ msg_mode=SOCK_NORMAL; } else if((strcmp(argv[i_opt],"--message-type-step") == 0)){ msg_mode=SOCK_STEPPING; } else if((strcmp(argv[i_opt],"--message-step") == 0)){ msg_step = atoi(argv[i_opt + 1]); msg_mode=SOCK_STEPPING; } i_opt++; } if (sockmsg_flag){ //if(msg_expire<=0){ // msg_expire=(Mascot->sockmsg_expire_def)*(INTERVAL); //} sockres = sockmsg_init(); switch (sockres) { case SOCKMSG_ERROR: return -1; case SOCKMSG_OPENED: { if (msg == NULL) tmp_msg=g_strdup_printf(_("%8d%2d%4dMacopix already running in SockMsg Mode"), msg_expire,msg_mode,msg_step); else tmp_msg=g_strdup_printf("%8d%2d%4d%s", msg_expire,msg_mode,msg_step,msg); sockmsg_send_msg(tmp_msg); g_free(tmp_msg); return 0; } default: if (msg != NULL){ g_print(_("Macopix not running in SockMsg Mode\n")); return -1; } break; } } #endif RANDOMIZE(); /* Íð¿ô·Ï½é´ü²½ */ Mascot=g_malloc0(sizeof(typMascot)); get_rc_option(argc, argv, Mascot); gtk_set_locale(); gtk_init(&argc, &argv); #ifndef USE_GTK2 rcfile=g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,".gtkrc",NULL); gtk_rc_parse(rcfile); g_free(rcfile); #endif InitDefCol(Mascot); ReadRC(Mascot,FALSE); #ifdef USE_BIFF Mascot->mail.flag=FALSE; #endif Mascot->signal.flag=FALSE; Mascot->flag_consow=FALSE; get_option(argc, argv, Mascot); // Gdk-Pixbuf¤Ç»ÈÍÑ gdk_rgb_init(); #ifndef USE_WIN32 #ifdef USE_GTK2 icon = gdk_pixbuf_new_from_inline(sizeof(macopix_icon), macopix_icon, FALSE, NULL); gtk_window_set_default_icon(icon); #endif #endif // Imlib¤ò»ÈÍѤ·¤¿¾ì¹ç //gdk_imlib_init(); //gtk_widget_push_visual(gdk_imlib_get_visual()); //gtk_widget_push_colormap(gdk_imlib_get_colormap()); // ¥á¥Ë¥å¡¼¤ÎÆÉ¤ß¹þ¤ß¤ÈºîÀ® Mascot->installed_menu_dir=NULL; Mascot->menu_code=NULL; ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); if(!Mascot->file){ if(Mascot->menu_file){ Mascot->file=g_strdup(all_random_menu_mascot_file(Mascot)); } else{ // µ¯Æ°¥á¥Ë¥å¡¼ÁªÂò create_smenu_dialog(Mascot,FALSE); if(Mascot->menu_file){ ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); Mascot->file=g_strdup(all_random_menu_mascot_file(Mascot)); } } } win_main = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(win_main),FALSE); #endif #ifdef USE_GTK2 gtk_window_set_resizable(GTK_WINDOW(win_main),TRUE); #endif gtk_widget_set_app_paintable(win_main, TRUE); gtk_window_set_title(GTK_WINDOW(win_main), "MaCoPiX"); //gtk_window_set_icon(GTK_WINDOW(win_main),icon); //gtk_window_set_policy(GTK_WINDOW(win_main), FALSE, FALSE, TRUE); gtk_window_set_wmclass(GTK_WINDOW(win_main), "main_window", "MaCoPiX"); my_signal_connect(win_main, "destroy",gtk_main_quit,NULL); gtk_widget_set_events(GTK_WIDGET (win_main), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(win_main); #ifdef USE_GTK2 gtk_window_resize(GTK_WINDOW(win_main),1,1); #endif #ifdef USE_WIN32 win_sdw = gtk_window_new(GTK_WINDOW_POPUP); gtk_window_set_accept_focus(GTK_WINDOW(win_sdw),FALSE); gtk_window_set_resizable(GTK_WINDOW(win_sdw),TRUE); gtk_widget_set_app_paintable(win_sdw, TRUE); gtk_window_set_title(GTK_WINDOW(win_sdw), "MaCoPiX"); gtk_window_set_wmclass(GTK_WINDOW(win_sdw), "sdw_window", "MaCoPiX"); my_signal_connect(win_sdw, "destroy",gtk_main_quit,NULL); gtk_widget_set_events(GTK_WIDGET (win_sdw), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(win_sdw); #ifdef USE_GTK2 gtk_window_resize(GTK_WINDOW(win_sdw),1,1); #endif #endif #ifdef __GTK_STATUS_ICON_H__ trayicon_create(Mascot); if(Mascot->tray_icon_flag){ trayicon_show(Mascot); } else{ trayicon_hide(Mascot); } #endif gdk_window_set_decorations(win_main->window, 0); #ifndef USE_WIN32 // gdk_window_set_decorations(win_main->window, GDK_DECOR_MENU); // Win32 Gtk+> 2.10 -> trayicon gdk_window_set_override_redirect(win_main->window,TRUE); #endif #ifdef USE_WIN32 gdk_window_set_decorations(win_sdw->window, 0); #endif my_signal_connect(win_main, "focus_in_event",focus_in, NULL); my_signal_connect(win_main, "focus_out_event",focus_out, NULL); my_signal_connect(win_main, "button_press_event",drag_begin, (gpointer)Mascot); my_signal_connect(win_main, "button_release_event",drag_end, (gpointer)Mascot); my_signal_connect(win_main, "motion_notify_event",window_motion, (gpointer)Mascot); /* Drag and Drop */ gtk_drag_dest_set (win_main, GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_HIGHLIGHT | GTK_DEST_DEFAULT_DROP, drag_types, 1, GDK_ACTION_COPY); my_signal_connect (win_main, "drag-data-received", signal_drag_data_received, NULL); style = gtk_widget_get_style(win_main); InitMascot0(Mascot); ReadMascot(Mascot,FALSE); // ¥«¡¼¥½¥ë Mascot->cursor.normal=gdk_cursor_new(CURSOR_NORMAL); Mascot->cursor.push =gdk_cursor_new(CURSOR_PUSH); Mascot->cursor.drag_h=gdk_cursor_new(CURSOR_DRAG_H); Mascot->cursor.drag_f=gdk_cursor_new(CURSOR_DRAG_F); #ifdef USE_BIFF Mascot->cursor.biff =gdk_cursor_new(CURSOR_BIFF); #endif // USE_BIFF Mascot->cursor.clk =gdk_cursor_new(CURSOR_CLK); make_balloon(Mascot); #ifdef USE_WIN32 make_balloon_fg(Mascot); #endif make_clock(Mascot); #ifdef USE_WIN32 make_clock_fg(Mascot); #endif #ifdef USE_BIFF make_biff_pix(Mascot); #endif InitComposite(Mascot); LoadPixmaps(win_main, Mascot, Mascot->sprites); Mascot->flag_ow=FALSE; // WindowºîÀ®¡¦ÊÑ·Á my_signal_connect(win_main, "configure_event",dw_configure_main, (gpointer)Mascot); // ½Å¤Ê¤Ã¤¿¾ì¹ç¤ÎºÆÉÁ²è´ØÏ¢ my_signal_connect(win_main, "expose_event",dw_expose_main, (gpointer)Mascot); #ifdef USE_WIN32 my_signal_connect(win_sdw, "configure_event",dw_configure_sdw, (gpointer)Mascot); // ½Å¤Ê¤Ã¤¿¾ì¹ç¤ÎºÆÉÁ²è´ØÏ¢ my_signal_connect(win_sdw, "expose_event",dw_expose_sdw, (gpointer)Mascot); #endif #ifdef USE_BIFF LoadBiffPixmap(biff_pix, Mascot); #ifndef __GTK_TOOLTIP_H__ Mascot->mail.tooltips=gtk_tooltips_new(); #endif #endif // »þ·×¹¹¿· timer=g_timeout_add_full(G_PRIORITY_HIGH, INTERVAL, (GSourceFunc)time_update, (gpointer)Mascot, NULL); // ½é´üÇÛÃÖ if(Mascot->move==MOVE_FIX){ MoveMascot(Mascot,Mascot->xfix,Mascot->yfix); } else{ MoveMascot(Mascot,-Mascot->height-100,-Mascot->width-100); } gdk_window_set_cursor(win_main->window,Mascot->cursor.normal); #ifdef USE_BIFF gdk_window_set_cursor(biff_pix->window,Mascot->cursor.biff); #endif // USE_BIFF #ifdef USE_WIN32 gtk_widget_show(balloon_fg); #endif gtk_widget_show(balloon_main); #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); #ifdef USE_WIN32 gtk_widget_show(clock_fg); #endif gtk_widget_show(clock_main); if(Mascot->clkmode!=CLOCK_PANEL){ #ifdef USE_WIN32 gtk_widget_unmap(clock_fg); #endif gtk_widget_unmap(clock_main); } else{ DrawPanelClock0(Mascot); #ifdef USE_WIN32 if((!Mascot->flag_clkfg)||(Mascot->alpha_clk==100)){ gtk_widget_unmap(clock_fg); } #endif gtk_widget_map(clock_main); } if(Mascot->clkmode!=CLOCK_NO){ clock_update(Mascot,TRUE); clock_update(Mascot,TRUE); } #ifdef USE_BIFF gtk_widget_show(biff_pix); gtk_widget_unmap(biff_pix); #endif // USE_BIFF #ifdef USE_WIN32 gtk_widget_show(win_sdw); if((Mascot->sdw_flag)&&(Mascot->sdw_height)){ gtk_widget_map(win_sdw); } else{ gtk_widget_unmap(win_sdw); } #endif gtk_widget_show(win_main); gtk_widget_map(win_main); #ifndef USE_WIN32 signal( SIGPIPE , SIG_IGN ); #endif #ifdef USE_BIFF #ifdef USE_WIN32 // Initialize Winsock2 nErrorStatus = WSAStartup(MAKEWORD(2,0), &wsaData); if(atexit((void (*)(void))(WSACleanup))){ fprintf(stderr, "WSACleanup() : Failed\n"); exit(-1); } if (nErrorStatus!=0) { fprintf(stderr, "WSAStartup() : Failed\n"); exit(-1); } #endif #ifdef USE_SSL ssl_init(); #endif SetMailChecker((gpointer)Mascot); #endif #ifdef USE_SOCKMSG if(sockmsg_flag) sockmsg_set_mascot(Mascot); #endif gtk_main(); #ifdef USE_SOCKMSG if(sockmsg_flag) sockmsg_done(); if(Mascot->duet_open) duet_sv_done(Mascot->duet_file,TRUE); #endif #ifdef USE_SSL ssl_done(); #endif return 0; } macopix-1.7.4/src/libpop.h0000644000076400007640000000456211003302702012334 00000000000000/******************************************************************************* * POP3 Library Header File. * COPYRIGHT(C) 1999-2001 TKS * * $Revision: 1.3 $ * $Date: 2001/01/31 16:03:54 $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02111-1301, USA. * ******************************************************************************/ #ifndef _LIBPOP_H_ #define _LIBPOP_H_ #define POP_FIELD_VALUE_LENGTH 1024 #define POP_OK_STR "+OK" #define POP_ERR_STR "-ERR" #define POP_OK 0 #define POP_ERROR 1 #define POP_INVALID 2 #define POP_MAX_LINE 1024 #define POP_MAX_CMD 512 #define POP_MAX_UIDL 32 #define MD5_MAX_LEN 33 typedef struct { int no; int size; } PopList; int popUser(char *user, guint ssl_mode); int popPasswd(char *passwd, guint ssl_mode); int popDelete(int no, guint ssl_mode); int popRset(guint ssl_mode); int popStat(int *mail, long *size, guint ssl_mode); int popUidl(int no, char *uniqid, int size, guint ssl_mode); int popList(PopList **list, int *size, guint ssl_mode); int popRetr(int no, FILE *fp, guint ssl_mode); int popTop(int no,int line, FILE *fp, guint ssl_mode); #ifdef USE_SSL int popSTLS(guint ssl_mode); #endif int popNoop(guint ssl_mode); int popQuit(guint ssl_mode); int popConnect(char *server, int port, char *apop_key, guint ssl_mode, gboolean ssl_nonblock, gint ssl_cert_res, gchar **subject, gchar **issue, glong *verify); int popLogin(char *user, char *pass, char *apop_key, guint ssl_mode); int popCheckMailNum(int *number, char *uidl, int *num, guint ssl_mode); int popGetMail(int number, FILE *fp, char *uidl, guint ssl_mode); int popClose(); int popDisconnect(guint ssl_mode); #endif /* _LIBPOP_H_ */ macopix-1.7.4/src/version.h.in0000644000076400007640000000233110622157055013150 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // A unified desktop mascot program // for UNIX / X Window System with Gdk Environment // // version.h : Version header for MaCoPiX // copyright K.Chimari 2002-7 // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #ifndef __VERSION_H__ #define __VERSION_H__ #define PACKAGE "@PACKAGE@" #define VERSION "@VERSION@" #define PROG_VERSION "MaCoPiX version "VERSION #endif /* __VERSION_H__ */ macopix-1.7.4/src/macopix.ico0000644000076400007640000000706610523301401013035 00000000000000h& ¨Ž( €€€€€€€€€ÀÀÀÀÜÀðʦ"3D""3"D"3D""3U"33f"D""U33Df3D"DDw""""U3U""3Dˆ""D""UDUUˆ""fDf3"U™"3D"3U3""3"3"3ff™3"DUw"3w"DUfª3"U3"f"Df33333D"Dw3"wwªD""w»33f3DDD3"33ˆD33ˆ»D3Dw™3DwˆÌwªD3U3DˆD3fDDDD3w3UwU3"DDU3Uˆˆ»U333U™U3DˆÌ3fw3fˆDUf3f™DUw™ÌUDDg@43fªDUˆU3ˆUDfDfwªÌDUªDfˆUUUªÝUUffD3UD™fDDUUwUDªDfªDw™DwªUfˆDw»wD3DwÌ"»îUw™wUDUwªfUªwUUˆD3Uˆ™wUwUˆªwfUwffˆUDfwªˆUUwfˆwU»wwffˆªwwwˆfUwwˆwf»ˆffU™îfˆÌwfÌf™ªf™»™fDˆww™fUˆwˆˆˆˆw™»™wfˆˆ™w™ÌªfDwª»w™îwªÌ™ˆˆˆ™Ìªwwˆª»ˆªÌªˆw»wUˆªîˆªÿ»ˆfª™™»ˆˆ™»Ì»™ˆÌˆf̈w»ª™ª»Ì»ªªÝˆfª»îÌ™™ª»ÿ»»»Ìªª»»îÌ»»Ýª™»ÌÿÝ»ªîªˆÝÌ»ÝÌÌÌÝÿîÌÌÝÝÿÝîÿîÝÝîîîÿîîÿÿÿN€Ëðûÿ¤  €€€ÿÿÿÿÿÿÿÿÿÿÿÿˆˆˆÈÈÈÈÈÈÈÈÈÈȈˆˆˆu  ‡­uJq7‡‡Ì÷ŠŠOqS  Ì ‡÷[Š»g7 Ì OŠ»ŠS&/Š€;Š»Š?&b/%uuuŠ/4b&b/?­­­umagnify)/100); h = gdk_pixbuf_get_height(pixbuf)*((gfloat)(mascot->magnify)/100); #ifdef USE_WIN32 if(mascot->move==MOVE_FOCUS){ if(mascot->yoff>0){ mascot->sdw_height =mascot->yoff*(gfloat)(mascot->magnify)/100+mascot->sdw_y; } else{ mascot->sdw_height=0; } } else{ mascot->sdw_height=h; } #endif switch(mascot->ip_style){ case MAG_IP_NEAREST: ipstyle=GDK_INTERP_NEAREST; break; case MAG_IP_TILES: ipstyle=GDK_INTERP_TILES; break; case MAG_IP_BILINEAR: ipstyle=GDK_INTERP_BILINEAR; break; case MAG_IP_HYPER: ipstyle=GDK_INTERP_HYPER; break; default: ipstyle=GDK_INTERP_BILINEAR; } if(mascot->sprites[i_pix].pixmap) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mascot->sprites[i_pix].pixmap)); #else gdk_pixmap_unref(mascot->sprites[i_pix].pixmap); #endif mascot->sprites[i_pix].pixmap=NULL; } if(mascot->sprites[i_pix].mask) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mascot->sprites[i_pix].mask)); #else gdk_pixmap_unref(mascot->sprites[i_pix].mask); #endif mascot->sprites[i_pix].mask=NULL; } pixbuf2=gdk_pixbuf_scale_simple(pixbuf,w,h,ipstyle); #ifdef USE_CAIRO if(flag_img_cairo_go){ GdkBitmap *mask=NULL; if(mascot->sdw_flag){ w= w + mascot->sdw_x_int; h= h + mascot->sdw_y_int; gdk_pixbuf_render_pixmap_and_mask(pixbuf, NULL, &mask, 0x01); } gdk_pixbuf_render_pixmap_and_mask(pixbuf2, NULL, &mascot->sprites[i_pix].mask, 0xc0); mascot->sprites[i_pix].pixmap = gdk_pixmap_new(win_main->window, w, h, -1); cr = gdk_cairo_create(mascot->sprites[i_pix].pixmap); cairo_set_source_rgba (cr, 0, 0, 0, 0); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint (cr); if(mascot->sdw_flag){ // Shadow cairo_save(cr); cairo_scale (cr, (gfloat)(mascot->magnify)/100, (gfloat)(mascot->magnify)/100); if(mascot->sdw_x<0){ gdk_cairo_set_source_pixmap(cr,mask,0, mascot->sdw_y); } else{ gdk_cairo_set_source_pixmap(cr,mask,mascot->sdw_x, mascot->sdw_y); } cairo_paint_with_alpha (cr, (gdouble)(mascot->sdw_alpha)/100); cairo_restore(cr); // Remove shadow above title bar if(mascot->move==MOVE_FOCUS){ cairo_save(cr); cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR); cairo_move_to(cr,0,0); cairo_rectangle(cr, 0, 0, w, h-mascot->yoff*(gfloat)(mascot->magnify)/100-mascot->sdw_y_int); cairo_fill(cr); cairo_restore(cr); } } // Mascot cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_move_to(cr,0,0); if((mascot->sdw_flag)&&(mascot->sdw_x<0)){ gdk_cairo_set_source_pixbuf(cr,pixbuf2,-mascot->sdw_x,0); } else{ gdk_cairo_set_source_pixbuf(cr,pixbuf2,0,0); } cairo_paint_with_alpha (cr, (gdouble)mascot->alpha_main/100); //cairo_paint (cr); cairo_destroy (cr); if(mascot->sdw_flag){ if(mask) g_object_unref(G_OBJECT(mask)); } } else{// for Win32 and non-composited Gtk+2.8 or later gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &mascot->sprites[i_pix].pixmap, &mascot->sprites[i_pix].mask, 0xc0); #ifdef USE_WIN32 if(mascot->sdw_flag){ if(mascot->move==MOVE_FOCUS){ if(mascot->sdw_height>0){ mascot->sprites[i_pix].pixmap_sdw =gdk_pixmap_new(win_sdw->window, w, mascot->sdw_height, -1); mascot->sprites[i_pix].mask_sdw = gdk_pixmap_new(win_sdw->window, w, mascot->sdw_height, 1); // Depth =1 (Bitmap) gdk_draw_drawable(mascot->sprites[i_pix].pixmap_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i_pix].mask, 0, h-mascot->sdw_height, 0,0, w,mascot->sdw_height); gdk_draw_drawable(mascot->sprites[i_pix].mask_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i_pix].mask, 0, h-mascot->sdw_height, 0,0, w,mascot->sdw_height); } } else{ mascot->sprites[i_pix].pixmap_sdw =gdk_pixmap_new(win_sdw->window,w,h,-1); mascot->sprites[i_pix].mask_sdw = gdk_pixmap_new(win_sdw->window, w,h,1); // Depth =1 (Bitmap) gdk_draw_drawable(mascot->sprites[i_pix].pixmap_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i_pix].mask, 0,0, 0,0, w,h); gdk_draw_drawable(mascot->sprites[i_pix].mask_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i_pix].mask, 0,0, 0,0, w,h); } } #endif } #else gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &mascot->sprites[i_pix].pixmap, &mascot->sprites[i_pix].mask, 0xc0); #endif #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(pixbuf2)); #else gdk_pixbuf_unref(pixbuf); gdk_pixbuf_unref(pixbuf2); #endif DrawMascotTemp(mascot,i_pix); return(TRUE); } void LoadPixmaps(GtkWidget *widget, //GtkWidget *draw, typMascot *mascot, typSprite *sprites){ int i=0; //GdkImlibImage* im = NULL; GdkPixbuf *pixbuf = NULL, *pixbuf2 = NULL; gint w=0,h=0; gint ipstyle; #ifndef USE_GTK2 gchar *fontset=NULL; #endif gchar *tmp_open; #ifdef USE_CAIRO cairo_t *cr; #endif #ifdef USE_WIN32 GdkWinChangeAlpha(win_main->window, mascot->alpha_main); GdkWinChangeAlpha(win_sdw->window, mascot->sdw_alpha); #ifdef USE_BIFF GdkWinChangeAlpha(biff_pix->window, mascot->alpha_biff); #endif if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ GdkWinChangeAlphaFG(balloon_fg->window, mascot->colbalbg); } GdkWinChangeAlpha(balloon_main->window, mascot->alpha_bal); if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ GdkWinChangeAlphaFG(clock_fg->window, mascot->colclkbg); } GdkWinChangeAlpha(clock_main->window, mascot->alpha_clk); #else // for UNIX GNOME 2.20 #if GTK_CHECK_VERSION(2,12,0) && !defined(USE_CAIRO) if(!flag_img_cairo_go){ gdk_window_set_opacity(win_main->window, (gdouble)mascot->alpha_main/100); #ifdef USE_BIFF gdk_window_set_opacity(biff_pix->window, (gdouble)mascot->alpha_biff/100); #endif } #endif #endif while(sprites[i].filename){ if (sprites[i].pixmap){ #ifdef USE_GTK2 g_object_unref(G_OBJECT(sprites[i].pixmap)); #else gdk_pixmap_unref(sprites[i].pixmap); #endif sprites[i].pixmap=NULL; } if (sprites[i].mask){ #ifdef USE_GTK2 g_object_unref(G_OBJECT(sprites[i].mask)); #else gdk_pixmap_unref(sprites[i].mask); #endif sprites[i].mask=NULL; } #ifdef USE_WIN32 if (sprites[i].pixmap_sdw){ g_object_unref(G_OBJECT(sprites[i].pixmap_sdw)); sprites[i].pixmap_sdw=NULL; } if (sprites[i].mask_sdw){ g_object_unref(G_OBJECT(sprites[i].mask_sdw)); sprites[i].mask_sdw=NULL; } #endif //im = gdk_imlib_load_image(sprites[i].filename); tmp_open=to_utf8(sprites[i].filename); #ifdef USE_GTK2 pixbuf = gdk_pixbuf_new_from_file(tmp_open, NULL); #else pixbuf = gdk_pixbuf_new_from_file(tmp_open); #endif // if(im==NULL){ if(pixbuf==NULL){ g_print (_("Cannot Load Image %s\n"), tmp_open); g_free(tmp_open); exit(1); } g_free(tmp_open); w = gdk_pixbuf_get_width(pixbuf)*((gfloat)(mascot->magnify)/100); h = gdk_pixbuf_get_height(pixbuf)*((gfloat)(mascot->magnify)/100); #ifdef USE_WIN32 if(mascot->move==MOVE_FOCUS){ if(mascot->yoff>0){ mascot->sdw_height =mascot->yoff*(gfloat)(mascot->magnify)/100+mascot->sdw_y; } else{ mascot->sdw_height=0; } } else{ mascot->sdw_height=h; } #endif // Imlib¤ò»ÈÍѤ·¤¿¾ì¹ç //w = im->rgb_width*((gfloat)(mascot->magnify)/100); //h = im->rgb_height*((gfloat)(mascot->magnify)/100); //gdk_imlib_render(im, w, h); //sprites[i].pixmap = gdk_imlib_move_image(im); //sprites[i].mask = gdk_imlib_move_mask(im); switch(mascot->ip_style){ case MAG_IP_NEAREST: ipstyle=GDK_INTERP_NEAREST; break; case MAG_IP_TILES: ipstyle=GDK_INTERP_TILES; break; case MAG_IP_BILINEAR: ipstyle=GDK_INTERP_BILINEAR; break; case MAG_IP_HYPER: ipstyle=GDK_INTERP_HYPER; break; default: ipstyle=GDK_INTERP_BILINEAR; } pixbuf2=gdk_pixbuf_scale_simple(pixbuf,w,h,ipstyle); #ifdef USE_CAIRO if(flag_img_cairo_go){ GdkBitmap *mask=NULL; if(mascot->sdw_flag){ w= w + mascot->sdw_x_int; h= h + mascot->sdw_y_int; gdk_pixbuf_render_pixmap_and_mask(pixbuf, NULL, &mask, 0x01); } gdk_pixbuf_render_pixmap_and_mask(pixbuf2, NULL, &sprites[i].mask, 0xc0); sprites[i].pixmap = gdk_pixmap_new(win_main->window, w, h, -1); // Clear BG cr = gdk_cairo_create(sprites[i].pixmap); cairo_set_source_rgba (cr, 0, 0, 0, 0); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint (cr); if((mascot->sdw_flag)){ // Shadow cairo_save(cr); cairo_scale (cr, (gfloat)(mascot->magnify)/100, (gfloat)(mascot->magnify)/100); if(mascot->sdw_x<0){ gdk_cairo_set_source_pixmap(cr,mask,0, mascot->sdw_y); } else{ gdk_cairo_set_source_pixmap(cr,mask,mascot->sdw_x, mascot->sdw_y); } cairo_paint_with_alpha (cr, (gdouble)(mascot->sdw_alpha)/100); cairo_restore(cr); // Remove shadow above title bar if(mascot->move==MOVE_FOCUS){ cairo_save(cr); cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR); cairo_move_to(cr,0,0); cairo_rectangle(cr, 0, 0, w, h-mascot->yoff*(gfloat)(mascot->magnify)/100-mascot->sdw_y_int); cairo_fill(cr); cairo_restore(cr); } } // Mascot cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_move_to(cr,0,0); if((mascot->sdw_flag)&&(mascot->sdw_x<0)){ gdk_cairo_set_source_pixbuf(cr,pixbuf2,-mascot->sdw_x,0); } else{ gdk_cairo_set_source_pixbuf(cr,pixbuf2,0,0); } cairo_paint_with_alpha (cr, (gdouble)mascot->alpha_main/100); //cairo_paint (cr); cairo_destroy (cr); if(mascot->sdw_flag){ if(mask) g_object_unref(G_OBJECT(mask)); } } else{// for Win32 and non-composited Gtk+2.8 or later gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &sprites[i].pixmap, &sprites[i].mask, 0xc0); #ifdef USE_WIN32 if(mascot->sdw_flag){ if(mascot->move==MOVE_FOCUS){ if(mascot->sdw_height>0){ mascot->sprites[i].pixmap_sdw =gdk_pixmap_new(win_sdw->window, w, mascot->sdw_height, -1); mascot->sprites[i].mask_sdw = gdk_pixmap_new(win_sdw->window, w, mascot->sdw_height, 1); // Depth =1 (Bitmap) gdk_draw_drawable(mascot->sprites[i].pixmap_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i].mask, 0, h-mascot->sdw_height, 0,0, w,mascot->sdw_height); gdk_draw_drawable(mascot->sprites[i].mask_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i].mask, 0, h-mascot->sdw_height, 0,0, w,mascot->sdw_height); } } else{ mascot->sprites[i].pixmap_sdw =gdk_pixmap_new(win_sdw->window,w,h,-1); mascot->sprites[i].mask_sdw = gdk_pixmap_new(win_sdw->window, w,h,1); // Depth =1 (Bitmap) gdk_draw_drawable(mascot->sprites[i].pixmap_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i].mask, 0,0, 0,0, w,h); gdk_draw_drawable(mascot->sprites[i].mask_sdw, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], mascot->sprites[i].mask, 0,0, 0,0, w,h); } } #endif } #else gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &sprites[i].pixmap, &sprites[i].mask, 0xc0); #endif #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(pixbuf2)); #else gdk_pixbuf_unref(pixbuf); gdk_pixbuf_unref(pixbuf2); #endif i++; } mascot->width=w; mascot->height=h; DrawMascot0(mascot); dw_init_main(win_main, "configure_event",(gpointer)mascot); #ifdef USE_GTK2 gtk_window_resize (GTK_WINDOW(widget), w, h); #else gdk_window_resize (widget->window, w, h); #endif #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gtk_window_resize (GTK_WINDOW(win_sdw), w, mascot->sdw_height); } #endif // ¥Õ¥©¥ó¥È¤Î¥í¡¼¥É #ifdef USE_GTK2 if (mascot->fontclk!=NULL){ pango_font_description_free(mascot->fontclk); mascot->fontclk=NULL; } #else mascot->fontclk=NULL; #endif if(mascot->fontname_clk){ #ifdef USE_GTK2 mascot->fontclk=pango_font_description_from_string(mascot->fontname_clk); #else fontset = g_strdup(mascot->fontname_clk); mascot->fontclk=gdk_fontset_load(fontset); #endif } if(mascot->fontclk==NULL){ #ifdef USE_GTK2 mascot->fontclk=pango_font_description_from_string(mascot->deffontname_clk); #else fontset = g_strdup(mascot->deffontname_clk); mascot->fontclk=gdk_fontset_load(fontset); #endif while(mascot->fontclk==NULL){ create_default_font_selection_dialog(mascot,INIT_DEF_FONT_CLK); #ifdef USE_GTK2 mascot->fontclk=pango_font_description_from_string(mascot->deffontname_clk); #else fontset = g_strdup(mascot->deffontname_clk); mascot->fontclk=gdk_fontset_load(fontset); #endif } mascot->fontname_clk=mascot->deffontname_clk; } #ifdef USE_CAIRO { if(mascot->fontclk_pc.family) g_free(mascot->fontclk_pc.family); mascot->fontclk_pc.family =g_strdup(pango_font_description_get_family(mascot->fontclk)); mascot->fontclk_pc.pointsize =(gdouble)pango_font_description_get_size(mascot->fontclk)/PANGO_SCALE; if(pango_font_description_get_weight (mascot->fontclk) > PANGO_WEIGHT_SEMIBOLD){ mascot->fontclk_pc.weight=CAIRO_FONT_WEIGHT_BOLD; } else{ mascot->fontclk_pc.weight=CAIRO_FONT_WEIGHT_NORMAL; } switch (pango_font_description_get_style (mascot->fontclk)) { case (PANGO_STYLE_NORMAL): mascot->fontclk_pc.slant = CAIRO_FONT_SLANT_NORMAL; break; case (PANGO_STYLE_OBLIQUE): mascot->fontclk_pc.slant = CAIRO_FONT_SLANT_OBLIQUE; break; case (PANGO_STYLE_ITALIC): mascot->fontclk_pc.slant = CAIRO_FONT_SLANT_ITALIC; break; } } #endif #ifdef USE_GTK2 if (mascot->fontbal!=NULL){ pango_font_description_free(mascot->fontbal); mascot->fontbal=NULL; } #else mascot->fontbal=NULL; #endif if(mascot->fontname_bal){ #ifdef USE_GTK2 mascot->fontbal=pango_font_description_from_string(mascot->fontname_bal); #else fontset = g_strdup(mascot->fontname_bal); mascot->fontbal=gdk_fontset_load(fontset); #endif } if(mascot->fontbal==NULL){ #ifdef USE_GTK2 mascot->fontbal=pango_font_description_from_string(mascot->deffontname_bal); #else fontset = g_strdup(mascot->deffontname_bal); mascot->fontbal=gdk_fontset_load(fontset); #endif while(mascot->fontbal==NULL){ create_default_font_selection_dialog(mascot,INIT_DEF_FONT_BAL); #ifdef USE_GTK2 mascot->fontbal=pango_font_description_from_string(mascot->deffontname_bal); #else fontset = g_strdup(mascot->deffontname_bal); mascot->fontbal=gdk_fontset_load(fontset); #endif } mascot->fontname_bal=mascot->deffontname_bal; } #ifdef USE_CAIRO { if(mascot->fontbal_pc.family) g_free(mascot->fontbal_pc.family); mascot->fontbal_pc.family =g_strdup(pango_font_description_get_family(mascot->fontbal)); mascot->fontbal_pc.pointsize =(gdouble)pango_font_description_get_size(mascot->fontbal)/PANGO_SCALE; if(pango_font_description_get_weight (mascot->fontbal) > PANGO_WEIGHT_SEMIBOLD){ mascot->fontbal_pc.weight=CAIRO_FONT_WEIGHT_BOLD; } else{ mascot->fontbal_pc.weight=CAIRO_FONT_WEIGHT_NORMAL; } switch (pango_font_description_get_style (mascot->fontbal)) { case (PANGO_STYLE_NORMAL): mascot->fontbal_pc.slant = CAIRO_FONT_SLANT_NORMAL; break; case (PANGO_STYLE_OBLIQUE): mascot->fontbal_pc.slant = CAIRO_FONT_SLANT_OBLIQUE; break; case (PANGO_STYLE_ITALIC): mascot->fontbal_pc.slant = CAIRO_FONT_SLANT_ITALIC; break; } } #endif #ifdef USE_GTK2 gtk_widget_modify_font(clock_main,mascot->fontclk); mascot->fontname_clk=pango_font_description_to_string(mascot->fontclk); gtk_widget_modify_font(balloon_main,mascot->fontbal); mascot->fontname_bal=pango_font_description_to_string(mascot->fontbal); #ifdef USE_WIN32 gtk_widget_modify_font(clock_fg,mascot->fontclk); #endif #else g_free(fontset); #endif mascot->nPixmap = i; mascot->sprites = sprites; mascot->drag=FALSE; if(!mascot->digit) strcpy(mascot->digit,"00:00:00"); // ½é²ó¥Õ¥ì¡¼¥àÍÑ¥Þ¥¹¥¯ÀڽФ· if(flag_img_cairo_go){ #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask ( win_main->window, mascot->sprites[mascot->frame_pix[0][0]].mask, 0, 0 ); gdk_window_set_cursor(win_main->window,mascot->cursor.normal); #endif } else{ gdk_window_shape_combine_mask ( win_main->window, mascot->sprites[mascot->frame_pix[0][0]].mask, 0, 0 ); } #ifdef __GTK_STATUS_ICON_H__ trayicon_set_tooltip(mascot); #endif } #ifdef USE_BIFF void LoadBiffPixmap(GtkWidget *widget, typMascot *mascot){ gchar *fontset=NULL; int i=0; //GdkImlibImage* im = NULL; GdkPixbuf *pixbuf = NULL, *pixbuf2 = NULL; gint ipstyle; gint w=0,h=0; gchar *tmp_open; #ifdef USE_CAIRO cairo_t *cr; #endif switch(mascot->ip_style){ case MAG_IP_NEAREST: ipstyle=GDK_INTERP_NEAREST; break; case MAG_IP_TILES: ipstyle=GDK_INTERP_TILES; break; case MAG_IP_BILINEAR: ipstyle=GDK_INTERP_BILINEAR; break; case MAG_IP_HYPER: ipstyle=GDK_INTERP_HYPER; break; default: ipstyle=GDK_INTERP_BILINEAR; } // ¥á¥¤¥ëÍÑpixmap if (mascot->mail.pixmap!=NULL){ #ifdef USE_GTK2 g_object_unref(G_OBJECT(mascot->mail.pixmap)); #else gdk_pixmap_unref(mascot->mail.pixmap); #endif mascot->mail.pixmap=NULL; } if (mascot->mail.mask!=NULL){ #ifdef USE_GTK2 g_object_unref(G_OBJECT(mascot->mail.mask)); #else gdk_pixmap_unref(mascot->mail.mask); #endif mascot->mail.mask=NULL; } if(mascot->mail.pix_file){ tmp_open=to_utf8(mascot->mail.pix_file); #ifdef USE_GTK2 pixbuf = gdk_pixbuf_new_from_file(tmp_open, NULL); #else pixbuf = gdk_pixbuf_new_from_file(tmp_open); #endif g_free(tmp_open); } else{ if(mascot->mail.pix_pos==MAIL_PIX_LEFT){ pixbuf = gdk_pixbuf_new_from_xpm_data(def_biff); } else{ pixbuf = gdk_pixbuf_new_from_xpm_data(def_biff_r); } } w = gdk_pixbuf_get_width(pixbuf)*((gfloat)(mascot->magnify)/100); h = gdk_pixbuf_get_height(pixbuf)*((gfloat)(mascot->magnify)/100); pixbuf2=gdk_pixbuf_scale_simple(pixbuf,w,h,ipstyle); #ifdef USE_CAIRO if(flag_img_cairo_go){ mascot->mail.pixmap = gdk_pixmap_new(biff_pix->window, w, h, -1); cr = gdk_cairo_create(mascot->mail.pixmap); cairo_set_source_rgba (cr, 1, 1, 1, 0); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint (cr); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); //cairo_scale (cr, // (gfloat)(mascot->magnify)/100, // (gfloat)(mascot->magnify)/100); //gdk_cairo_set_source_pixbuf(cr,pixbuf,0,0); gdk_cairo_set_source_pixbuf(cr,pixbuf2,0,0); cairo_paint_with_alpha (cr, (gdouble)mascot->alpha_biff/100); //cairo_paint (cr); cairo_destroy (cr); gdk_pixbuf_render_pixmap_and_mask(pixbuf2, NULL, &mascot->mail.mask, 0xc0); } else{ gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &mascot->mail.pixmap, &mascot->mail.mask, 0xc0); } #else gdk_pixbuf_render_pixmap_and_mask(pixbuf2, &mascot->mail.pixmap, &mascot->mail.mask, 0xc0); #endif #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(pixbuf2)); #else gdk_pixbuf_unref(pixbuf); gdk_pixbuf_unref(pixbuf2); #endif // ½é²ó¥Õ¥ì¡¼¥àÍÑ¥Þ¥¹¥¯ÀڽФ· gdk_window_set_back_pixmap(widget->window, mascot->mail.pixmap, FALSE); #ifdef USE_GTK2 gtk_window_resize (GTK_WINDOW(widget), w, h); #else gdk_window_resize (widget->window, w, h); #endif #ifdef USE_GTK2 gdk_draw_drawable(widget->window, #else gdk_draw_pixmap(widget->window, #endif widget->style->fg_gc[GTK_WIDGET_STATE(widget)], mascot->mail.pixmap, 0,0,0,0, widget->allocation.width, widget->allocation.height); if(flag_img_cairo_go){ #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask( widget->window, mascot->mail.mask, 0, 0 ); gdk_window_set_cursor(widget->window,mascot->cursor.biff); #endif } else{ gdk_window_shape_combine_mask( widget->window, mascot->mail.mask, 0, 0 ); } } #endif // ¥Þ¥¹¥³¥Ã¥È¤òÊÑ´¹¤·¤¿ºÝ¤Ë¥Ð¥Ã¥Õ¥¡¤òËþ¤¿¤·¤Æ¤ª¤¯ gint DrawMascot0(typMascot *mascot) { gint i_work; //printf("DrawMascot0\n"); for(i_work=0;i_work<2;i_work++){ if (pixmap_main[i_work]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_main[i_work])); #else gdk_pixmap_unref(pixmap_main[i_work]); #endif } pixmap_main[i_work] = gdk_pixmap_new(win_main->window, mascot->width, mascot->height, -1); #ifdef USE_WIN32 if(mascot->sdw_flag){ if(mascot->sdw_height>0){ if (pixmap_sdw[i_work]) { g_object_unref(G_OBJECT(pixmap_sdw[i_work])); } pixmap_sdw[i_work] = gdk_pixmap_new(win_sdw->window, mascot->width, mascot->sdw_height, -1); } } #endif } //printf("DrawMascot0 End\n"); return(0); } // BufferÃæ¤Ø¤Î¥Þ¥¹¥³¥Ã¥È¤Î½ñ¤­¹þ¤ß gint DrawMascot(typMascot *mascot) { gint work_page; work_page =mascot->pixmap_page; work_page^=1; if (pixmap_main[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_main[work_page])); #else gdk_pixmap_unref(pixmap_main[work_page]); #endif } pixmap_main[work_page] = gdk_pixmap_new(win_main->window, mascot->width, mascot->height, -1); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ if (pixmap_sdw[work_page]) { g_object_unref(G_OBJECT(pixmap_sdw[work_page])); } pixmap_sdw[work_page] = gdk_pixmap_new(win_sdw->window, mascot->width, mascot->sdw_height, -1); } #endif #ifdef USE_GTK2 gdk_draw_drawable(pixmap_main[work_page], mascot->gc_main[work_page], mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #else gdk_draw_pixmap(pixmap_main[work_page], mascot->gc_main[work_page], mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #endif #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_draw_drawable(pixmap_sdw[work_page], mascot->gc_main[work_page], mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].pixmap_sdw, 0, 0, 0, 0, mascot->width, mascot->sdw_height); } #endif gdk_window_set_back_pixmap(win_main->window, pixmap_main[work_page], FALSE); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_window_set_back_pixmap(win_sdw->window, pixmap_sdw[work_page], FALSE); } #endif /*XSetWindowBackgroundPixmap(GDK_WINDOW_XDISPLAY(win_main->window), GDK_WINDOW_XWINDOW(win_main->window), (Pixmap )pixmap_main[work_page]);*/ if(flag_img_cairo_go){ #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask ( win_main->window, mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask, 0, 0 ); gdk_window_set_cursor(win_main->window,mascot->cursor.normal); #endif } else{ gdk_window_shape_combine_mask ( win_main->window, mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask, 0, 0 ); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_window_shape_combine_mask ( win_sdw->window, mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask_sdw, 0, 0 ); } #endif } #ifdef USE_GTK2 gdk_draw_drawable(win_main->window, win_main->style->fg_gc[GTK_WIDGET_STATE(win_main)], pixmap_main[work_page], 0,0,0,0, mascot->width, mascot->height); #else gdk_draw_pixmap(win_main->window, win_main->style->fg_gc[GTK_WIDGET_STATE(win_main)], pixmap_main[work_page], 0,0,0,0, mascot->width, mascot->height); #endif #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_draw_drawable(win_sdw->window, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], pixmap_sdw[work_page], 0,0,0,0, mascot->width, mascot->sdw_height); } #endif mascot->pixmap_page=work_page; if(mascot->raise_kwin) raise_all(); while (my_main_iteration(FALSE)); gdk_flush(); return(0); } gint DrawMascotTemp(typMascot *mascot, gint i_pix) { gint work_page; work_page =mascot->pixmap_page; //work_page^=1; if (pixmap_main[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_main[work_page])); #else gdk_pixmap_unref(pixmap_main[work_page]); #endif } pixmap_main[work_page] = gdk_pixmap_new(win_main->window, mascot->width, mascot->height, -1); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ if (pixmap_sdw[work_page]) { g_object_unref(G_OBJECT(pixmap_sdw[work_page])); } pixmap_sdw[work_page] = gdk_pixmap_new(win_sdw->window, mascot->width, mascot->sdw_height, -1); } #endif #ifdef USE_GTK2 gdk_draw_drawable( #else gdk_draw_pixmap( #endif pixmap_main[work_page], mascot->gc_main[work_page], mascot->sprites[i_pix].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_draw_drawable(pixmap_sdw[work_page], mascot->gc_main[work_page], mascot->sprites[i_pix].pixmap_sdw, 0, 0, 0, 0, mascot->width, mascot->sdw_height); } #endif gdk_window_set_back_pixmap(win_main->window, pixmap_main[work_page], FALSE); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_window_set_back_pixmap(win_sdw->window, pixmap_sdw[work_page], FALSE); } #endif if(flag_img_cairo_go){ #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask( win_main->window, mascot->sprites[i_pix].mask, 0, 0 ); gdk_window_set_cursor(win_main->window,mascot->cursor.normal); #endif } else{ gdk_window_shape_combine_mask( win_main->window, mascot->sprites[i_pix].mask, 0, 0 ); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_window_shape_combine_mask ( win_sdw->window, mascot->sprites[i_pix].mask_sdw, 0, 0 ); } #endif } #ifdef USE_GTK2 gdk_draw_drawable( #else gdk_draw_pixmap( #endif win_main->window, win_main->style->fg_gc[GTK_WIDGET_STATE(win_main)], pixmap_main[work_page], 0,0,0,0, mascot->width, mascot->height); #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_draw_drawable(win_sdw->window, win_sdw->style->fg_gc[GTK_WIDGET_STATE(win_sdw)], pixmap_sdw[work_page], 0,0,0,0, mascot->width, mascot->sdw_height); } #endif mascot->pixmap_page=work_page; while (my_main_iteration(FALSE)); gdk_flush(); return(0); } // BufferÃæ¤Ø¤Î¥Þ¥¹¥³¥Ã¥È¤Î½ñ¤­¹þ¤ß gint DrawMascotWithDigit(typMascot *mascot){ gint clk_width,clk_height; //GdkGC *gc; gint work_page; gint as=0; #ifdef USE_GTK2 PangoLayout *pango_text; #else gint lb,rb,ds; #endif #ifdef USE_CAIRO cairo_t *cr; cairo_text_extents_t extents; gdouble ampmsize=0; #endif work_page =mascot->pixmap_page; work_page^=1; if (pixmap_main[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_main[work_page])); #else gdk_pixmap_unref(pixmap_main[work_page]); #endif } pixmap_main[work_page] = gdk_pixmap_new(win_main->window, mascot->width, mascot->height, -1); #ifdef USE_GTK2 gdk_draw_drawable(pixmap_main[work_page], mascot->gc_main[work_page], mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #else gdk_draw_pixmap(pixmap_main[work_page], mascot->gc_main[work_page], mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #endif #ifdef USE_CAIRO if(flag_img_cairo_go){ #ifdef __PANGOCAIRO_H__ pango_text=gtk_widget_create_pango_layout(clock_main, mascot->digit); pango_layout_get_pixel_size(pango_text,&clk_width,&clk_height); #endif cr = gdk_cairo_create(pixmap_main[work_page]); cairo_select_font_face (cr, mascot->fontclk_pc.family, mascot->fontclk_pc.slant, mascot->fontclk_pc.weight); cairo_set_font_size (cr, mascot->fontclk_pc.pointsize*96.0/72.0); #ifndef __PANGOCAIRO_H__ cairo_text_extents (cr, mascot->digit, &extents); clk_width=(gint)(extents.x_advance); clk_height=(gint)(-extents.y_bearing); #endif cairo_set_operator (cr, CAIRO_OPERATOR_OVER); if(mascot->flag_clksd){ cairo_set_source_rgba (cr, (gdouble)mascot->colclksd->red/0xFFFF, (gdouble)mascot->colclksd->green/0xFFFF, (gdouble)mascot->colclksd->blue/0xFFFF, (gdouble)mascot->alpclksd/0xFFFF); /* transparent */ #ifdef __PANGOCAIRO_H__ cairo_move_to(cr, mascot->clktext_x+mascot->clksd_x, mascot->clktext_y+mascot->clksd_y); pango_cairo_show_layout(cr,pango_text); #else cairo_move_to(cr, mascot->clktext_x+mascot->clksd_x, clk_height+mascot->clktext_y+mascot->clksd_y); cairo_show_text(cr,mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: cairo_move_to(cr, mascot->clktext_x+mascot->clksd_x+clk_width+3, mascot->clktext_y+mascot->clksd_y+clk_height); cairo_save(cr); cairo_scale (cr, CLOCK_AMPM_RATIO, CLOCK_AMPM_RATIO); // digital clock if(mascot->clk_pm){ cairo_show_text(cr,"PM"); } else{ cairo_show_text(cr,"AM"); } cairo_restore(cr); break; } } // Clock digit foreground cairo_set_source_rgba (cr, (gdouble)mascot->colclk->red/0xFFFF, (gdouble)mascot->colclk->green/0xFFFF, (gdouble)mascot->colclk->blue/0xFFFF, (gdouble)mascot->alpclk/0xFFFF); /* transparent */ #ifdef __PANGOCAIRO_H__ cairo_move_to(cr, mascot->clktext_x, mascot->clktext_y); pango_cairo_show_layout(cr,pango_text); #else cairo_move_to(cr, mascot->clktext_x, clk_height+mascot->clktext_y); cairo_show_text(cr,mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: cairo_move_to(cr, mascot->clktext_x+clk_width+3, mascot->clktext_y+clk_height); cairo_save(cr); cairo_scale (cr, CLOCK_AMPM_RATIO, CLOCK_AMPM_RATIO); // digital clock if(mascot->clk_pm){ cairo_show_text(cr,"PM"); } else{ cairo_show_text(cr,"AM"); } cairo_restore(cr); break; } } else{ #endif // #ifdef USE_CAIRO #ifdef USE_GTK2 pango_text=gtk_widget_create_pango_layout(clock_main, mascot->digit); #endif if(mascot->flag_clksd){ #ifdef USE_GTK2 gdk_draw_layout(pixmap_main[work_page], mascot->gc_mainsd[work_page], mascot->clktext_x*((gfloat)(mascot->magnify)/100)+1, 1, pango_text); #else gdk_draw_string(pixmap_main[work_page],mascot->fontclk, mascot->gc_mainsd[work_page], mascot->clktext_x*((gfloat)(mascot->magnify)/100)+1, mascot->clktext_y*((gfloat)(mascot->magnify)/100)+1, mascot->digit); #endif } #ifdef USE_GTK2 gdk_draw_layout(pixmap_main[work_page], mascot->gc_main[work_page], mascot->clktext_x*((gfloat)(mascot->magnify)/100), 0, pango_text); #else gdk_draw_string(pixmap_main[work_page],mascot->fontclk, mascot->gc_main[work_page], mascot->clktext_x*((gfloat)(mascot->magnify)/100), mascot->clktext_y*((gfloat)(mascot->magnify)/100), mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: #ifdef USE_GTK2 pango_layout_get_pixel_size(pango_text,&clk_width,&clk_height); #else gdk_string_extents(mascot->fontclk,mascot->digit, &lb,&rb,&clk_width,&as,&ds); clk_height=as+ds; #endif // digital clock if(mascot->flag_clksd){ if(mascot->clk_pm){ gdk_draw_arc(pixmap_main[work_page],mascot->gc_mainsd[work_page], TRUE, mascot->clktext_x*((gfloat)(mascot->magnify)/100)+1+clk_width, mascot->clktext_y*((gfloat)(mascot->magnify)/100)+1+clk_height*2/3-as, clk_height/3,clk_height/3, 0,(360*64)); } else{ gdk_draw_arc(pixmap_main[work_page],mascot->gc_mainsd[work_page], TRUE, mascot->clktext_x*((gfloat)(mascot->magnify)/100)+1+clk_width, mascot->clktext_y*((gfloat)(mascot->magnify)/100)+1-as, clk_height/3,clk_height/3, 0,(360*64)); } } if(mascot->clk_pm){ gdk_draw_arc(pixmap_main[work_page],mascot->gc_main[work_page], TRUE, mascot->clktext_x*((gfloat)(mascot->magnify)/100)+clk_width, mascot->clktext_y*((gfloat)(mascot->magnify)/100)+clk_height*2/3-as, clk_height/3,clk_height/3, 0,(360*64)); } else{ gdk_draw_arc(pixmap_main[work_page],mascot->gc_main[work_page], TRUE, mascot->clktext_x*((gfloat)(mascot->magnify)/100)+clk_width, mascot->clktext_y*((gfloat)(mascot->magnify)/100)-as, clk_height/3,clk_height/3, 0,(360*64)); } break; } #ifdef USE_CAIRO } #endif gdk_window_set_back_pixmap(win_main->window, pixmap_main[work_page], FALSE); if(flag_img_cairo_go){ #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask( win_main->window, mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask, 0, 0 ); gdk_window_set_cursor(win_main->window,mascot->cursor.normal); #endif } else{ gdk_window_shape_combine_mask( win_main->window, mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask, 0, 0 ); } #ifdef USE_GTK2 gdk_draw_drawable(win_main->window, win_main->style->fg_gc[GTK_WIDGET_STATE(win_main)], pixmap_main[work_page], 0,0,0,0, mascot->width, mascot->height); #else gdk_draw_pixmap(win_main->window, win_main->style->fg_gc[GTK_WIDGET_STATE(win_main)], pixmap_main[work_page], 0,0,0,0, mascot->width, mascot->height); #endif mascot->pixmap_page=work_page; #ifdef USE_CAIRO #ifdef __PANGOCAIRO_H__ g_object_unref(G_OBJECT(pango_text)); #endif if(flag_img_cairo_go) cairo_destroy(cr); #else #ifdef USE_GTK2 g_object_unref(G_OBJECT(pango_text)); #endif #endif //#ifdef USE_CAIRO while (my_main_iteration(FALSE)); gdk_flush(); return(0); } void ReInitGC(typMascot *mascot) { int i_page; for(i_page=0;i_page<2;i_page++){ if(mascot->gc_main[i_page]){ gdk_gc_unref(mascot->gc_main[i_page]); gdk_gc_unref(mascot->gc_mainsd[i_page]); } mascot->gc_main[i_page] = MPCreatePen(pixmap_main[i_page], mascot->colclk); mascot->gc_mainsd[i_page] = MPCreatePen(pixmap_main[i_page], mascot->colclksd); if(mascot->gc_bal[i_page]){ gdk_gc_unref(mascot->gc_bal[i_page]); gdk_gc_unref(mascot->gc_balbg[i_page]); gdk_gc_unref(mascot->gc_balbd[i_page]); } mascot->gc_bal[i_page] = MPCreatePen(pixmap_bal[i_page], mascot->colbal); mascot->gc_balbg[i_page] = MPCreatePen(pixmap_bal[i_page], mascot->colbalbg); mascot->gc_balbd[i_page] = MPCreatePen(pixmap_bal[i_page], mascot->colbalbd); if(mascot->gc_clk[i_page]){ gdk_gc_unref(mascot->gc_clk[i_page]); gdk_gc_unref(mascot->gc_clkbg[i_page]); gdk_gc_unref(mascot->gc_clkbd[i_page]); gdk_gc_unref(mascot->gc_clksd[i_page]); } mascot->gc_clk[i_page] = MPCreatePen(pixmap_clk[i_page], mascot->colclk); mascot->gc_clkbg[i_page] = MPCreatePen(pixmap_clk[i_page], mascot->colclkbg); mascot->gc_clkbd[i_page] = MPCreatePen(pixmap_clk[i_page], mascot->colclkbd); mascot->gc_clksd[i_page] = MPCreatePen(pixmap_clk[i_page], mascot->colclksd); } } void create_default_font_selection_dialog(typMascot *mascot, gint bal_clk) { GtkWidget *fdialog; GtkWidget *button; GtkWidget *label; confDefFont *cdata; gchar *tmp_label; ConfigFile *cfgfile; tmp_label=g_malloc0(sizeof(gchar)*256); fdialog = gtk_dialog_new(); gtk_container_set_border_width(GTK_CONTAINER(fdialog),5); switch(bal_clk){ case INIT_DEF_FONT_CLK: gtk_window_set_title(GTK_WINDOW(fdialog), _("Cannot Load Default Clock Font")); label=gtk_label_new(_("Cannot Load Default Clock Font")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->vbox), label,TRUE,TRUE,0); sprintf(tmp_label,"\"%s\"",mascot->deffontname_clk); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->vbox), label,TRUE,TRUE,0); break; case INIT_DEF_FONT_BAL: gtk_window_set_title(GTK_WINDOW(fdialog), _("Cannot Load Default Balloon Font")); label=gtk_label_new(_("Cannot Load Default Balloon Font")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->vbox), label,TRUE,TRUE,0); sprintf(tmp_label,"\"%s\"",mascot->deffontname_bal); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->vbox), label,TRUE,TRUE,0); break; } label=gtk_label_new(_("Please Change...")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->vbox), label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(fdialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog,fdialog); gtk_widget_show_all(fdialog); gtk_main(); cdata=g_malloc0(sizeof(confDefFont)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_font_selection_dialog_new(_("Default Font Selection")); cdata->fsd=GTK_FONT_SELECTION_DIALOG(fdialog); cdata->fn=NULL; switch(bal_clk){ case INIT_DEF_FONT_CLK: gtk_font_selection_dialog_set_font_name(cdata->fsd, mascot->deffontname_clk); break; case INIT_DEF_FONT_BAL: gtk_font_selection_dialog_set_font_name(cdata->fsd, mascot->deffontname_bal); break; } my_signal_connect(GTK_FONT_SELECTION_DIALOG(fdialog)->ok_button, "clicked", ChangeDefFontname, (gpointer)cdata); my_signal_connect(fdialog,"destroy",close_child_dialog, fdialog); my_signal_connect(GTK_FONT_SELECTION_DIALOG(fdialog)->cancel_button, "clicked", close_child_dialog,fdialog); gtk_widget_show(fdialog); gtk_main(); if(cdata->fn){ switch(bal_clk){ case INIT_DEF_FONT_CLK: mascot->deffontname_clk=cdata->fn; cfgfile = xmms_cfg_open_file(mascot->rcfile); if (!cfgfile) cfgfile = xmms_cfg_new(); xmms_cfg_write_string(cfgfile, "General", "font_clock",mascot->deffontname_clk); xmms_cfg_write_file(cfgfile, mascot->rcfile); xmms_cfg_free(cfgfile); break; case INIT_DEF_FONT_BAL: mascot->deffontname_bal=cdata->fn; cfgfile = xmms_cfg_open_file(mascot->rcfile); if (!cfgfile) cfgfile = xmms_cfg_new(); xmms_cfg_write_string(cfgfile, "General", "font_balloon",mascot->deffontname_bal); xmms_cfg_write_file(cfgfile, mascot->rcfile); xmms_cfg_free(cfgfile); break; } } g_free(cdata); g_free(tmp_label); } // ¥Õ¥©¥ó¥ÈÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥Õ¥©¥ó¥È¤ÎÊѹ¹ void ChangeDefFontname(GtkWidget *w, gpointer gdata) { confDefFont *cdata; cdata=(confDefFont *)gdata; cdata->fn=gtk_font_selection_dialog_get_font_name(cdata->fsd); gtk_widget_destroy(GTK_WIDGET(cdata->fsd)); gtk_main_quit(); } static void close_child_dialog(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); gtk_widget_destroy(dialog); gtk_main_quit(); } #ifdef USE_CAIRO void screen_changed(GtkWidget *widget, GdkScreen *old_screen, gpointer userdata, gboolean cairo_flag) { /* To check if the display supports alpha channels, get the colormap */ GdkScreen *screen = gtk_widget_get_screen(widget); GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen); if(cairo_flag){ if (!colormap) { //printf("Your screen does not support alpha channels!\n"); colormap = gdk_screen_get_rgb_colormap(screen); supports_alpha = FALSE; } else { //printf("Your screen supports alpha channels!\n"); supports_alpha = TRUE; } //fflush(stdout); } else{ colormap = gdk_screen_get_rgb_colormap(screen); //printf("Forced screen does not supports alpha channels!\n"); supports_alpha = FALSE; } /* Now we have a colormap appropriate for the screen, use it */ gtk_widget_set_colormap(widget, colormap); } #endif void InitComposite(typMascot *mascot){ #ifdef USE_CAIRO #ifdef USE_WIN32 gtk_widget_unmap(win_sdw); #endif gtk_widget_unmap(win_main); #ifdef USE_BIFF gtk_widget_unmap(biff_pix); #endif //#endif gtk_widget_unmap(clock_main); gtk_widget_unmap(balloon_main); #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); gtk_widget_unmap(balloon_fg); #endif #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) #if GTK_CHECK_VERSION(2,10,0) if(gtk_widget_is_composited(GTK_WIDGET(win_main))) mascot->flag_composite=COMPOSITE_TRUE; else mascot->flag_composite=COMPOSITE_FALSE; mascot->force_composite=FALSE; #else mascot->flag_composite=COMPOSITE_UNKNOWN; #endif #endif #ifndef USE_WIN32 //unrealize to change colormap gtk_window_resize(GTK_WINDOW(win_main),1,1); gtk_widget_unrealize(win_main); if((mascot->flag_img_cairo)&&(mascot->flag_composite==COMPOSITE_TRUE)){ screen_changed(win_main, NULL, NULL, TRUE); flag_img_cairo_go=TRUE; } else if((mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN)){ screen_changed(win_main, NULL, NULL, TRUE); flag_img_cairo_go=TRUE; } else{ screen_changed(win_main, NULL, NULL, FALSE); flag_img_cairo_go=FALSE; } //re-realize gtk_widget_realize(win_main); //unrealize to change colormap #ifdef USE_BIFF gtk_widget_unrealize(biff_pix); if(flag_img_cairo_go){ screen_changed(biff_pix, NULL, NULL, TRUE); } else{ screen_changed(biff_pix, NULL, NULL, FALSE); } //re-realize gtk_widget_realize(biff_pix); #endif #endif //#ifndef USE_WIN32 //unrealize to change colormap gtk_widget_unrealize(clock_main); if((mascot->flag_clk_cairo)&&(mascot->flag_composite==COMPOSITE_TRUE)){ screen_changed(clock_main, NULL, NULL, TRUE); } else if((mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN)){ screen_changed(clock_main, NULL, NULL, TRUE); } else{ screen_changed(clock_main, NULL, NULL, FALSE); } //re-realize gtk_widget_realize(clock_main); //clear buffer if(pixmap_clk[0]!=NULL) g_object_unref(G_OBJECT(pixmap_clk[0])); if(pixmap_clk[1]!=NULL) g_object_unref(G_OBJECT(pixmap_clk[1])); pixmap_clk[0]=NULL; pixmap_clk[1]=NULL; // call configure to make pixmaps dw_configure_clk(clock_main, "configure_event",(gpointer)mascot); //unrealize to change colormap gtk_widget_unrealize(balloon_main); if((mascot->flag_bal_cairo)&&(mascot->flag_composite==COMPOSITE_TRUE)){ screen_changed(balloon_main, NULL, NULL, TRUE); } else if((mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN)){ screen_changed(balloon_main, NULL, NULL, TRUE); } else{ screen_changed(balloon_main, NULL, NULL, FALSE); } //re-realize gtk_widget_realize(balloon_main); //clear buffer if(pixmap_bal[0]!=NULL) g_object_unref(G_OBJECT(pixmap_bal[0])); if(pixmap_bal[1]!=NULL) g_object_unref(G_OBJECT(pixmap_bal[1])); pixmap_bal[0]=NULL; pixmap_bal[1]=NULL; // call configure to make pixmaps dw_configure_bal(balloon_main, "configure_event",(gpointer)mascot); //reset input shape mask #if GTK_CHECK_VERSION(2,10,0) gdk_window_input_shape_combine_mask(win_main->window, NULL,0, 0 ); gdk_window_set_cursor(win_main->window,mascot->cursor.normal); #ifdef USE_BIFF gdk_window_input_shape_combine_mask(biff_pix->window, NULL,0, 0 ); gdk_window_set_cursor(biff_pix->window,mascot->cursor.biff); #endif #endif //reset shape mask #ifndef USE_WIN32 gdk_window_shape_combine_mask(win_main->window, NULL,0, 0 ); #ifdef USE_BIFF gdk_window_shape_combine_mask(biff_pix->window, NULL,0, 0 ); #endif #endif gdk_window_shape_combine_mask(clock_main->window, NULL,0, 0 ); gdk_window_shape_combine_mask(balloon_main->window, NULL,0, 0 ); #ifdef USE_WIN32 gdk_window_shape_combine_mask(clock_fg->window, NULL,0, 0 ); gdk_window_shape_combine_mask(balloon_fg->window, NULL,0, 0 ); #endif if((flag_img_cairo_go)&&(mascot->sdw_flag)){ if(mascot->sdw_x<0){ mascot->sdw_x_int=(gint)(-mascot->sdw_x+1); } else{ mascot->sdw_x_int=(gint)(mascot->sdw_x+1); } mascot->sdw_y_int=(gint)(mascot->sdw_y+1); } else{ mascot->sdw_x_int=0; mascot->sdw_y_int=0; } #endif //#ifdef USE_CAIRO } macopix-1.7.4/src/codeconv.h0000644000076400007640000002111410622155435012656 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // codeconv.h // CodeConversion and MIME decoding for MaCoPiX // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright.*** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2004 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __CODECONV_H__ #define __CODECONV_H__ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include typedef struct _CodeConverter CodeConverter; typedef enum { C_AUTO, C_US_ASCII, C_UTF_8, C_UTF_7, C_ISO_8859_1, C_ISO_8859_2, C_ISO_8859_3, C_ISO_8859_4, C_ISO_8859_5, C_ISO_8859_6, C_ISO_8859_7, C_ISO_8859_8, C_ISO_8859_9, C_ISO_8859_10, C_ISO_8859_11, C_ISO_8859_13, C_ISO_8859_14, C_ISO_8859_15, C_BALTIC, C_CP1250, C_CP1251, C_CP1252, C_CP1253, C_CP1254, C_CP1255, C_CP1256, C_CP1257, C_CP1258, C_WINDOWS_1250, C_WINDOWS_1251, C_WINDOWS_1252, C_WINDOWS_1253, C_WINDOWS_1254, C_WINDOWS_1255, C_WINDOWS_1256, C_WINDOWS_1257, C_WINDOWS_1258, C_KOI8_R, C_KOI8_T, C_KOI8_U, C_ISO_2022_JP, C_ISO_2022_JP_2, C_ISO_2022_JP_3, C_EUC_JP, C_SHIFT_JIS, C_ISO_2022_KR, C_EUC_KR, C_ISO_2022_CN, C_EUC_CN, C_GB2312, C_GBK, C_EUC_TW, C_BIG5, C_BIG5_HKSCS, C_TIS_620, C_WINDOWS_874, C_GEORGIAN_PS, C_TCVN5712_1 } CharSet; typedef void (*CodeConvFunc) (gchar *outbuf, gint outlen, const gchar *inbuf); struct _CodeConverter { CodeConvFunc code_conv_func; gchar *charset_str; CharSet charset; }; #define CS_AUTO "AUTO" #define CS_US_ASCII "US-ASCII" #define CS_ANSI_X3_4_1968 "ANSI_X3.4-1968" #define CS_UTF_8 "UTF-8" #define CS_UTF_7 "UTF-7" #define CS_ISO_8859_1 "ISO-8859-1" #define CS_ISO_8859_2 "ISO-8859-2" #define CS_ISO_8859_3 "ISO-8859-3" #define CS_ISO_8859_4 "ISO-8859-4" #define CS_ISO_8859_5 "ISO-8859-5" #define CS_ISO_8859_6 "ISO-8859-6" #define CS_ISO_8859_7 "ISO-8859-7" #define CS_ISO_8859_8 "ISO-8859-8" #define CS_ISO_8859_9 "ISO-8859-9" #define CS_ISO_8859_10 "ISO-8859-10" #define CS_ISO_8859_11 "ISO-8859-11" #define CS_ISO_8859_13 "ISO-8859-13" #define CS_ISO_8859_14 "ISO-8859-14" #define CS_ISO_8859_15 "ISO-8859-15" #define CS_BALTIC "BALTIC" #define CS_CP1250 "CP1250" #define CS_CP1251 "CP1251" #define CS_CP1252 "CP1252" #define CS_CP1253 "CP1253" #define CS_CP1254 "CP1254" #define CS_CP1255 "CP1255" #define CS_CP1256 "CP1256" #define CS_CP1257 "CP1257" #define CS_CP1258 "CP1258" #define CS_WINDOWS_1250 "Windows-1250" #define CS_WINDOWS_1251 "Windows-1251" #define CS_WINDOWS_1252 "Windows-1252" #define CS_WINDOWS_1253 "Windows-1253" #define CS_WINDOWS_1254 "Windows-1254" #define CS_WINDOWS_1255 "Windows-1255" #define CS_WINDOWS_1256 "Windows-1256" #define CS_WINDOWS_1257 "Windows-1257" #define CS_WINDOWS_1258 "Windows-1258" #define CS_KOI8_R "KOI8-R" #define CS_KOI8_T "KOI8-T" #define CS_KOI8_U "KOI8-U" #define CS_ISO_2022_JP "ISO-2022-JP" #define CS_ISO_2022_JP_2 "ISO-2022-JP-2" #define CS_ISO_2022_JP_3 "ISO-2022-JP-3" #define CS_EUC_JP "EUC-JP" #define CS_EUCJP "EUCJP" #define CS_SHIFT_JIS "Shift_JIS" #define CS_SHIFT__JIS "SHIFT-JIS" #define CS_SJIS "SJIS" #define CS_X_SJIS "X-SJIS" #define CS_ISO_2022_KR "ISO-2022-KR" #define CS_EUC_KR "EUC-KR" #define CS_ISO_2022_CN "ISO-2022-CN" #define CS_EUC_CN "EUC-CN" #define CS_GB2312 "GB2312" #define CS_GBK "GBK" #define CS_EUC_TW "EUC-TW" #define CS_BIG5 "Big5" #define CS_BIG5_HKSCS "BIG5-HKSCS" #define CS_TIS_620 "TIS-620" #define CS_WINDOWS_874 "Windows-874" #define CS_GEORGIAN_PS "GEORGIAN-PS" #define CS_TCVN5712_1 "TCVN5712-1" void conv_jistoeuc (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_euctojis (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_sjistoeuc (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_anytoeuc (gchar *outbuf, gint outlen, const gchar *inbuf); #ifdef USE_GTK2 void conv_jistoutf8 (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_sjistoutf8 (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_anytoutf8 (gchar *outbuf, gint outlen, const gchar *inbuf); #endif void conv_anytojis (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_unreadable_eucjp (gchar *str); void conv_unreadable_8bit (gchar *str); void conv_unreadable_latin (gchar *str); void conv_unreadable_locale (gchar *str); void conv_mb_alnum(gchar *str); #ifdef USE_GTK2 void conv_mb_alnum_utf8(gchar *str); #endif CharSet conv_guess_ja_encoding(const gchar *str); void conv_jistodisp (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_sjistodisp (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_euctodisp (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_ustodisp (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_latintodisp (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_noconv (gchar *outbuf, gint outlen, const gchar *inbuf); void conv_localetodisp (gchar *outbuf, gint outlen, const gchar *inbuf); CodeConverter *conv_code_converter_new (const gchar *charset); void conv_code_converter_destroy (CodeConverter *conv); gint conv_convert (CodeConverter *conv, gchar *outbuf, gint outlen, const gchar *inbuf); gchar *conv_codeset_strdup (const gchar *inbuf, const gchar *src_code, const gchar *dest_code); CodeConvFunc conv_get_code_conv_func (const gchar *src_charset_str, const gchar *dest_charset_str); #if HAVE_ICONV gchar *conv_iconv_strdup (const gchar *inbuf, const gchar *src_code, const gchar *dest_code); #endif const gchar *conv_get_charset_str (CharSet charset); CharSet conv_get_charset_from_str (const gchar *charset); CharSet conv_get_current_charset (void); const gchar *conv_get_current_charset_str (void); CharSet conv_get_outgoing_charset (void); const gchar *conv_get_outgoing_charset_str (void); gboolean conv_is_multibyte_encoding (CharSet encoding); const gchar *conv_get_current_locale (void); void conv_unmime_header_overwrite (gchar *str); void conv_unmime_header (gchar *outbuf, gint outlen, const gchar *str); void conv_encode_header (gchar *dest, gint len, const gchar *src, gint header_len, gboolean addr_field); char *my_strcasestr(); // from utils.h guint str_case_hash (gconstpointer key); gint str_case_equal (gconstpointer v, gconstpointer v2); gchar *strncpy2 (gchar *dest, const gchar *src, size_t n); #define Xalloca(ptr, size, iffail) \ { \ if ((ptr = alloca(size)) == NULL) { \ g_warning("can't allocate memory\n"); \ iffail; \ } \ } #define Xstrndup_a(ptr, str, len, iffail) \ { \ gchar *__tmp; \ \ if ((__tmp = alloca(len + 1)) == NULL) { \ g_warning("can't allocate memory\n"); \ iffail; \ } else { \ strncpy(__tmp, str, len); \ __tmp[len] = '\0'; \ } \ \ ptr = __tmp; \ } #endif /* __CODECONV_H__ */ macopix-1.7.4/src/md5.h0000644000076400007640000000215110620532635011542 00000000000000/** This code is in the public domain. See md5.c for details. Authors: Colin Plumb [original author] David Helder [GNet API] */ #ifndef _GNET_MD5_H #define _GNET_MD5_H #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** * GMD5 * * GMD5 is a MD5 hash. * **/ typedef struct _GMD5 GMD5; /** * GNET_MD5_HASH_LENGTH * * Length of the MD5 hash in bytes. **/ #define GNET_MD5_HASH_LENGTH 16 GMD5* gnet_md5_new (const gchar* buffer, guint length); GMD5* gnet_md5_new_string (const gchar* str); GMD5* gnet_md5_clone (const GMD5* md5); void gnet_md5_delete (GMD5* md5); GMD5* gnet_md5_new_incremental (void); void gnet_md5_update (GMD5* md5, const gchar* buffer, guint length); void gnet_md5_final (GMD5* md5); gboolean gnet_md5_equal (gconstpointer p1, gconstpointer p2); guint gnet_md5_hash (gconstpointer p); gchar* gnet_md5_get_digest (const GMD5* md5); gchar* gnet_md5_get_string (const GMD5* md5); void gnet_md5_copy_string (const GMD5* md5, gchar* buffer); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _GNET_MD5_H */ macopix-1.7.4/src/sslmanager.c0000644000076400007640000001303110625664561013214 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // sslmanager.c // Cpnfirmation window for SSL Certification // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifdef USE_SSL #include "main.h" #include "ssl.h" #ifdef USE_WIN32 #include #include #endif extern typMascot *Mascot; extern GtkWidget* gtkut_button_new_from_stock(); extern void my_signal_connect(); extern gboolean my_main_iteration(); static void cc_get_toggle(); static void cc_true (); gint ssl_manager_verify_cert (typMascot *mascot) { GtkWidget *main; GtkWidget *button; GtkWidget *label; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *check; gchar *message; gchar *subject, *issuer; gboolean result; #ifdef USE_GNUTLS if (mascot->mail.ssl_verify == /*X509_V_OK*/0) #else if (mascot->mail.ssl_verify == X509_V_OK) #endif return SSL_CERT_ACCEPT; while (my_main_iteration(FALSE)); mascot->flag_menu=TRUE; result=FALSE; if(mascot->mail.ssl_sub){ subject = g_strdup(mascot->mail.ssl_sub); } else{ subject = g_strdup(_("(unknown)")); } if(mascot->mail.ssl_iss){ issuer = g_strdup(mascot->mail.ssl_iss); } else{ issuer = g_strdup(_("(unknown)")); } /* subject = X509_NAME_oneline(X509_get_subject_name(server_cert), NULL, 0); issuer = X509_NAME_oneline(X509_get_issuer_name(server_cert), NULL, 0); message = g_strdup_printf (_("The SSL certificate of %s cannot be verified by the following reason:\n" " %s\n\n" "Server certificate:\n" " Subject: %s\n" " Issuer: %s\n\n" "Do you accept this certificate?"), hostname, X509_verify_cert_error_string(verify_result), subject ? subject : "(unknown)", issuer ? issuer : "(unknown)"); g_free(issuer); g_free(subject); */ message = g_strdup_printf (_("The SSL certificate of host \"%s\" cannot verified by the following reason:\n" " %s\n\n" "Server certificate:\n" " Subject: %s\n" " Issuer: %s\n\n" "Do you accept this certificate?"), mascot->mail.pop_server, #ifdef USE_GNUTLS /*X509_verify_cert_error_string(mascot->mail.ssl_verify)*/"FIXME", #else X509_verify_cert_error_string(mascot->mail.ssl_verify), #endif subject,issuer); g_free(issuer); g_free(subject); #ifdef USE_GTK2 main = gtk_window_new(GTK_WINDOW_TOPLEVEL); #else main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_position(GTK_WINDOW(main), GTK_WIN_POS_CENTER); gtk_window_set_modal(GTK_WINDOW(main), TRUE); gtk_window_set_title(GTK_WINDOW(main), _("SSL certificate verify failed")); gtk_widget_realize(main); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add (GTK_CONTAINER (main), vbox); label = gtk_label_new(message); g_free(message); gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); check = gtk_check_button_new_with_label(_("Skip this verification after this.")); gtk_box_pack_start(GTK_BOX(vbox), check,FALSE, FALSE, 0); if(mascot->mail.ssl_cert_skip){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &mascot->mail.ssl_cert_skip); hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox),hbox,FALSE,FALSE,0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked",cc_true, &result); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked",gtk_main_quit, NULL); gtk_widget_show_all(main); #ifdef USE_WIN32 { HWND hWnd; SetWindowPos(GDK_WINDOW_HWND(main->window),HWND_TOPMOST,0,0,0,0, SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE); } #else gdk_window_raise(main->window); #endif gdk_flush(); gtk_main(); gtk_widget_destroy(main); gdk_flush(); mascot->flag_menu=FALSE; if(result){ return SSL_CERT_ACCEPT; } mascot->mail.ssl_cert_skip=FALSE; return SSL_CERT_DENY; } static void cc_true (GtkWidget * widget, gboolean * gdata) { *gdata=TRUE; gtk_main_quit(); } static void cc_get_toggle (GtkWidget * widget, gboolean * gdata) { *gdata=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); } #endif /* USE_SSL */ macopix-1.7.4/src/macopix_icon.h0000644000076400007640000006226010622156762013541 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // macopix-icon.h // Icon files for TrayIcon // using gdk-pixbuf-csource command // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* GdkPixbuf RGBA C-Source image dump */ #ifdef __SUNPRO_C #pragma align 4 (macopix_icon) #endif #ifdef __GNUC__ static const guint8 macopix_icon[] __attribute__ ((__aligned__ (4))) = #else static const guint8 macopix_icon[] = #endif { "" /* Pixbuf magic (0x47646b50) */ "GdkP" /* length: header (24) + pixel_data (9216) */ "\0\0$\30" /* pixdata_type (0x1010002) */ "\1\1\0\2" /* rowstride (192) */ "\0\0\0\300" /* width (48) */ "\0\0\0""0" /* height (48) */ "\0\0\0""0" /* pixel_data: */ "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77,\22\377" "\77,\22\377\77,\22\377\77,\22\377\77,\22\377\77,\22\377'\34\14\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77,\22\377dF\36\377~_" "8\377~_8\377dF\36\377dF\36\377dF\36\377\77,\22\377'\34\14\377'\34\14" "\377'\34\14\377'\34\14\377'\34\14\377'\34\14\377\77,\22\377\77,\22\377" "\77,\22\377\77,\22\377\77,\22\377\77,\22\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77,\22\377d" "F\36\377~_8\377dF\36\377\77,\22\377\77,\22\377\77,\22\377\77,\22\377" "dF\36\377\77,\22\377\77,\22\377'\34\14\377\77,\22\377\77,\22\377\77," "\22\377dF\36\377dF\36\377dF\36\377dF\36\377dF\36\377\77,\22\377\77,\22" "\377\77,\22\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77,\22\377~_8\377dF\36\377\77,\22\377'\34\14\377'\34\14\377" "'\34\14\377\77,\22\377dF\36\377dF\36\377\77,\22\377\77,\22\377dF\36\377" "dF\36\377dF\36\377~_8\377~_8\377~_8\377~_8\377dF\36\377dF\36\377\77," "\22\377j;\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\77,\22\377dF\36\377dF\36\377\77,\22\377'\34\14\377'\34\14\377'\34" "\14\377'\34\14\377'\34\14\377K5\26\377K5\26\377dF\36\377\77,\22\377~" "_8\377~_8\377~_8\377\251\213[\377\251\213[\377\251\213[\377~_8\377~_" "8\377dF\36\377\77,\22\377\77,\22\377j;\0\377j;\0\377j;\0\377j;\0\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77,\22\377dF\36\377\77,\22\377'\34\14\377'\34" "\14\377'\34\14\377'\34\14\377\77,\22\377\77,\22\377dF\36\377dF\36\377" "~_8\377~_8\377\251\213[\377\251\213[\377\251\213[\377\251\213[\377\251" "\213[\377\251\213[\377\251\213[\377~_8\377~_8\377dF\36\377\77,\22\377" "\77,\22\377j;\0\377j;\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77,\22\377" "\77,\22\377'\34\14\377\201Q\0\377'\34\14\377\77,\22\377\77,\22\377dF" "\36\377dF\36\377~_8\377~_8\377~_8\377\251\213[\377\251\213[\377\251\213" "[\377\251\213[\377\251\213[\377\251\213[\377\251\213[\377\251\213[\377" "~_8\377~_8\377~_8\377dF\36\377\77,\22\377\77,\22\377j;\0\377\256o\0\377" "j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0j;\0\377\77,\22\377'\34\14\377\201Q\0\377'\34\14\377" "\77,\22\377dF\36\377dF\36\377~_8\377~_8\377\251\213[\377\251\213[\377" "~_8\377\251\213[\377\270\241|\377\270\241|\377\270\241|\377\270\241|" "\377\251\213[\377\251\213[\377\251\213[\377\270\241|\377\251\213[\377" "~_8\377~_8\377dF\36\377\77,\22\377\77,\22\377j;\0\377\256o\0\377j;\0" "\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0" "\377j;\0\377j;\0\377'\34\14\377\77,\22\377\77,\22\377dF\36\377dF\36\377" "~_8\377\251\213[\377\251\213[\377\271\241}\377\251\213[\377~_8\377~_" "8\377\251\213[\377\270\241|\377\270\241|\377\272\243\177\377\251\213" "[\377\251\213[\377~_8\377\251\213[\377\270\241|\377\251\213[\377~_8\377" "~_8\377dF\36\377\77,\22\377j;\0\377\256o\0\377\256o\0\377j;\0\377j;\0" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377\256o\0\377\326" "\224\20\377\326\224\20\377\77,\22\377dF\36\377dF\36\377~_8\377\251\213" "[\377\270\241|\377\270\241|\377\251\213[\377~_8\377~_8\377~_8\377\251" "\213[\377\270\241|\377\271\241}\377\251\213[\377\251\213[\377\251\213" "[\377\251\213[\377~_8\377\251\213[\377\270\241|\377\251\213[\377~_8\377" "dF\36\377\77,\22\377\77,\22\377j;\0\377\256o\0\377\256o\0\377j;\0\377" "j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\326\224\20\377" "\354\314&\377\77,\22\377\77,\22\377dF\36\377~_8\377\251\213[\377\270" "\241|\377\270\241|\377\270\241|\377\251\213[\377~_8\377dF\36\377~_8\377" "~_8\377\251\213[\377\251\213[\377~_8\377\251\213[\377\251\213[\377\251" "\213[\377~_8\377~_8\377\251\213[\377\270\241|\377~_8\377~_8\377dF\36" "\377\77,\22\377j;\0\377\330\231\22\377\256o\0\377\256o\0\377j;\0\377" "j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\354\314&\377\354\314&\377\326" "\224\20\377\77,\22\377dF\36\377~_8\377\251\213[\377\352\324\262\377\270" "\241|\377\251\213[\377\270\241|\377\251\213[\377~_8\377dF\36\377dF\36" "\377~_8\377\251\213[\377\251\213[\377~_8\377~_8\377\251\213[\377\251" "\213[\377\251\213[\377~_8\377~_8\377\251\213[\377\352\324\262\377~_8" "\377dF\36\377\77,\22\377\77,\22\377j;\0\377\326\224\20\377\256o\0\377" "\256o\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\256o\0\377\354\314" "&\377\326\227\21\377\77,\22\377dF\36\377~_8\377\270\241|\377\270\241" "|\377\352\324\262\377~_8\377\251\213[\377\251\213[\377~_8\377dF\36\377" "\77,\22\377~_8\377\251\213[\377~_8\377~_8\377dF\36\377~_8\377\251\213" "[\377\251\213[\377~_8\377~_8\377\352\324\262\377\270\241|\377~_8\377" "dF\36\377\77,\22\377\77,\22\377j;\0\377\326\224\20\377\256o\0\377\256" "o\0\377\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\326\224\20" "\377\77,\22\377\77,\22\377dF\36\377\251\213[\377\270\241|\377\251\213" "[\377\251\213[\377~_8\377\352\324\262\377\352\324\262\377~_8\377dF\36" "\377\77,\22\377~_8\377\352\324\262\377\352\324\262\377~_8\377dF\36\377" "~_8\377\352\324\262\377\352\324\262\377~_8\377~_8\377~_8\377\270\241" "|\377~_8\377~_8\377dF\36\377\77,\22\377j;\0\377\256o\0\377\256o\0\377" "j;\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\256o\0\377\77" ",\22\377dF\36\377~_8\377\251\213[\377\251\213[\377~_8\377dF\36\377~_" "8\377\251\213[\377\251\213[\377~_8\377dF\36\377\77,\22\377dF\36\377~" "_8\377dF\36\377~_8\377~_8\377dF\36\377~_8\377\251\213[\377~_8\377dF\36" "\377~_8\377\270\241|\377~_8\377~_8\377dF\36\377\77,\22\377j;\0\377j;" "\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377j;" "\0\377\77,\22\377dF\36\377~_8\377\251\213[\377\251\213[\377~_8\377dF" "\36\377~_8\377\251\213[\377\251\213[\377dF\36\377\77,\22\377\77,\22\377" "dF\36\377~_8\377dF\36\377\77,\22\377dF\36\377dF\36\377~_8\377~_8\377" "~_8\377dF\36\377~_8\377\270\241|\377\251\213[\377~_8\377dF\36\377\77" ",\22\377j;\0\377\256o\0\377j;\0\377j;\0\377j;\0\377j;\0\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377" "j;\0\377\256o\0\377\256o\0\377\77,\22\377dF\36\377~_8\377\251\213[\377" "~_8\377~_8\377dF\36\377dF\36\377\251\213[\377~_8\377dF\36\377\77,\22" "\377\227\\&\377\77,\22\377dF\36\377dF\36\377\77,\22\377\77,\22\377dF" "\36\377dF\36\377~_8\377~_8\377\77,\22\377dF\36\377\270\241|\377\251\213" "[\377~_8\377dF\36\377\77,\22\377\77,\22\377\326\224\20\377\326\224\20" "\377\256o\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377\256o\0\377\354\314&\377\323" "\222\17\377\77,\22\377dF\36\377~_8\377\251\213[\377~_8\377dF\36\377\77" ",\22\377dF\36\377~_8\377dF\36\377\77,\22\377\227\\&\377\227\\&\377\77" ",\22\377dF\36\377dF\36\377\77,\22\377\227\\&\377\77,\22\377dF\36\377" "dF\36\377~_8\377\77,\22\377dF\36\377\251\213[\377\251\213[\377~_8\377" "dF\36\377\77,\22\377\77,\22\377\326\224\20\377\354\314&\377\256o\0\377" "\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0j;\0\377j;\0\377\256o\0\377\354\314&\377\323\222\17\377" "\77,\22\377dF\36\377~_8\377~_8\377~_8\377dF\36\377\77,\22\377dF\36\377" "dF\36\377\77,\22\377\77,\22\377\227\\&\377\341\221n\377\227\\&\377\77" ",\22\377dF\36\377\77,\22\377\227\\&\377\227\\&\377\77,\22\377\77,\22" "\377S;\31\377\77,\22\377dF\36\377~_8\377\251\213[\377~_8\377dF\36\377" "\77,\22\377\77,\22\377\256o\0\377\354\314&\377\256o\0\377j;\0\377j;\0" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "j;\0\377j;\0\377\256o\0\377\326\224\20\377\323\222\17\377\77,\22\377" "\77,\22\377~_8\377~_8\377~_8\377dF\36\377\77,\22\377dF\36\377\77,\22" "\377\27\27\37\377\27\27\37\377\27\27\37\377\227\\&\377\341\221n\377\227" "\\&\377\77,\22\377\77,\22\377\27\27\37\377\27\27\37\377\27\27\37\377" "\27\27\37\377\77,\22\377\77,\22\377\77,\22\377~_8\377\251\213[\377~_" "8\377dF\36\377\77,\22\377\77,\22\377\256o\0\377\256o\0\377j;\0\377j;" "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377\256o\0\377\256o\0\377\77,\22\377\77" ",\22\377dF\36\377~_8\377dF\36\377dF\36\377\77,\22\377\77,\22\377\27\27" "\37\377,-C\377,-C\377,-C\377,-C\377\227\\&\377\341\221n\377\227\\&\377" ",-C\377,-C\377,-C\377,-C\377,-C\377\27\27\37\377\77,\22\377\77,\22\377" "dF\36\377~_8\377dF\36\377dF\36\377\77,\22\377\77,\22\377j;\0\377\256" "o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377\256o\0\377" "j;\0\377\77,\22\377dF\36\377~_8\377dF\36\377dF\36\377\77,\22\377\27\27" "\37\377,-C\377--[\377Wv\250\377\227\\&\377\227\\&\377\341\221n\377\341" "\221n\377\341\221n\377\227\\&\377\227\\&\377Wv\250\377--[\377,-C\377" ",-C\377\27\27\37\377\77,\22\377dF\36\377dF\36\377dF\36\377dF\36\377\77" ",\22\377\77,\22\377j;\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0j;\0\377j;\0\377j;\0\377\77,\22\377\77,\22\377dF\36\377dF\36" "\377dF\36\377\77,\22\377\27\27\37\377\227\\&\377@V{\377Wv\250\377\341" "\221n\377\341\221n\377\374\312\272\377\374\312\272\377\341\221n\377\341" "\221n\377\341\221n\377Wv\250\377@V{\377\227\\&\377,-C\377\27\27\37\377" "\77,\22\377\77,\22\377\77,\22\377dF\36\377\77,\22\377\77,\22\377\256" "o\0\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0j;\0\377\256o\0\377\77,\22\377\77,\22\377dF\36\377\77,\22\377d" "F\36\377\77,\22\377\27\27\37\377\227\\&\377--[\377@V{\377\341\221n\377" "\374\313\273\377\374\312\272\377\374\312\272\377\374\312\272\377\374" "\313\273\377\341\221n\377@V{\377--[\377\227\\&\377\227\\&\377,-C\377" "\77,\22\377\77,\22\377\77,\22\377\77,\22\377\77,\22\377\77,\22\377\326" "\224\20\377\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0j;\0\377\256o\0\377\256o\0\377\77,\22\377\77,\22\377\77" ",\22\377dF\36\377\77,\22\377\227\\&\377\227\\&\377--[\377@V{\377\374" "\313\273\377\377\347\337\377\377\347\337\377\377\347\337\377\377\347" "\337\377\377\347\337\377\374\313\273\377@V{\377--[\377\227\\&\377\227" "\\&\377\77,\22\377\77,\22\377\77,\22\377\77,\22\377j;\0\377\77,\22\377" "\77,\22\377\326\224\20\377\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\256o\0\377\77,\22\377" "\77,\22\377\77,\22\377\77,\22\377\77,\22\377\227\\&\377\341\221n\377" "--[\377--[\377\374\313\273\377\377\347\337\377\377\347\337\377\377\347" "\337\377\377\347\337\377\374\313\273\377\374\313\273\377--[\377--[\377" "\341\221n\377\227\\&\377\77,\22\377\77,\22\377dF\36\377\77,\22\377j;" "\0\377\77,\22\377\256o\0\377\326\224\20\377\256o\0\377j;\0\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\256" "o\0\377\323\222\17\377\77,\22\377j;\0\377\77,\22\377\77,\22\377\77,\22" "\377\227\\&\377\341\221n\377\341\221n\377\374\312\272\377\374\312\272" "\377\374\312\272\377\374\312\272\377\374\312\272\377\374\312\272\377" "\374\312\272\377\341\221n\377\341\221n\377\341\221n\377\227\\&\377\77" ",\22\377dF\36\377dF\36\377\77,\22\377\326\224\20\377\326\224\20\377\354" "\314&\377\256o\0\377\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\354\314&\377\323\222" "\17\377j;\0\377\77,\22\377\77,\22\377dF\36\377\77,\22\377\227\\&\377" "\341\221n\377\374\312\272\377\374\312\272\377\374\312\272\377\374\312" "\272\377\374\312\272\377\374\312\272\377\341\221n\377\341\221n\377\341" "\221n\377\227\\&\377\77,\22\377\77,\22\377dF\36\377\77,\22\377j;\0\377" "\354\314&\377\326\224\20\377\354\314&\377\256o\0\377\256o\0\377j;\0\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377" "\256o\0\377\354\314&\377\256o\0\377\354\314&\377j;\0\377\77,\22\377d" "F\36\377\77,\22\377\77,\22\377\227\\&\377\341\221n\377\341\221n\377\341" "\221n\377\341\221n\377\341\221n\377\341\221n\377\341\221n\377\227\\&" "\377\227\\&\37735J\37735J\37735J\377\77,\22\377\77,\22\377j;\0\377\326" "\224\20\377\256o\0\377\354\314&\377\256o\0\377j;\0\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377" "\354\314&\377\256o\0\377\354\314&\377j;\0\377\77,\22\377\77,\22\377\77" ",\22\377VZ~\377VZ~\377\227\\&\377\227\\&\377\227\\&\377\227\\&\377\227" "\\&\377\227\\&\377\227\\&\377VZ~\377VZ~\377VZ~\377VZ~\37735J\37735J\377" "j;\0\377j;\0\377\326\224\20\377\256o\0\377\354\314&\377\256o\0\377j;" "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0j;\0\377\326\224\20\377\256o\0\377\326\224\20\377j;\0\377" "j;\0\377\77,\22\377VZ~\377VZ~\377|.D\377|.D\377|.D\377_\33-\377_\33-" "\377#+A\377#+A\377VZ~\377\213\223\274\377\213\223\274\377\213\223\274" "\377VZ~\377VZ~\37735J\37735J\377j;\0\377\256o\0\377\256o\0\377\354\314" "&\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\3772\24\0\3772\24\0\3772\24\0\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\326\224\20\377\256o\0" "\377\326\224\20\377j;\0\377j;\0\377j;\0\377#+A\377|.D\377\343\217\240" "\377\275Zk\377\343\217\240\377|.D\377_\33-\377#+A\377VZ~\377\213\223" "\274\377\213\223\274\377\272\301\342\377\272\301\342\377\213\223\274" "\377\213\223\274\377VZ~\37735J\37735J\377j;\0\377\256o\0\377\256o\0\377" "j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0""2\24\0\3772\24\0\377y>,\377y>,\377N#\25\3772\24\0\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377\256o\0\377\256o\0\377" "j;\0\377j;\0\377z}\220\377#+A\377|.D\377|.D\377|.D\377\343\217\240\377" "|.D\377_\33-\377_\33-\377VZ~\377\213\223\274\377\272\301\342\377\272" "\301\342\377\272\301\342\377\272\301\342\377\213\223\274\377VZ~\3773" "5J\37735J\377j;\0\377j;\0\377\256o\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\3772\24\0\377O#" "\26\377y>,\377\302lR\377y>,\377J\37\22\3772\24\0\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0j;\0\377j;\0\377j;\0\377j;\0\377z}\220\377\264\266\303" "\377\342\344\360\377\342\344\360\377z}\220\377_\33-\377|.D\377\275Zk" "\377_\33-\37735J\377VZ~\377\213\223\274\377\272\301\342\377\272\301\342" "\377\272\301\342\377\272\301\342\377\213\223\274\377\213\223\274\377" "VZ~\37735J\377_\33-\377j;\0\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377P$\26\377h3#\377" "\206J8\377\206J8\377\302lR\377J\37\22\3772\24\0\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0j;\0\377j;\0\377z}\220\377\264\266\303\377\377" "\377\377\377\377\377\377\377\377\377\377\377\342\344\360\377z}\220\377" "_\33-\377|.D\377_\33-\37735J\377VZ~\377\213\223\274\377\272\301\342\377" "\272\301\342\377\272\301\342\377\213\223\274\377\213\223\274\377VZ~\377" "VZ~\37735J\377_\33-\377_\33-\377j;\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377Q%\27\377j5$" "\377\206J8\377\206J8\377\302lR\377J\37\22\3772\24\0\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0j;\0\377z}\220\377\342\344\360\377" "\377\377\377\377\342\344\360\377\342\344\360\377\342\344\360\377\264" "\266\303\377z}\220\377_\33-\377VZ~\37735J\377VZ~\377VZ~\377\213\223\274" "\377\213\223\274\377\213\223\274\377\213\223\274\377VZ~\377VZ~\37735" "J\377_\33-\377|.D\377|.D\377_\33-\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377R%\30\377k6$\377" "\206J8\377\206J8\377\302lR\377J\37\22\3772\24\0\3772\24\0\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0z}\220\377z}\220\377\264\266\303\377\377\377" "\377\377\377\377\377\377\342\344\360\377\342\344\360\377\342\344\360" "\377\342\344\360\377\264\266\303\377z}\220\377VZ~\377\213\223\274\377" "35J\37735J\377VZ~\377VZ~\377VZ~\377VZ~\377VZ~\377VZ~\37735J\377_\33-" "\377\275Zk\377\275Zk\377_\33-\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377S&\30\377m7%\377y>,\377" "\206J8\377\206J8\377y>,\377J\37\22\377z}\220\377z}\220\377z}\220\377" "z}\220\377z}\220\377z}\220\377z}\220\377\264\266\303\377\377\377\377" "\377\377\377\377\377\342\344\360\377\264\266\303\377\342\344\360\377" "\342\344\360\377\264\266\303\377z}\220\377#+A\377VZ~\377VZ~\377\213\223" "\274\37735J\377VZ~\377VZ~\377VZ~\377\213\223\274\377VZ~\37735J\377_\33" "-\377|.D\377\275Zk\377|.D\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377T'\31\377o8&\377y>,\377\206" "J8\377\206J8\377y>,\377J\37\22\377z}\220\377\264\266\303\377\264\266" "\303\377\264\266\303\377\264\266\303\377z}\220\377\264\266\303\377\342" "\344\360\377\377\377\377\377\342\344\360\377\264\266\303\377z}\220\377" "\264\266\303\377\342\344\360\377\264\266\303\377z}\220\377\264\266\303" "\377#+A\377#+A\377VZ~\37735J\37735J\37735J\377VZ~\377\213\223\274\377" "VZ~\37735J\377_\33-\377_\33-\377|.D\377|.D\377_\33-\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377" "U'\31\377y>,\377y>,\377\206J8\377y>,\377U'\31\377\264\266\303\377\342" "\344\360\377\342\344\360\377\342\344\360\377z}\220\3772\24\0\377U'\31" "\377U'\31\377z}\220\377\264\266\303\377\264\266\303\377z}\220\377z}\220" "\377\264\266\303\377z}\220\377\264\266\303\377\264\266\303\377\264\266" "\303\377z}\220\377#+A\377#+A\377_\33-\37735J\377VZ~\377\213\223\274\377" "VZ~\377VZ~\37735J\377_\33-\377_\33-\377_\33-\377_\33-\377_\33-\377_\33" "-\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0" "\377V(\32\377r:(\377y>,\377\206J8\377J\37\22\377J\37\22\3772\24\0\377" "2\24\0\3772\24\0\3772\24\0\377r:(\377y>,\377y>,\377y>,\377V(\32\377z" "}\220\377z}\220\377J\37\22\377z}\220\377z}\220\377z}\220\377\264\266" "\303\377\264\266\303\377\342\344\360\377\342\344\360\377\264\266\303" "\377|.D\377_\33-\37735J\377VZ~\377\213\223\274\377\213\223\274\377VZ" "~\37735J\377|.D\377|.D\377|.D\377\275Zk\377\275Zk\377_\33-\377_\33-\377" "_\33-\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""2\24\0\377W)\32\377" "t;)\377y>,\377W)\32\377W)\32\377J\37\22\3772\24\0\377\206J8\377\302l" "R\377\302lR\377\302lR\377\206J8\377\206J8\377y>,\377y>,\377W)\32\377" "W)\32\377J\37\22\377z}\220\377z}\220\377\227\\&\377z}\220\377\264\266" "\303\377\342\344\360\377\342\344\360\377\342\344\360\377\264\266\303" "\377\264\266\303\37735J\377VZ~\377VZ~\377VZ~\377VZ~\37735J\377_\33-\377" "\343\217\240\377\275Zk\377\275Zk\377\343\217\240\377|.D\377|.D\377_\33" "-\377_\33-\377\0\0\0\377\0\0\0\377\0\0\0\3772\24\0\377J\37\22\377X)\33" "\377v<*\377v<*\377v<*\377X)\33\3772\24\0\377v<*\377\302lR\377\206J8\377" "\206J8\377\206J8\377y>,\377y>,\377y>,\377X)\33\377X)\33\377X)\33\377" "J\37\22\377z}\220\377\227\\&\377\341\221n\377z}\220\377\264\266\303\377" "\377\377\377\377\377\377\377\377\377\377\377\377\342\344\360\377\264" "\266\303\377z}\220\377z}\220\377\264\266\303\377\264\266\303\377z}\220" "\377z}\220\377_\33-\377_\33-\377|.D\377|.D\377\275Zk\377\343\217\240" "\377\343\217\240\377_\33-\377_\33-\377#+A\377#+A\377#+A\3772\24\0\377" "J\37\22\377J\37\22\377Y*\33\377Y*\33\377Y*\33\377J\37\22\3772\24\0\377" "x=+\377\206J8\377\206J8\377\206J8\377y>,\377y>,\377y>,\377y>,\377x=+" "\377Y*\33\377J\37\22\377J\37\22\377\0\0\0\377\227\\&\377\341\221n\377" "\227\\&\377z}\220\377\264\266\303\377\342\344\360\377\342\344\360\377" "\264\266\303\377z}\220\377z}\220\377\227\\&\377\341\221n\377\374\312" "\272\377\374\312\272\377\227\\&\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0" "\0\377_\33-\377|.D\377|.D\377|.D\377_\33-\377,\377y>,\377y>,\377y>,\377y>,\377Z+\34" "\377Z+\34\377Z+\34\377Z+\34\377J\37\22\377J\37\22\377\0\0\0\377\0\0\0" "\377\227\\&\377\227\\&\377z}\220\377\264\266\303\377\264\266\303\377" "\264\266\303\377z}\220\377z}\220\377z}\220\377\227\\&\377\227\\&\377" "\341\221n\377\341\221n\377\341\221n\377\227\\&\377#+A\377#+A\377#+A\377" "#+A\377_\33-\377_\33-\377|.D\377#+A\377f\204\320\377f\204\320\377 #include #include #include "base64.h" static const gchar base64char[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const gchar base64val[128] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 }; #define BASE64VAL(c) (isascii((guchar)c) ? base64val[(gint)(c)] : -1) void base64_encode(gchar *out, const guchar *in, gint inlen) { const guchar *inp = in; gchar *outp = out; while (inlen >= 3) { *outp++ = base64char[(inp[0] >> 2) & 0x3f]; *outp++ = base64char[((inp[0] & 0x03) << 4) | ((inp[1] >> 4) & 0x0f)]; *outp++ = base64char[((inp[1] & 0x0f) << 2) | ((inp[2] >> 6) & 0x03)]; *outp++ = base64char[inp[2] & 0x3f]; inp += 3; inlen -= 3; } if (inlen > 0) { *outp++ = base64char[(inp[0] >> 2) & 0x3f]; if (inlen == 1) { *outp++ = base64char[(inp[0] & 0x03) << 4]; *outp++ = '='; } else { *outp++ = base64char[((inp[0] & 0x03) << 4) | ((inp[1] >> 4) & 0x0f)]; *outp++ = base64char[((inp[1] & 0x0f) << 2)]; } *outp++ = '='; } *outp = '\0'; } gint base64_decode(guchar *out, const gchar *in, gint inlen) { const gchar *inp = in; guchar *outp = out; gchar buf[4]; if (inlen < 0) inlen = G_MAXINT; while (inlen >= 4 && *inp != '\0') { buf[0] = *inp++; inlen--; if (BASE64VAL(buf[0]) == -1) break; buf[1] = *inp++; inlen--; if (BASE64VAL(buf[1]) == -1) break; buf[2] = *inp++; inlen--; if (buf[2] != '=' && BASE64VAL(buf[2]) == -1) break; buf[3] = *inp++; inlen--; if (buf[3] != '=' && BASE64VAL(buf[3]) == -1) break; *outp++ = ((BASE64VAL(buf[0]) << 2) & 0xfc) | ((BASE64VAL(buf[1]) >> 4) & 0x03); if (buf[2] != '=') { *outp++ = ((BASE64VAL(buf[1]) & 0x0f) << 4) | ((BASE64VAL(buf[2]) >> 2) & 0x0f); if (buf[3] != '=') { *outp++ = ((BASE64VAL(buf[2]) & 0x03) << 6) | (BASE64VAL(buf[3]) & 0x3f); } } } return outp - out; } Base64Decoder *base64_decoder_new(void) { Base64Decoder *decoder; decoder = g_new0(Base64Decoder, 1); return decoder; } void base64_decoder_free(Base64Decoder *decoder) { g_free(decoder); } gint base64_decoder_decode(Base64Decoder *decoder, const gchar *in, guchar *out) { gint len, total_len = 0; gint buf_len; gchar buf[4]; g_return_val_if_fail(decoder != NULL, -1); g_return_val_if_fail(in != NULL, -1); g_return_val_if_fail(out != NULL, -1); buf_len = decoder->buf_len; memcpy(buf, decoder->buf, sizeof(buf)); for (;;) { while (buf_len < 4) { gchar c = *in; in++; if (c == '\0') break; if (c == '\r' || c == '\n') continue; if (c != '=' && BASE64VAL(c) == -1) return -1; buf[buf_len++] = c; } if (buf_len < 4 || buf[0] == '=' || buf[1] == '=') { decoder->buf_len = buf_len; memcpy(decoder->buf, buf, sizeof(buf)); return total_len; } len = base64_decode(out, buf, 4); out += len; total_len += len; buf_len = 0; if (len < 3) { decoder->buf_len = 0; return total_len; } } } #endif // USE_BIFF macopix-1.7.4/src/trayicon.c0000644000076400007640000001454711006617673012721 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // trayicon.c // Management of Trayicon w/Gtk+ >2.10.0 // originated from Sylpheed-2.3.1 *** see below copyright *** // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "main.h" //#if GTK_CHECK_VERSION(2, 10, 0) #ifdef __GTK_STATUS_ICON_H__ #include "macopix_icon.h" extern void AllRandomChangeMascotMenu(); extern void create_config_dialog(); extern void MenuSaveAll(); extern void quit_all(); extern void my_signal_connect(); void trayicon_create(); static void trayicon_popup_menu(); void trayicon_show(); void trayicon_hyde(); void trayicon_destroy(); void trayicon_set_tooltip(); extern GtkWidget *win_main; // extern GtkWidget *PopupMenu; static GtkWidget *trayicon_menu=NULL; static gboolean on_notify=FALSE; static gboolean default_tooltip=FALSE; void trayicon_create(typMascot *mascot){ GdkPixbuf *icon; GtkWidget *popup_button, *bar; #ifdef __GTK_STOCK_H__ GtkWidget *image; #endif icon = gdk_pixbuf_new_from_inline(sizeof(macopix_icon), macopix_icon, FALSE, NULL); mascot->tray_icon = gtk_status_icon_new_from_pixbuf(icon); g_signal_connect(G_OBJECT(mascot->tray_icon), "popup-menu", G_CALLBACK(trayicon_popup_menu), win_main); if (!trayicon_menu) { trayicon_menu = gtk_menu_new(); gtk_widget_show(trayicon_menu); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_REFRESH, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Mascot Random Change")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Mascot Random Change")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (trayicon_menu), popup_button); my_signal_connect (popup_button, "activate", AllRandomChangeMascotMenu, NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (trayicon_menu), bar); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_PROPERTIES, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Config")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Config")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (trayicon_menu), popup_button); my_signal_connect (popup_button, "activate", create_config_dialog, NULL); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_SAVE, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Save All")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Save All")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (trayicon_menu), popup_button); my_signal_connect (popup_button, "activate", MenuSaveAll, NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (trayicon_menu), bar); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Exit")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Exit")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (trayicon_menu), popup_button); my_signal_connect (popup_button, "activate", quit_all, NULL); } on_notify = FALSE; default_tooltip = FALSE; trayicon_set_tooltip(mascot); } static void trayicon_popup_menu(GtkStatusIcon *status_icon, guint button, guint activate_time, gpointer gdata) { gtk_menu_popup (GTK_MENU(trayicon_menu), NULL, NULL, NULL, NULL, button, activate_time); } void trayicon_show(typMascot *mascot) { gtk_status_icon_set_visible(mascot->tray_icon, TRUE); }; void trayicon_hide(typMascot *mascot) { gtk_status_icon_set_visible(mascot->tray_icon, FALSE); } void trayicon_destroy(typMascot *mascot) { g_object_unref(mascot->tray_icon); mascot->tray_icon = NULL; } void trayicon_set_tooltip(typMascot *mascot) { gchar *text; if (mascot->name) { default_tooltip = FALSE; text=g_strdup_printf("MaCoPiX : %s",mascot->name); gtk_status_icon_set_tooltip(mascot->tray_icon, text); g_free(text); } else if (!default_tooltip) { default_tooltip = TRUE; gtk_status_icon_set_tooltip(mascot->tray_icon, "MaCoPiX"); } } #endif macopix-1.7.4/src/unmime.c0000644000076400007640000001107710622156435012353 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // unmime.c // CodeConversion and MIME decoding for MaCoPiX // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright. *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2003 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "main.h" #ifdef USE_BIFF #include #include #include #include "codeconv.h" #include "base64.h" #include "quoted-printable.h" #define ENCODED_WORD_BEGIN "=?" #define ENCODED_WORD_END "?=" /* Decodes headers based on RFC2045 and RFC2047. */ void unmime_header(gchar *out, const gchar *str) { const gchar *p = str; gchar *outp = out; const gchar *eword_begin_p, *encoding_begin_p, *text_begin_p, *eword_end_p; gchar charset[32]; gchar encoding; gchar *conv_str; gint len; while (*p != '\0') { gchar *decoded_text = NULL; eword_begin_p = strstr(p, ENCODED_WORD_BEGIN); if (!eword_begin_p) { strcpy(outp, p); return; } encoding_begin_p = strchr(eword_begin_p + 2, '?'); if (!encoding_begin_p) { strcpy(outp, p); return; } text_begin_p = strchr(encoding_begin_p + 1, '?'); if (!text_begin_p) { strcpy(outp, p); return; } eword_end_p = strstr(text_begin_p + 1, ENCODED_WORD_END); if (!eword_end_p) { strcpy(outp, p); return; } if (p == str) { memcpy(outp, p, eword_begin_p - p); outp += eword_begin_p - p; p = eword_begin_p; } else { /* ignore spaces between encoded words */ const gchar *sp; for (sp = p; sp < eword_begin_p; sp++) { if (!isspace(*(const guchar *)sp)) { memcpy(outp, p, eword_begin_p - p); outp += eword_begin_p - p; p = eword_begin_p; break; } } } len = MIN(sizeof(charset) - 1, encoding_begin_p - (eword_begin_p + 2)); memcpy(charset, eword_begin_p + 2, len); charset[len] = '\0'; encoding = toupper(*(encoding_begin_p + 1)); if (encoding == 'B') { decoded_text = g_malloc (eword_end_p - (text_begin_p + 1) + 1); len = base64_decode(decoded_text, text_begin_p + 1, eword_end_p - (text_begin_p + 1)); decoded_text[len] = '\0'; } else if (encoding == 'Q') { decoded_text = g_malloc (eword_end_p - (text_begin_p + 1) + 1); len = qp_decode_q_encoding (decoded_text, text_begin_p + 1, eword_end_p - (text_begin_p + 1)); } else { memcpy(outp, p, eword_end_p + 2 - p); outp += eword_end_p + 2 - p; p = eword_end_p + 2; continue; } /* convert to internal encoding */ #ifdef USE_GTK2 conv_str = conv_codeset_strdup(decoded_text, charset, CS_UTF_8); #else conv_str = conv_codeset_strdup(decoded_text, charset, NULL); #endif if (conv_str) { len = strlen(conv_str); memcpy(outp, conv_str, len); g_free(conv_str); } else { len = strlen(decoded_text); conv_localetodisp(outp, len + 1, decoded_text); } outp += len; g_free(decoded_text); p = eword_end_p + 2; } *outp = '\0'; } #endif // USE_BIFF macopix-1.7.4/src/balloon.c0000644000076400007640000007547211015375315012515 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // balloon.c // Creating and Drawing Balloon Message Windows // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #include #include // *** GLOBAL ARGUMENT *** extern GtkWidget *win_main, *balloon_main; #ifdef USE_WIN32 extern GtkWidget *balloon_fg; #endif extern GtkWidget *popup_menu; extern gint window_x, window_y; extern GdkDrawable *pixmap_bal[2]; extern gint dw_configure_bal(); extern gint dw_expose_bal(); extern void MoveBalloon(); extern void ResizeMoveBalloon(); #ifdef USE_CAIRO extern gint dw_configure_bal2(); extern gint dw_expose_bal2(); extern void screen_changed(); extern gboolean supports_alpha; #endif extern gboolean flag_balloon; GdkBitmap *mask_bal[2]={NULL,NULL};; #ifdef USE_WIN32 extern void GdkWinSetAlpha(); #endif extern gdouble GetCurrentResolution(); gint old_x, old_y; // *** Protptype of function in this file void DrawBalloon(); void DoBalloon(); void make_balloon(); #ifdef USE_WIN32 void make_balloon_fg(); #endif void balloon_arg_init(); void DoSysBalloon(); void DrawBalloon(typMascot *mascot, char **wn_iwp, int wn_max) { gint bal_width,bal_height; GdkGCValues gcv; gint w,h; gint lb,rb,as,ds=0; GdkPoint points[4]; gint h_arrow=6; int tmp_h,tmp_w,tmp_ds; int i_wn; gint work_page; #ifdef USE_GTK2 PangoLayout *pango_text; PangoLanguage *pango_lang; #endif work_page=mascot->bal_page; work_page^=1; // bal_height, bal_width ¥Æ¥­¥¹¥È°ì¹Ô¤ÎÂ礭¤µ bal_height=0; bal_width=0; for(i_wn=0;i_wnfontbal,wn_iwp[i_wn], &lb,&rb,&tmp_w,&as,&tmp_ds); tmp_h=as+tmp_ds; #endif if(tmp_w>bal_width){ bal_width=tmp_w; } if(tmp_h>bal_height){ bal_height=tmp_h; #ifdef USE_GTK2 ds=0; #else ds=tmp_ds; #endif } } // w, h ¥Ð¥ë¡¼¥óÁ´ÂΤÎÂ礭¤µ w=bal_width+(mascot->baltext_x+mascot->wbalbd)*2; h=(bal_height+mascot->baltext_y)*wn_max +mascot->baltext_y+mascot->wbalbd*2; mascot->balwidth=w; mascot->balheight=h+h_arrow; // ¥Ð¥ë¡¼¥ó¤Î°ÌÃÖ·èÄê mascot->bal_pos=mascot->bal_defpos; if(mascot->bal_pos==BAL_POS_LEFT){ if((mascot->x-w+mascot->bal_lxoff[mascot->anime_ptn])<0) mascot->bal_pos=BAL_POS_RIGHT; } else if(mascot->bal_pos==BAL_POS_RIGHT){ if((mascot->x+mascot->width+w+mascot->bal_lxoff[mascot->anime_ptn]) >mascot->width_root) mascot->bal_pos=BAL_POS_LEFT; } if (pixmap_bal[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_bal[work_page])); #else gdk_pixmap_unref(pixmap_bal[work_page]); #endif } pixmap_bal[work_page] = gdk_pixmap_new(balloon_main->window,w,h+h_arrow,-1); if (mask_bal[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mask_bal[work_page])); #else gdk_pixmap_unref(mask_bal[work_page]); #endif } mask_bal[work_page] = gdk_pixmap_new(balloon_main->window, w,h+h_arrow,1); // Depth =1 (Bitmap) if(mascot->gc_balmask[work_page]){ gdk_gc_unref(mascot->gc_balmask[work_page]); } mascot->gc_balmask[work_page]=gdk_gc_new(mask_bal[work_page]); // ¤¤¤Ã¤¿¤ó¥Þ¥¹¥¯¤òforeground¤Ç¥¯¥ê¥¢¤¹¤ë gdk_draw_rectangle(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,0, w,h+h_arrow); // ¥Þ¥¹¥¯¤Ïforeground¿§¤ÎÉôʬ¤¬¾Ã¤µ¤ì¤ë¤Î¤Ç, »Ä¤·¤¿¤¤Éôʬ¤Ï // background¿§¤ÇÉÁ²è¤¹¤ë gdk_gc_get_values(mascot->gc_balmask[work_page], &gcv); gdk_gc_set_foreground(mascot->gc_balmask[work_page], &gcv.background); gdk_gc_set_background(mascot->gc_balmask[work_page], &gcv.foreground); // **** pixmap¤Ø¤ÎBUFFERING // Mask (Border¤ÈƱ¤¸) #ifdef USE_WIN32 gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, (w+2)-mascot->baltext_x*2-1,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,(h+2)-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, (w+2)-mascot->baltext_x*2-1,(h+2)-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); #else gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,0, mascot->baltext_x*2,mascot->baltext_y*2, 5760,5760); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, w-mascot->baltext_x*2-1,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,h-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*2,5760); gdk_draw_arc(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, w-mascot->baltext_x*2-1,h-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, 0,mascot->baltext_y, w,h-mascot->baltext_y*2); gdk_draw_rectangle(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE, mascot->baltext_x,0, w-mascot->baltext_x*2,h); points[0].y=h+h_arrow; points[1].y=h-mascot->baltext_y; points[2].y=h-mascot->baltext_y; points[3].y=h+h_arrow; if(mascot->bal_pos==BAL_POS_RIGHT){ points[0].x=0; points[1].x=10-mascot->wbalbd; points[2].x=16+mascot->wbalbd; points[3].x=0; } else if(mascot->bal_pos==BAL_POS_LEFT){ points[0].x=w; points[1].x=w-10+mascot->wbalbd; points[2].x=w-16-mascot->wbalbd; points[3].x=w; } gdk_draw_polygon(mask_bal[work_page],mascot->gc_balmask[work_page], TRUE,points,4); // border if(mascot->wbalbd>0){ #ifdef USE_WIN32 gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, 0,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, (w+2)-mascot->baltext_x*2-1,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, 0,(h+2)-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, (w+2)-mascot->baltext_x*2-1,(h+2)-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); #else gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, 0,0, mascot->baltext_x*2,mascot->baltext_y*2, 5760,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, w-mascot->baltext_x*2-1,0, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, 0,h-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*2,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, w-mascot->baltext_x*2-1,(h+2)-mascot->baltext_y*2-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, 0,mascot->baltext_y, w,h-mascot->baltext_y*2); gdk_draw_rectangle(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE, mascot->baltext_x,0, w-mascot->baltext_x*2,h); gdk_draw_polygon(pixmap_bal[work_page],mascot->gc_balbd[work_page], TRUE,points,4); } // background #ifdef USE_WIN32 gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd,mascot->wbalbd, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, (w+2)-mascot->baltext_x*2-mascot->wbalbd-1, mascot->wbalbd, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd, (h+2)-mascot->baltext_y*2-mascot->wbalbd-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, (w+2)-mascot->baltext_x*2-mascot->wbalbd-1, (h+2)-mascot->baltext_y*2-mascot->wbalbd-1, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760*4); #else gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd,mascot->wbalbd, mascot->baltext_x*2,mascot->baltext_y*2, 5760,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, w-mascot->baltext_x*2-mascot->wbalbd-1, mascot->wbalbd, mascot->baltext_x*2,mascot->baltext_y*2, 0,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd, h-mascot->baltext_y*2-mascot->wbalbd-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*2,5760); gdk_draw_arc(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, w-mascot->baltext_x*2-mascot->wbalbd-1, h-mascot->baltext_y*2-mascot->wbalbd-1, mascot->baltext_x*2,mascot->baltext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd, mascot->wbalbd+mascot->baltext_y, w-mascot->wbalbd*2, h-mascot->baltext_y*2-mascot->wbalbd*2); gdk_draw_rectangle(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE, mascot->wbalbd+mascot->baltext_x, mascot->wbalbd, w-mascot->baltext_x*2-mascot->wbalbd*2, h-mascot->wbalbd*2); points[0].y-=1; points[1].y-=mascot->wbalbd; points[2].y-=mascot->wbalbd; points[3].y-=1; if(mascot->bal_pos==BAL_POS_RIGHT){ points[1].x+=mascot->wbalbd; points[2].x-=mascot->wbalbd; } else if(mascot->bal_pos==BAL_POS_LEFT){ points[1].x-=mascot->wbalbd; points[2].x+=mascot->wbalbd; } gdk_draw_polygon(pixmap_bal[work_page],mascot->gc_balbg[work_page], TRUE,points,4); // Balloon Text for(i_wn=0;i_wngc_bal[work_page], mascot->baltext_x+mascot->wbalbd, (mascot->baltext_y+bal_height)*(i_wn+1) +mascot->wbalbd-bal_height, pango_text); #else gdk_draw_string(pixmap_bal[work_page],mascot->fontbal, mascot->gc_bal[work_page], mascot->baltext_x+mascot->wbalbd, (mascot->baltext_y+bal_height)*(i_wn+1) +mascot->wbalbd-ds, wn_iwp[i_wn]); #endif } mascot->bal_page=work_page; // Balloon BG Draw #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_set_back_pixmap(balloon_fg->window, pixmap_bal[mascot->bal_page], FALSE); } #endif gdk_window_set_back_pixmap(balloon_main->window, pixmap_bal[mascot->bal_page], FALSE); // Resize of Balloon (calling dw_bal_expose) #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_resize (balloon_fg->window,w,h+h_arrow); } #endif gdk_window_resize (balloon_main->window,w,h+h_arrow); //ResizeMoveBalloon (mascot,mascot->x, mascot->y, w,h+h_arrow); #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_shape_combine_mask( balloon_fg->window, mask_bal[mascot->bal_page], 0,0); } #endif gdk_window_shape_combine_mask( balloon_main->window, mask_bal[mascot->bal_page], 0,0); // End of Balloon Draw MoveBalloon(mascot,mascot->x,mascot->y); gdk_flush(); #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gtk_widget_map(balloon_fg); } #endif gtk_widget_map(balloon_main); // ToolTips»ÈÍÑ»þ¤Ëºï½ü for v1.4.0 //while (g_main_iteration(FALSE)); #ifdef USE_GTK2 if(pango_text) g_object_unref(G_OBJECT(pango_text)); #endif gdk_flush(); } #ifdef USE_CAIRO void DrawBalloon2(typMascot *mascot, char **wn_iwp, int wn_max) { gint bal_width,bal_height; GdkGCValues gcv; gint w,h; gint lb,rb,as,ds=0; GdkPoint points[4]; gint h_arrow=6; int tmp_h,tmp_w,tmp_ds; int i_wn; gint work_page; PangoLayout *pango_text; PangoLanguage *pango_lang; cairo_t *cr; cairo_t *cr_mask; gdouble M_PI=3.14159265; gdouble dx,dy; #ifndef __PANGOCAIRO_H__ cairo_text_extents_t extents; #endif gboolean shape_flag=FALSE; work_page=mascot->bal_page; work_page^=1; if(mascot->flag_composite==COMPOSITE_FALSE){ shape_flag=TRUE; } else if((!mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN)){ shape_flag=TRUE; } h_arrow+=mascot->wbalbd; // bal_height, bal_width ¥Æ¥­¥¹¥È°ì¹Ô¤ÎÂ礭¤µ bal_height=0; bal_width=0; for(i_wn=0;i_wnwindow); cairo_select_font_face (cr, mascot->fontbal_pc.family, mascot->fontbal_pc.slant, mascot->fontbal_pc.weight); cairo_set_font_size (cr, mascot->fontbal_pc.pointsize*GetCurrentResolution()/72.0); cairo_text_extents (cr, wn_iwp[i_wn], &extents); tmp_w=(gint)(extents.x_advance); tmp_h=(gint)(extents.height); cairo_destroy(cr); #endif if(tmp_w>bal_width){ bal_width=tmp_w; } if(tmp_h>bal_height){ bal_height=tmp_h; ds=0; } } // w, h ¥Ð¥ë¡¼¥óÁ´ÂΤÎÂ礭¤µ w=bal_width+(mascot->baltext_x+mascot->wbalbd)*2; h=(bal_height+mascot->baltext_y)*wn_max +mascot->baltext_y+mascot->wbalbd*2; mascot->balwidth=w; mascot->balheight=h+h_arrow; // ¥Ð¥ë¡¼¥ó¤Î°ÌÃÖ·èÄê mascot->bal_pos=mascot->bal_defpos; if(mascot->bal_pos==BAL_POS_LEFT){ if((mascot->x-w+mascot->bal_lxoff[mascot->anime_ptn])<0) mascot->bal_pos=BAL_POS_RIGHT; } else if(mascot->bal_pos==BAL_POS_RIGHT){ if((mascot->x+mascot->width+w+mascot->bal_lxoff[mascot->anime_ptn]) >mascot->width_root) mascot->bal_pos=BAL_POS_LEFT; } if (pixmap_bal[work_page]) { g_object_unref(G_OBJECT(pixmap_bal[work_page])); } pixmap_bal[work_page] = gdk_pixmap_new(balloon_main->window, w, h+h_arrow, -1); if(shape_flag){ if (mask_bal[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mask_bal[work_page])); #else gdk_pixmap_unref(mask_bal[work_page]); #endif } mask_bal[work_page] = gdk_pixmap_new(balloon_main->window, w,h+h_arrow,1); // Depth =1 (Bitmap) cr_mask = gdk_cairo_create(mask_bal[work_page]); cairo_set_operator (cr_mask, CAIRO_OPERATOR_CLEAR); cairo_paint (cr_mask); cairo_set_operator (cr_mask, CAIRO_OPERATOR_SOURCE); cairo_set_source_rgb (cr_mask, 1, 1, 1); // opaque white } cr = gdk_cairo_create(pixmap_bal[work_page]); if(shape_flag){ cairo_set_source_rgb (cr, 1, 1, 1); // opaque white } else{ cairo_set_source_rgba (cr, 1, 1, 1, 0); } cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint (cr); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); #ifdef USE_WIN32 //BG should be opaque to BG only translucency for Win32 cairo_set_source_rgba (cr, (gdouble)mascot->colbalbg->red/0xFFFF, (gdouble)mascot->colbalbg->green/0xFFFF, (gdouble)mascot->colbalbg->blue/0xFFFF, 1); /* opaque BG */ cairo_rectangle(cr, 0, 0, w, h+h_arrow); cairo_fill(cr); #else //Even for X, to get clear shape and border, //Full area of the balloon window should be painted with BG color cairo_set_source_rgba (cr, (gdouble)mascot->colbalbg->red/0xFFFF, (gdouble)mascot->colbalbg->green/0xFFFF, (gdouble)mascot->colbalbg->blue/0xFFFF, (gdouble)mascot->alpbalbg/0xFFFF); /* transparent */ if(shape_flag){ cairo_rectangle(cr, 0, 0, w, h+h_arrow); cairo_fill(cr); } #endif // **** pixmap¤Ø¤ÎBUFFERING // border dx=(gdouble)mascot->baltext_x; dy=(gdouble)mascot->baltext_y; cairo_move_to(cr,0,dy); cairo_save (cr); cairo_translate (cr, dx, dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 180*(M_PI/180.), 270*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, w-dx, 0); cairo_save (cr); cairo_translate (cr, w-dx, dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 270*(M_PI/180.), 360*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, w, h-dy); cairo_save (cr); cairo_translate (cr, w-dx, h-dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 0*(M_PI/180.), 90*(M_PI/180.)); cairo_restore (cr); // *** Bottom if(mascot->bal_pos==BAL_POS_RIGHT){ cairo_line_to(cr, dx+6+mascot->wbalbd*3, h); cairo_line_to(cr, 0, h+h_arrow); cairo_line_to(cr, dx+mascot->wbalbd, h); } else{ cairo_line_to(cr, w-dx-mascot->wbalbd, h); cairo_line_to(cr, w, h+h_arrow); cairo_line_to(cr, w-dx-6-mascot->wbalbd*3, h); } cairo_line_to(cr, dx, h); cairo_save (cr); cairo_translate (cr, dx, h-dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 90*(M_PI/180.), 180*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, 0, dy); if(shape_flag){ cairo_append_path(cr_mask,cairo_copy_path(cr)); cairo_fill(cr_mask); // If having a mask, never clip // Anti-alias of cairo could cause discoloration } else{ cairo_clip_preserve (cr); } #ifndef USE_WIN32 // Paint BG with alpha if(!shape_flag) cairo_fill_preserve(cr); #endif if(mascot->wbalbd>0){ cairo_set_source_rgba (cr, (gdouble)mascot->colbalbd->red/0xFFFF, (gdouble)mascot->colbalbd->green/0xFFFF, (gdouble)mascot->colbalbd->blue/0xFFFF, (gdouble)mascot->alpbalbd/0xFFFF); /* transparent */ cairo_set_line_width(cr,(gdouble)mascot->wbalbd *2); cairo_stroke(cr); } // Balloon Text cairo_set_source_rgba (cr, (gdouble)mascot->colbal->red/0xFFFF, (gdouble)mascot->colbal->green/0xFFFF, (gdouble)mascot->colbal->blue/0xFFFF, (gdouble)mascot->alpbal/0xFFFF); /* transparent */ #ifndef __PANGOCAIRO_H__ cairo_select_font_face (cr, mascot->fontbal_pc.family, mascot->fontbal_pc.slant, mascot->fontbal_pc.weight); cairo_set_font_size (cr, mascot->fontbal_pc.pointsize*GetCurrentResolution()/72.0); #endif for(i_wn=0;i_wnbaltext_x+mascot->wbalbd, (mascot->baltext_y+bal_height)*(i_wn+1) +mascot->wbalbd-bal_height); pango_cairo_show_layout(cr,pango_text); #else cairo_text_extents (cr, wn_iwp[i_wn], &extents); cairo_move_to(cr, mascot->baltext_x+mascot->wbalbd, -extents.y_bearing+(mascot->baltext_y+bal_height)*(i_wn+1) +mascot->wbalbd-bal_height); cairo_show_text(cr,wn_iwp[i_wn]); #endif } cairo_destroy(cr); mascot->bal_page=work_page; // Balloon BG Draw #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_set_back_pixmap(balloon_fg->window, pixmap_bal[mascot->bal_page], FALSE); } #endif gdk_window_set_back_pixmap(balloon_main->window, pixmap_bal[mascot->bal_page], FALSE); #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_draw_drawable(balloon_fg->window, balloon_fg->style->fg_gc[GTK_WIDGET_STATE(balloon_fg)], pixmap_bal[mascot->bal_page], 0,0,0,0, w, h+h_arrow); } #endif gdk_draw_drawable(balloon_main->window, balloon_main->style->fg_gc[GTK_WIDGET_STATE(balloon_main)], pixmap_bal[mascot->bal_page], 0,0,0,0, w, h+h_arrow); // Resize of Balloon (calling dw_bal_expose) #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_resize (balloon_fg->window,w,h+h_arrow); } #endif gdk_window_resize (balloon_main->window,w,h+h_arrow); //ResizeMoveBalloon (mascot,mascot->x, mascot->y, w,h+h_arrow); if(shape_flag){ #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gdk_window_shape_combine_mask( balloon_fg->window, mask_bal[mascot->bal_page], 0,0); } #endif gdk_window_shape_combine_mask( balloon_main->window, mask_bal[mascot->bal_page], 0,0); cairo_destroy(cr_mask); } // End of Balloon Draw MoveBalloon(mascot,mascot->x,mascot->y); gdk_flush(); #ifdef USE_WIN32 if((mascot->flag_balfg)&&(mascot->alpha_bal!=100)){ gtk_widget_map(balloon_fg); } #endif gtk_widget_map(balloon_main); #ifdef __PANGOCAIRO_H__ if(pango_text) g_object_unref(G_OBJECT(pango_text)); #endif gdk_flush(); } #endif // Balloon¤Îpixmap buffer¤Ø¤ÎÉÁ²è void DoBalloon(typMascot *mascot) { static int i_wp, i_wn; static char *wn[64][64]; static char *wp[64], w_tmp[1024]; static gint wp_max, wn_max[64]; static gint wp_no, wn_no; static int balseqp; static int balseqp_biff; static int balseqp_sys; static int balseqp_sock; static int balseqpend[64]; int i_p; char w_tmp_m[1024]; char w_tmp_m3[1024]; char *w_tmp_m2; int mp; if(mascot->balseq==0){ // ¥Ð¥ë¡¼¥óɽ¼¨Ê¸»úÎó¤Î²ò¼á mascot->balseq=1; // %p:²þ¥Ú¡¼¥¸ %n:²þ¹Ô %a:Éղà wp_no=0; switch(mascot->bal_mode){ case BALLOON_MAIL: strcpy(w_tmp,mascot->mail.word); /* mail count %m */ while(NULL != (w_tmp_m2 = strstr(w_tmp, "%m"))){ mp = strlen(w_tmp) - strlen(w_tmp_m2); strncpy(w_tmp_m, w_tmp, mp); w_tmp_m[mp] = '\0'; w_tmp_m2 += strlen("%m"); sprintf(w_tmp_m3,"%s%d%s", w_tmp_m, mascot->mail.count, w_tmp_m2); strcpy(w_tmp, w_tmp_m3); } while(NULL != (w_tmp_m2 = strstr(w_tmp, "%f"))){ // Last From mp = strlen(w_tmp) - strlen(w_tmp_m2); strncpy(w_tmp_m, w_tmp, mp); w_tmp_m[mp] = '\0'; w_tmp_m2 += strlen("%f"); //Last Sbject if(mascot->mail.last_f!=NULL) sprintf(w_tmp_m3,"%s%s%s", w_tmp_m, mascot->mail.last_f, w_tmp_m2); else sprintf(w_tmp_m3,_("%s(From is not avairable)%s"), w_tmp_m, w_tmp_m2); strcpy(w_tmp, w_tmp_m3); } while(NULL != (w_tmp_m2 = strstr(w_tmp, "%s"))){ mp = strlen(w_tmp) - strlen(w_tmp_m2); strncpy(w_tmp_m, w_tmp, mp); w_tmp_m[mp] = '\0'; w_tmp_m2 += strlen("%s"); if(mascot->mail.last_s!=NULL) sprintf(w_tmp_m3,"%s%s%s", w_tmp_m, mascot->mail.last_s, w_tmp_m2); else sprintf(w_tmp_m3,_("%s(Subject is not avairable)%s"), w_tmp_m, w_tmp_m2); strcpy(w_tmp, w_tmp_m3); } balseqp_biff=BALLOON_EXPIRE; break; case BALLOON_POPERROR: strcpy(w_tmp,_("POP3 access error")); balseqp_biff=BALLOON_EXPIRE; break; case BALLOON_SOCKMSG: strncpy(w_tmp,mascot->sockmsg,1023); balseqp_sock=mascot->sockmsg_expire; break; case BALLOON_DUET: strncpy(w_tmp,mascot->sockmsg,1023); break; case BALLOON_SYS: strncpy(w_tmp,mascot->sysmsg,1023); balseqp_sys=SYS_BALLOON_EXPIRE; break; default: strcpy(w_tmp,mascot->click_word[mascot->anime_ptn]); } wp[wp_no]=(char *)strtok(w_tmp,"%"); for(;;){ wp_no++; if((wp[wp_no]=(char *)strtok(NULL,"%"))==NULL){ wp_max=wp_no; break; } if(wp[wp_no][0]=='p'){ balseqpend[wp_no-1]=10; // ¥Ç¥Õ¥©¥ë¥È10¥³¥Þ´Ö³Ö¤È¤¹¤ë wp[wp_no]++; } else if(wp[wp_no][0]=='a'){ balseqpend[wp_no-1]=10; // ¥Ç¥Õ¥©¥ë¥È10¥³¥Þ´Ö³Ö¤È¤¹¤ë wp[wp_no]++; wp[wp_no] = g_strconcat(wp[wp_no-1],"%n",wp[wp_no],NULL); } else if(wp[wp_no][0]=='c'){ balseqpend[wp_no-1]=1; // ¥Ç¥Õ¥©¥ë¥È1¥³¥Þ´Ö³Ö¤È¤¹¤ë wp[wp_no]++; wp[wp_no] = g_strconcat(wp[wp_no-1],wp[wp_no],NULL); } else if(isdigit(wp[wp_no][0])){ balseqpend[wp_no-1]=wp[wp_no][0]-0x30; i_p=0; for(;;){ i_p++; if(isdigit(wp[wp_no][i_p])){ balseqpend[wp_no-1]=balseqpend[wp_no-1]*10+wp[wp_no][i_p]-0x30; } else if(wp[wp_no][i_p]=='p'){ wp[wp_no]+=i_p; break; } else if(wp[wp_no][i_p]=='a'){ wp[wp_no]+=i_p+1; wp[wp_no] = g_strconcat(wp[wp_no-1],"%n",wp[wp_no],NULL); wp[wp_no]--; break; } else if(wp[wp_no][i_p]=='c'){ wp[wp_no]+=i_p+1; wp[wp_no] = g_strconcat(wp[wp_no-1],wp[wp_no],NULL); wp[wp_no]--; break; } else{ wp[wp_no-1] = g_strconcat(wp[wp_no-1],"%",wp[wp_no],NULL); wp_no--; wp[wp_no]--; break; } } wp[wp_no]++; } else{ wp[wp_no-1] = g_strconcat(wp[wp_no-1],"%",wp[wp_no],NULL); wp_no--; } } // ²þ¹Ô½èÍý %n¤ò½¦¤¦ for(i_wp=0;i_wpbal_mode, i_wp, // wp_max, balseqp, balseqp_biff); // ¥Ð¥ë¡¼¥ó¤ÎºÆÉÁ²è // balseqp = -1: Ä̾ï¤Î¥Ð¥ë¡¼¥ó¹ßÃå, -2: BiffÍѥХ롼¥ó¹ßÃå if(balseqp==0){ if(i_wpflag_bal_cairo)&&(mascot->flag_composite!=COMPOSITE_FALSE)) if(mascot->flag_bal_cairo) DrawBalloon2(mascot, wn[i_wp], wn_max[i_wp]); else #endif DrawBalloon(mascot, wn[i_wp], wn_max[i_wp]); if(i_wpbal_mode==BALLOON_SOCKMSG) { balseqp=-3; } else if(mascot->bal_mode==BALLOON_SYS) { balseqp=-4; } else if((mascot->bal_mode==BALLOON_MAIL) ||(mascot->bal_mode==BALLOON_POPERROR)){ balseqp=-2; } else{ balseqp=-1; } } } else{ //¥Þ¥¹¥³¥Ã¥È¤¬Æ°¤¤¤¿¤é¥Ð¥ë¡¼¥ó¤òºÆÉÁ²è¤¹¤ë if((old_x!=mascot->x)||(old_y!=mascot->y)){ #ifdef USE_CAIRO //if((mascot->flag_bal_cairo)&&(mascot->flag_composite!=COMPOSITE_FALSE)) if(mascot->flag_bal_cairo) DrawBalloon2(mascot, wn[i_wp], wn_max[i_wp]); else #endif DrawBalloon(mascot, wn[i_wp], wn_max[i_wp]); } // ¥«¥¦¥ó¥¿¤ò¸º¤é¤¹ if(balseqp>0){ balseqp--; } else if(balseqp==-2){ if(balseqp_biff==0){ // BiffÍѥХ롼¥ó¤Î¥¯¥í¡¼¥º #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; } else{ balseqp_biff--; } } else if(balseqp==-3){ if(balseqp_sock==0){ // SocketÍѥХ롼¥ó¤Î¥¯¥í¡¼¥º #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; } else{ balseqp_sock--; } } else if(balseqp==-4){ if(balseqp_sys==0){ // SysÍѥХ롼¥ó¤Î¥¯¥í¡¼¥º #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; } else{ balseqp_sys--; } } } old_x=mascot->x; old_y=mascot->y; } void make_balloon(typMascot *mascot){ balloon_main = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(balloon_main),FALSE); #endif gtk_widget_set_app_paintable(balloon_main, TRUE); gtk_window_set_wmclass(GTK_WINDOW(balloon_main), "balloon", "MaCoPiX"); gtk_widget_set_events(GTK_WIDGET (balloon_main), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(balloon_main); gdk_window_set_decorations(balloon_main->window, 0); #ifdef USE_GTK2 gtk_window_set_resizable(GTK_WINDOW(balloon_main),TRUE); #endif #ifndef USE_WIN32 /* gdk_window_set_override_redirect is not implemented (for warning) */ gdk_window_set_override_redirect(balloon_main->window,TRUE); #endif my_signal_connect(balloon_main, "configure_event", dw_configure_bal, (gpointer)mascot); my_signal_connect(balloon_main, "expose_event", dw_expose_bal, (gpointer)mascot); #ifdef USE_GTK2 gtk_window_resize (GTK_WINDOW(balloon_main),1,1); #endif //gtk_widget_show(balloon_main); } #ifdef USE_WIN32 void make_balloon_fg(typMascot *mascot){ balloon_fg = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(balloon_fg),FALSE); #endif gtk_widget_set_app_paintable(balloon_fg, TRUE); gtk_window_set_wmclass(GTK_WINDOW(balloon_fg), "balloon", "MaCoPiX"); gtk_widget_set_events(GTK_WIDGET (balloon_fg), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(balloon_fg); gdk_window_set_decorations(balloon_fg->window, 0); gtk_window_set_resizable(GTK_WINDOW(balloon_main),TRUE); my_signal_connect(balloon_fg, "configure_event", dw_configure_bal, (gpointer)mascot); my_signal_connect(balloon_fg, "expose_event", dw_expose_bal, (gpointer)mascot); gtk_window_resize (GTK_WINDOW(balloon_fg),1,1); //gtk_widget_show(balloon_fg); } #endif void balloon_arg_init(){ old_x=0; old_y=0; } void DoSysBalloon(typMascot *mascot, gchar *buf) { mascot->balseq=0; mascot->bal_mode=BALLOON_SYS; if (mascot->sysmsg != NULL) g_free(mascot->sysmsg); mascot->sysmsg = g_strdup(buf); DoBalloon(mascot); flag_balloon=TRUE; } macopix-1.7.4/src/Makefile.in0000664000076400007640000004673511030076474012773 00000000000000# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = macopix$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/macopix_res.rc.in $(srcdir)/version.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = version.h macopix_res.rc am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_macopix_OBJECTS = main.$(OBJEXT) callbacks.$(OBJEXT) \ pixmap.$(OBJEXT) gui.$(OBJEXT) balloon.$(OBJEXT) \ clock.$(OBJEXT) configfile.$(OBJEXT) utils.$(OBJEXT) \ mail.$(OBJEXT) pop.$(OBJEXT) md5c.$(OBJEXT) md5ify.$(OBJEXT) \ nokkari.$(OBJEXT) bmp.$(OBJEXT) bmpwrite.$(OBJEXT) \ sockmsg.$(OBJEXT) codeconv.$(OBJEXT) unmime.$(OBJEXT) \ base64.$(OBJEXT) quoted-printable.$(OBJEXT) unlha.$(OBJEXT) \ untar.$(OBJEXT) trayicon.$(OBJEXT) alpha.$(OBJEXT) \ ssl.$(OBJEXT) sslmanager.$(OBJEXT) dnd.$(OBJEXT) macopix_OBJECTS = $(am_macopix_OBJECTS) macopix_LDADD = $(LDADD) am__DEPENDENCIES_1 = @HAVE_WINDRES_TRUE@am__DEPENDENCIES_2 = macopix.res macopix_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(macopix_SOURCES) DIST_SOURCES = $(macopix_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_REVISION = @BUILD_REVISION@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDK_PIXBUF_CFLAGS = @GDK_PIXBUF_CFLAGS@ GDK_PIXBUF_CONFIG = @GDK_PIXBUF_CONFIG@ GDK_PIXBUF_LIBS = @GDK_PIXBUF_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GNUTLS_CFLAGS = @GNUTLS_CFLAGS@ GNUTLS_LIBS = @GNUTLS_LIBS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MICRO_VERSION = @MICRO_VERSION@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PNGLIB_LIBS = @PNGLIB_LIBS@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAR32_LIBS = @TAR32_LIBS@ UNLHA32_LIBS = @UNLHA32_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_ICONV_LIBS = @WIN32_ICONV_LIBS@ WINDRES = @WINDRES@ WINMM_LIBS = @WINMM_LIBS@ WINSOCK_LIBS = @WINSOCK_LIBS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ 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@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ commondir = @commondir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ manualdir = @manualdir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ prefixdir = @prefixdir@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ macopix_SOURCES = \ main.c callbacks.c pixmap.c gui.c balloon.c clock.c configfile.c\ utils.c\ mail.c pop.c md5c.c md5ify.c nokkari.c bmp.c bmpwrite.c sockmsg.c\ codeconv.c unmime.c base64.c quoted-printable.c unlha.c untar.c\ trayicon.c alpha.c ssl.c sslmanager.c dnd.c\ intl.h main.h configfile.h libpop.h md5.h nokkari.h\ bmp.h sockmsg.h codeconv.h unmime.h base64.h quoted-printable.h\ macopix_icon.h tar32api.h ssl.h @HAVE_WINDRES_FALSE@MACOPIX_RES = @HAVE_WINDRES_TRUE@MACOPIX_RES = macopix.res EXTRA_DIST = \ macopix_res.rc.in\ macopix.ico\ def_biff.xpm\ def_biff_r.xpm\ tar32.dll\ libtar32.a INCLUDES = @GTK_CFLAGS@ @GDK_PIXBUF_CFLAGS@ $(GNUTLS_CFLAGS)\ $(DISABLE_DEPRECATED) LDADD = @GTK_LIBS@ @GDK_PIXBUF_LIBS@ $(PNGLIB_LIBS) $(WINMM_LIBS)\ $(MACOPIX_RES) $(WINSOCK_LIBS) $(UNLHA32_LIBS) $(TAR32_LIBS) $(GNUTLS_LIBS) $(WIN32_ICONV_LIBS) CLEANFILES = *~ DISTCLEANFILES = .deps/*.P AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\" -DCOMMON_DIR=\""$(commondir)"\"\ -DPREFIX_DIR=\""$(prefixdir)"\" all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh version.h: $(top_builddir)/config.status $(srcdir)/version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ macopix_res.rc: $(top_builddir)/config.status $(srcdir)/macopix_res.rc.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done macopix$(EXEEXT): $(macopix_OBJECTS) $(macopix_DEPENDENCIES) @rm -f macopix$(EXEEXT) $(LINK) $(macopix_OBJECTS) $(macopix_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/balloon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bmpwrite.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clock.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/codeconv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gui.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mail.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5c.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5ify.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nokkari.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quoted-printable.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sockmsg.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssl.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sslmanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trayicon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unlha.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unmime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/untar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-binPROGRAMS install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS @HAVE_WINDRES_TRUE@macopix.res: macopix_res.rc @HAVE_WINDRES_TRUE@ $(WINDRES) $< -O coff -o $@ # 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: macopix-1.7.4/src/ssl.c0000644000076400007640000002714610625664370011673 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // ssl.c // Management of SSL (OpenSSL) for POP3 access // originated from Libsylph 2.4.0 (see blow) // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * LibSylph -- E-Mail client library * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifdef USE_SSL #include "main.h" #include #include "ssl.h" #ifdef USE_WIN32 #define usleep(x) g_usleep(x) #endif static SSL_CTX *ssl_ctx_SSLv23 = NULL; static SSL_CTX *ssl_ctx_TLSv1 = NULL; static GSList *trust_list = NULL; static GSList *reject_list = NULL; extern void pop_debug_print(const gchar *format, ...); #ifdef USE_WIN32 extern gchar *get_win_home(); #endif extern gchar *get_rc_dir(); gboolean is_dir_exist(const gchar *dir); static gchar *find_certs_file(const gchar *certs_dir) { gchar *certs_file; #define LOOK_FOR(crt) \ { \ certs_file = g_strconcat(certs_dir, G_DIR_SEPARATOR_S, crt, NULL); \ pop_debug_print("looking for %s\n", certs_file); \ if (access(certs_file,F_OK)==0) \ return certs_file; \ if(certs_file) g_free(certs_file); \ } if (certs_dir) { LOOK_FOR("ca-certificates.crt"); LOOK_FOR("ca-bundle.crt"); LOOK_FOR("ca-root.crt"); LOOK_FOR("certs.crt"); } #undef LOOK_FOR return NULL; } void ssl_init(void) { gchar *certs_file = NULL, *certs_dir; SSL_library_init(); SSL_load_error_strings(); certs_dir = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "certs", NULL); if (!is_dir_exist(certs_dir)) { pop_debug_print("ssl_init(): %s doesn't exist, or not a directory.\n", certs_dir); if(certs_dir) g_free(certs_dir); #ifdef USE_WIN32 certs_dir = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S "etc" G_DIR_SEPARATOR_S "ssl" G_DIR_SEPARATOR_S "certs", NULL); #else certs_dir = g_strdup("/etc/ssl/certs"); #endif if (!is_dir_exist(certs_dir)) { pop_debug_print("ssl_init(): %s doesn't exist, or not a directory.\n", certs_dir); if(certs_dir) g_free(certs_dir); certs_dir = NULL; } } if (certs_dir) pop_debug_print("ssl_init(): certs dir %s found.\n", certs_dir); certs_file = find_certs_file(get_rc_dir()); if (certs_dir && !certs_file) certs_file = find_certs_file(certs_dir); if (!certs_file) { #ifdef USE_WIN32 certs_dir = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S "etc" G_DIR_SEPARATOR_S "ssl", NULL); certs_file = find_certs_file(certs_dir); if(certs_dir) g_free(certs_dir); certs_dir = NULL; if (!certs_file) { certs_dir = g_strconcat(get_win_home(), G_DIR_SEPARATOR_S "etc", NULL); certs_file = find_certs_file(certs_dir); if(certs_dir) g_free(certs_dir); certs_dir = NULL; } #else certs_file = find_certs_file("/etc/ssl"); if (!certs_file) certs_file = find_certs_file("/etc"); #endif } if (certs_file) pop_debug_print("ssl_init(): certs file %s found.\n", certs_file); ssl_ctx_SSLv23 = SSL_CTX_new(SSLv23_client_method()); if (ssl_ctx_SSLv23 == NULL) { pop_debug_print("SSLv23 not available\n"); } else { pop_debug_print("SSLv23 available\n"); if ((certs_file || certs_dir) #ifdef USE_OPENSSL && !SSL_CTX_load_verify_locations(ssl_ctx_SSLv23, certs_file, certs_dir) #endif ) g_warning("SSLv23 SSL_CTX_load_verify_locations failed.\n"); } ssl_ctx_TLSv1 = SSL_CTX_new(TLSv1_client_method()); if (ssl_ctx_TLSv1 == NULL) { pop_debug_print("TLSv1 not available\n"); } else { pop_debug_print("TLSv1 available\n"); if ((certs_file || certs_dir) #ifdef USE_OPENSSL && !SSL_CTX_load_verify_locations(ssl_ctx_TLSv1, certs_file, certs_dir) #endif ) g_warning("TLSv1 SSL_CTX_load_verify_locations failed.\n"); } if(certs_dir) g_free(certs_dir); } void ssl_done(void) { GSList *cur; pop_debug_print("SSL done : in\n"); for (cur = trust_list; cur != NULL; cur = cur->next) X509_free((X509 *)cur->data); g_slist_free(trust_list); trust_list = NULL; for (cur = reject_list; cur != NULL; cur = cur->next) X509_free((X509 *)cur->data); g_slist_free(reject_list); reject_list = NULL; if (ssl_ctx_SSLv23) { SSL_CTX_free(ssl_ctx_SSLv23); ssl_ctx_SSLv23 = NULL; } if (ssl_ctx_TLSv1) { SSL_CTX_free(ssl_ctx_TLSv1); ssl_ctx_TLSv1 = NULL; } pop_debug_print("SSL done : out\n"); } SSL *ssl_init_socket(gint fd, char *hostname, gint ssl_cert_res, gchar **subject, gchar **issue, glong *verify) { return ssl_init_socket_with_method(fd, hostname, ssl_cert_res, subject, issue, verify, SSL_METHOD_SSLv23); } static gint x509_cmp_func(gconstpointer a, gconstpointer b) { const X509 *xa = a; const X509 *xb = b; return X509_cmp(xa, xb); } #ifdef USE_GNUTLS X509* X509_dup(const X509* cert) { X509* ret; ret = (X509*)malloc(sizeof(X509)); ret->size = cert->size; ret->data = (unsigned char *)malloc(sizeof(unsigned char)*ret->size); memcpy(ret->data,cert->data,ret->size); return ret; } int X509_cmp(const X509* cert1,const X509* cert2) { if (cert1->size != cert2->size) { return (cert1->size!=cert2->size); } return memcmp(cert1->data,cert2->data,cert1->size); } #endif //USE_GNUTLS SSL *ssl_init_socket_with_method(gint fd, char *hostname, gint ssl_cert_res, gchar **subject, gchar **issue, glong *verify, SSLMethod method) { X509 *server_cert; gint err, ret; SSL *ssl; switch (method) { case SSL_METHOD_SSLv23: if (!ssl_ctx_SSLv23) { g_warning("SSL method not available\n"); return(NULL); } ssl = SSL_new(ssl_ctx_SSLv23); break; case SSL_METHOD_TLSv1: if (!ssl_ctx_TLSv1) { g_warning("SSL method not available\n"); return(NULL); } ssl = SSL_new(ssl_ctx_TLSv1); break; default: g_warning("Unknown SSL method *PROGRAM BUG*\n"); return(NULL); break; } if (ssl == NULL) { g_warning("Error creating ssl context\n"); return(NULL); } SSL_set_fd(ssl, fd); while ((ret = SSL_connect(ssl)) != 1) { err = SSL_get_error(ssl, ret); if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) { usleep(100000); g_warning("SSL_connect(): try again\n"); continue; } g_warning("SSL_connect() failed with error %d, ret = %d (%s)\n", err, ret, ERR_error_string(ERR_get_error(), NULL)); ssl_done_socket(ssl); return(NULL); } /* Get the cipher */ pop_debug_print("SSL connection using %s\n", SSL_get_cipher(ssl)); /* Get server's certificate (note: beware of dynamic allocation) */ if ((server_cert = SSL_get_peer_certificate(ssl)) != NULL) { gchar *str; glong verify_result; gchar *str_issuer, *str_subject; str_issuer=NULL; str_subject=NULL; pop_debug_print("Server certificate:\n"); if ((str = g_strdup(X509_NAME_oneline(X509_get_subject_name(server_cert), 0, 0))) != NULL) { pop_debug_print(" Subject: %s\n", str); if(ssl_cert_res==SSL_CERT_NONE) str_subject=g_strdup(str); if(str) g_free(str); } if ((str = g_strdup(X509_NAME_oneline(X509_get_issuer_name(server_cert), 0, 0))) != NULL) { pop_debug_print(" Issuer: %s\n", str); if(ssl_cert_res==SSL_CERT_NONE) str_issuer=g_strdup(str); if(str) g_free(str); } #ifdef USE_GNUTLS verify_result = 0 /*SSL_get_verify_result(ssl)*/; if (verify_result == 0 /*X509_V_OK*/) { #else //OPEN_SSL verify_result = SSL_get_verify_result(ssl); if (verify_result == X509_V_OK) { #endif pop_debug_print("SSL verify OK\n"); X509_free(server_cert); return(ssl); } else if (g_slist_find_custom(trust_list, server_cert, x509_cmp_func)) { pop_debug_print("SSL certificate of %s previously accepted\n", hostname); X509_free(server_cert); return(ssl); } else if (g_slist_find_custom(reject_list, server_cert, x509_cmp_func)) { pop_debug_print("SSL certificate of %s previously rejected\n", hostname); X509_free(server_cert); ssl_done_socket(ssl); return(NULL); } pop_debug_print("%s: SSL certificate verify failed (%ld: %s)\n", hostname, verify_result, #ifdef USE_GNUTLS /*X509_verify_cert_error_string(verify_result)*/"FIXME"); #else X509_verify_cert_error_string(verify_result)); #endif { gint res; //res = ssl_manager_verify_cert(fd, hostname, // server_cert, verify_result); // It is difficult to call GUI // from forked background job (UNIX ver) // So, basical temp accept should be applied. switch(ssl_cert_res){ case SSL_CERT_NONE: #ifdef USE_GNUTLS if(verify_result == /*X509_V_OK*/0){ #else if(verify_result == X509_V_OK){ #endif res=0; } else{ if(*subject) g_free(*subject); *subject = g_strdup(str_subject); if(str_subject) g_free(str_subject); if(*issue) g_free(*issue); *issue = g_strdup(str_issuer); if(str_issuer) g_free(str_issuer); *verify=verify_result; X509_free(server_cert); ssl_done_socket(ssl); return(NULL); } break; case SSL_CERT_DENY: res=-1; break; case SSL_CERT_ACCEPT: res=0; break; } /* 0: accept 1: temporarily accept -1: reject */ if (res < 0) { pop_debug_print("SSL certificate of %s rejected\n", hostname); #if 0 reject_list = g_slist_prepend (reject_list, X509_dup(server_cert)); #endif X509_free(server_cert); ssl_done_socket(ssl); return(NULL); } else if (res > 0) { pop_debug_print("Temporarily accept SSL certificate of %s\n", hostname); trust_list = g_slist_prepend (trust_list, X509_dup(server_cert)); } else { pop_debug_print("Permanently accept SSL certificate of %s\n", hostname); /* TODO: save server cert */ trust_list = g_slist_prepend (trust_list, X509_dup(server_cert)); } } X509_free(server_cert); } else { g_warning("%s: couldn't get SSL certificate\n", hostname); ssl_done_socket(ssl); return(NULL); } return(ssl); } void ssl_done_socket(SSL *ssl) { if (ssl) { SSL_free(ssl); } } gboolean is_dir_exist(const gchar *dir) { if (dir == NULL) return FALSE; #ifdef USE_GTK2 return g_file_test(dir, G_FILE_TEST_IS_DIR); #else if(access(dir,F_OK)) return(TRUE); else return(FALSE); #endif } #endif /* USE_SSL */ macopix-1.7.4/src/dnd.c0000644000076400007640000001562110624737006011626 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // alpha.c // Using Alpha Blending Windows only in MS Windows // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_WIN32 #include #include #endif extern typMascot *Mascot; extern GtkWidget *PopupMenu; // MAIN extern void ReadMenu(); // GUI extern GtkWidget* make_popup_menu(); extern gchar* to_locale(); // LHA #ifdef USE_LHA32 extern gchar* unlha_menu(); #endif // TAR #if defined(USE_GTAR) || defined(USE_TAR32) extern gchar* untar_menu(); #endif // UTILS extern GtkWidget* gtkut_button_new_from_stock(); #ifdef USE_WIN32 extern gchar* get_win_home(); #endif extern gchar* my_dirname(); extern gboolean my_main_iteration(); void signal_drag_data_received(); void signal_drag_data_received_smenu(); gboolean create_dnd_confirm_window(); static void cc_true(); void signal_drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time) { gchar *file, *file0, **files; gint i; gboolean flag_install, installing; installing=FALSE; files = g_strsplit ((const gchar *)selection_data->data, "\r\n", 0); for (i = 0; files[i] && *files[i] != '\0'; i++) { //g_print ("%s", files[i]); #ifdef USE_GTK2 file0 = g_filename_from_uri (files[i], NULL, NULL); file = to_locale(file0); #else file0 = g_strdup(files[i]+strlen("file:")); file = to_locale(file0); if(access(file,F_OK)!=0){ if(file) g_free(file); if(file0) g_free(file0); file0 = g_strdup(files[i]+strlen("file://")); file = to_locale(file0); if(access(file,F_OK)!=0){ if(file) g_free(file); if(file0) g_free(file0); file0 = g_strdup(files[i]+strlen("file://localhost")); file = to_locale(file0); } } #endif if (file){ if(access(file,F_OK)==0){ if(strcmp(file+strlen(file)-strlen(LZH_EXTENSION)+1, LZH_EXTENSION+1)==0){ #ifdef USE_LHA32 if(create_dnd_confirm_window(file0)){ Mascot->menu_file=unlha_menu(file); Mascot->installed_menu_dir=my_dirname(Mascot->menu_file); installing=TRUE; } #endif } else if(strcmp(file+strlen(file)-strlen(TAR_EXTENSION)+1, TAR_EXTENSION+1)==0){ #if defined(USE_GTAR) || defined(USE_TAR32) if(create_dnd_confirm_window(file0)){ Mascot->menu_file=untar_menu(Mascot,file); Mascot->installed_menu_dir=my_dirname(Mascot->menu_file); installing=TRUE; } #endif } } if(installing){ flag_install=Mascot->flag_install; Mascot->flag_install=TRUE; Mascot->flag_common=FALSE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; gtk_widget_destroy(PopupMenu); ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); Mascot->flag_menu=FALSE; Mascot->flag_install=flag_install; Mascot->flag_common=FALSE; Mascot->flag_ow=FALSE; Mascot->flag_ow_ini=FALSE; } //g_print (" -> %s", file); if(file) g_free(file); if(file0) g_free(file0); } //g_print ("\n"); } g_strfreev (files); } void signal_drag_data_received_smenu (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time) { signal_drag_data_received(widget, context, x, y, selection_data, info, time); gtk_main_quit(); } gboolean create_dnd_confirm_window (gchar *file) { GtkWidget *main; GtkWidget *button; GtkWidget *label; GtkWidget *vbox; GtkWidget *hbox; gchar *message; gchar *userdir; gboolean result; //if (verify_result == X509_V_OK) // return SSL_CERT_ACCEPT; while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; result=FALSE; #ifdef USE_WIN32 userdir = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else userdir = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif message = g_strdup_printf (_("Do you want to install the mascot menu archive,\n" " \"%s\"\n" "to your system [\"%s\"]? \n" "(Files are automatically overwritten.)"), file,userdir); g_free(userdir); #ifdef USE_GTK2 main = gtk_window_new(GTK_WINDOW_TOPLEVEL); #else main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_position(GTK_WINDOW(main), GTK_WIN_POS_CENTER); gtk_window_set_modal(GTK_WINDOW(main), TRUE); gtk_window_set_title(GTK_WINDOW(main), _("MaCoPiX : Installing Mascot Menu File")); gtk_widget_realize(main); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add (GTK_CONTAINER (main), vbox); label = gtk_label_new(message); g_free(message); gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox),hbox,FALSE,FALSE,0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked",cc_true, &result); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked",gtk_main_quit, NULL); gtk_widget_show_all(main); #ifdef USE_WIN32 { HWND hWnd; SetWindowPos(GDK_WINDOW_HWND(main->window),HWND_TOPMOST,0,0,0,0, SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE); } #else gdk_window_raise(main->window); #endif gdk_flush(); gtk_main(); gtk_widget_destroy(main); gdk_flush(); Mascot->flag_menu=FALSE; return (result); } static void cc_true (GtkWidget * widget, gboolean * gdata) { *gdata=TRUE; gtk_main_quit(); } macopix-1.7.4/src/callbacks.c0000644000076400007640000014507611016175670013007 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // callback.c // Callback functions // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #include #if HAVE_SYS_WAIT_H #include #endif #ifdef USE_WIN32 #include #include #include #else // for WIN32 #include #include #endif #include "sockmsg.h" #undef DEBUG // *** GLOBAL ARGUMENT *** extern GtkWidget *win_main,*balloon_main,*clock_main; #ifdef USE_WIN32 extern GtkWidget *win_sdw, *clock_fg, *balloon_fg; #endif #ifdef USE_BIFF extern GtkWidget *biff_pix; #endif #ifndef __GTK_TOOLTIP_H__ extern GtkTooltips *tooltip; #endif extern GtkWidget *PopupMenu; extern GdkDrawable *pixmap_main[2], *pixmap_clk[2], *pixmap_bal[2]; #ifdef USE_WIN32 extern GdkDrawable *pixmap_sdw[2]; #endif extern gchar *FullPathSoundFile(); extern gint DrawMascot0(); extern gint DrawMascot(); extern gint DrawMascotWithDigit(); extern void DoBalloon(); extern void AllRandomChangeMascotMenu(); #ifdef USE_BIFF extern void create_biff_dialog(); extern void display_biff_balloon(); #endif extern void copy_file(); extern gboolean my_main_iteration(); void DrawPanelClock0(); // *** GLOBAL ARGUMENT in this code *** int pre_hour, pre_min, pre_sec; gint start_x, start_y, clk_start_x, clk_start_y; #ifdef USE_BIFF gint biff_start_x, biff_start_y; #endif gboolean flag_balloon; gboolean flag_anime, flag_clock; int old_day; int errflag; int xpop,ypop; gint FWinX,FWinWidth; gint window_x, window_y, clk_window_x, clk_window_y; #ifdef USE_BIFF gint biff_window_x, biff_window_y; #endif #ifdef USE_WIN32 HWND hWnd_active; HWND hWndTaskBar; #endif // Prototype of functions in this file int weight_random(); int weight_click(); #ifndef USE_WIN32 int ehandler (); #endif void MoveMascot(); #ifdef USE_BIFF void MoveBiffPix(); #endif void MoveBalloon(); void ResizeMoveBalloon(); int MoveToFocus(); GdkGC *MPCreatePen(); void drag_begin(); void drag_end(); void clk_drag_begin(); void clk_drag_end(); #ifdef USE_BIFF void biff_drag_begin(); void biff_drag_end(); #endif gint dw_configure_main(); gint dw_init_main(); #ifdef USE_WIN32 gint dw_configure_sdw(); gint dw_init_sdw(); #endif #ifdef USE_BIFF gint dw_configure_biff_pix(); #endif gint dw_configure_clk(); gint dw_configure_bal(); gint dw_expose_main(); #ifdef USE_BIFF gint dw_expose_biff_pix(); #endif gint dw_expose_clk(); gint dw_expose_bal(); void window_motion(); void clk_window_motion(); #ifdef USE_BIFF void biff_window_motion(); #endif void focus_in(); void focus_out(); gboolean time_update(); void clock_update(); gchar * ini_week(); void ext_play(); void sound_play(); #ifndef USE_WIN32 void ChildTerm(); #endif // USE_WIN32 void raise_all(); void callbacks_arg_init(); #ifdef USE_WIN32 MyXY GetTaskbarHeight( ); gboolean IsWin32Root(); #endif #ifndef USE_WIN32 gchar* Get_Window_Name(); gint Get_Window_Bar_Size(); MyXY GetAutoHomePos(); #endif // ½Å¤ß¤Ä¤­¥é¥ó¥À¥à¥Ñ¥¿¡¼¥ó¤ÎÁªÂò int weight_random(typMascot *mascot) { int ptn=0,sum=0,random_end; random_end=RANDOM(mascot->random_total)+1; do{ ptn++; sum+=mascot->random_weight[ptn]; }while(sumclick_total)+1; do{ ptn++; sum+=mascot->click_weight[ptn]; }while(sumx=x; mascot->y=y; #ifdef USE_WIN32 if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ if(mascot->move==MOVE_FOCUS){ gdk_window_move(win_sdw->window, x+mascot->sdw_x, y+mascot->height-mascot->yoff*((gfloat)(mascot->magnify)/100)); } else{ gdk_window_move(win_sdw->window, x+mascot->sdw_x, y+mascot->sdw_y); } } #endif gdk_window_move(win_main->window, x, y); MoveBalloon(mascot, x, y); if(mascot->clkmode==CLOCK_PANEL){ #ifdef USE_WIN32 gdk_window_move(clock_fg->window, x+mascot->clk_x*((gfloat)(mascot->magnify)/100), y+mascot->clk_y*((gfloat)(mascot->magnify)/100)); #endif gdk_window_move(clock_main->window, x+mascot->clk_x*((gfloat)(mascot->magnify)/100), y+mascot->clk_y*((gfloat)(mascot->magnify)/100)); } #ifdef USE_BIFF MoveBiffPix(mascot, x, y); #endif raise_all(); gdk_window_move(win_main->window, x, y); #ifdef USE_WIN32 gtk_menu_popdown(GTK_MENU(PopupMenu)); #endif gdk_flush(); } #ifdef USE_BIFF // Biff²èÁü¤Î°Üư void MoveBiffPix(typMascot *mascot, gint x, gint y) { if(mascot->mail.flag){ if(mascot->mail.pix_pos==MAIL_PIX_LEFT){ gdk_window_move(biff_pix->window, x+mascot->mail.pix_x-biff_pix->allocation.width/2, //x+mascot->mail.pix_x-mascot->mail.pix_width/2, y+mascot->mail.pix_y); } else{ gdk_window_move(biff_pix->window, x+mascot->mail.pix_x +mascot->width-biff_pix->allocation.width/2, // +mascot->width-mascot->mail.pix_width/2, y+mascot->mail.pix_y); } } gdk_flush(); } #endif // ¥Ð¥ë¡¼¥ó¤Î°Üư void MoveBalloon(typMascot *mascot, gint x, gint y) { gint bal_y; bal_y=y+mascot->bal_lyoff[mascot->anime_ptn]; if(bal_y<0) bal_y=0; if(mascot->bal_pos==BAL_POS_LEFT){ #ifdef USE_WIN32 gdk_window_move(balloon_fg->window, x-mascot->balwidth+mascot->bal_lxoff[mascot->anime_ptn], bal_y); #endif gdk_window_move(balloon_main->window, x-mascot->balwidth+mascot->bal_lxoff[mascot->anime_ptn], bal_y); } else{ #ifdef USE_WIN32 gdk_window_move(balloon_fg->window, x+mascot->width+mascot->bal_rxoff[mascot->anime_ptn], bal_y); #endif gdk_window_move(balloon_main->window, x+mascot->width+mascot->bal_rxoff[mascot->anime_ptn], bal_y); } gdk_flush(); } void ResizeMoveBalloon(typMascot *mascot, gint x, gint y, gint w, gint h) { gint bal_y; bal_y=y+mascot->bal_lyoff[mascot->anime_ptn]; if(bal_y<0) bal_y=0; if(mascot->bal_pos==BAL_POS_LEFT){ #ifdef USE_WIN32 gdk_window_move_resize(balloon_fg->window, x-w+mascot->bal_lxoff[mascot->anime_ptn], bal_y, w,h); #endif gdk_window_move_resize(balloon_main->window, x-w+mascot->bal_lxoff[mascot->anime_ptn], bal_y, w,h); } else{ #ifdef USE_WIN32 gdk_window_move_resize(balloon_fg->window, x+mascot->width+mascot->bal_rxoff[mascot->anime_ptn], bal_y, w,h); #endif gdk_window_move_resize(balloon_main->window, x+mascot->width+mascot->bal_rxoff[mascot->anime_ptn], bal_y, w,h); } gdk_flush(); } // ¥Õ¥©¡¼¥«¥¹WindowÄɽ¾·¿°Üư int MoveToFocus(typMascot *mascot, gboolean force_fl) { #ifdef USE_WIN32 /* for Windows ¤È¤ê¤¢¤¨¤º¥³¥ó¥Ñ¥¤¥ë¤òÄ̤¹ */ HWND hWnd; RECT nRect; DWORD dwStyle; int sx,sy,x_root=0,y_root=0; int realXPos; unsigned int width; #else Window rootwin,parent,*children,child,wf; int sx,sy,x,y,i,x_root=0,y_root=0; unsigned int border,depth; unsigned int nchildren; unsigned int width,height,width_root,height_root; int rx,ry,wx,wy,mask_return,realXPos; gint win_bar_size; #endif gboolean eflag=FALSE; gint flag_homepos=HOMEPOS_NEVER; gint oxpop,oypop; #ifdef USE_WIN32 /* for Windows */ hWnd = GetForegroundWindow(); if(hWnd!=hWnd_active){ // for multiple running char wtitle[256]; GetWindowText(hWnd, wtitle, 256); if(strcmp(wtitle,"MaCoPiX")==0){ hWnd=hWnd_active; } else if(mascot->no_capbar){ // for windows w/o title bar DWORD wStyle; wStyle = GetWindowLong (hWnd,GWL_STYLE); if(!(wStyle&WS_CAPTION)){ flag_homepos=mascot->homepos_nb; hWnd=hWnd_active; } } } #else win_bar_size=0; XGetInputFocus(GDK_WINDOW_XDISPLAY(win_main->window), &wf, &i); XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), GDK_ROOT_WINDOW(), &rootwin, &x_root, &y_root, &width_root, &height_root, &border, &depth); parent = 0; #endif sx = 0; sy = 0; #ifdef USE_WIN32 /* for Windows */ if(hWnd!=GDK_WINDOW_HWND(win_main->window) && hWnd!=GDK_WINDOW_HWND(balloon_fg->window) && hWnd!=GDK_WINDOW_HWND(balloon_main->window) && hWnd!=GDK_WINDOW_HWND(clock_fg->window) && hWnd!=GDK_WINDOW_HWND(clock_main->window) #ifdef USE_BIFF && hWnd!=GDK_WINDOW_HWND(biff_pix->window) #endif && (int)hWnd!=0){ if(mascot->task_force){ // force to sit on the task bar if((hWnd!=hWnd_active)&&(hWnd!=hWndTaskBar)){ raise_all(); } hWnd_active=hWnd; hWnd=hWndTaskBar; } else{ hWnd_active=hWnd; } GetWindowRect(hWnd, &nRect); sx = nRect.left; sy = nRect.top; width = nRect.right-nRect.left; #else // UNIX X if(wf!=GDK_WINDOW_XWINDOW(win_main->window) && wf!=GDK_WINDOW_XWINDOW(balloon_main->window) && wf!=GDK_WINDOW_XWINDOW(clock_main->window) #ifdef USE_BIFF && wf!=GDK_WINDOW_XWINDOW(biff_pix->window) #endif && (int)wf!=0){ if(mascot->focus_autobar!=AUTOBAR_MANUAL){ // ¥¿¥¤¥È¥ë¥Ð¡¼¤Î¥µ¥¤¥º¤ò¼«Æ°¸¡½Ð if(errflag ==0){ XQueryTree(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&parent,&children,&nchildren); if(errflag ==0) XFree(children); } else{ errflag = 0; return(0); } if(wf == rootwin){ if(errflag ==0){ XQueryTree(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&parent,&children,&nchildren); if(errflag ==0) XFree(children); } else{ errflag = 0; return(0); } if(errflag ==0){ XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&x,&y,&width,&height, &border,&depth); } else{ errflag = 0; return(0); } } else{ //Window wf_org; for(;;){ if(parent == rootwin){ /* if(mascot->focus_autobar==AUTOBAR_ORDINAL){ if(win_bar_size==0){ win_bar_size =Get_Window_Bar_Size(GDK_WINDOW_XDISPLAY(win_main->window), wf_org); if((win_bar_size==0)&&(mascot->no_capbar)){ // for windows w/o title bar flag_homepos=mascot->homepos_nb; if(flag_homepos==HOMEPOS_NEVER) return; } } //win_bar_size=0; } else { // for Compiz if(win_bar_size==0){ win_bar_size =Get_Window_Bar_Size(GDK_WINDOW_XDISPLAY(win_main->window), wf); if((win_bar_size==0)&&(mascot->no_capbar)){ // for windows w/o title bar flag_homepos=mascot->homepos_nb; if(flag_homepos==HOMEPOS_NEVER) return; } } } break; */ if(win_bar_size==0){ win_bar_size =Get_Window_Bar_Size(GDK_WINDOW_XDISPLAY(win_main->window), wf); } if((win_bar_size==0)&&(mascot->no_capbar)){ // for windows w/o title bar flag_homepos=mascot->homepos_nb; if(flag_homepos==HOMEPOS_NEVER) return; } break; } XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), parent,&rootwin,&x_root,&y_root, &width,&height,&border,&depth); if((width==width_root)&&(height==height_root)){ eflag=TRUE; break; // For Enlightenment } if(win_bar_size==0){ win_bar_size =Get_Window_Bar_Size(GDK_WINDOW_XDISPLAY(win_main->window), wf); } if(mascot->bar_offset!=0){ if(errflag ==0){ XQueryPointer(GDK_WINDOW_XDISPLAY(win_main->window), wf, &rootwin, &child, &rx, &ry, &wx, &wy, &mask_return); } else{ errflag = 0; return(0); } } //wf_org = wf; wf = parent; if(errflag ==0){ XQueryTree(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&parent,&children,&nchildren); if(errflag ==0) XFree(children); } else{ errflag = 0; return(0); } } if(errflag ==0){ XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&x,&y,&width,&height, &border,&depth); // ¥Õ¥©¡¼¥«¥¹¤¹¤ëWindow¤¬Â¸ºß¤·¤Ê¤¤ Offset"%"¤Î¤È¤­ // if (mascot->flag_xp){ // if((x<0)&&(y<0)&&(depth==0)&&(border==0)){ // x-=mascot->width; y-=mascot->height; //} //} } else{ errflag = 0; return(0); } } sx=x; #ifdef USE_WIN32 if(mascot->bar_offset==0){ sy=y; } else if((x==rx-wx)&&(y==ry-wy)){ sy=y; // ¥ª¥Õ¥»¥Ã¥È·×¬ : ¥Þ¥¹¥³¥Ã¥È¤Ï¥Ð¡¼Ìµ¤·Win¤Ë¾è¤Ã¤Æ¤¤¤ë } else{ // ¥ª¥Õ¥»¥Ã¥È·×¬ : ¥Þ¥¹¥³¥Ã¥È¤Ï¥Ð¡¼Í­¤êWin¤Ë¾è¤Ã¤Æ¤¤¤ë sy=y-mascot->bar_offset; } #else if(mascot->focus_autobar==AUTOBAR_COMPIZ){ y=y-win_bar_size; } if((mascot->bar_offset!=0)&&(win_bar_size!=0)){ sy=y-mascot->bar_offset; } else{ sy=y; } #endif } else{ // ¥¿¥¤¥È¥ë¥Ð¡¼¤Î¥µ¥¤¥º¤ò¥Þ¥Ë¥å¥¢¥ëÀßÄê¥â¡¼¥É if(errflag ==0){ XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&x,&y,&width,&height,&border,&depth); } else{ errflag = 0; return(0); } if(width==1){ // ľÀÜ Focused Window¤Î¥µ¥¤¥º¤¬¤È¤ì¤Æ¤¤¤Ê¤¤ XQueryTree(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&parent,&children,&nchildren); wf=parent; if(errflag ==0){ XGetGeometry(GDK_WINDOW_XDISPLAY(win_main->window), wf,&rootwin,&x,&y,&width,&height,&border,&depth); } else{ errflag = 0; return(0); } } if(errflag ==0){ XQueryPointer(GDK_WINDOW_XDISPLAY(win_main->window), wf, &rootwin, &child, &rx, &ry, &wx, &wy, &mask_return); } else{ errflag = 0; return(0); } sx=rx-wx; sy=ry-wy-mascot->bar_size; } #endif // sx, sy ¤Ï¸½ºß¤Î¥Õ¥©¡¼¥«¥¹Window¤Îº¸¾å(´Þ¥¿¥¤¥È¥ë¥Ð¡¼)¤ÎÀäÂаÌÃÖ errflag = 0; oxpop=xpop; oypop=ypop; if(mascot->ff_side==FF_SIDE_RIGHT){ if(mascot->flag_xp){ realXPos=((int)width-mascot->width)*(1-(mascot->offsetp*0.01)) -mascot->xoff; } else{ realXPos=(int)width-mascot->width-mascot->xoff-mascot->offset; } } else{ if(mascot->flag_xp){ realXPos=((int)width-mascot->width)*(mascot->offsetp*0.01) -mascot->xoff; } else{ realXPos=-mascot->xoff+mascot->offset; } } if(eflag){ xpop=sx+realXPos+x_root; #ifdef USE_CAIRO ypop=sy+mascot->yoff*((gfloat)(mascot->magnify)/100) +y_root-mascot->height+mascot->sdw_y_int; #else ypop=sy+mascot->yoff*((gfloat)(mascot->magnify)/100) +y_root-mascot->height; #endif } else{ xpop=sx+realXPos; #ifdef USE_CAIRO ypop=sy+mascot->yoff*((gfloat)(mascot->magnify)/100) -mascot->height+mascot->sdw_y_int; #else ypop=sy+mascot->yoff*((gfloat)(mascot->magnify)/100) -mascot->height; #endif } if(mascot->focus_autobar!=AUTOBAR_MANUAL){ #ifdef USE_WIN32 // ¥Õ¥©¡¼¥«¥¹¤¬¤Ê¤¤ if(IsWin32Root(hWnd, mascot->width_root, mascot->height_root)){ #else if((sx==ROOTOFF_X-width) &&(sy==ROOTOFF_Y-mascot->bar_offset)){ // ¥Õ¥©¡¼¥«¥¹¤¬¤Ê¤¤ #endif flag_homepos=mascot->homepos_nf; } else if(ypophomepos_out; } } else{ #ifdef USE_WIN32 // ¥Õ¥©¡¼¥«¥¹¤¬¤Ê¤¤ if(IsWin32Root(hWnd, mascot->width_root, mascot->height_root)){ #else if((sx==ROOTOFF_X) &&(sy==ROOTOFF_Y)){ // ¥Õ¥©¡¼¥«¥¹¤¬¤Ê¤¤ #endif flag_homepos=mascot->homepos_nf; } else if(ypophomepos_out; } } switch(flag_homepos){ case HOMEPOS_BAR: if(mascot->ff_side==FF_SIDE_RIGHT){ if(mascot->flag_xp){ xpop=((mascot->width_root-mascot->home_x)-mascot->width) *(1-(mascot->offsetp*0.01)) -mascot->xoff; } else{ xpop=(mascot->width_root-mascot->home_x) -mascot->width-mascot->xoff-mascot->offset; } } else{ if(mascot->flag_xp){ xpop=((mascot->width_root-mascot->home_x)-mascot->width) *(mascot->offsetp*0.01) -mascot->xoff; } else{ xpop=mascot->home_x-mascot->xoff+mascot->offset; } } #ifdef USE_WIN32 { MyXY xy; xy=GetTaskbarHeight(); if(xy.flag){ mascot->home_x=mascot->width_root-xy.x; mascot->home_y=xy.y; } if((!xy.flag)||(mascot->home_y==0)){ if(mascot->home_auto_vanish){ ypop=mascot->height_root; break; } } } #else if(mascot->home_auto){ // Auto Taskbar Scaling for X MyXY xy; xy=GetAutoHomePos(); if(xy.flag){ mascot->home_x=mascot->width_root-xy.x; mascot->home_y=mascot->height_root-xy.y; } if((!xy.flag)||(mascot->home_y==0)){ if(mascot->home_auto_vanish){ ypop=mascot->height_root; break; } } } #endif #ifdef USE_CAIRO ypop=(mascot->height_root-mascot->home_y) +mascot->yoff*((gfloat)(mascot->magnify)/100)-mascot->height +mascot->sdw_y_int; #else ypop=(mascot->height_root-mascot->home_y) +mascot->yoff*((gfloat)(mascot->magnify)/100)-mascot->height; #endif break; case HOMEPOS_VANISH: ypop=mascot->height_root; break; default: break; } if((oxpop!=xpop)||(oypop!=ypop)){ MoveMascot(mascot, xpop, ypop); if(flag_homepos){ FWinWidth=mascot->width_root-mascot->home_x; FWinX=0; } else{ FWinWidth=width; FWinX=sx; } } else if(force_fl){ MoveMascot(mascot, xpop, ypop); if(flag_homepos){ FWinWidth=mascot->width_root-mascot->home_x; FWinX=0; } else{ FWinWidth=width; FWinX=sx; } } } while (my_main_iteration(FALSE)); gdk_flush(); return(1); } // ¿§¤Ä¤­GC¤ÎºîÀ®¤È¥«¥é¡¼allocation GdkGC *MPCreatePen(GdkDrawable *pixmap, GdkColor *color) { GdkGC *gc; gdk_colormap_alloc_color(gdk_colormap_get_system(),color,FALSE,TRUE); if(pixmap){ gc=gdk_gc_new(pixmap); gdk_gc_set_foreground(gc, color); return(gc); } else{ return(NULL); } } // ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤ª¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void drag_begin(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; mascot=(typMascot *)gdata; if(mascot->flag_menu) return; if (event->button == 1) { mascot->drag = TRUE; gdk_window_set_cursor(win_main->window,mascot->cursor.push); window_x = event->x; window_y = event->y; gdk_window_get_pointer(NULL, &start_x, &start_y, &modmask); gdk_pointer_grab(win_main->window, FALSE, GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK, NULL, NULL, GDK_CURRENT_TIME); gdk_flush(); } else if(event->button == 3){ gtk_menu_popup (GTK_MENU(PopupMenu), NULL, NULL, NULL, NULL, event->button, event->time); } } // ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤Ï¤Ê¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void drag_end(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; gint end_x,end_y; int i_frm; mascot=(typMascot *)gdata; raise_all(); if (mascot->drag){ mascot->drag = FALSE; gdk_window_get_pointer(NULL, &end_x, &end_y, &modmask); if((end_x==start_x)&&(end_y==start_y)&& (mascot->click_total!=0)&&(flag_balloon==FALSE)){ /////// ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á /////// for(i_frm=0;i_frmframe_num[mascot->anime_ptn];i_frm++){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×¤Î¥­¥ã¥ó¥»¥ë mascot->frame_loop[mascot->anime_ptn][i_frm].seq=0; } mascot->anime_ptn=weight_click(mascot); mascot->anime_frm=-1; mascot->anime_seq=-1; mascot->anime_seqend= RANDOM(mascot->frame_max[mascot->anime_ptn][mascot->anime_frm] -mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]+1) +mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]; sound_play(mascot,mascot->click_sound[mascot->anime_ptn]); if(mascot->click_word[mascot->anime_ptn]) { mascot->balseq=0; mascot->bal_mode=BALLOON_NORMAL; DoBalloon(mascot); flag_balloon=TRUE; } #ifdef USE_SOCKMSG // Duet¥¢¥Ë¥á if(mascot->duet_use_click){ mascot->duet_seq=mascot->duet_delay[mascot->anime_ptn]; mascot->duet_mode=DUET_CLICK; } #endif // flag_anime=TRUE; } } gdk_window_set_cursor(win_main->window,mascot->cursor.normal); gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_flush(); } // »þ·× ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤ª¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void clk_drag_begin(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; mascot=(typMascot *)gdata; if(mascot->flag_menu) return; if (event->button == 1) { mascot->clk_drag = TRUE; clk_window_x = event->x; clk_window_y = event->y; gdk_window_get_pointer(NULL, &clk_start_x, &clk_start_y, &modmask); gdk_pointer_grab(widget->window, FALSE, GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK, NULL, NULL, GDK_CURRENT_TIME); gdk_flush(); } } // »þ·× ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤Ï¤Ê¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void clk_drag_end(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; gint end_x,end_y; int i_frm; mascot=(typMascot *)gdata; raise_all(); if (mascot->clk_drag){ mascot->clk_drag = FALSE; gdk_window_get_pointer(NULL, &end_x, &end_y, &modmask); } gdk_window_set_cursor(widget->window,mascot->cursor.clk); gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_flush(); } #ifdef USE_BIFF // Biff ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤ª¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void biff_drag_begin(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; mascot=(typMascot *)gdata; if(mascot->flag_menu) return; if (event->button == 1) { mascot->mail.drag = TRUE; biff_window_x = event->x; biff_window_y = event->y; gdk_window_get_pointer(NULL, &biff_start_x, &biff_start_y, &modmask); gdk_pointer_grab(biff_pix->window, FALSE, GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK, NULL, NULL, GDK_CURRENT_TIME); gdk_flush(); } } // Biff ¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò¤Ï¤Ê¤·¤¿¤È¤­¤Î¥¤¥Ù¥ó¥ÈCallback void biff_drag_end(GtkWidget * widget, GdkEventButton * event, gpointer gdata) { typMascot *mascot; GdkModifierType modmask; gint end_x,end_y; int i_frm; mascot=(typMascot *)gdata; raise_all(); if (mascot->mail.drag){ mascot->mail.drag = FALSE; gdk_window_get_pointer(NULL, &end_x, &end_y, &modmask); if((end_x==biff_start_x)&&(end_y==biff_start_y)){ // From Subject Win µ¯Æ° create_biff_dialog(mascot); } else{ //mascot->mail.pix_x=end_x-mascot->x; //mascot->mail.pix_y=end_y-mascot->y; } } gdk_window_set_cursor(biff_pix->window,mascot->cursor.biff); gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_flush(); } #endif // Mascot Window¤ÎÀ¸À®¡¦ÊÑ·Á¤Ë¤È¤â¤Ê¤¦Callback gint dw_configure_main(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; #ifdef DEBUG printf("Configure: \n"); #endif //DrawMascot0(mascot); gdk_window_set_back_pixmap(win_main->window, pixmap_main[mascot->pixmap_page], FALSE); #ifdef DEBUG printf("End of Configure: \n"); #endif return FALSE; } #ifdef USE_WIN32 gint dw_configure_sdw(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if((mascot->sdw_flag)&&(mascot->sdw_height>0)){ gdk_window_set_back_pixmap(win_sdw->window, pixmap_sdw[mascot->pixmap_page], FALSE); } return FALSE; } #endif gint dw_init_main(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; gint i_work; gint i_frm=0; #ifdef DEBUG printf("Init Main: \n"); #endif if(mascot->anime_frm==-1) i_frm=0; else i_frm=mascot->anime_frm; if(mascot->gc_main[0]==NULL){ mascot->gc_main[0] = MPCreatePen(pixmap_main[0], mascot->colclk); mascot->gc_mainsd[0] = MPCreatePen(pixmap_main[0], mascot->colclksd); if(mascot->gc_main[1]==NULL){ mascot->gc_main[1] = MPCreatePen(pixmap_main[1], mascot->colclk); mascot->gc_mainsd[1] = MPCreatePen(pixmap_main[1], mascot->colclksd); } #ifndef USE_WIN32 if(errflag==-1){ XSetErrorHandler (ehandler); } #endif #ifdef DEBUG printf("Init GC Main\n"); #endif } for(i_work=0;i_work<2;i_work++){ #ifdef USE_GTK2 gdk_draw_drawable(pixmap_main[i_work], mascot->gc_main[i_work], mascot->sprites[mascot->frame_pix[0][0]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #else gdk_draw_pixmap(pixmap_main[i_work], mascot->gc_main[i_work], mascot->sprites[mascot->frame_pix[0][0]].pixmap, 0, 0, 0, 0, mascot->width, mascot->height); #endif } //DrawMascot0(mascot); gdk_window_set_back_pixmap(win_main->window, pixmap_main[mascot->pixmap_page], FALSE); #ifdef USE_WIN32 // Get Handle of Task-Bar hWndTaskBar = FindWindow("Shell_TrayWnd", NULL); #endif #ifdef DEBUG printf("End of Init Main: \n"); #endif return FALSE; } #ifdef USE_BIFF // Biff Pixmap Window¤ÎÀ¸À®¡¦ÊÑ·Á¤Ë¤È¤â¤Ê¤¦Callback gint dw_configure_biff_pix(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; #ifdef USE_GTK2 gdk_draw_drawable(widget->window, #else gdk_draw_pixmap(widget->window, #endif widget->style->fg_gc[GTK_WIDGET_STATE(widget)], mascot->mail.pixmap, 0,0,0,0, widget->allocation.width, widget->allocation.height); return FALSE; } #endif // Clock Panel¤ÎÀ¸À®¡¦ÊÑ·Á¤Ë¤È¤â¤Ê¤¦Callback gint dw_configure_clk(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if (!pixmap_clk[0]) { pixmap_clk[0] = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); } if (!pixmap_clk[1]) { pixmap_clk[1] = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); } if(mascot->gc_clk[0]==NULL){ mascot->gc_clk[0] = MPCreatePen(pixmap_clk[0], mascot->colclk); mascot->gc_clksd[0] = MPCreatePen(pixmap_clk[0], mascot->colclksd); mascot->gc_clkbg[0] = MPCreatePen(pixmap_clk[0], mascot->colclkbg); mascot->gc_clkbd[0] = MPCreatePen(pixmap_clk[0], mascot->colclkbd); } if(mascot->gc_clk[1]==NULL){ mascot->gc_clk[1] = MPCreatePen(pixmap_clk[1], mascot->colclk); mascot->gc_clksd[1] = MPCreatePen(pixmap_clk[1], mascot->colclksd); mascot->gc_clkbg[1] = MPCreatePen(pixmap_clk[1], mascot->colclkbg); mascot->gc_clkbd[1] = MPCreatePen(pixmap_clk[1], mascot->colclkbd); } if(mascot->clkmode==CLOCK_PANEL){ // **** MascotÉô¤Î window¤Ø¤ÎÉÁ²è // **** window¤Ø¤ÎÉÁ²è #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_set_back_pixmap(clock_fg->window, pixmap_clk[mascot->clk_page], FALSE); } #endif gdk_window_set_back_pixmap(clock_main->window, pixmap_clk[mascot->clk_page], FALSE); } return FALSE; } // Balloon Window¤ÎÀ¸À®¡¦ÊÑ·Á¤Ë¤È¤â¤Ê¤¦Callback gint dw_configure_bal(GtkWidget *widget, GdkEventConfigure *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if(pixmap_bal[0]==NULL){ pixmap_bal[0] = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); } if(pixmap_bal[1]==NULL){ pixmap_bal[1] = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); } if(mascot->gc_bal[0]==NULL){ mascot->gc_bal[0] = MPCreatePen(pixmap_bal[0], mascot->colbal); mascot->gc_balbg[0] = MPCreatePen(pixmap_bal[0], mascot->colbalbg); mascot->gc_balbd[0] = MPCreatePen(pixmap_bal[0], mascot->colbalbd); } if(mascot->gc_bal[1]==NULL){ mascot->gc_bal[1] = MPCreatePen(pixmap_bal[1], mascot->colbal); mascot->gc_balbg[1] = MPCreatePen(pixmap_bal[1], mascot->colbalbg); mascot->gc_balbd[1] = MPCreatePen(pixmap_bal[1], mascot->colbalbd); } return FALSE; } // Main (Mascot) ¤¬½Å¤Ê¤ê¤ò¼õ¤±¤¿¾ì¹ç¤Î½èÍý // Work¤·¤Æ¤¤¤Ê¤¤BufferÃæ¤ÎPixmap¤ÎÉÁ²è¤ò¹Ô¤¦¡£ gint dw_expose_main(GtkWidget *widget, GdkEventExpose *event, gpointer gdata) { typMascot *mascot; #ifdef DEBUG printf("Expose in\n"); #endif mascot=(typMascot *)gdata; // **** MascotÉô¤Î window¤Ø¤ÎÉÁ²è #ifdef USE_GTK2 gdk_draw_drawable(widget->window, #else gdk_draw_pixmap(widget->window, #endif widget->style->fg_gc[GTK_WIDGET_STATE (widget)], pixmap_main[mascot->pixmap_page], event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); #ifdef DEBUG printf("Expose: using %d\n",mascot->pixmap_page); #endif return FALSE; } #ifdef USE_WIN32 gint dw_expose_sdw(GtkWidget *widget, GdkEventExpose *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; // **** MascotÉô¤Î window¤Ø¤ÎÉÁ²è if((mascot->sdw_flag)&&(mascot->sdw_height>0)) gdk_draw_drawable(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], pixmap_sdw[mascot->pixmap_page], event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } #endif #ifdef USE_BIFF // Biff Pixmap ¤¬½Å¤Ê¤ê¤ò¼õ¤±¤¿¾ì¹ç¤Î½èÍý gint dw_expose_biff_pix(GtkWidget *widget, GdkEventExpose *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if(mascot->mail.flag){ #ifdef USE_GTK2 gdk_draw_drawable(widget->window, #else gdk_draw_pixmap(widget->window, #endif widget->style->fg_gc[GTK_WIDGET_STATE(widget)], mascot->mail.pixmap, 0,0,0,0, widget->allocation.width, widget->allocation.height); } return FALSE; } #endif // Clock Panel ¤¬½Å¤Ê¤ê¤ò¼õ¤±¤¿¾ì¹ç¤Î½èÍý // Work¤·¤Æ¤¤¤Ê¤¤BufferÃæ¤ÎPixmap¤ÎÉÁ²è¤ò¹Ô¤¦¡£ gint dw_expose_clk(GtkWidget *widget, GdkEventExpose *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if(mascot->clkmode==CLOCK_PANEL){ // **** MascotÉô¤Î window¤Ø¤ÎÉÁ²è // **** window¤Ø¤ÎÉÁ²è #ifdef USE_GTK2 gdk_draw_drawable(widget->window, #else gdk_draw_pixmap(widget->window, #endif clock_main->style->fg_gc[GTK_WIDGET_STATE (widget)], pixmap_clk[mascot->clk_page], 0,0,0,0, widget->allocation.width, widget->allocation.height); } return FALSE; } // Balloon ¤¬½Å¤Ê¤ê¤ò¼õ¤±¤¿¾ì¹ç¤Î½èÍý // Work¤·¤Æ¤¤¤Ê¤¤BufferÃæ¤ÎPixmap¤ÎÉÁ²è¤ò¹Ô¤¦¡£ // 1.6.1¤Ç¼Â¼Áºï½ü drawballoon¤Î¤Ê¤«¤Ç back_pixmap¤ò»ØÄꤹ¤ë¤Î¤ß¤È¤·¤¿¡£ gint dw_expose_bal(GtkWidget *widget, GdkEventExpose *event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; // **** Balloon¤Î window¤Ø¤ÎÉÁ²è #ifdef USE_GTK2 gdk_draw_drawable #else gdk_draw_pixmap #endif (widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], pixmap_bal[mascot->bal_page], 0,0,0,0, widget->allocation.width, widget->allocation.height); return FALSE; } // ¥É¥é¥Ã¥°¤Ë¤è¤ë°Üư void window_motion(GtkWidget * widget, GdkEventMotion * event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if (mascot->drag){ gint mx, my, newx, newy; GdkModifierType modmask; gdk_window_get_pointer(NULL, &mx, &my, &modmask); if(mascot->move==MOVE_FIX){ gdk_window_set_cursor(win_main->window,mascot->cursor.drag_f); newx = mx - window_x; newy = my - window_y; MoveMascot(mascot, newx, newy); } else if(mascot->move==MOVE_FOCUS){ gdk_window_set_cursor(win_main->window,mascot->cursor.drag_h); newx = mx - window_x; if(mascot->ff_side==FF_SIDE_RIGHT){ if(mascot->flag_xp){ mascot->offsetp=100- (int)((double)(newx-FWinX)/(double)(FWinWidth-mascot->width)*100); if(mascot->offsetp>100) mascot->offsetp=100; if(mascot->offsetp<0) mascot->offsetp=0; } else{ mascot->offset=-newx+FWinWidth+FWinX-mascot->width-mascot->xoff; } } else{ if(mascot->flag_xp){ mascot->offsetp=(int)((double)(newx-FWinX)/ (double)(FWinWidth-mascot->width)*100); if(mascot->offsetp>100) mascot->offsetp=100; if(mascot->offsetp<0) mascot->offsetp=0; } else{ mascot->offset=newx-FWinX-mascot->xoff; } } MoveToFocus(mascot,FALSE); } } } // »þ·× ¥É¥é¥Ã¥°¤Ë¤è¤ë°Üư void clk_window_motion(GtkWidget * widget, GdkEventMotion * event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if (mascot->clk_drag){ gint mx, my, newx, newy; GdkModifierType modmask; gdk_window_set_cursor(widget->window,mascot->cursor.drag_f); gdk_window_get_pointer(NULL, &mx, &my, &modmask); newx = mx - clk_window_x; newy = my - clk_window_y; mascot->clk_x = (newx - mascot->x)*100/mascot->magnify; mascot->clk_y = (newy - mascot->y)*100/mascot->magnify; MoveMascot(mascot, mascot->x, mascot->y); } } #ifdef USE_BIFF // Biff ¥É¥é¥Ã¥°¤Ë¤è¤ë°Üư void biff_window_motion(GtkWidget * widget, GdkEventMotion * event, gpointer gdata) { typMascot *mascot; mascot=(typMascot *)gdata; if (mascot->mail.drag){ gint mx, my, newx, newy; GdkModifierType modmask; gdk_window_set_cursor(biff_pix->window,mascot->cursor.drag_f); gdk_window_get_pointer(NULL, &mx, &my, &modmask); newx = mx - biff_window_x; newy = my - biff_window_y; if(mascot->mail.pix_pos==MAIL_PIX_LEFT){ mascot->mail.pix_x = newx - mascot->x + biff_pix->allocation.width/2; } else{ mascot->mail.pix_x = newx - mascot->x - mascot->width + biff_pix->allocation.width/2; } mascot->mail.pix_y = newy - mascot->y; MoveBiffPix(mascot, mascot->x, mascot->y); } } #endif void focus_in(GtkWidget * widget, GdkEventMotion * event) { gdk_flush(); } void focus_out(GtkWidget * widget, GdkEventMotion * event) { gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_flush(); } // ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ª¤è¤Ó»þ·×updateÍÑ´Ø¿ô // timeout¥·¥°¥Ê¥ë¤ÇÄê´üŪ¤Ë¸Æ¤Ó½Ð¤¹¡£ gboolean time_update(gpointer gdata) { typMascot *mascot; #ifdef DEBUG static int pre_pix; gint work_page; #endif SockMsgInitResult sockres; gchar *msg=NULL; flag_anime=FALSE; flag_clock=FALSE; mascot=(typMascot *)gdata; // ¥á¥Ë¥å¡¼¤¬½Ð¤Æ¤¤¤ë if(mascot->flag_menu) return(TRUE); // Window Sitter if(mascot->move==MOVE_FOCUS){ MoveToFocus(mascot, FALSE); } // ¸ÇÄê¥Þ¥¹¥³¥Ã¥È if(mascot->move==MOVE_FIX){ mascot->xfix=mascot->x; mascot->yfix=mascot->y; } #ifdef USE_BIFF // POP biff if(mascot->mail.pop_readed==TRUE){ display_biff_balloon(mascot); mascot->mail.pop_readed=FALSE; } #endif // ¤Õ¤­¤À¤·½èÍý if(flag_balloon==TRUE){ DoBalloon(mascot); } #ifdef USE_SOCKMSG // Duet¥¢¥Ë¥á if(mascot->duet_seq>0){ mascot->duet_seq--; } else if(mascot->duet_seq==0){ mascot->duet_seq--; if (mascot->duet_tgt[mascot->anime_ptn]){ if((0duet_ptn[mascot->anime_ptn])&& (mascot->duet_ptn[mascot->anime_ptn]duet_mode==DUET_CLICK) &&(mascot->duet_word[mascot->anime_ptn])){ msg = g_strdup_printf("%02d%02d%s", mascot->duet_mode, mascot->duet_ptn[mascot->anime_ptn], mascot->duet_word[mascot->anime_ptn]); } else{ msg = g_strdup_printf("%02d%02d",mascot->duet_mode, mascot->duet_ptn[mascot->anime_ptn]); } // Duet Anime Client µ¯Æ° sockres = duet_cl_init(mascot->duet_tgt[mascot->anime_ptn]); switch (sockres) { case SOCKMSG_ERROR: break; case SOCKMSG_OPENED: duet_send_msg(msg); duet_cl_done(mascot->duet_tgt[mascot->anime_ptn],FALSE); break; } g_free(msg); } } } #endif // USE_SOCKMSG // ¥¢¥Ë¥á mascot->anime_seq++; if((mascot->anime_seqend-mascot->anime_seq)<=0){ //¥Õ¥ì¡¼¥à¤Î½ªÎ» mascot->anime_seq=0; // ¥Ö¥í¥Ã¥¯¥ë¡¼¥× if((mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].next>=0)){ mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seq++; if(mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seq==1){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×³«»Ï mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seqend= RANDOM(mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].max -mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].min+1) +mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].min; if(mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seqend==1){ mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seq=0; mascot->anime_frm++; } else{ mascot->anime_frm= mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].next; } } else if(mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seqend- mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seq<=0){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×½ªÎ» mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].seq=0; mascot->anime_frm++; } else{ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×·Ñ³ mascot->anime_frm= mascot->frame_loop[mascot->anime_ptn][mascot->anime_frm].next; } } else{ mascot->anime_frm++; } if(mascot->anime_frm>=mascot->frame_num[mascot->anime_ptn]){ //¥Ñ¥¿¡¼¥ó¤Î½ªÎ» if(mascot->anime_ptn==0){ if(mascot->random_total==0){ // ¥é¥ó¥À¥à¥¢¥Ë¥á¤¬¤Ê¤¤¾ì¹ç ¥Ù¡¼¥¹¤ÎÀèÆ¬¤ËÌá¤ë mascot->anime_frm=0; } else{ // ¥Ù¡¼¥¹¤Î½ªÎ» -> ¥é¥ó¥À¥à¥Ñ¥¿¡¼¥ó¤Ø¤Î°Ü¹Ô mascot->anime_ptn=weight_random(mascot); mascot->anime_frm=0; if(mascot->duet_use_random){ if(mascot->duet_tgt[mascot->anime_ptn]){ // Duet¥¢¥Ë¥á mascot->duet_seq=mascot->duet_delay[mascot->anime_ptn]; mascot->duet_mode=DUET_RANDOM; } } } } else{ // ½é´ü¾õÂÖ¤ØÌá¤ë mascot->anime_ptn=0; mascot->anime_frm=0; if((flag_balloon)&& ((mascot->bal_mode==BALLOON_NORMAL) ||(mascot->bal_mode==BALLOON_DUET))){ // ¥Ð¥ë¡¼¥ó¤¬¤Ç¤Æ¤¤¤ë¾ì¹ç¤ÏÊĤ¸¤ë // ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á¤Î½ªÎ» #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; } } } else{ //¼¡¤Î¥Õ¥ì¡¼¥à¤Ø°Ü¹Ô } mascot->anime_seqend= RANDOM(mascot->frame_max[mascot->anime_ptn][mascot->anime_frm] -mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]+1) +mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]; flag_anime=TRUE; } // ¥Õ¥ì¡¼¥à¤¬ÊѤï¤Ã¤¿¤éshape¤òÊÑ·Á // if(pre_pix!=mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]){ // gtk_widget_shape_combine_mask( win_main, // mascot->sprites[mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]].mask, // 0, 0 ); //pre_pix=mascot->frame_pix[mascot->anime_ptn][mascot->anime_frm]; //} clock_update(mascot,FALSE); // ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Ë¤è¤ë¥Þ¥¹¥³¥Ã¥È¤ÎÉÁ²è // ¥Þ¥¹¥³¥Ã¥È¾å¤Î»þ·×¤ò½ñ¤­´¹¤¨¤¿¤È¤­¤Ï¤ä¤é¤Ê¤¤ if((flag_clock==FALSE)&&(flag_anime==TRUE)){ #ifdef DEBUG work_page=mascot->pixmap_page; work_page^=1; printf("Drawto %d\n",work_page); #endif if(mascot->clkmode==CLOCK_PIXMAP){ //»þ·×¤ÏÊѤï¤é¤Ê¤¤¤¬¥¢¥Ë¥á¤¬ÊѤï¤Ã¤¿ DrawMascotWithDigit(mascot); } else{ DrawMascot(mascot); } #ifdef DEBUG printf("Draw finish %d\n",work_page); #endif } if(mascot->raise_force) raise_all(); gdk_flush(); return(TRUE); } // »þ·×¤Î¥¢¥Ã¥×¥Ç¡¼¥È void clock_update(typMascot *mascot, gboolean force_flag){ time_t t; struct tm *tmpt; gchar* caldigit; t = time(NULL); tmpt = localtime(&t); if(tmpt->tm_mday!=old_day){ caldigit=g_strdup_printf(_("%d/%d/%d(%s)"), tmpt->tm_year+1900,tmpt->tm_mon+1, tmpt->tm_mday,ini_week(tmpt->tm_wday)); #ifdef __GTK_TOOLTIP_H__ gtk_widget_set_tooltip_text(clock_main,caldigit); #else gtk_tooltips_set_tip(tooltip,clock_main,caldigit,NULL); #endif #ifdef USE_WIN32 #ifdef __GTK_TOOLTIP_H__ gtk_widget_set_tooltip_text(clock_fg,caldigit); #else gtk_tooltips_set_tip(tooltip,clock_fg,caldigit,NULL); #endif #endif g_free(caldigit); old_day=tmpt->tm_mday; } // »þÊó½èÍý if(pre_hour!=-1){ if(pre_hour!=tmpt->tm_hour){ pre_hour=tmpt->tm_hour; if((mascot->signal.flag)&&(!mascot->drag)){ // ³°Éô¥³¥Þ¥ó¥É if(mascot->signal.com){ ext_play(mascot,mascot->signal.com); } // ¥Þ¥¹¥³¥Ã¥È¤Îưºî switch(mascot->signal.type){ case SIGACT_CLICK: if((mascot->click_total!=0)&&(flag_balloon==FALSE)){ gint i_frm; // ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á for(i_frm=0;i_frmframe_num[mascot->anime_ptn];i_frm++){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×¤Î¥­¥ã¥ó¥»¥ë mascot->frame_loop[mascot->anime_ptn][i_frm].seq=0; } mascot->anime_ptn=weight_click(mascot); mascot->anime_frm=-1; mascot->anime_seq=-1; mascot->anime_seqend= RANDOM(mascot->frame_max[mascot->anime_ptn][mascot->anime_frm] -mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]+1) +mascot->frame_min[mascot->anime_ptn][mascot->anime_frm]; sound_play(mascot,mascot->click_sound[mascot->anime_ptn]); if(mascot->click_word[mascot->anime_ptn]) { mascot->balseq=0; mascot->bal_mode=BALLOON_NORMAL; DoBalloon(mascot); flag_balloon=TRUE; } } gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_flush(); break; case SIGACT_CHANGE: if(mascot->menu_file){ AllRandomChangeMascotMenu(NULL); } break; } } } if(mascot->drag==FALSE){ gboolean draw_flag=FALSE; switch(mascot->clktype){ case CLOCK_TYPE_24S: if((tmpt->tm_sec!=pre_sec)||(force_flag)){ sprintf(mascot->digit,"%2d:%02d:%02d", tmpt->tm_hour,tmpt->tm_min,tmpt->tm_sec); draw_flag=TRUE; } break; case CLOCK_TYPE_12S: if((tmpt->tm_sec!=pre_sec)||(force_flag)){ if(tmpt->tm_hour>=12){ sprintf(mascot->digit,"%2d:%02d:%02d", tmpt->tm_hour==12?12:tmpt->tm_hour-12,tmpt->tm_min, tmpt->tm_sec); mascot->clk_pm=TRUE; } else{ sprintf(mascot->digit,"%2d:%02d:%02d", tmpt->tm_hour,tmpt->tm_min,tmpt->tm_sec); mascot->clk_pm=FALSE; } draw_flag=TRUE; } break; case CLOCK_TYPE_24M: if((tmpt->tm_min!=pre_min)||(force_flag)){ sprintf(mascot->digit,"%2d:%02d", tmpt->tm_hour,tmpt->tm_min); draw_flag=TRUE; } break; case CLOCK_TYPE_12M: if((tmpt->tm_min!=pre_min)||(force_flag)){ if(tmpt->tm_hour>=12){ sprintf(mascot->digit,"%2d:%02d", tmpt->tm_hour==12?12:tmpt->tm_hour-12,tmpt->tm_min); mascot->clk_pm=TRUE; } else{ sprintf(mascot->digit,"%2d:%02d", tmpt->tm_hour,tmpt->tm_min); mascot->clk_pm=FALSE; } draw_flag=TRUE; } } if(draw_flag){ // ºÆÉÁ²è switch(mascot->clkmode){ case CLOCK_PIXMAP: // Mascot¾å¤ËľÀÜʸ»ú¤ò½ñ¤¯¾ì¹ç¤Ï°ìÅÙ¥Þ¥¹¥³¥Ã¥È¤òpixmap¾å¤Ë // ÉÁ²è¤·¤Ê¤ª¤¹É¬Íפ¬¤¢¤ë(Á°¤Îʸ»ú¤ò¾Ã¤¹¤¿¤á) DrawMascotWithDigit(mascot); flag_clock=TRUE; break; case CLOCK_PANEL: // ¥Ñ¥Í¥ë¾å¤Î»þ·×¤Î¾ì¹ç¤Ï¥Ñ¥Í¥ë¤Î¤ß¤òÉÁ¤­Ä¾¤¹ // ²¼¤Î´Ø¿ôÆâÉô¤ÇWindow¥µ¥¤¥º¤ÎÊѹ¹¤Ë¤è¤êconfigure/expose_event¤¬ // ¸Æ¤Ó½Ð¤µ¤ì, ¤½¤³¤Çpixmap¤«¤éwindow¤Ø¤ÎÉÁ²è¤ò¹Ô¤Ã¤Æ¤¤¤ë if(force_flag){ DrawPanelClock0(mascot); } DrawPanelClock0(mascot); break; } pre_sec=tmpt->tm_sec; pre_min=tmpt->tm_min; } } } else{ // ½é²óµ¯Æ°»þ pre_hour=tmpt->tm_hour; } } gchar *ini_week(gint day_of_week){ gchar * weekk=NULL; switch(day_of_week){ case 0: weekk=g_strdup(_("Sun")); break; case 1: weekk=g_strdup(_("Mon")); break; case 2: weekk=g_strdup(_("Tue")); break; case 3: weekk=g_strdup(_("Wed")); break; case 4: weekk=g_strdup(_("Thu")); break; case 5: weekk=g_strdup(_("Fri")); break; case 6: weekk=g_strdup(_("Sat")); break; } return(weekk); } // Ǥ°Õ¥³¥Þ¥ó¥É¼Â¹Ô void ext_play(typMascot *mascot, char *exe_command) { #ifdef USE_WIN32 STARTUPINFO si; PROCESS_INFORMATION pi; if(exe_command){ ZeroMemory(&si, sizeof(si)); si.cb=sizeof(si); if(CreateProcess(NULL, (LPTSTR)exe_command, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi)){ CloseHandle(pi.hThread); CloseHandle(pi.hProcess); } } #else static pid_t pid; gchar *cmdline; if(exe_command){ waitpid(pid,0,WNOHANG); if(strcmp(exe_command,"\0")!=0){ cmdline=g_strdup(exe_command); if( (pid = fork()) == 0 ){ system(cmdline); _exit(-1); signal(SIGCHLD,ChildTerm); } g_free(cmdline); } } #endif // USE_WIN32 } // ²»À¼ºÆÀ¸ (1¤Ä¤À¤±) void sound_play(typMascot *mascot, char *wav_name) { #ifdef USE_WIN32 gchar *filename1; if( wav_name ){ if(!(filename1=FullPathSoundFile(mascot, wav_name, FALSE))) return; PlaySound(filename1,NULL, SND_ASYNC); } #else static pid_t pid; gchar cmdline[1024]; gchar *filename1; if( (mascot->sound_command) && (wav_name) ){ if(!(filename1=FullPathSoundFile(mascot, wav_name, FALSE))) return; sprintf(cmdline,mascot->sound_command,filename1); waitpid(pid,0,WNOHANG); if( (pid = fork()) == 0 ){ system(cmdline); _exit(-1); signal(SIGCHLD,ChildTerm); } } #endif // USE_WIN32 } #ifndef USE_WIN32 // »Ò¥×¥í¥»¥¹¤Î½èÍý void ChildTerm(int dummy) { int s; wait(&s); signal(SIGCHLD,ChildTerm); } #endif // USE_WIN32 // Raise all window void raise_all(void){ #ifdef USE_WIN32 HWND hWnd; SetWindowPos(GDK_WINDOW_HWND(win_main->window),HWND_TOPMOST,0,0,0,0, SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE); SetWindowLong(GDK_WINDOW_HWND(win_main->window), GWL_EXSTYLE, GetWindowLong(GDK_WINDOW_HWND(win_main->window), GWL_EXSTYLE)|WS_EX_NOACTIVATE); gdk_window_raise(win_sdw->window); gdk_window_raise(win_main->window); #else gdk_window_raise(win_main->window); #endif #ifdef USE_WIN32 gdk_window_raise(clock_fg->window); #endif gdk_window_raise(clock_main->window); #ifdef USE_WIN32 gdk_window_raise(balloon_fg->window); #endif gdk_window_raise(balloon_main->window); #ifdef USE_BIFF gdk_window_raise(biff_pix->window); #endif } void callbacks_arg_init(){ pre_hour=-1; pre_min=-1; pre_sec=-1; start_x=0; start_y=0; #ifdef USE_BIFF biff_start_x=0; biff_start_y=0; #endif clk_start_x=0; clk_start_y=0; flag_balloon=FALSE; flag_anime=FALSE; flag_clock=FALSE; old_day=0; errflag=-1; } #ifdef USE_WIN32 //********************************************************* // ¥¿¥¹¥¯¥Ð¡¼Îΰè¤Î¶ë·Á¤òÊÖ¤¹¡£ //********************************************************* MyXY GetTaskbarHeight( void ) { APPBARDATA abd; HWND hWndAutoHide; MyXY xy; xy.flag=TRUE; memset( &abd, 0, sizeof( abd ) ); abd.cbSize = sizeof( abd ); if( SHAppBarMessage(ABM_GETSTATE, &abd) & ABS_AUTOHIDE ){ SHAppBarMessage(ABM_GETAUTOHIDEBAR, &abd); } else{ SHAppBarMessage( ABM_GETTASKBARPOS, &abd ); } if(abd.uEdge==ABE_BOTTOM){ xy.y=(abd.rc.bottom - abd.rc.top); } else{ xy.y=0; } //SHAppBarMessage( ABM_GETTASKBARPOS, &abd ); if(abd.uEdge==ABE_BOTTOM){ xy.x = (abd.rc.right); } else{ xy.x =(GetSystemMetrics(SM_CXVIRTUALSCREEN)); } return(xy); }//GetTaskbarRect //********************************************************* // Win32 ¥ë¡¼¥È¤ÎȽÊÌ¥¦¥£¥ó¥É¥¦¤ÎÉý¤òÊÖ¤¹¡£ //********************************************************* gboolean IsWin32Root( HWND hWnd, gint root_width, gint root_height ) { RECT Rect; GetWindowRect( hWnd, &Rect ); // ¥¦¥£¥ó¥É¥¦¶ë·Á¤Î¼èÆÀ if((Rect.right - Rect.left)==root_width){ if((Rect.bottom - Rect.top)==root_height){ return(TRUE); } }; return(FALSE); }//GetWindowWidth #endif #ifndef USE_WIN32 //********************************************************* // X Window ¸½ºß¤Î¤Ã¤«¤Ã¤Æ¤¤¤ëWindow¤Î̾Á° //********************************************************* gchar* Get_Window_Name(dpy, top) Display *dpy; Window top; { Window *children, dummy; unsigned int nchildren; int i; Window w=0; char *window_name; if (XFetchName(dpy, top, &window_name)){ return(window_name); } if (!XQueryTree(dpy, top, &dummy, &dummy, &children, &nchildren)){ return(NULL); } for (i=0; i= 4) { //g_print ("format = %d, length = %d\n", format, length); // g_print ("x = %d, y = %d\n", // ((glong*) data)[0], ((glong*) data)[1]); // g_print ("width = %d, height = %d\n", // ((glong*) data)[2], ((glong*) data)[3]); xy.flag=TRUE; xy.x=((glong*) data)[0] + ((glong*) data)[2] ; xy.y=((glong*) data)[3] + ((glong*) data)[1] ; } else { xy.flag=FALSE; xy.x=0; xy.y=0 ; } } else{ xy.flag=FALSE; xy.x=0; xy.y=0 ; } return(xy); } #endif macopix-1.7.4/src/bmp.c0000644000076400007640000001022110622155266011626 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // bmp.c // Read and write bmp image files // originated from gimp-1.3 *** see below copyright *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* bmp.c */ /* Version 0.51 */ /* This is a File input and output filter for the */ /* Gimp. It loads and saves images in windows(TM) */ /* bitmap format. */ /* Some Parts that deal with the interaction with */ /* the Gimp are taken from the GIF plugin by */ /* Peter Mattis & Spencer Kimball and from the */ /* PCX plugin by Francisco Bustamante. */ /* */ /* Alexander.Schulz@stud.uni-karlsruhe.de */ /* Changes: 28.11.1997 Noninteractive operation */ /* 16.03.1998 Endian-independent!! */ /* 21.03.1998 Little Bug-fix */ /* 06.04.1998 Bugfix in Padding */ /* 11.04.1998 Arch. cleanup (-Wall) */ /* Parses gtkrc */ /* 14.04.1998 Another Bug in Padding */ /* 28.04.1998 RLE-Encoding rewritten */ /* 29.10.1998 Changes by Tor Lillqvist */ /* to support */ /* 16 and 32 bit images */ /* 28.11.1998 Bug in RLE-read-padding */ /* fixed. */ /* 19.12.1999 Resolution support added */ /* 06.05.2000 Overhaul for 16&24-bit */ /* plus better OS/2 code */ /* by njl195@zepler.org.uk */ /* * The GIMP -- an image manipulation program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ---------------------------------------------------------------------------- */ #include "main.h" #include #include "bmp.h" struct Bitmap_File_Head_Struct Bitmap_File_Head; struct Bitmap_Head_Struct Bitmap_Head; gint32 ToL (guchar *puffer) { return (puffer[0] | puffer[1]<<8 | puffer[2]<<16 | puffer[3]<<24); } gint16 ToS (guchar *puffer) { return (puffer[0] | puffer[1]<<8); } void FromL (gint32 wert, guchar *bopuffer) { bopuffer[0] = (wert & 0x000000ff)>>0x00; bopuffer[1] = (wert & 0x0000ff00)>>0x08; bopuffer[2] = (wert & 0x00ff0000)>>0x10; bopuffer[3] = (wert & 0xff000000)>>0x18; } void FromS (gint16 wert, guchar *bopuffer) { bopuffer[0] = (wert & 0x00ff)>>0x00; bopuffer[1] = (wert & 0xff00)>>0x08; } /* *************************************************************** bmp.c *** */ macopix-1.7.4/src/def_biff_r.xpm0000644000076400007640000000135510113753503013500 00000000000000/* XPM */ const char * def_biff_r[] = { "24 19 11 1", " c None", ". c #08CE00", "+ c #181818", "@ c #8C94BD", "# c #C61010", "$ c #C6CEF7", "% c #F77B9C", "& c #FF4242", "* c #FFB5C6", "= c #FFDEE7", "- c #FFFFFF", " =============== ", " ==***************** ", " =@@-------------@@*+ ", " =*@$@-----------@$@*% ", " =*@$@-----------@$@*%+", " =*@-$@---------@$$@*%+", " =*@-$@---------@$$@*%+", " =*@--$@--&&&--@$-$@*%+", " =*@---$@@@&#@@$$-$@*%+", " =*@---@$$$#$$$@--$@*%+", " =*@--@---------@-$@*%+", " =*@-@-----------@$@*%+", " =*@@$$$$$$$$$$$$$@@*%+", " *@@@@@@@@@@@@@@@@@*++", " %****************%%+ ", " %****%%%%%%%%%%%%%+++ ", " %**%%%++++++++++++++ ", "%%%%++++ ", " ++++ "}; macopix-1.7.4/src/macopix_res.rc.in0000644000076400007640000000166610604604645014165 000000000000001 VERSIONINFO FILEVERSION @MAJOR_VERSION@,@MINOR_VERSION@,@MICRO_VERSION@,@BUILD_REVISION@ PRODUCTVERSION @MAJOR_VERSION@,@MINOR_VERSION@,@MICRO_VERSION@,@BUILD_REVISION@ FILEFLAGSMASK 0x3fL FILEFLAGS 0x20L FILEOS 0x40004L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "RoseGray Society\0" VALUE "FileDescription", "MaCoPiX\0" VALUE "FileVersion", "@MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@.@BUILD_REVISION@\0" VALUE "InternalName", "macopix\0" VALUE "LegalCopyright", "Copyright (C) 2002-2007 K.Chimari\0" VALUE "OriginalFilename", "macopix.exe\0" VALUE "ProductName", "MaCoPiX\0" VALUE "ProductVersion", "@VERSION@\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 END END MACOPIX ICON macopix.ico macopix-1.7.4/src/base64.h0000644000076400007640000000476110622155234012150 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // base64.h // CodeConversion and MIME decoding for MaCoPiX // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright.*** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2002 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __BASE64_H__ #define __BASE64_H__ #include typedef struct _Base64Decoder Base64Decoder; struct _Base64Decoder { gint buf_len; gchar buf[4]; }; void base64_encode (gchar *out, const guchar *in, gint inlen); gint base64_decode (guchar *out, const gchar *in, gint inlen); Base64Decoder *base64_decoder_new (void); void base64_decoder_free (Base64Decoder *decoder); gint base64_decoder_decode (Base64Decoder *decoder, const gchar *in, guchar *out); #endif /* __BASE64_H__ */ macopix-1.7.4/src/intl.h0000644000076400007640000000112010575652163012026 00000000000000#ifndef __INTL_H__ #define __INTL_H__ #ifdef ENABLE_NLS # include # define _(String) dgettext(PACKAGE,String) # ifdef gettext_noop # define N_(String) gettext_noop(String) # else # define N_(String) (String) # endif /* gettext_noop */ #else # define _(String) (String) # define N_(String) (String) # define textdomain(String) (String) # define gettext(String) (String) # define dgettext(Domain,String) (String) # define dcgettext(Domain,String,Type) (String) # define bindtextdomain(Domain,Directory) (Domain) #endif /* ENABLE_NLS */ #endif /* __INTL_H__ */ macopix-1.7.4/src/sockmsg.h0000644000076400007640000000223611016003604012514 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // sockmsg.h // Config header for Socket message // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #ifndef SOCKMSG_H #define SOCKMSG_H 1 typedef enum { SOCKMSG_OPENED, SOCKMSG_CREATED, SOCKMSG_ERROR, } SockMsgInitResult; #endif macopix-1.7.4/src/clock.c0000644000076400007640000006240411015375365012156 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // clock.c // Creating and Drawing Panel Clock Windows // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" GdkBitmap *mask_clk[2]={NULL,NULL};; extern GtkWidget *win_main, *clock_main; extern GdkDrawable *pixmap_clk[2]; extern gint dw_configure_clk(); extern gint dw_expose_clk(); extern void clk_drag_begin(); extern void clk_drag_end(); extern void clk_window_motion(); #ifdef USE_CAIRO extern gint dw_configure_clk2(); extern gint dw_expose_clk2(); #endif extern void my_signal_connect(); extern gdouble GetCurrentResolution(); #ifdef USE_WIN32 extern GtkWidget *clock_fg; #endif // from gui.c #ifndef __GTK_TOOLTIP_H__ extern GtkTooltips *tooltip; #endif void make_clock(); #ifdef USE_WIN32 void make_clock_fg(); #endif void DrawPanelClock(); #ifdef USE_CAIRO void DrawPanelClock2(); #endif void DrawPanelClock0(); //GtkWidget * make_clock(typMascot *mascot){ void make_clock(typMascot *mascot){ clock_main = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(clock_main),FALSE); #endif gtk_widget_set_app_paintable(clock_main, TRUE); gtk_widget_set_events(GTK_WIDGET (clock_main), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); //#ifdef USE_CAIRO // screen_changed(clock_main, NULL, NULL, FALSE); //#endif gtk_widget_realize(clock_main); gdk_window_set_decorations(clock_main->window, 0); #ifndef USE_WIN32 /* gdk_window_set_override_redirect is not implemented (for warning) */ gdk_window_set_override_redirect(clock_main->window,TRUE); #endif #ifndef __GTK_TOOLTIP_H__ tooltip = gtk_tooltips_new(); #endif my_signal_connect(clock_main, "configure_event", dw_configure_clk, (gpointer)mascot); my_signal_connect(clock_main, "expose_event", dw_expose_clk, (gpointer)mascot); my_signal_connect(clock_main, "button_press_event", clk_drag_begin, (gpointer)mascot); my_signal_connect(clock_main, "button_release_event", clk_drag_end, (gpointer)mascot); my_signal_connect(clock_main, "motion_notify_event", clk_window_motion, (gpointer)mascot); gdk_window_set_cursor(clock_main->window,mascot->cursor.clk); #ifdef USE_GTK2 gtk_window_resize (GTK_WINDOW(clock_main), 1, 1); #else gdk_window_resize (clock_main->window, 1, 1); #endif dw_configure_clk(clock_main, "configure_event",(gpointer)mascot); //gtk_widget_show(clock_main); } #ifdef USE_WIN32 void make_clock_fg(typMascot *mascot){ clock_fg = gtk_window_new(GTK_WINDOW_POPUP); #ifdef USE_GTK2 gtk_window_set_accept_focus(GTK_WINDOW(clock_fg),FALSE); #endif gtk_widget_set_app_paintable(clock_fg, TRUE); gtk_widget_set_events(GTK_WIDGET (clock_fg), GDK_FOCUS_CHANGE_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_EXPOSURE_MASK); gtk_widget_realize(clock_fg); gdk_window_set_decorations(clock_fg->window, 0); my_signal_connect(clock_fg, "configure_event", dw_configure_clk, (gpointer)mascot); my_signal_connect(clock_fg, "expose_event", dw_expose_clk, (gpointer)mascot); my_signal_connect(clock_fg, "button_press_event", clk_drag_begin, (gpointer)mascot); my_signal_connect(clock_fg, "button_release_event", clk_drag_end, (gpointer)mascot); my_signal_connect(clock_fg, "motion_notify_event", clk_window_motion, (gpointer)mascot); gdk_window_resize (clock_fg->window, 1, 1); dw_configure_clk(clock_fg, "configure_event",(gpointer)mascot); //gtk_widget_show(clock_fg); } #endif // ¥Ñ¥Í¥ë»þ·×¤Îpixmap buffer¤Ø¤ÎÉÁ²è void DrawPanelClock(typMascot *mascot) { gint clk_width,clk_height; gint work_page; #ifdef USE_GTK2 PangoLayout *pango_text; #else gint lb,rb,as,ds; #endif gint new_w, new_h; GdkGCValues gcv; work_page=mascot->clk_page; work_page^=1; #ifdef USE_GTK2 pango_text=gtk_widget_create_pango_layout(clock_main, mascot->digit); pango_layout_get_pixel_size(pango_text,&clk_width,&clk_height); #else gdk_string_extents(mascot->fontclk,mascot->digit, &lb,&rb,&clk_width,&as,&ds); clk_height=as+ds; #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: clk_width+=clk_height/3; break; } if (pixmap_clk[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixmap_clk[work_page])); #else gdk_pixmap_unref(pixmap_clk[work_page]); #endif } new_w=clk_width+(mascot->clktext_x+mascot->wclkbd)*2; new_h=clk_height+(mascot->clktext_y+mascot->wclkbd)*2; pixmap_clk[work_page] = gdk_pixmap_new(clock_main->window, new_w, new_h, -1); if(mascot->flag_clkrd){ if (mask_clk[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mask_clk[work_page])); #else gdk_pixmap_unref(mask_clk[work_page]); #endif } mask_clk[work_page] = gdk_pixmap_new(clock_main->window, new_w,new_h,1); // Depth =1 (Bitmap) if(mascot->gc_clkmask[work_page]){ gdk_gc_unref(mascot->gc_clkmask[work_page]); } mascot->gc_clkmask[work_page]=gdk_gc_new(mask_clk[work_page]); // ¤¤¤Ã¤¿¤ó¥Þ¥¹¥¯¤òforeground¤Ç¥¯¥ê¥¢¤¹¤ë gdk_draw_rectangle(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,0, new_w,new_h); // ¥Þ¥¹¥¯¤Ïforeground¿§¤ÎÉôʬ¤¬¾Ã¤µ¤ì¤ë¤Î¤Ç, »Ä¤·¤¿¤¤Éôʬ¤Ï // background¿§¤ÇÉÁ²è¤¹¤ë gdk_gc_get_values(mascot->gc_clkmask[work_page], &gcv); gdk_gc_set_foreground(mascot->gc_clkmask[work_page], &gcv.background); gdk_gc_set_background(mascot->gc_clkmask[work_page], &gcv.foreground); // **** pixmap¤Ø¤ÎBUFFERING // Mask (Border¤ÈƱ¤¸) #ifdef USE_WIN32 gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-1,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,(new_h+2)-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-1, (new_h+2)-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); #else gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,0, mascot->clktext_x*2,mascot->clktext_y*2, 5760,5760); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, new_w-mascot->clktext_x*2-1,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,new_h-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*2,5760); gdk_draw_arc(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, new_w-mascot->clktext_x*2-1,new_h-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, 0,mascot->clktext_y, new_w,new_h-mascot->clktext_y*2); gdk_draw_rectangle(mask_clk[work_page],mascot->gc_clkmask[work_page], TRUE, mascot->clktext_x,0, new_w-mascot->clktext_x*2,new_h); // border if(mascot->wclkbd>0){ #ifdef USE_WIN32 gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-1,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,(new_h+2)-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-1,(new_h+2)-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); #else gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,0, mascot->clktext_x*2,mascot->clktext_y*2, 5760,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, new_w-mascot->clktext_x*2-1,0, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,new_h-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*2,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, new_w-mascot->clktext_x*2-1,(new_h+2)-mascot->clktext_y*2-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,mascot->clktext_y, new_w,new_h-mascot->clktext_y*2); gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, mascot->clktext_x,0, new_w-mascot->clktext_x*2,new_h); } // background #ifdef USE_WIN32 gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd,mascot->wclkbd, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-mascot->wclkbd-1, mascot->wclkbd, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd, (new_h+2)-mascot->clktext_y*2-mascot->wclkbd-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, (new_w+2)-mascot->clktext_x*2-mascot->wclkbd-1, (new_h+2)-mascot->clktext_y*2-mascot->wclkbd-1, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760*4); #else gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd,mascot->wclkbd, mascot->clktext_x*2,mascot->clktext_y*2, 5760,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, new_w-mascot->clktext_x*2-mascot->wclkbd-1, mascot->wclkbd, mascot->clktext_x*2,mascot->clktext_y*2, 0,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd, new_h-mascot->clktext_y*2-mascot->wclkbd-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*2,5760); gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, new_w-mascot->clktext_x*2-mascot->wclkbd-1, new_h-mascot->clktext_y*2-mascot->wclkbd-1, mascot->clktext_x*2,mascot->clktext_y*2, 5760*3,5760); #endif gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd, mascot->wclkbd+mascot->clktext_y, new_w-mascot->wclkbd*2, new_h-mascot->clktext_y*2-mascot->wclkbd*2); gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd+mascot->clktext_x, mascot->wclkbd, new_w-mascot->clktext_x*2-mascot->wclkbd*2, new_h-mascot->wclkbd*2); } else{ // **** pixmap¤Ø¤ÎBUFFERING // border gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbd[work_page], TRUE, 0,0, new_w, new_h); // background gdk_draw_rectangle(pixmap_clk[work_page],mascot->gc_clkbg[work_page], TRUE, mascot->wclkbd,mascot->wclkbd, new_w-mascot->wclkbd*2, new_h-mascot->wclkbd*2); } // digital clock if(mascot->flag_clksd){ #ifdef USE_GTK2 gdk_draw_layout(pixmap_clk[work_page], mascot->gc_clksd[work_page], mascot->clktext_x+mascot->wclkbd+mascot->clksd_x, mascot->clktext_y+mascot->wclkbd+mascot->clksd_y, pango_text); #else gdk_draw_string(pixmap_clk[work_page],mascot->fontclk, mascot->gc_clksd[work_page], mascot->clktext_x+mascot->wclkbd+mascot->clksd_x, as+mascot->clktext_y+mascot->wclkbd+mascot->clksd_y, mascot->digit); #endif } #ifdef USE_GTK2 gdk_draw_layout(pixmap_clk[work_page], mascot->gc_clk[work_page], mascot->clktext_x+mascot->wclkbd, mascot->clktext_y+mascot->wclkbd, pango_text); #else gdk_draw_string(pixmap_clk[work_page],mascot->fontclk, mascot->gc_clk[work_page], mascot->clktext_x+mascot->wclkbd, as+mascot->clktext_y+mascot->wclkbd, mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: // digital clock if(mascot->flag_clksd){ if(mascot->clk_pm){ gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clksd[work_page], TRUE, clk_width+mascot->clktext_x+mascot->wclkbd+mascot->clksd_x-clk_height/3, mascot->clktext_y+mascot->wclkbd+mascot->clksd_y+clk_height*2/3, clk_height/3,clk_height/3, 0,(360*64)); } else{ gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clksd[work_page], TRUE, clk_width+mascot->clktext_x+mascot->wclkbd+mascot->clksd_x-clk_height/3, mascot->clktext_y+mascot->wclkbd+mascot->clksd_y, clk_height/3,clk_height/3, 0,(360*64)); } } if(mascot->clk_pm){ gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clk[work_page], TRUE, clk_width+mascot->clktext_x+mascot->wclkbd-clk_height/3, mascot->clktext_y+mascot->wclkbd+clk_height*2/3, clk_height/3,clk_height/3, 0,(360*64)); } else{ gdk_draw_arc(pixmap_clk[work_page],mascot->gc_clk[work_page], TRUE, clk_width+mascot->clktext_x+mascot->wclkbd-clk_height/3, mascot->clktext_y+mascot->wclkbd, clk_height/3,clk_height/3, 0,(360*64)); } break; } mascot->clk_page=work_page; gdk_flush(); #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_set_back_pixmap(clock_fg->window, pixmap_clk[mascot->clk_page], FALSE); } #endif gdk_window_set_back_pixmap(clock_main->window, pixmap_clk[mascot->clk_page], FALSE); #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_resize (clock_fg->window,new_w,new_h); } #endif gdk_window_resize (clock_main->window, new_w, new_h); if(mascot->flag_clkrd){ #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_shape_combine_mask( clock_fg->window, mask_clk[mascot->clk_page], 0,0); } #endif gdk_window_shape_combine_mask( clock_main->window, mask_clk[mascot->clk_page], 0,0); } #ifdef USE_WIN32 gdk_draw_drawable(clock_fg->window, clock_fg->style->fg_gc[GTK_WIDGET_STATE(clock_main)], pixmap_clk[mascot->clk_page], 0,0,0,0, new_w, new_h); #endif #ifdef USE_GTK2 gdk_draw_drawable(clock_main->window, #else gdk_draw_pixmap(clock_main->window, #endif clock_main->style->fg_gc[GTK_WIDGET_STATE(clock_main)], pixmap_clk[mascot->clk_page], 0,0,0,0, new_w, new_h); #ifdef USE_GTK2 g_object_unref(G_OBJECT(pango_text)); #endif while (my_main_iteration(FALSE)); gdk_flush(); } #ifdef USE_CAIRO // ¥Ñ¥Í¥ë»þ·×¤Îpixmap buffer¤Ø¤ÎÉÁ²è void DrawPanelClock2(typMascot *mascot) { gint clk_width,clk_height; gint work_page; gint new_w, new_h; cairo_t *cr; cairo_t *cr_mask; gdouble M_PI=3.14159265; gdouble dx,dy; cairo_text_extents_t extents; PangoLayout *pango_text; gdouble ampmsize=0; gboolean shape_flag=FALSE; work_page=mascot->clk_page; work_page^=1; if(mascot->flag_clkrd){ if(mascot->flag_composite==COMPOSITE_FALSE){ shape_flag=TRUE; } else if((!mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN)){ shape_flag=TRUE; } } #ifdef __PANGOCAIRO_H__ pango_text=gtk_widget_create_pango_layout(clock_main, mascot->digit); pango_layout_get_pixel_size(pango_text,&clk_width,&clk_height); #endif cr = gdk_cairo_create(clock_main->window); cairo_select_font_face (cr, mascot->fontclk_pc.family, mascot->fontclk_pc.slant, mascot->fontclk_pc.weight); cairo_set_font_size (cr, mascot->fontclk_pc.pointsize*GetCurrentResolution()/72.0); #ifndef __PANGOCAIRO_H__ cairo_text_extents (cr, mascot->digit, &extents); clk_width=(gint)(extents.x_advance); clk_height=(gint)(extents.height); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: cairo_text_extents (cr, "AM", &extents); ampmsize=(gint)(extents.x_advance*CLOCK_AMPM_RATIO); clk_width+=ampmsize+3; break; } cairo_destroy(cr); if (pixmap_clk[work_page]) { g_object_unref(G_OBJECT(pixmap_clk[work_page])); } new_w=clk_width+(mascot->clktext_x+mascot->wclkbd)*2; new_h=clk_height+(mascot->clktext_y+mascot->wclkbd)*2; pixmap_clk[work_page] = gdk_pixmap_new(clock_main->window, new_w, new_h, -1); if(shape_flag){ if (mask_clk[work_page]) { #ifdef USE_GTK2 g_object_unref(G_OBJECT(mask_clk[work_page])); #else gdk_pixmap_unref(mask_clk[work_page]); #endif } mask_clk[work_page] = gdk_pixmap_new(clock_main->window, new_w,new_h,1); // Depth =1 (Bitmap) cr_mask = gdk_cairo_create(mask_clk[work_page]); cairo_set_operator (cr_mask, CAIRO_OPERATOR_CLEAR); cairo_paint (cr_mask); cairo_set_operator (cr_mask, CAIRO_OPERATOR_SOURCE); cairo_set_source_rgb (cr_mask, 1, 1, 1); // opaque white } cr = gdk_cairo_create(pixmap_clk[work_page]); if((mascot->flag_composite==COMPOSITE_TRUE) ||((mascot->force_composite)&&(mascot->flag_composite==COMPOSITE_UNKNOWN))) cairo_set_source_rgba (cr, 1, 1, 1, 0); else cairo_set_source_rgb (cr, 1, 1, 1); // opaque white // draw background cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint (cr); cairo_select_font_face (cr, mascot->fontclk_pc.family, mascot->fontclk_pc.slant, mascot->fontclk_pc.weight); cairo_set_font_size (cr, mascot->fontclk_pc.pointsize*GetCurrentResolution()/72.0); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); #ifdef USE_WIN32 //BG should be opaque to BG only translucency for Win32 cairo_set_source_rgba (cr, (gdouble)mascot->colclkbg->red/0xFFFF, (gdouble)mascot->colclkbg->green/0xFFFF, (gdouble)mascot->colclkbg->blue/0xFFFF, 1); /* opaque BG */ cairo_rectangle(cr, 0, 0, new_w, new_h); cairo_fill(cr); #else cairo_set_source_rgba (cr, (gdouble)mascot->colclkbg->red/0xFFFF, (gdouble)mascot->colclkbg->green/0xFFFF, (gdouble)mascot->colclkbg->blue/0xFFFF, (gdouble)mascot->alpclkbg/0xFFFF); /* transparent */ if(shape_flag){ cairo_rectangle(cr, 0, 0, new_w, new_h); cairo_fill(cr); } #endif if(mascot->flag_clkrd){ dx=(gdouble)mascot->clktext_x; dy=(gdouble)mascot->clktext_y; cairo_move_to(cr,0,dy); cairo_save (cr); cairo_translate (cr, dx, dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 180*(M_PI/180.), 270*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, new_w-dx, 0); cairo_save (cr); cairo_translate (cr, new_w-dx, dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 270*(M_PI/180.), 360*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, new_w, new_h-dy); cairo_save (cr); cairo_translate (cr, new_w-dx, new_h-dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 0*(M_PI/180.), 90*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, dx, new_h); cairo_save (cr); cairo_translate (cr, dx, new_h-dy); cairo_scale (cr, dx, dy); cairo_arc (cr, 0, 0, 1., 90*(M_PI/180.), 180*(M_PI/180.)); cairo_restore (cr); cairo_line_to(cr, 0, dy); } else{ cairo_rectangle(cr, 0, 0, new_w, new_h); } if(shape_flag){ cairo_append_path(cr_mask,cairo_copy_path(cr)); cairo_fill(cr_mask); // If having a mask, never clip // Anti-alias of cairo could cause discoloration } else{ cairo_clip_preserve (cr); cairo_fill_preserve(cr); } if(mascot->wclkbd>0){ cairo_set_source_rgba (cr, (gdouble)mascot->colclkbd->red/0xFFFF, (gdouble)mascot->colclkbd->green/0xFFFF, (gdouble)mascot->colclkbd->blue/0xFFFF, (gdouble)mascot->alpclkbd/0xFFFF); /* transparent */ cairo_set_line_width(cr,(gdouble)mascot->wclkbd *2); cairo_stroke(cr); } cairo_set_line_width(cr,1.0); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); if(mascot->flag_clksd){ cairo_set_source_rgba (cr, (gdouble)mascot->colclksd->red/0xFFFF, (gdouble)mascot->colclksd->green/0xFFFF, (gdouble)mascot->colclksd->blue/0xFFFF, (gdouble)mascot->alpclksd/0xFFFF); /* transparent */ #ifdef __PANGOCAIRO_H__ cairo_move_to(cr, mascot->wclkbd+mascot->clktext_x+mascot->clksd_x, mascot->wclkbd+mascot->clktext_y+mascot->clksd_y); pango_cairo_show_layout(cr,pango_text); #else cairo_text_extents (cr, mascot->digit, &extents); cairo_move_to(cr, mascot->wclkbd+mascot->clktext_x+mascot->clksd_x, -extents.y_bearing+mascot->wclkbd+mascot->clktext_y+mascot->clksd_y); cairo_show_text(cr,mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: cairo_move_to(cr, new_w-ampmsize-mascot->wclkbd-mascot->clktext_x+mascot->clksd_x-1, new_h-mascot->wclkbd-mascot->clktext_y+mascot->clksd_y-1); cairo_save(cr); cairo_scale (cr, CLOCK_AMPM_RATIO, CLOCK_AMPM_RATIO); // digital clock if(mascot->clk_pm){ cairo_show_text(cr,"PM"); } else{ cairo_show_text(cr,"AM"); } cairo_restore(cr); break; } } cairo_set_source_rgba (cr, (gdouble)mascot->colclk->red/0xFFFF, (gdouble)mascot->colclk->green/0xFFFF, (gdouble)mascot->colclk->blue/0xFFFF, (gdouble)mascot->alpclk/0xFFFF); /* transparent */ #ifdef __PANGOCAIRO_H__ cairo_move_to(cr, mascot->wclkbd+mascot->clktext_x, mascot->wclkbd+mascot->clktext_y); pango_cairo_show_layout(cr,pango_text); #else cairo_text_extents (cr, mascot->digit, &extents); cairo_move_to(cr, mascot->wclkbd+mascot->clktext_x, -extents.y_bearing+mascot->wclkbd+mascot->clktext_y); cairo_show_text(cr,mascot->digit); #endif switch(mascot->clktype){ case CLOCK_TYPE_12S: case CLOCK_TYPE_12M: cairo_move_to(cr, new_w-ampmsize-mascot->wclkbd-mascot->clktext_x-1, new_h-mascot->wclkbd-mascot->clktext_y-1); cairo_save(cr); cairo_scale (cr, CLOCK_AMPM_RATIO, CLOCK_AMPM_RATIO); // digital clock if(mascot->clk_pm){ cairo_show_text(cr,"PM"); } else{ cairo_show_text(cr,"AM"); } cairo_restore(cr); break; } mascot->clk_page=work_page; gdk_flush(); #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_set_back_pixmap(clock_fg->window, pixmap_clk[mascot->clk_page], FALSE); } #endif gdk_window_set_back_pixmap(clock_main->window, pixmap_clk[mascot->clk_page], FALSE); #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_resize (clock_fg->window, new_w, new_h); } #endif gdk_window_resize (clock_main->window, new_w, new_h); if(shape_flag){ #ifdef USE_WIN32 if((mascot->flag_clkfg)&&(mascot->alpha_clk!=100)){ gdk_window_shape_combine_mask( clock_fg->window, mask_clk[mascot->clk_page], 0,0); } #endif gdk_window_shape_combine_mask( clock_main->window, mask_clk[mascot->clk_page], 0,0); cairo_destroy(cr_mask); } #ifdef USE_WIN32 gdk_draw_drawable(clock_fg->window, clock_fg->style->fg_gc[GTK_WIDGET_STATE(clock_main)], pixmap_clk[mascot->clk_page], 0,0,0,0, new_w, new_h); #endif gdk_draw_drawable(clock_main->window, clock_main->style->fg_gc[GTK_WIDGET_STATE(clock_main)], pixmap_clk[mascot->clk_page], 0,0,0,0, new_w, new_h); cairo_destroy(cr); #ifdef __PANGOCAIRO_H__ g_object_unref(G_OBJECT(pango_text)); #endif while(my_main_iteration(FALSE)); gdk_flush(); } #endif void DrawPanelClock0(typMascot *mascot){ #ifdef USE_CAIRO // if(((mascot->flag_clk_cairo)&&(mascot->flag_composite!=COMPOSITE_FALSE)) // ||(!mascot->flag_clkrd)) if(mascot->flag_clk_cairo) DrawPanelClock2(mascot); else DrawPanelClock(mascot); #else DrawPanelClock(mascot); #endif } macopix-1.7.4/src/quoted-printable.h0000644000076400007640000000455310622156136014344 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // quoted-printable.h // CodeConversion and MIME decoding for MaCoPiX // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright.*** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2003 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __QUOTED_PRINTABLE_H__ #define __QUOTED_PRINTABLE_H__ #include void qp_encode_line (gchar *out, const guchar *in); gint qp_decode_line (gchar *str); gint qp_decode_q_encoding (guchar *out, const gchar *in, gint inlen); gint qp_get_q_encoding_len (const guchar *str); void qp_q_encode (gchar *out, const guchar *in); #endif /* __QUOTED_PRINTABLE_H__ */ macopix-1.7.4/src/unmime.h0000644000076400007640000000422610622156450012353 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // unmime.h // CodeConversion and MIME decoding for MaCoPiX // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright.*** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2002 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __UNMIME_H__ #define __UNMIME_H__ #include void unmime_header (gchar *out, const gchar *str); gint unmime_quoted_printable_line (gchar *str); #endif /* __UNMIME_H__ */ macopix-1.7.4/src/configfile.c0000644000076400007640000002345110622155463013165 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // configfile.c // Save Data Access for MaCoPiX // (diverting from original program of XMMS) // *** See below copyright. *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // // // XMMS - Cross-platform multimedia player // Copyright (C) 1998-1999 Peter Alm, Mikael Alm, Olle Hallnas, // Thomas Nilsson and 4Front Technologies // // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // #include "main.h" #include #include #include #include #include #include "configfile.h" static ConfigSection *xmms_cfg_create_section(ConfigFile * cfg, gchar * name); static ConfigLine *xmms_cfg_create_string(ConfigSection * section, gchar * key, gchar * value); static ConfigSection *xmms_cfg_find_section(ConfigFile * cfg, gchar * name); static ConfigLine *xmms_cfg_find_string(ConfigSection * section, gchar * key); extern gchar* to_utf8(); extern gchar* to_locale(); ConfigFile *xmms_cfg_new(void) { ConfigFile *cfg; cfg = g_malloc0(sizeof (ConfigFile)); return cfg; } ConfigFile *xmms_cfg_open_file(gchar * input_filename) { ConfigFile *cfg; FILE *file; gchar *buffer, **lines, *tmp; gint i; struct stat stats; ConfigSection *section = NULL; gint ehe; #ifdef USE_WIN32 gboolean UNIX_flag; #endif gchar *filename; //filename = to_locale(input_filename); filename = g_strdup(input_filename); #ifdef USE_WIN32 if (stat(filename, &stats) == -1){ g_free(filename); return NULL; } #else if (lstat(filename, &stats) == -1){ g_free(filename); return NULL; } #endif if (!(file = fopen(filename, "r"))){ g_free(filename); return NULL; } g_free(filename); buffer = g_malloc(stats.st_size + 1); // if (fread(buffer, 1, stats.st_size, file) != stats.st_size) ehe=fread(buffer, 1, stats.st_size, file); #ifdef USE_WIN32 if (ehe > stats.st_size) { g_free(buffer); fclose(file); return NULL; } else if ( ehe == stats.st_size ){ UNIX_flag=TRUE; } else { UNIX_flag=FALSE; } #else if (ehe != stats.st_size) { g_free(buffer); fclose(file); return NULL; } #endif fclose(file); buffer[stats.st_size] = '\0'; cfg = g_malloc0(sizeof (ConfigFile)); #ifdef USE_WIN32 if(UNIX_flag) lines = g_strsplit(buffer, "\n", 0); else lines = g_strsplit(buffer, "\n", 0); #else lines = g_strsplit(buffer, "\n", 0); #endif g_free(buffer); i = 0; while (lines[i]) { if (lines[i][0] == '[') { if ((tmp = strchr(lines[i], ']'))) { *tmp = '\0'; section = xmms_cfg_create_section(cfg, &lines[i][1]); } } else if (lines[i][0] != '#' && section) { if ((tmp = strchr(lines[i], '='))) { *tmp = '\0'; tmp++; xmms_cfg_create_string(section, lines[i], tmp); } } i++; } g_strfreev(lines); return cfg; } gboolean xmms_cfg_write_file(ConfigFile * cfg, gchar * input_filename) { FILE *file; GList *section_list, *line_list; ConfigSection *section; ConfigLine *line; gchar *filename; //filename = to_locale(input_filename); filename = g_strdup(input_filename); if (!(file = fopen(filename, "w"))) return FALSE; section_list = cfg->sections; while (section_list) { section = (ConfigSection *) section_list->data; if (section->lines) { fprintf(file, "[%s]\n", section->name); line_list = section->lines; while (line_list) { line = (ConfigLine *) line_list->data; fprintf(file, "%s=%s\n", line->key, line->value); line_list = g_list_next(line_list); } fprintf(file, "\n"); } section_list = g_list_next(section_list); } fclose(file); return TRUE; } gboolean xmms_cfg_read_string(ConfigFile * cfg, gchar * section, gchar * key, gchar ** value) { ConfigSection *sect; ConfigLine *line; if (!(sect = xmms_cfg_find_section(cfg, section))) return FALSE; if (!(line = xmms_cfg_find_string(sect, key))) return FALSE; *value = g_strdup(line->value); return TRUE; } gboolean xmms_cfg_read_int(ConfigFile * cfg, gchar * section, gchar * key, gint * value) { gchar *str; if (!xmms_cfg_read_string(cfg, section, key, &str)) return FALSE; *value = atoi(str); g_free(str); return TRUE; } gboolean xmms_cfg_read_boolean(ConfigFile * cfg, gchar * section, gchar * key, gboolean * value) { gchar *str; if (!xmms_cfg_read_string(cfg, section, key, &str)) return FALSE; if (!strcasecmp(str, "TRUE")) *value = TRUE; else *value = FALSE; g_free(str); return TRUE; } gboolean xmms_cfg_read_float(ConfigFile * cfg, gchar * section, gchar * key, gfloat * value) { gchar *str; if (!xmms_cfg_read_string(cfg, section, key, &str)) return FALSE; *value = (gfloat) g_strtod(str, NULL); g_free(str); return TRUE; } gboolean xmms_cfg_read_double(ConfigFile * cfg, gchar * section, gchar * key, gdouble * value) { gchar *str; if (!xmms_cfg_read_string(cfg, section, key, &str)) return FALSE; *value = g_strtod(str, NULL); g_free(str); return TRUE; } void xmms_cfg_write_string(ConfigFile * cfg, gchar * section, gchar * key, gchar * value) { ConfigSection *sect; ConfigLine *line; sect = xmms_cfg_find_section(cfg, section); if (!sect) sect = xmms_cfg_create_section(cfg, section); if ((line = xmms_cfg_find_string(sect, key))) { g_free(line->value); line->value = g_strchug(g_strchomp(g_strdup(value))); } else xmms_cfg_create_string(sect, key, value); } void xmms_cfg_write_int(ConfigFile * cfg, gchar * section, gchar * key, gint value) { gchar *strvalue; strvalue = g_strdup_printf("%d", value); xmms_cfg_write_string(cfg, section, key, strvalue); g_free(strvalue); } void xmms_cfg_write_boolean(ConfigFile * cfg, gchar * section, gchar * key, gboolean value) { if (value) xmms_cfg_write_string(cfg, section, key, "TRUE"); else xmms_cfg_write_string(cfg, section, key, "FALSE"); } void xmms_cfg_write_float(ConfigFile * cfg, gchar * section, gchar * key, gfloat value) { gchar *strvalue; strvalue = g_strdup_printf("%g", value); xmms_cfg_write_string(cfg, section, key, strvalue); g_free(strvalue); } void xmms_cfg_write_double(ConfigFile * cfg, gchar * section, gchar * key, gdouble value) { gchar *strvalue; strvalue = g_strdup_printf("%g", value); xmms_cfg_write_string(cfg, section, key, strvalue); g_free(strvalue); } void xmms_cfg_remove_key(ConfigFile * cfg, gchar * section, gchar * key) { ConfigSection *sect; ConfigLine *line; if ((sect = xmms_cfg_find_section(cfg, section))) { if ((line = xmms_cfg_find_string(sect, key))) { g_free(line->key); g_free(line->value); g_free(line); sect->lines = g_list_remove(sect->lines, line); } } } void xmms_cfg_free(ConfigFile * cfg) { ConfigSection *section; ConfigLine *line; GList *section_list, *line_list; section_list = cfg->sections; while (section_list) { section = (ConfigSection *) section_list->data; g_free(section->name); line_list = section->lines; while (line_list) { line = (ConfigLine *) line_list->data; g_free(line->key); g_free(line->value); g_free(line); line_list = g_list_next(line_list); } g_list_free(section->lines); g_free(section); section_list = g_list_next(section_list); } g_list_free(cfg->sections); } static ConfigSection *xmms_cfg_create_section(ConfigFile * cfg, gchar * name) { ConfigSection *section; section = g_malloc0(sizeof (ConfigSection)); section->name = g_strdup(name); cfg->sections = g_list_append(cfg->sections, section); return section; } static ConfigLine *xmms_cfg_create_string(ConfigSection * section, gchar * key, gchar * value) { ConfigLine *line; line = g_malloc0(sizeof (ConfigLine)); line->key = g_strchug(g_strchomp(g_strdup(key))); line->value = g_strchug(g_strchomp(g_strdup(value))); section->lines = g_list_append(section->lines, line); return line; } static ConfigSection *xmms_cfg_find_section(ConfigFile * cfg, gchar * name) { ConfigSection *section; GList *list; list = cfg->sections; while (list) { section = (ConfigSection *) list->data; if (!strcasecmp(section->name, name)) return section; list = g_list_next(list); } return NULL; } static ConfigLine *xmms_cfg_find_string(ConfigSection * section, gchar * key) { ConfigLine *line; GList *list; list = section->lines; while (list) { line = (ConfigLine *) list->data; if (!strcasecmp(line->key, key)) return line; list = g_list_next(list); } return NULL; } macopix-1.7.4/src/tar32api.h0000644000076400007640000003056510575652164012525 00000000000000/* TAR32API.H TAR32.DLL API header. by Yoshioka Tsuneo(QWF00133@nifty.ne.jp) */ /* ‚±‚̃tƒ@ƒCƒ‹‚Ì—˜—pðŒF ‚±‚̃\[ƒXƒtƒ@ƒCƒ‹‚Ì—˜—p§ŒÀ‚ÍˆêØ‚ ‚è‚Ü‚¹‚ñB ƒ\[ƒX‚̈ꕔA‘S•”‚ð¤—pA”ñ¤—p‚ȂǖړI‚É ‚©‚©‚í‚è‚È‚­‘¼‚̃vƒƒOƒ‰ƒ€‚ÅŽ©—R‚ÉŽg—p‚Å‚«‚Ü‚·B ƒpƒuƒŠƒbƒNEƒhƒƒCƒ“Eƒ\ƒtƒgƒEƒFƒA‚Æ“¯—l‚Ɉµ‚¦‚Ü‚·B ƒvƒƒOƒ‰ƒ}Œü‚¯‚Ì—v–](§ŒÀ‚ł͂ ‚è‚Ü‚¹‚ñ)F ƒ\[ƒX’†‚ɉü‘P‚·‚ׂ«“_‚ª‚ ‚ê‚΂¨’m‚点‚­‚¾‚³‚¢B ƒ\[ƒXƒR[ƒh’†‚ɃoƒO‚ðŒ©‚Â‚¯‚½ê‡‚Í•ñ‚µ‚Ä‚­‚¾‚³‚¢B ’¼‚µ‚½•”•ª‚Ȃǂ ‚è‚Ü‚µ‚½‚狳‚¦‚Ä‚­‚¾‚³‚¢B ’f•ГI‚Èî•ñ‚Å‚àŒ‹\‚Å‚·B ‚±‚̃tƒ@ƒCƒ‹‚ð—˜—p‚µ‚½ê‡‚͂Ȃé‚ׂ­‹³‚¦‚Ä‚­‚¾‚³‚¢B */ /* LICENSE of this file: There is no restriction for using this file. You can use this file in your software for any purpose. In other words, you can use this file as Public Domain Software. RECOMMENDATION for Programmer(not restriction): If you find points to improve code, please report me. If you find bug in source code, please report me. If you fixed bug, please teach me. I want any trivial information. If you use this file, please report me. */ #ifndef TAR32API_H #define TAR32API_H #ifndef FNAME_MAX32 #define FNAME_MAX32 512 #endif #if defined(__BORLANDC__) #pragma option -a- #else #pragma pack(1) #endif #ifndef _TIME_T_DEFINED typedef long time_t; #define _TIME_T_DEFINED #endif #ifndef ARC_DECSTRACT #define ARC_DECSTRACT /* #define void *HGLOBAL */ #include typedef HGLOBAL HARC; typedef struct { DWORD dwOriginalSize; DWORD dwCompressedSize; DWORD dwCRC; UINT uFlag; UINT uOSType; WORD wRatio; WORD wDate; WORD wTime; char szFileName[FNAME_MAX32 + 1]; char dummy1[3]; char szAttribute[8]; char szMode[8]; } INDIVIDUALINFO; typedef INDIVIDUALINFO *LPINDIVIDUALINFO; /* only declare struct( NO IMPLEMENTED )*/ typedef struct { DWORD dwFileSize; DWORD dwWriteSize; char szSourceFileName[FNAME_MAX32 + 1]; char dummy1[3]; char szDestFileName[FNAME_MAX32 + 1]; char dummy[3]; } EXTRACTINGINFO; typedef struct { EXTRACTINGINFO exinfo; DWORD dwCompressedSize; DWORD dwCRC; UINT uOSType; WORD wRatio; WORD wDate; WORD wTime; char szAttribute[8]; char szMode[8]; } EXTRACTINGINFOEX; typedef BOOL CALLBACK ARCHIVERPROC(HWND _hwnd,UINT _uMsg,UINT _nState, EXTRACTINGINFOEX * _lpEis); #endif #if !defined(__BORLANDC__) #pragma pack() #else #pragma option -a. #endif #if !defined(__BORLANDC__) #define _export #endif #ifdef __cplusplus extern "C" { #endif WORD WINAPI _export TarGetVersion(VOID); BOOL WINAPI _export TarGetRunning(VOID); BOOL WINAPI _export TarGetBackGroundMode(VOID);/* NO IMPLEMENT:return FALSE */ BOOL WINAPI _export TarSetBackGroundMode(const BOOL _BackGroundMode);/* NO IMPLEMENT:return FALSE */ BOOL WINAPI _export TarGetCursorMode(VOID);/* NO IMPLEMENT:return FALSE */ BOOL WINAPI _export TarSetCursorMode(const BOOL _CursorMode);/* NO IMPLEMENT:return FALSE */ WORD WINAPI _export TarGetCursorInterval(VOID);/* NO IMPLEMENT:return 80 */ BOOL WINAPI _export TarSetCursorInterval(const WORD _Interval);/* NO IMPLEMENT:return FALSE */ int WINAPI _export Tar(const HWND _hwnd, LPCSTR _szCmdLine,LPSTR _szOutput, const DWORD _dwSize); /* NO IMPLEMENT:return -1 */ int WINAPI _export TarExtractMem(const HWND _hwndParent,LPCSTR _szCmdLine, LPBYTE _lpBuffer, const DWORD _dwSize,time_t *_lpTime, LPWORD _lpwAttr, LPDWORD _lpdwWriteSize); /* NO IMPLEMENT:return -1 */ int WINAPI _export TarCompressMem(const HWND _hwndParent,LPCSTR _szCmdLine, const LPBYTE _lpBuffer, const DWORD _dwSize,const time_t *_lpTime, const LPWORD _lpwAttr,LPDWORD _lpdwWriteSize); BOOL WINAPI _export TarCheckArchive(LPCSTR _szFileName, const int _iMode); /* Simple Dialog Only :return TRUE */ BOOL WINAPI _export TarConfigDialog(const HWND _hwnd, LPSTR _lpszComBuffer,const int _iMode); int WINAPI _export TarGetFileCount(LPCSTR _szArcFile); HARC WINAPI _export TarOpenArchive(const HWND _hwnd, LPCSTR _szFileName,const DWORD _dwMode); int WINAPI _export TarCloseArchive(HARC _harc); int WINAPI _export TarFindFirst(HARC _harc, LPCSTR _szWildName,INDIVIDUALINFO *_lpSubInfo); int WINAPI _export TarFindNext(HARC _harc, INDIVIDUALINFO *_lpSubInfo); int WINAPI _export TarGetArcFileName(HARC _harc, LPSTR _lpBuffer,const int _nSize); DWORD WINAPI _export TarGetArcFileSize(HARC _harc); DWORD WINAPI _export TarGetArcOriginalSize(HARC _harc); /* NO IMPLEMENT:return 0: */ DWORD WINAPI _export TarGetArcCompressedSize(HARC _harc); /* NO IMPLEMENT:return 0: */ WORD WINAPI _export TarGetArcRatio(HARC _harc); WORD WINAPI _export TarGetArcDate(HARC _harc); WORD WINAPI _export TarGetArcTime(HARC _harc); /* NO IMPLEMENT:return -1: */ UINT WINAPI _export TarGetArcOSType(HARC _harc); int WINAPI _export TarGetFileName(HARC _harc, LPSTR _lpBuffer, const int _nSize); int WINAPI _export TarGetMethod(HARC _harc, LPSTR _lpBuffer, const int _nSize); BOOL WINAPI _export TarGetOriginalSizeEx(HARC _harc, __int64 *_lpllSize); DWORD WINAPI _export TarGetOriginalSize(HARC _harc); BOOL WINAPI _export TarGetCompressedSizeEx(HARC _harc, __int64 *_lpllSize); DWORD WINAPI _export TarGetCompressedSize(HARC _harc); WORD WINAPI _export TarGetRatio(HARC _harc); WORD WINAPI _export TarGetDate(HARC _harc); WORD WINAPI _export TarGetTime(HARC _harc); DWORD WINAPI _export TarGetWriteTime(HARC _harc); DWORD WINAPI _export TarGetAccessTime(HARC _harc); DWORD WINAPI _export TarGetCreateTime(HARC _harc); DWORD WINAPI _export TarGetCRC(HARC _harc); int WINAPI _export TarGetAttribute(HARC _harc); UINT WINAPI _export TarGetOSType(HARC _harc); BOOL WINAPI _export TarQueryFunctionList(const int _iFunction); BOOL WINAPI _export TarSetOwnerWindow(const HWND _hwnd); BOOL WINAPI _export TarClearOwnerWindow(void); BOOL WINAPI _export TarSetOwnerWindowEx(HWND _hwnd,ARCHIVERPROC *_lpArcProc); BOOL WINAPI _export TarKillOwnerWindowEx(HWND _hwnd); int WINAPI _export TarGetArchiveType(LPCSTR _szFileName); #ifdef __cplusplus } #endif #define WM_ARCEXTRACT "wm_arcextract" #define ARCEXTRACT_BEGIN 0 /* ŠY“–ƒtƒ@ƒCƒ‹‚̈—‚ÌŠJŽn */ #define ARCEXTRACT_INPROCESS 1 /* ŠY“–ƒtƒ@ƒCƒ‹‚Ì“WŠJ’† */ #define ARCEXTRACT_END 2 /* ˆ—I—¹AŠÖ˜Aƒƒ‚ƒŠ‚ðŠJ•ú */ #define ARCEXTRACT_OPEN 3 /* ŠY“–‘ŒÉ‚̈—‚ÌŠJŽn */ #define ARCEXTRACT_COPY 4 /* ƒ[ƒNƒtƒ@ƒCƒ‹‚Ì‘‚«–ß‚µ */ #define UNPACK_CONFIG_MODE 1 #define PACK_CONFIG_MODE 2 #define CHECKARCHIVE_RAPID 0 #define CHECKARCHIVE_BASIC 1 #define CHECKARCHIVE_FULLCRC 2 #if !defined(EXTRACT_FOUND_FILE) /* MODE (for ???OpenArchive) */ #define M_INIT_FILE_USE 0x00000001L #define M_REGARDLESS_INIT_FILE 0x00000002L #define M_CHECK_ALL_PATH 0x00000100L #define M_CHECK_FILENAME_ONLY 0x00000200L #define M_USE_DRIVE_LETTER 0x00001000L #define M_NOT_USE_DRIVE_LETTER 0x00002000L #define M_ERROR_MESSAGE_ON 0x00400000L #define M_ERROR_MESSAGE_OFF 0x00800000L #define M_ERROR_MESSAGE_ON 0x00400000L /* ƒGƒ‰[ƒƒbƒZ[ƒW‚ð•\ަ */ #define M_ERROR_MESSAGE_OFF 0x00800000L /* V‚ð•\ަ‚µ‚È‚¢ */ #define M_BAR_WINDOW_ON 0x01000000L #define M_BAR_WINDOW_OFF 0x02000000L #define EXTRACT_FOUND_FILE 0x40000000L #define EXTRACT_NAMED_FILE 0x80000000L #endif /* EXTRACT_FOUND_FILE */ #if !defined(ISARC_FUNCTION_START) #define ISARC_FUNCTION_START 0 #define ISARC 0 #define ISARC_GET_VERSION 1 #define ISARC_GET_CURSOR_INTERVAL 2 #define ISARC_SET_CURSOR_INTERVAL 3 #define ISARC_GET_BACK_GROUND_MODE 4 #define ISARC_SET_BACK_GROUND_MODE 5 #define ISARC_GET_CURSOR_MODE 6 #define ISARC_SET_CURSOR_MODE 7 #define ISARC_GET_RUNNING 8 #define ISARC_CHECK_ARCHIVE 16 #define ISARC_CONFIG_DIALOG 17 #define ISARC_GET_FILE_COUNT 18 #define ISARC_QUERY_FUNCTION_LIST 19 #define ISARC_HOUT 20 #define ISARC_STRUCTOUT 21 #define ISARC_GET_ARC_FILE_INFO 22 #define ISARC_OPEN_ARCHIVE 23 #define ISARC_CLOSE_ARCHIVE 24 #define ISARC_FIND_FIRST 25 #define ISARC_FIND_NEXT 26 #define ISARC_EXTRACT 27 #define ISARC_ADD 28 #define ISARC_MOVE 29 #define ISARC_DELETE 30 #define ISARC_SETOWNERWINDOW 31 /* UnlhaSetOwnerWindow */ #define ISARC_CLEAROWNERWINDOW 32 /* UnlhaClearOwnerWindow */ #define ISARC_SETOWNERWINDOWEX 33 /* UnlhaSetOwnerWindowEx */ #define ISARC_KILLOWNERWINDOWEX 34 /* UnlhaKillOwnerWindowEx */ #define ISARC_GET_ARC_FILE_NAME 40 #define ISARC_GET_ARC_FILE_SIZE 41 #define ISARC_GET_ARC_ORIGINAL_SIZE 42 #define ISARC_GET_ARC_COMPRESSED_SIZE 43 #define ISARC_GET_ARC_RATIO 44 #define ISARC_GET_ARC_DATE 45 #define ISARC_GET_ARC_TIME 46 #define ISARC_GET_ARC_OS_TYPE 47 #define ISARC_GET_ARC_IS_SFX_FILE 48 #define ISARC_GET_FILE_NAME 57 #define ISARC_GET_ORIGINAL_SIZE 58 #define ISARC_GET_COMPRESSED_SIZE 59 #define ISARC_GET_RATIO 60 #define ISARC_GET_DATE 61 #define ISARC_GET_TIME 62 #define ISARC_GET_CRC 63 #define ISARC_GET_ATTRIBUTE 64 #define ISARC_GET_OS_TYPE 65 #define ISARC_GET_METHOD 66 #define ISARC_GET_WRITE_TIME 67 #define ISARC_GET_CREATE_TIME 68 #define ISARC_GET_ACCESS_TIME 69 #define ISARC_GET_ORIGINAL_SIZE_EX 85 /* UnlhaGetOriginalSizeEx */ #define ISARC_GET_COMPRESSED_SIZE_EX 86 /* UnlhaGetCompressedSizeEx */ #define ISARC_FUNCTION_END 100 #endif /* ISARC_FUNCTION_START */ #ifndef FA_RDONLY /* Attribute */ #define FA_RDONLY 0x01 /* Read only attribute */ #define FA_HIDDEN 0x02 /* Hidden file */ #define FA_SYSTEM 0x04 /* System file */ #define FA_LABEL 0x08 /* Volume label */ #define FA_DIREC 0x10 /* Directory */ #define FA_ARCH 0x20 /* Archive */ #endif #ifndef ERROR_ARC_FILE_OPEN /* WARNING */ #define ERROR_DISK_SPACE 0x8005 #define ERROR_READ_ONLY 0x8006 #define ERROR_USER_SKIP 0x8007 #define ERROR_UNKNOWN_TYPE 0x8008 #define ERROR_METHOD 0x8009 #define ERROR_PASSWORD_FILE 0x800A #define ERROR_VERSION 0x800B #define ERROR_FILE_CRC 0x800C #define ERROR_FILE_OPEN 0x800D #define ERROR_MORE_FRESH 0x800E #define ERROR_NOT_EXIST 0x800F #define ERROR_ALREADY_EXIST 0x8010 #define ERROR_TOO_MANY_FILES 0x8011 /* ERROR */ #define ERROR_MAKEDIRECTORY 0x8012 #define ERROR_CANNOT_WRITE 0x8013 #define ERROR_HUFFMAN_CODE 0x8014 #define ERROR_COMMENT_HEADER 0x8015 #define ERROR_HEADER_CRC 0x8016 #define ERROR_HEADER_BROKEN 0x8017 #define ERROR_ARC_FILE_OPEN 0x8018 #define ERROR_NOT_ARC_FILE 0x8019 #define ERROR_CANNOT_READ 0x801A #define ERROR_FILE_STYLE 0x801B #define ERROR_COMMAND_NAME 0x801C #define ERROR_MORE_HEAP_MEMORY 0x801D #define ERROR_ENOUGH_MEMORY 0x801E #if !defined(ERROR_ALREADY_RUNNING) #define ERROR_ALREADY_RUNNING 0x801F #endif #define ERROR_USER_CANCEL 0x8020 #define ERROR_HARC_ISNOT_OPENED 0x8021 #define ERROR_NOT_SEARCH_MODE 0x8022 #define ERROR_NOT_SUPPORT 0x8023 #define ERROR_TIME_STAMP 0x8024 #define ERROR_TMP_OPEN 0x8025 #define ERROR_LONG_FILE_NAME 0x8026 #define ERROR_ARC_READ_ONLY 0x8027 #define ERROR_SAME_NAME_FILE 0x8028 #define ERROR_NOT_FIND_ARC_FILE 0x8029 #define ERROR_RESPONSE_READ 0x802A #define ERROR_NOT_FILENAME 0x802B #define ERROR_TMP_COPY 0x802C #define ERROR_EOF 0x802D #define ERROR_ADD_TO_LARC 0x802E #define ERROR_TMP_BACK_SPACE 0x802F #define ERROR_SHARING 0x8030 #define ERROR_NOT_FIND_FILE 0x8031 #define ERROR_LOG_FILE 0x8032 #define ERROR_NO_DEVICE 0x8033 #define ERROR_GET_ATTRIBUTES 0x8034 #define ERROR_SET_ATTRIBUTES 0x8035 #define ERROR_GET_INFORMATION 0x8036 #define ERROR_GET_POINT 0x8037 #define ERROR_SET_POINT 0x8038 #define ERROR_CONVERT_TIME 0x8039 #define ERROR_GET_TIME 0x803a #define ERROR_SET_TIME 0x803b #define ERROR_CLOSE_FILE 0x803c #define ERROR_HEAP_MEMORY 0x803d #define ERROR_HANDLE 0x803e #define ERROR_TIME_STAMP_RANGE 0x803f #define ERROR_END ERROR_TIME_STAMP_RANGE #endif /* ERROR_ARC_FILE_OPEN */ #define ARCHIVETYPE_NORMAL 0 #define ARCHIVETYPE_TAR 1 #define ARCHIVETYPE_TARGZ 2 #define ARCHIVETYPE_TARZ 3 #define ARCHIVETYPE_GZ 4 #define ARCHIVETYPE_Z 5 #define ARCHIVETYPE_TARBZ2 6 #define ARCHIVETYPE_BZ2 7 #define ARCHIVETYPE_CPIO 32 #define ARCHIVETYPE_CPIOGZ 32+4 #define ARCHIVETYPE_CPIOZ 32+5 #define ARCHIVETYPE_CPIOBZ2 32+7 #define ARCHIVETYPE_AR 48 #define ARCHIVETYPE_ARGZ 48+4 #define ARCHIVETYPE_ARZ 48+5 #define ARCHIVETYPE_ARBZ2 48+7 #endif // TAR32API_H macopix-1.7.4/src/codeconv.c0000644000076400007640000012700410622155403012651 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // codeconv.c // Character code conversion functions // originated from Sylpheed and Sylpheed-Gtk2 // *** See below copyright. *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2004 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "main.h" #include #include #include #include #include #if HAVE_LOCALE_H # include #endif #if HAVE_ICONV # include #endif #include "intl.h" #include "codeconv.h" typedef enum { JIS_ASCII, JIS_KANJI, JIS_HWKANA, JIS_AUXKANJI } JISState; #define SUBST_CHAR '_' #define ESC '\033' #define iseuckanji(c) \ (((c) & 0xff) >= 0xa1 && ((c) & 0xff) <= 0xfe) #define iseuchwkana1(c) \ (((c) & 0xff) == 0x8e) #define iseuchwkana2(c) \ (((c) & 0xff) >= 0xa1 && ((c) & 0xff) <= 0xdf) #define iseucaux(c) \ (((c) & 0xff) == 0x8f) #define issjiskanji1(c) \ ((((c) & 0xff) >= 0x81 && ((c) & 0xff) <= 0x9f) || \ (((c) & 0xff) >= 0xe0 && ((c) & 0xff) <= 0xfc)) #define issjiskanji2(c) \ ((((c) & 0xff) >= 0x40 && ((c) & 0xff) <= 0x7e) || \ (((c) & 0xff) >= 0x80 && ((c) & 0xff) <= 0xfc)) #define issjishwkana(c) \ (((c) & 0xff) >= 0xa1 && ((c) & 0xff) <= 0xdf) #define K_IN() \ if (state != JIS_KANJI) { \ *out++ = ESC; \ *out++ = '$'; \ *out++ = 'B'; \ state = JIS_KANJI; \ } #define K_OUT() \ if (state != JIS_ASCII) { \ *out++ = ESC; \ *out++ = '('; \ *out++ = 'B'; \ state = JIS_ASCII; \ } #define HW_IN() \ if (state != JIS_HWKANA) { \ *out++ = ESC; \ *out++ = '('; \ *out++ = 'I'; \ state = JIS_HWKANA; \ } #define AUX_IN() \ if (state != JIS_AUXKANJI) { \ *out++ = ESC; \ *out++ = '$'; \ *out++ = '('; \ *out++ = 'D'; \ state = JIS_AUXKANJI; \ } void conv_jistoeuc(gchar *outbuf, gint outlen, const gchar *inbuf) { const guchar *in = inbuf; guchar *out = outbuf; JISState state = JIS_ASCII; while (*in != '\0') { if (*in == ESC) { in++; if (*in == '$') { if (*(in + 1) == '@' || *(in + 1) == 'B') { state = JIS_KANJI; in += 2; } else if (*(in + 1) == '(' && *(in + 2) == 'D') { state = JIS_AUXKANJI; in += 3; } else { /* unknown escape sequence */ state = JIS_ASCII; } } else if (*in == '(') { if (*(in + 1) == 'B' || *(in + 1) == 'J') { state = JIS_ASCII; in += 2; } else if (*(in + 1) == 'I') { state = JIS_HWKANA; in += 2; } else { /* unknown escape sequence */ state = JIS_ASCII; } } else { /* unknown escape sequence */ state = JIS_ASCII; } } else if (*in == 0x0e) { state = JIS_HWKANA; in++; } else if (*in == 0x0f) { state = JIS_ASCII; in++; } else { switch (state) { case JIS_ASCII: *out++ = *in++; break; case JIS_KANJI: *out++ = *in++ | 0x80; if (*in == '\0') break; *out++ = *in++ | 0x80; break; case JIS_HWKANA: *out++ = 0x8e; *out++ = *in++ | 0x80; break; case JIS_AUXKANJI: *out++ = 0x8f; *out++ = *in++ | 0x80; if (*in == '\0') break; *out++ = *in++ | 0x80; break; } } } *out = '\0'; } #define JIS_HWDAKUTEN 0x5e #define JIS_HWHANDAKUTEN 0x5f static gint conv_jis_hantozen(guchar *outbuf, guchar jis_code, guchar sound_sym) { static guint16 h2z_tbl[] = { /* 0x20 - 0x2f */ 0x0000, 0x2123, 0x2156, 0x2157, 0x2122, 0x2126, 0x2572, 0x2521, 0x2523, 0x2525, 0x2527, 0x2529, 0x2563, 0x2565, 0x2567, 0x2543, /* 0x30 - 0x3f */ 0x213c, 0x2522, 0x2524, 0x2526, 0x2528, 0x252a, 0x252b, 0x252d, 0x252f, 0x2531, 0x2533, 0x2535, 0x2537, 0x2539, 0x253b, 0x253d, /* 0x40 - 0x4f */ 0x253f, 0x2541, 0x2544, 0x2546, 0x2548, 0x254a, 0x254b, 0x254c, 0x254d, 0x254e, 0x254f, 0x2552, 0x2555, 0x2558, 0x255b, 0x255e, /* 0x50 - 0x5f */ 0x255f, 0x2560, 0x2561, 0x2562, 0x2564, 0x2566, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x256d, 0x256f, 0x2573, 0x212b, 0x212c }; static guint16 dakuten_tbl[] = { /* 0x30 - 0x3f */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x252c, 0x252e, 0x2530, 0x2532, 0x2534, 0x2536, 0x2538, 0x253a, 0x253c, 0x253e, /* 0x40 - 0x4f */ 0x2540, 0x2542, 0x2545, 0x2547, 0x2549, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2550, 0x2553, 0x2556, 0x2559, 0x255c, 0x0000 }; static guint16 handakuten_tbl[] = { /* 0x4a - 0x4e */ 0x2551, 0x2554, 0x2557, 0x255a, 0x255d }; guint16 out_code; jis_code &= 0x7f; sound_sym &= 0x7f; if (jis_code < 0x21 || jis_code > 0x5f) return 0; if (sound_sym == JIS_HWDAKUTEN && jis_code >= 0x36 && jis_code <= 0x4e) { out_code = dakuten_tbl[jis_code - 0x30]; if (out_code != 0) { *outbuf = out_code >> 8; *(outbuf + 1) = out_code & 0xff; return 2; } } if (sound_sym == JIS_HWHANDAKUTEN && jis_code >= 0x4a && jis_code <= 0x4e) { out_code = handakuten_tbl[jis_code - 0x4a]; *outbuf = out_code >> 8; *(outbuf + 1) = out_code & 0xff; return 2; } out_code = h2z_tbl[jis_code - 0x20]; *outbuf = out_code >> 8; *(outbuf + 1) = out_code & 0xff; return 1; } void conv_euctojis(gchar *outbuf, gint outlen, const gchar *inbuf) { const guchar *in = inbuf; guchar *out = outbuf; JISState state = JIS_ASCII; while (*in != '\0') { if (isascii(*in)) { K_OUT(); *out++ = *in++; } else if (iseuckanji(*in)) { if (iseuckanji(*(in + 1))) { K_IN(); *out++ = *in++ & 0x7f; *out++ = *in++ & 0x7f; } else { K_OUT(); *out++ = SUBST_CHAR; in++; if (*in != '\0' && !isascii(*in)) { *out++ = SUBST_CHAR; in++; } } } else if (iseuchwkana1(*in)) { if (iseuchwkana2(*(in + 1))) { guchar jis_ch[2]; gint len; if (iseuchwkana1(*(in + 2)) && iseuchwkana2(*(in + 3))) len = conv_jis_hantozen (jis_ch, *(in + 1), *(in + 3)); else len = conv_jis_hantozen (jis_ch, *(in + 1), '\0'); if (len == 0) in += 2; else { K_IN(); in += len * 2; *out++ = jis_ch[0]; *out++ = jis_ch[1]; } } else { K_OUT(); in++; if (*in != '\0' && !isascii(*in)) { *out++ = SUBST_CHAR; in++; } } } else if (iseucaux(*in)) { in++; if (iseuckanji(*in) && iseuckanji(*(in + 1))) { AUX_IN(); *out++ = *in++ & 0x7f; *out++ = *in++ & 0x7f; } else { K_OUT(); if (*in != '\0' && !isascii(*in)) { *out++ = SUBST_CHAR; in++; if (*in != '\0' && !isascii(*in)) { *out++ = SUBST_CHAR; in++; } } } } else { K_OUT(); *out++ = SUBST_CHAR; in++; } } K_OUT(); *out = '\0'; } void conv_sjistoeuc(gchar *outbuf, gint outlen, const gchar *inbuf) { const guchar *in = inbuf; guchar *out = outbuf; while (*in != '\0') { if (isascii(*in)) { *out++ = *in++; } else if (issjiskanji1(*in)) { if (issjiskanji2(*(in + 1))) { guchar out1 = *in; guchar out2 = *(in + 1); guchar row; row = out1 < 0xa0 ? 0x70 : 0xb0; if (out2 < 0x9f) { out1 = (out1 - row) * 2 - 1; out2 -= out2 > 0x7f ? 0x20 : 0x1f; } else { out1 = (out1 - row) * 2; out2 -= 0x7e; } *out++ = out1 | 0x80; *out++ = out2 | 0x80; in += 2; } else { *out++ = SUBST_CHAR; in++; if (*in != '\0' && !isascii(*in)) { *out++ = SUBST_CHAR; in++; } } } else if (issjishwkana(*in)) { *out++ = 0x8e; *out++ = *in++; } else { *out++ = SUBST_CHAR; in++; } } *out = '\0'; } void conv_anytoeuc(gchar *outbuf, gint outlen, const gchar *inbuf) { switch (conv_guess_ja_encoding(inbuf)) { case C_ISO_2022_JP: conv_jistoeuc(outbuf, outlen, inbuf); break; case C_SHIFT_JIS: conv_sjistoeuc(outbuf, outlen, inbuf); break; default: strncpy2(outbuf, inbuf, outlen); break; } } #ifdef USE_GTK2 void conv_anytoutf8(gchar *outbuf, gint outlen, const gchar *inbuf) { #if HAVE_ICONV gchar *tmpstr = NULL; #endif /* HAVE_ICONV */ switch (conv_guess_ja_encoding(inbuf)) { #if HAVE_ICONV case C_ISO_2022_JP: tmpstr = conv_iconv_strdup(inbuf, CS_ISO_2022_JP, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); break; case C_SHIFT_JIS: tmpstr = conv_iconv_strdup(inbuf, CS_SHIFT_JIS, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); break; case C_EUC_JP: tmpstr = conv_iconv_strdup(inbuf, CS_EUC_JP, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); break; #endif /* HAVE_ICONV */ default: strncpy2(outbuf, inbuf, outlen); break; } } #endif void conv_anytojis(gchar *outbuf, gint outlen, const gchar *inbuf) { switch (conv_guess_ja_encoding(inbuf)) { case C_EUC_JP: conv_euctojis(outbuf, outlen, inbuf); break; default: strncpy2(outbuf, inbuf, outlen); break; } } static gchar valid_eucjp_tbl[][96] = { /* 0xa2a0 - 0xa2ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0 }, /* 0xa3a0 - 0xa3ff */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, /* 0xa4a0 - 0xa4ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* 0xa5a0 - 0xa5ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* 0xa6a0 - 0xa6ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* 0xa7a0 - 0xa7ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* 0xa8a0 - 0xa8ff */ { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }; static gboolean isprintableeuckanji(guchar c1, guchar c2) { if (c1 <= 0xa0 || c1 >= 0xf5) return FALSE; if (c2 <= 0xa0 || c2 == 0xff) return FALSE; if (c1 >= 0xa9 && c1 <= 0xaf) return FALSE; if (c1 >= 0xa2 && c1 <= 0xa8) return (gboolean)valid_eucjp_tbl[c1 - 0xa2][c2 - 0xa0]; if (c1 == 0xcf) { if (c2 >= 0xd4 && c2 <= 0xfe) return FALSE; } else if (c1 == 0xf4) { if (c2 >= 0xa7 && c2 <= 0xfe) return FALSE; } return TRUE; } void conv_unreadable_eucjp(gchar *str) { register guchar *p = str; while (*p != '\0') { if (isascii(*p)) { /* convert CR+LF -> LF */ if (*p == '\r' && *(p + 1) == '\n') memmove(p, p + 1, strlen(p)); /* printable 7 bit code */ p++; } else if (iseuckanji(*p)) { if (isprintableeuckanji(*p, *(p + 1))) { /* printable euc-jp code */ p += 2; } else { /* substitute unprintable code */ *p++ = SUBST_CHAR; if (*p != '\0') { if (isascii(*p)) p++; else *p++ = SUBST_CHAR; } } } else if (iseuchwkana1(*p)) { if (iseuchwkana2(*(p + 1))) /* euc-jp hankaku kana */ p += 2; else *p++ = SUBST_CHAR; } else if (iseucaux(*p)) { if (iseuckanji(*(p + 1)) && iseuckanji(*(p + 2))) { /* auxiliary kanji */ p += 3; } else *p++ = SUBST_CHAR; } else /* substitute unprintable 1 byte code */ *p++ = SUBST_CHAR; } } void conv_unreadable_8bit(gchar *str) { register guchar *p = str; while (*p != '\0') { /* convert CR+LF -> LF */ if (*p == '\r' && *(p + 1) == '\n') memmove(p, p + 1, strlen(p)); else if (!isascii(*p)) *p = SUBST_CHAR; p++; } } void conv_unreadable_latin(gchar *str) { register guchar *p = str; while (*p != '\0') { /* convert CR+LF -> LF */ if (*p == '\r' && *(p + 1) == '\n') memmove(p, p + 1, strlen(p)); else if ((*p & 0xff) >= 0x7f && (*p & 0xff) <= 0x9f) *p = SUBST_CHAR; p++; } } void conv_unreadable_locale(gchar *str) { switch (conv_get_current_charset()) { case C_US_ASCII: case C_ISO_8859_1: case C_ISO_8859_2: case C_ISO_8859_3: case C_ISO_8859_4: case C_ISO_8859_5: case C_ISO_8859_6: case C_ISO_8859_7: case C_ISO_8859_8: case C_ISO_8859_9: case C_ISO_8859_10: case C_ISO_8859_11: case C_ISO_8859_13: case C_ISO_8859_14: case C_ISO_8859_15: conv_unreadable_latin(str); break; case C_EUC_JP: conv_unreadable_eucjp(str); break; default: break; } } #define NCV '\0' void conv_mb_alnum(gchar *str) { static guchar char_tbl[] = { /* 0xa0 - 0xaf */ NCV, ' ', NCV, NCV, ',', '.', NCV, ':', ';', '?', '!', NCV, NCV, NCV, NCV, NCV, /* 0xb0 - 0xbf */ NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, /* 0xc0 - 0xcf */ NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, '(', ')', NCV, NCV, '[', ']', /* 0xd0 - 0xdf */ '{', '}', NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, '+', '-', NCV, NCV, /* 0xe0 - 0xef */ NCV, '=', NCV, '<', '>', NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV, NCV }; register guchar *p = str; register gint len; len = strlen(str); while (len > 1) { if (*p == 0xa3) { register guchar ch = *(p + 1); if (ch >= 0xb0 && ch <= 0xfa) { /* [a-zA-Z] */ *p = ch & 0x7f; p++; len--; memmove(p, p + 1, len); len--; } else { p += 2; len -= 2; } } else if (*p == 0xa1) { register guchar ch = *(p + 1); if (ch >= 0xa0 && ch <= 0xef && NCV != char_tbl[ch - 0xa0]) { *p = char_tbl[ch - 0xa0]; p++; len--; memmove(p, p + 1, len); len--; } else { p += 2; len -= 2; } } else if (iseuckanji(*p)) { p += 2; len -= 2; } else { p++; len--; } } } #ifdef USE_GTK2 #define REDUCE_STR(p, len) \ { \ p++; \ len -= 2; \ memmove(p, p + 2, len); \ len--; \ } #define SKIP_CHAR(p, len) \ { \ guchar *q = g_utf8_next_char(p);\ \ if (!q) \ break; \ else { \ len = len - (q - p); \ p = q; \ } \ } void conv_mb_alnum_utf8(gchar *str) { guchar *p = str, ch; gint len; len = strlen(str); while (len >= 3) { ch = *(p + 2); if (*p == 0xef) { if (*(p + 1) == 0xbc && *(p + 2) >= 0x81 && *(p + 2) <= 0xbd) { /* * ! # $ % & ( ) * + , . / * [0-9] : ; < = > ? @ * [A-Z] [ ] */ *p = ch - (0x81 - 0x21); REDUCE_STR(p, len); } else if (*(p + 1) == 0xbd && *(p + 2) >= 0x81 && *(p + 2) <= 0x9d) { /* [a-z] { | } */ *p = ch - (0x81 - 0x61); REDUCE_STR(p, len); } else SKIP_CHAR(p, len); } else if (*p == 0xe2 && *(p + 1) == 0x88 && *(p + 2) == 0x92) { *p = '-'; REDUCE_STR(p, len); } else if (*p == 0xe3 && *(p + 1) == 0x80 && *(p + 2) == 0x80) { *p = ' '; REDUCE_STR(p, len); } else SKIP_CHAR(p, len); } } #endif /* USE_GTK2 */ CharSet conv_guess_ja_encoding(const gchar *str) { const guchar *p = str; CharSet guessed = C_US_ASCII; while (*p != '\0') { if (*p == ESC && (*(p + 1) == '$' || *(p + 1) == '(')) { if (guessed == C_US_ASCII) return C_ISO_2022_JP; p += 2; } else if (isascii(*p)) { p++; } else if (iseuckanji(*p) && iseuckanji(*(p + 1))) { if (*p >= 0xfd && *p <= 0xfe) return C_EUC_JP; else if (guessed == C_SHIFT_JIS) { if ((issjiskanji1(*p) && issjiskanji2(*(p + 1))) || issjishwkana(*p)) guessed = C_SHIFT_JIS; else guessed = C_EUC_JP; } else guessed = C_EUC_JP; p += 2; } else if (issjiskanji1(*p) && issjiskanji2(*(p + 1))) { if (iseuchwkana1(*p) && iseuchwkana2(*(p + 1))) guessed = C_SHIFT_JIS; else return C_SHIFT_JIS; p += 2; } else if (issjishwkana(*p)) { guessed = C_SHIFT_JIS; p++; } else { p++; } } return guessed; } void conv_jistodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { conv_jistoeuc(outbuf, outlen, inbuf); conv_unreadable_eucjp(outbuf); } void conv_sjistodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { conv_sjistoeuc(outbuf, outlen, inbuf); conv_unreadable_eucjp(outbuf); } void conv_euctodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { strncpy2(outbuf, inbuf, outlen); conv_unreadable_eucjp(outbuf); } #ifdef USE_GTK2 void conv_jistoutf8(gchar *outbuf, gint outlen, const gchar *inbuf) { #if HAVE_ICONV gchar *tmpstr; tmpstr = conv_iconv_strdup(inbuf, CS_ISO_2022_JP, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); #else strncpy2(outbuf, inbuf, outlen); #endif /* HAVE_ICONV */ } void conv_sjistoutf8(gchar *outbuf, gint outlen, const gchar *inbuf) { #if HAVE_ICONV gchar *tmpstr; tmpstr = conv_iconv_strdup(inbuf, CS_SHIFT_JIS, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); #else strncpy2(outbuf, inbuf, outlen); #endif /* HAVE_ICONV */ } void conv_euctoutf8(gchar *outbuf, gint outlen, const gchar *inbuf) { #if HAVE_ICONV gchar *tmpstr; tmpstr = conv_iconv_strdup(inbuf, CS_EUC_JP, CS_UTF_8); strncpy2(outbuf, tmpstr, outlen); g_free(tmpstr); #else strncpy2(outbuf, inbuf, outlen); #endif /* HAVE_ICONV */ } #warning FIXME_GTK2 #if 0 void conv_anytodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { conv_anytoeuc(outbuf, outlen, inbuf); conv_unreadable_eucjp(outbuf); } #else void conv_anytodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { conv_anytoutf8(outbuf, outlen, inbuf); } #endif #else /* USE_GTK2 */ void conv_anytodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { conv_anytoeuc(outbuf, outlen, inbuf); conv_unreadable_eucjp(outbuf); } #endif /* USE_GTK2 */ void conv_ustodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { strncpy2(outbuf, inbuf, outlen); conv_unreadable_8bit(outbuf); } void conv_latintodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { strncpy2(outbuf, inbuf, outlen); conv_unreadable_latin(outbuf); } void conv_localetodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { strncpy2(outbuf, inbuf, outlen); conv_unreadable_locale(outbuf); } void conv_noconv(gchar *outbuf, gint outlen, const gchar *inbuf) { strncpy2(outbuf, inbuf, outlen); } CodeConverter *conv_code_converter_new(const gchar *charset) { CodeConverter *conv; conv = g_new0(CodeConverter, 1); #ifdef USE_GTK2 #warning FIXME_GTK2 #endif /* USE_GTK2 */ conv->code_conv_func = conv_get_code_conv_func(charset, NULL); conv->charset_str = g_strdup(charset); conv->charset = conv_get_charset_from_str(charset); return conv; } void conv_code_converter_destroy(CodeConverter *conv) { g_free(conv->charset_str); g_free(conv); } gint conv_convert(CodeConverter *conv, gchar *outbuf, gint outlen, const gchar *inbuf) { #if HAVE_ICONV if (conv->code_conv_func != conv_noconv) conv->code_conv_func(outbuf, outlen, inbuf); else { gchar *str; #ifdef USE_GTK2 #warning FIXME_GTK2 str = conv_iconv_strdup(inbuf, conv->charset_str, CS_UTF_8); #else str = conv_iconv_strdup(inbuf, conv->charset_str, NULL); #endif if (!str) return -1; else { strncpy2(outbuf, str, outlen); g_free(str); } } #else /* !HAVE_ICONV */ conv->code_conv_func(outbuf, outlen, inbuf); #endif return 0; } gchar *conv_codeset_strdup(const gchar *inbuf, const gchar *src_code, const gchar *dest_code) { gchar *buf; size_t len; CodeConvFunc conv_func; conv_func = conv_get_code_conv_func(src_code, dest_code); if (conv_func != conv_noconv) { len = (strlen(inbuf) + 1) * 3; buf = g_malloc(len); if (!buf) return NULL; conv_func(buf, len, inbuf); return g_realloc(buf, strlen(buf) + 1); } #if HAVE_ICONV return conv_iconv_strdup(inbuf, src_code, dest_code); #else return g_strdup(inbuf); #endif /* HAVE_ICONV */ } CodeConvFunc conv_get_code_conv_func(const gchar *src_charset_str, const gchar *dest_charset_str) { CodeConvFunc code_conv = conv_noconv; CharSet src_charset; CharSet dest_charset; if (!src_charset_str) src_charset = conv_get_current_charset(); else src_charset = conv_get_charset_from_str(src_charset_str); /* auto detection mode */ if (!src_charset_str && !dest_charset_str) { if (src_charset == C_EUC_JP || src_charset == C_SHIFT_JIS) return conv_anytodisp; else return conv_noconv; } #ifdef USE_GTK2 if (!dest_charset_str) dest_charset = C_UTF_8; else dest_charset = conv_get_charset_from_str(dest_charset_str); #else dest_charset = conv_get_charset_from_str(dest_charset_str); #endif if (dest_charset == C_US_ASCII) return conv_ustodisp; #ifdef USE_GTK2 #warning FIXME_GTK2 #if 0 else if (dest_charset == C_UTF_8 || (dest_charset == C_AUTO && conv_get_current_charset() == C_UTF_8)) return conv_noconv; #endif #else /* USE_GTK2 */ else if (dest_charset == C_UTF_8 || (dest_charset == C_AUTO && conv_get_current_charset() == C_UTF_8)) return conv_noconv; #endif /* USE_GTK2 */ switch (src_charset) { case C_ISO_2022_JP: case C_ISO_2022_JP_2: case C_ISO_2022_JP_3: if (dest_charset == C_AUTO && conv_get_current_charset() == C_EUC_JP) code_conv = conv_jistodisp; else if (dest_charset == C_EUC_JP) code_conv = conv_jistoeuc; #ifdef USE_GTK2 else if (dest_charset == C_AUTO && conv_get_current_charset() == C_UTF_8) code_conv = conv_jistoutf8; else if (dest_charset == C_UTF_8) code_conv = conv_jistoutf8; #endif break; case C_US_ASCII: if (dest_charset == C_AUTO) code_conv = conv_ustodisp; break; case C_ISO_8859_1: case C_ISO_8859_2: case C_ISO_8859_3: case C_ISO_8859_4: case C_ISO_8859_5: case C_ISO_8859_6: case C_ISO_8859_7: case C_ISO_8859_8: case C_ISO_8859_9: case C_ISO_8859_10: case C_ISO_8859_11: case C_ISO_8859_13: case C_ISO_8859_14: case C_ISO_8859_15: if (dest_charset == C_AUTO && (conv_get_current_charset() == src_charset || MB_CUR_MAX > 1)) code_conv = conv_latintodisp; break; case C_SHIFT_JIS: if (dest_charset == C_AUTO && conv_get_current_charset() == C_EUC_JP) code_conv = conv_sjistodisp; else if (dest_charset == C_EUC_JP) code_conv = conv_sjistoeuc; #ifdef USE_GTK2 else if (dest_charset == C_AUTO && conv_get_current_charset() == C_UTF_8) code_conv = conv_sjistoutf8; else if (dest_charset == C_UTF_8) code_conv = conv_sjistoutf8; #endif break; case C_EUC_JP: if (dest_charset == C_AUTO && conv_get_current_charset() == C_EUC_JP) code_conv = conv_euctodisp; else if (dest_charset == C_ISO_2022_JP || dest_charset == C_ISO_2022_JP_2 || dest_charset == C_ISO_2022_JP_3) code_conv = conv_euctojis; #ifdef USE_GTK2 else if (dest_charset == C_AUTO && conv_get_current_charset() == C_UTF_8) code_conv = conv_euctoutf8; else if (dest_charset == C_UTF_8) code_conv = conv_euctoutf8; #endif break; default: break; } return code_conv; } #if HAVE_ICONV gchar *conv_iconv_strdup(const gchar *inbuf, const gchar *src_code, const gchar *dest_code) { iconv_t cd; const gchar *inbuf_p; gchar *outbuf; gchar *outbuf_p; size_t in_size; size_t in_left; size_t out_size; size_t out_left; size_t n_conv; size_t len; if (!src_code) src_code = conv_get_outgoing_charset_str(); if (!dest_code) dest_code = conv_get_current_charset_str(); /* don't convert if current codeset is US-ASCII */ if (!strcasecmp(dest_code, CS_US_ASCII)) return g_strdup(inbuf); /* don't convert if src and dest codeset are identical */ if (!strcasecmp(src_code, dest_code)) return g_strdup(inbuf); cd = iconv_open(dest_code, src_code); if (cd == (iconv_t)-1) return NULL; inbuf_p = inbuf; in_size = strlen(inbuf); in_left = in_size; out_size = (in_size + 1) * 2; outbuf = g_malloc(out_size); outbuf_p = outbuf; out_left = out_size; #define EXPAND_BUF() \ { \ len = outbuf_p - outbuf; \ out_size *= 2; \ outbuf = g_realloc(outbuf, out_size); \ outbuf_p = outbuf + len; \ out_left = out_size - len; \ } while ((n_conv = iconv(cd, (ICONV_CONST gchar **)&inbuf_p, &in_left, &outbuf_p, &out_left)) == (size_t)-1) { if (EILSEQ == errno) { inbuf_p++; in_left--; if (out_left == 0) { EXPAND_BUF(); } *outbuf_p++ = SUBST_CHAR; out_left--; } else if (EINVAL == errno) { break; } else if (E2BIG == errno) { EXPAND_BUF(); } else { g_warning("conv_iconv_strdup(): %s\n", g_strerror(errno)); break; } } while ((n_conv = iconv(cd, NULL, NULL, &outbuf_p, &out_left)) == (size_t)-1) { if (E2BIG == errno) { EXPAND_BUF(); } else { g_warning("conv_iconv_strdup(): %s\n", g_strerror(errno)); break; } } #undef EXPAND_BUF len = outbuf_p - outbuf; outbuf = g_realloc(outbuf, len + 1); outbuf[len] = '\0'; iconv_close(cd); return outbuf; } #endif /* HAVE_ICONV */ static const struct { CharSet charset; gchar *const name; } charsets[] = { {C_US_ASCII, CS_US_ASCII}, {C_US_ASCII, CS_ANSI_X3_4_1968}, {C_UTF_8, CS_UTF_8}, {C_UTF_7, CS_UTF_7}, {C_ISO_8859_1, CS_ISO_8859_1}, {C_ISO_8859_2, CS_ISO_8859_2}, {C_ISO_8859_3, CS_ISO_8859_3}, {C_ISO_8859_4, CS_ISO_8859_4}, {C_ISO_8859_5, CS_ISO_8859_5}, {C_ISO_8859_6, CS_ISO_8859_6}, {C_ISO_8859_7, CS_ISO_8859_7}, {C_ISO_8859_8, CS_ISO_8859_8}, {C_ISO_8859_9, CS_ISO_8859_9}, {C_ISO_8859_10, CS_ISO_8859_10}, {C_ISO_8859_11, CS_ISO_8859_11}, {C_ISO_8859_13, CS_ISO_8859_13}, {C_ISO_8859_14, CS_ISO_8859_14}, {C_ISO_8859_15, CS_ISO_8859_15}, {C_BALTIC, CS_BALTIC}, {C_CP1250, CS_CP1250}, {C_CP1251, CS_CP1251}, {C_CP1252, CS_CP1252}, {C_CP1253, CS_CP1253}, {C_CP1254, CS_CP1254}, {C_CP1255, CS_CP1255}, {C_CP1256, CS_CP1256}, {C_CP1257, CS_CP1257}, {C_CP1258, CS_CP1258}, {C_WINDOWS_1250, CS_WINDOWS_1250}, {C_WINDOWS_1251, CS_WINDOWS_1251}, {C_WINDOWS_1252, CS_WINDOWS_1252}, {C_WINDOWS_1253, CS_WINDOWS_1253}, {C_WINDOWS_1254, CS_WINDOWS_1254}, {C_WINDOWS_1255, CS_WINDOWS_1255}, {C_WINDOWS_1256, CS_WINDOWS_1256}, {C_WINDOWS_1257, CS_WINDOWS_1257}, {C_WINDOWS_1258, CS_WINDOWS_1258}, {C_KOI8_R, CS_KOI8_R}, {C_KOI8_T, CS_KOI8_T}, {C_KOI8_U, CS_KOI8_U}, {C_ISO_2022_JP, CS_ISO_2022_JP}, {C_ISO_2022_JP_2, CS_ISO_2022_JP_2}, {C_ISO_2022_JP_3, CS_ISO_2022_JP_3}, {C_EUC_JP, CS_EUC_JP}, {C_EUC_JP, CS_EUCJP}, {C_SHIFT_JIS, CS_SHIFT_JIS}, {C_SHIFT_JIS, CS_SHIFT__JIS}, {C_SHIFT_JIS, CS_SJIS}, {C_ISO_2022_KR, CS_ISO_2022_KR}, {C_EUC_KR, CS_EUC_KR}, {C_ISO_2022_CN, CS_ISO_2022_CN}, {C_EUC_CN, CS_EUC_CN}, {C_GB2312, CS_GB2312}, {C_GBK, CS_GBK}, {C_EUC_TW, CS_EUC_TW}, {C_BIG5, CS_BIG5}, {C_BIG5_HKSCS, CS_BIG5_HKSCS}, {C_TIS_620, CS_TIS_620}, {C_WINDOWS_874, CS_WINDOWS_874}, {C_GEORGIAN_PS, CS_GEORGIAN_PS}, {C_TCVN5712_1, CS_TCVN5712_1}, }; static const struct { gchar *const locale; CharSet charset; CharSet out_charset; } locale_table[] = { {"ja_JP.eucJP" , C_EUC_JP , C_ISO_2022_JP}, {"ja_JP.EUC-JP" , C_EUC_JP , C_ISO_2022_JP}, {"ja_JP.EUC" , C_EUC_JP , C_ISO_2022_JP}, {"ja_JP.ujis" , C_EUC_JP , C_ISO_2022_JP}, {"ja_JP.SJIS" , C_SHIFT_JIS , C_ISO_2022_JP}, {"ja_JP.JIS" , C_ISO_2022_JP , C_ISO_2022_JP}, {"ja_JP" , C_EUC_JP , C_ISO_2022_JP}, {"ko_KR.EUC-KR" , C_EUC_KR , C_EUC_KR}, {"ko_KR" , C_EUC_KR , C_EUC_KR}, {"zh_CN.GB2312" , C_GB2312 , C_GB2312}, {"zh_CN.GBK" , C_GBK , C_GB2312}, {"zh_CN" , C_GB2312 , C_GB2312}, {"zh_HK" , C_BIG5_HKSCS , C_BIG5_HKSCS}, {"zh_TW.eucTW" , C_EUC_TW , C_BIG5}, {"zh_TW.EUC-TW" , C_EUC_TW , C_BIG5}, {"zh_TW.Big5" , C_BIG5 , C_BIG5}, {"zh_TW" , C_BIG5 , C_BIG5}, {"ru_RU.KOI8-R" , C_KOI8_R , C_KOI8_R}, {"ru_RU.KOI8R" , C_KOI8_R , C_KOI8_R}, {"ru_RU.CP1251" , C_WINDOWS_1251, C_KOI8_R}, {"ru_RU" , C_ISO_8859_5 , C_KOI8_R}, {"tg_TJ" , C_KOI8_T , C_KOI8_T}, {"ru_UA" , C_KOI8_U , C_KOI8_U}, {"uk_UA.CP1251" , C_WINDOWS_1251, C_KOI8_U}, {"uk_UA" , C_KOI8_U , C_KOI8_U}, {"be_BY" , C_WINDOWS_1251, C_WINDOWS_1251}, {"bg_BG" , C_WINDOWS_1251, C_WINDOWS_1251}, {"yi_US" , C_WINDOWS_1255, C_WINDOWS_1255}, {"af_ZA" , C_ISO_8859_1 , C_ISO_8859_1}, {"br_FR" , C_ISO_8859_1 , C_ISO_8859_1}, {"ca_ES" , C_ISO_8859_1 , C_ISO_8859_1}, {"da_DK" , C_ISO_8859_1 , C_ISO_8859_1}, {"de_AT" , C_ISO_8859_1 , C_ISO_8859_1}, {"de_BE" , C_ISO_8859_1 , C_ISO_8859_1}, {"de_CH" , C_ISO_8859_1 , C_ISO_8859_1}, {"de_DE" , C_ISO_8859_1 , C_ISO_8859_1}, {"de_LU" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_AU" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_BW" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_CA" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_DK" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_GB" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_HK" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_IE" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_NZ" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_PH" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_SG" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_US" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_ZA" , C_ISO_8859_1 , C_ISO_8859_1}, {"en_ZW" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_AR" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_BO" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_CL" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_CO" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_CR" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_DO" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_EC" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_ES" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_GT" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_HN" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_MX" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_NI" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_PA" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_PE" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_PR" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_PY" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_SV" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_US" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_UY" , C_ISO_8859_1 , C_ISO_8859_1}, {"es_VE" , C_ISO_8859_1 , C_ISO_8859_1}, {"et_EE" , C_ISO_8859_1 , C_ISO_8859_1}, {"eu_ES" , C_ISO_8859_1 , C_ISO_8859_1}, {"fi_FI" , C_ISO_8859_1 , C_ISO_8859_1}, {"fo_FO" , C_ISO_8859_1 , C_ISO_8859_1}, {"fr_BE" , C_ISO_8859_1 , C_ISO_8859_1}, {"fr_CA" , C_ISO_8859_1 , C_ISO_8859_1}, {"fr_CH" , C_ISO_8859_1 , C_ISO_8859_1}, {"fr_FR" , C_ISO_8859_1 , C_ISO_8859_1}, {"fr_LU" , C_ISO_8859_1 , C_ISO_8859_1}, {"ga_IE" , C_ISO_8859_1 , C_ISO_8859_1}, {"gl_ES" , C_ISO_8859_1 , C_ISO_8859_1}, {"gv_GB" , C_ISO_8859_1 , C_ISO_8859_1}, {"id_ID" , C_ISO_8859_1 , C_ISO_8859_1}, {"is_IS" , C_ISO_8859_1 , C_ISO_8859_1}, {"it_CH" , C_ISO_8859_1 , C_ISO_8859_1}, {"it_IT" , C_ISO_8859_1 , C_ISO_8859_1}, {"kl_GL" , C_ISO_8859_1 , C_ISO_8859_1}, {"kw_GB" , C_ISO_8859_1 , C_ISO_8859_1}, {"ms_MY" , C_ISO_8859_1 , C_ISO_8859_1}, {"nl_BE" , C_ISO_8859_1 , C_ISO_8859_1}, {"nl_NL" , C_ISO_8859_1 , C_ISO_8859_1}, {"nn_NO" , C_ISO_8859_1 , C_ISO_8859_1}, {"no_NO" , C_ISO_8859_1 , C_ISO_8859_1}, {"oc_FR" , C_ISO_8859_1 , C_ISO_8859_1}, {"pt_BR" , C_ISO_8859_1 , C_ISO_8859_1}, {"pt_PT" , C_ISO_8859_1 , C_ISO_8859_1}, {"sq_AL" , C_ISO_8859_1 , C_ISO_8859_1}, {"sv_FI" , C_ISO_8859_1 , C_ISO_8859_1}, {"sv_SE" , C_ISO_8859_1 , C_ISO_8859_1}, {"tl_PH" , C_ISO_8859_1 , C_ISO_8859_1}, {"uz_UZ" , C_ISO_8859_1 , C_ISO_8859_1}, {"wa_BE" , C_ISO_8859_1 , C_ISO_8859_1}, {"bs_BA" , C_ISO_8859_2 , C_ISO_8859_2}, {"cs_CZ" , C_ISO_8859_2 , C_ISO_8859_2}, {"hr_HR" , C_ISO_8859_2 , C_ISO_8859_2}, {"hu_HU" , C_ISO_8859_2 , C_ISO_8859_2}, {"pl_PL" , C_ISO_8859_2 , C_ISO_8859_2}, {"ro_RO" , C_ISO_8859_2 , C_ISO_8859_2}, {"sk_SK" , C_ISO_8859_2 , C_ISO_8859_2}, {"sl_SI" , C_ISO_8859_2 , C_ISO_8859_2}, {"sr_YU@cyrillic" , C_ISO_8859_5 , C_ISO_8859_5}, {"sr_YU" , C_ISO_8859_2 , C_ISO_8859_2}, {"mt_MT" , C_ISO_8859_3 , C_ISO_8859_3}, {"lt_LT.iso88594" , C_ISO_8859_4 , C_ISO_8859_4}, {"lt_LT.ISO8859-4" , C_ISO_8859_4 , C_ISO_8859_4}, {"lt_LT.ISO_8859-4" , C_ISO_8859_4 , C_ISO_8859_4}, {"lt_LT" , C_ISO_8859_13 , C_ISO_8859_13}, {"mk_MK" , C_ISO_8859_5 , C_ISO_8859_5}, {"ar_AE" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_BH" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_DZ" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_EG" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_IQ" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_JO" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_KW" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_LB" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_LY" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_MA" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_OM" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_QA" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_SA" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_SD" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_SY" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_TN" , C_ISO_8859_6 , C_ISO_8859_6}, {"ar_YE" , C_ISO_8859_6 , C_ISO_8859_6}, {"el_GR" , C_ISO_8859_7 , C_ISO_8859_7}, {"he_IL" , C_ISO_8859_8 , C_ISO_8859_8}, {"iw_IL" , C_ISO_8859_8 , C_ISO_8859_8}, {"tr_TR" , C_ISO_8859_9 , C_ISO_8859_9}, {"lv_LV" , C_ISO_8859_13 , C_ISO_8859_13}, {"mi_NZ" , C_ISO_8859_13 , C_ISO_8859_13}, {"cy_GB" , C_ISO_8859_14 , C_ISO_8859_14}, {"ar_IN" , C_UTF_8 , C_UTF_8}, {"en_IN" , C_UTF_8 , C_UTF_8}, {"se_NO" , C_UTF_8 , C_UTF_8}, {"ta_IN" , C_UTF_8 , C_UTF_8}, {"te_IN" , C_UTF_8 , C_UTF_8}, {"ur_PK" , C_UTF_8 , C_UTF_8}, {"th_TH" , C_TIS_620 , C_TIS_620}, /* {"th_TH" , C_WINDOWS_874}, */ /* {"th_TH" , C_ISO_8859_11}, */ {"ka_GE" , C_GEORGIAN_PS , C_GEORGIAN_PS}, {"vi_VN.TCVN" , C_TCVN5712_1 , C_TCVN5712_1}, {"C" , C_US_ASCII , C_US_ASCII}, {"POSIX" , C_US_ASCII , C_US_ASCII}, {"ANSI_X3.4-1968" , C_US_ASCII , C_US_ASCII}, }; static GHashTable *conv_get_charset_to_str_table(void) { static GHashTable *table; gint i; if (table) return table; table = g_hash_table_new(NULL, g_direct_equal); for (i = 0; i < sizeof(charsets) / sizeof(charsets[0]); i++) { if (g_hash_table_lookup(table, GUINT_TO_POINTER(charsets[i].charset)) == NULL) { g_hash_table_insert (table, GUINT_TO_POINTER(charsets[i].charset), charsets[i].name); } } return table; } static GHashTable *conv_get_charset_from_str_table(void) { static GHashTable *table; gint i; if (table) return table; table = g_hash_table_new(str_case_hash, str_case_equal); for (i = 0; i < sizeof(charsets) / sizeof(charsets[0]); i++) { g_hash_table_insert(table, charsets[i].name, GUINT_TO_POINTER(charsets[i].charset)); } return table; } const gchar *conv_get_charset_str(CharSet charset) { GHashTable *table; table = conv_get_charset_to_str_table(); return g_hash_table_lookup(table, GUINT_TO_POINTER(charset)); } CharSet conv_get_charset_from_str(const gchar *charset) { GHashTable *table; if (!charset) return C_AUTO; table = conv_get_charset_from_str_table(); return GPOINTER_TO_UINT(g_hash_table_lookup(table, charset)); } CharSet conv_get_current_charset(void) { static CharSet cur_charset = -1; const gchar *cur_locale; const gchar *p; gint i; if (cur_charset != -1) return cur_charset; cur_locale = conv_get_current_locale(); if (!cur_locale) { cur_charset = C_US_ASCII; return cur_charset; } if (my_strcasestr(cur_locale, "UTF-8")) { cur_charset = C_UTF_8; return cur_charset; } if ((p = (gchar *)my_strcasestr(cur_locale, "@euro")) && p[5] == '\0') { cur_charset = C_ISO_8859_15; return cur_charset; } for (i = 0; i < sizeof(locale_table) / sizeof(locale_table[0]); i++) { const gchar *p; /* "ja_JP.EUC" matches with "ja_JP.eucJP", "ja_JP.EUC" and "ja_JP". "ja_JP" matches with "ja_JP.xxxx" and "ja" */ if (!strncasecmp(cur_locale, locale_table[i].locale, strlen(locale_table[i].locale))) { cur_charset = locale_table[i].charset; return cur_charset; } else if ((p = strchr(locale_table[i].locale, '_')) && !strchr(p + 1, '.')) { if (strlen(cur_locale) == 2 && !strncasecmp(cur_locale, locale_table[i].locale, 2)) { cur_charset = locale_table[i].charset; return cur_charset; } } } cur_charset = C_AUTO; return cur_charset; } const gchar *conv_get_current_charset_str(void) { static const gchar *codeset = NULL; if (!codeset) codeset = conv_get_charset_str(conv_get_current_charset()); return codeset ? codeset : CS_US_ASCII; } CharSet conv_get_outgoing_charset(void) { static CharSet out_charset = -1; const gchar *cur_locale; const gchar *p; gint i; if (out_charset != -1) return out_charset; cur_locale = conv_get_current_locale(); if (!cur_locale) { out_charset = C_AUTO; return out_charset; } if ((p = (gchar *)my_strcasestr(cur_locale, "@euro")) && p[5] == '\0') { out_charset = C_ISO_8859_15; return out_charset; } for (i = 0; i < sizeof(locale_table) / sizeof(locale_table[0]); i++) { const gchar *p; if (!strncasecmp(cur_locale, locale_table[i].locale, strlen(locale_table[i].locale))) { out_charset = locale_table[i].out_charset; break; } else if ((p = strchr(locale_table[i].locale, '_')) && !strchr(p + 1, '.')) { if (strlen(cur_locale) == 2 && !strncasecmp(cur_locale, locale_table[i].locale, 2)) { out_charset = locale_table[i].out_charset; break; } } } #if !HAVE_ICONV /* encoding conversion without iconv() is only supported on Japanese locale for now */ if (out_charset == C_ISO_2022_JP) return out_charset; else return conv_get_current_charset(); #endif return out_charset; } const gchar *conv_get_outgoing_charset_str(void) { CharSet out_charset; const gchar *str; /* if (prefs_common.outgoing_charset) { if (!isalpha((guchar)prefs_common.outgoing_charset[0])) { g_free(prefs_common.outgoing_charset); prefs_common.outgoing_charset = g_strdup(CS_AUTO); } else if (strcmp(prefs_common.outgoing_charset, CS_AUTO) != 0) return prefs_common.outgoing_charset; } */ out_charset = conv_get_outgoing_charset(); str = conv_get_charset_str(out_charset); return str ? str : CS_US_ASCII; } gboolean conv_is_multibyte_encoding(CharSet encoding) { switch (encoding) { case C_EUC_JP: case C_EUC_KR: case C_EUC_TW: case C_EUC_CN: case C_ISO_2022_JP: case C_ISO_2022_JP_2: case C_ISO_2022_JP_3: case C_ISO_2022_KR: case C_ISO_2022_CN: case C_SHIFT_JIS: case C_GB2312: case C_BIG5: case C_UTF_8: case C_UTF_7: return TRUE; default: return FALSE; } } const gchar *conv_get_current_locale(void) { const gchar *cur_locale; cur_locale = g_getenv("LC_ALL"); if (!cur_locale) cur_locale = g_getenv("LC_CTYPE"); if (!cur_locale) cur_locale = g_getenv("LANG"); if (!cur_locale) cur_locale = setlocale(LC_CTYPE, NULL); return cur_locale; } #ifdef USE_BIFF void conv_unmime_header_overwrite(gchar *str) { gchar *buf; gint buflen; CharSet cur_charset; #ifdef USE_GTK2 const gchar *locale; #endif cur_charset = conv_get_current_charset(); #ifdef USE_GTK2 #warning FIXME_GTK2 /* Should we always ensure to convert? */ locale = conv_get_current_locale(); if (locale && !strncasecmp(locale, "ja", 2)) { #else if (cur_charset == C_EUC_JP) { #endif buflen = strlen(str) * 2 + 1; Xalloca(buf, buflen, return); conv_anytodisp(buf, buflen, str); unmime_header(str, buf); } else { buflen = strlen(str) + 1; Xalloca(buf, buflen, return); unmime_header(buf, str); strncpy2(str, buf, buflen); } } void conv_unmime_header(gchar *outbuf, gint outlen, const gchar *str) { CharSet cur_charset; #ifdef USE_GTK2 const gchar *locale; gchar *tmp; #endif cur_charset = conv_get_current_charset(); #ifdef USE_GTK2 #warning FIXME_GTK2 /* Should we always ensure to convert? */ locale = conv_get_current_locale(); if (locale && !strncasecmp(locale, "ja", 2)) { #else if (cur_charset == C_EUC_JP) { #endif gchar *buf; gint buflen; buflen = strlen(str) * 2 + 1; Xalloca(buf, buflen, return); conv_anytodisp(buf, buflen, str); unmime_header(outbuf, buf); #ifdef USE_GTK2 } else { unmime_header(outbuf, str); if (outbuf && !g_utf8_validate(outbuf, -1, NULL)) { tmp = conv_codeset_strdup (outbuf, conv_get_current_charset_str(), CS_UTF_8); if (tmp) { strncpy(outbuf, tmp, outlen-1); g_free(tmp); } } } #else } else unmime_header(outbuf, str); #endif } #define MAX_LINELEN 76 #define MAX_HARD_LINELEN 996 #define MIMESEP_BEGIN "=?" #define MIMESEP_END "?=" #define B64LEN(len) ((len) / 3 * 4 + ((len) % 3 ? 4 : 0)) #define LBREAK_IF_REQUIRED(cond, is_plain_text) \ { \ if (len - (destp - (guchar *)dest) < MAX_LINELEN + 2) { \ *destp = '\0'; \ return; \ } \ \ if ((cond) && *srcp) { \ if (destp > (guchar *)dest && left < MAX_LINELEN - 1) { \ if (isspace(*(destp - 1))) \ destp--; \ else if (is_plain_text && isspace(*srcp)) \ srcp++; \ if (*srcp) { \ *destp++ = '\n'; \ *destp++ = ' '; \ left = MAX_LINELEN - 1; \ } \ } \ } \ } #undef LBREAK_IF_REQUIRED #endif // USE_BIFF guint str_case_hash(gconstpointer key) { const gchar *p = key; guint h = *p; if (h) { h = tolower(h); for (p += 1; *p != '\0'; p++) h = (h << 5) - h + tolower(*p); } return h; } gint str_case_equal(gconstpointer v, gconstpointer v2) { return strcasecmp((const gchar *)v, (const gchar *)v2) == 0; } gchar *strncpy2(gchar *dest, const gchar *src, size_t n) { register gchar c; gchar *s = dest; do { if (--n == 0) { *dest = '\0'; return s; } c = *src++; *dest++ = c; } while (c != '\0'); /* don't do zero fill */ return s; } char *my_strcasestr(register char *s,const char *find) { register char c, sc; register size_t len; if ((c = *find++) != 0) { len = strlen(find); do { do { if ((sc = *s++) == 0) return (NULL); } while (sc != c); } while (strncasecmp(s, find, len) != 0); s--; } return ((char *) s); } macopix-1.7.4/src/gui.c0000644000076400007640000201250011030075644011633 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // gui.c // Constraction & Management of Graphical User Interfaces // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #include #ifdef USE_WIN32 #include #define usleep(x) g_usleep(x) #endif #if HAVE_SYS_UTSNAME_H #include #endif #include //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ POP passwordÊѹ¹ÍÑ typedef struct{ GtkWidget *dialog; GtkWidget *entry; }confPopPass; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¥Õ¥©¥ó¥ÈÊѹ¹ÍÑ typedef struct{ gchar *fn; GtkFontSelectionDialog *fsd; GtkWidget *entry; }confFont; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¿§Êѹ¹ÍÑ typedef struct{ GdkColor *color; #ifdef USE_CAIRO guint16 alpha; #endif GtkColorSelectionDialog *csd; GtkWidget *button; gboolean update; }confColor; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ PixmapÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; int i_pix; gboolean update; }confChangePixmap; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¤Î¤Ã¤«¤êPixmap»ØÄêÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gchar *filename; gboolean update; }confNkrChangePixmap; #endif #ifdef USE_BIFF //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ PixmapÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confChangeBiffPixmap; #endif #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ TargetÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; int i_cat; int i_tgt; gboolean update; }confChangeTgt; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Targetºï½üÍÑ typedef struct{ GtkWidget *dd; gboolean update; }confDelTgt; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ CategoryÄɲÃ/ºï½üÍÑ typedef struct{ GtkWidget *pd; gint dest_cat; gboolean update; }confCat; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ CategoryµÛ¼ýÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confMergeCat; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¥á¥Ë¥å¡¼ÁªÂòÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gint mode; }confSelectMenu; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ PixmapÄɲÃÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confAddPixmap; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¥Õ¥¡¥¤¥ëÊݸ¾å½ñ¤­³ÎǧÍÑ typedef struct{ GtkWidget *dialog; gboolean update; }confSaveOther; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¥Æ¥ó¥Ý¥é¥ê¥Ç¥£¥ì¥¯¥È¥ê¤Îºï½ü typedef struct{ GtkWidget *dialog; gboolean update; }confUnlink; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ ¥ê¥ê¡¼¥¹ÍÑ¥Õ¥¡¥¤¥ëÊݸÍÑ typedef struct{ GtkWidget *dialog; GtkWidget *fdialog; GtkWidget *copyright_entry; GtkWidget *name_entry; GtkWidget *code_entry; GtkWidget *clk_font_check; GtkWidget *bal_font_check; GtkWidget *clk_color_check; GtkWidget *bal_color_check; gboolean update; gchar *new_copyright; gchar *new_name; gchar *new_code; gboolean clk_font_flag; gboolean bal_font_flag; gboolean clk_color_flag; gboolean bal_color_flag; }confSaveReleaseMascot; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Pixmapºï½üÍÑ typedef struct{ GtkWidget *dd; gint del_pix; gint hit_ptn; gint hit_frm; gboolean update; }confDelPixmap; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ FrameÄɲÃ/ºï½üÍÑ typedef struct{ GtkWidget *fd; gint dest_frm; gboolean update; }confFrame; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ PatternÄɲÃ/ºï½üÍÑ typedef struct{ GtkWidget *pd; gint dest_ptn; gboolean update; }confPattern; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Pattern¥³¥Ô¡¼ÍÑ typedef struct{ GtkWidget *pd; gint from_ptn; gint dest_ptn; gboolean update; }confPatternCopy; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ MascotºîÀ®ÍÑ typedef struct{ GtkWidget *dialog; #ifndef __GTK_FILE_CHOOSER_H__ GtkFileSelection *fs; #endif gchar *mascot_file; gchar *image_file; gchar *copyright; gboolean update; }confNewMascot; //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Click SoundÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; gint i_ptn; }confChangeClickSound; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Duet ¥¢¥Ë¥áÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; gint i_ptn; }confChangeDuetTgt; #endif #ifdef USE_BIFF //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Biff SoundÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confChangeBiffSound; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Mail»²¾È¥Õ¥¡¥¤¥ëÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confMailFile; #endif //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ Mailer¥³¥Þ¥ó¥ÉÊѹ¹ÍÑ #ifndef __GTK_FILE_CHOOSER_H__ typedef struct{ GtkFileSelection *fs; gboolean update; }confMailer; #endif #endif // USE_BIFF //Callback¼õ¤±ÅϤ·ÍÑÊú¤­¹ç¤ï¤»¹½Â¤ÂÎ typedef struct{ GtkWidget *dialog; GtkWidget *auto_check; gchar *filename; gboolean flag_ow; gboolean flag_auto; }consType; // *** GLOBAL ARGUMENT *** extern GtkWidget *win_main, *clock_main, *balloon_main, *PopupMenu; #ifdef USE_WIN32 extern GtkWidget *win_sdw, *clock_fg, *balloon_fg; #endif #ifdef USE_BIFF extern GtkWidget *biff_pix; #endif extern gint window_x, window_y; extern typMascot *Mascot; extern gboolean flag_balloon; extern gchar* to_utf8(); extern gchar* to_locale(); extern gchar* all_random_menu_mascot_file(); extern void ReadMenu(); extern void SaveMenu(); extern void SaveRC(); extern void SaveDefMenu(); extern void SaveMascot(); extern void SetFontForReleaseData(); extern void SetColorForReleaseData(); extern void InitMascot(); extern void ReadMascot(); extern gchar* FullPathMascotFile(); extern gchar* FullPathPixmapFile(); extern gchar* FullPathSoundFile(); extern gchar* ReadMascotName(); extern void ScanMenu(); extern void LoadPixmaps(); extern void InitComposite(); #ifdef USE_BIFF extern void LoadBiffPixmap(); extern void remap_biff_pix(); #endif extern void DrawMascot0(); extern void DrawMascot(); extern void DrawMascotWithDigit(); extern gboolean TestLoadPixmaps(); extern void MoveMascot(); extern int MoveToFocus(); extern void ReInitGC(); extern void clock_update(); extern void copy_file(); #ifdef USE_COMMON extern gboolean check_common_dir2(); #endif extern gchar* get_win_home(); #ifdef USE_WIN32 extern gchar* WindowsVersion(); #endif extern gchar* my_dirname(); extern gchar* my_basename(); extern gboolean my_main_iteration(); extern void my_signal_connect(); extern void sound_play(); #ifdef USE_BIFF extern gint SetMailChecker(); extern gchar* set_mhdir(); #endif // USE_BIFF extern void NkrSave(); extern void NkrRead(); #ifdef USE_UNLHA32 extern gchar* unlha_menu(); #endif #if defined(USE_GTAR) || defined(USE_TAR32) extern gchar* untar_menu(); #endif //#if GTK_CHECK_VERSION(2,10,0) #ifdef __GTK_STATUS_ICON_H__ extern void trayicon_show(); extern void trayicon_hide(); extern void trayicon_destroy(); #endif #ifdef __GTK_STOCK_H__ extern GtkWidget* gtkut_button_new_from_stock(); #endif extern void DoSysBalloon(); // DnD extern void signal_drag_data_received_smenu(); #if defined(USE_GTK2) && !defined(USE_WIN32) extern gchar* GetCurrentWMName(); #endif // *** GLOBAL ARGUMENT *** #ifdef __GTK_TOOLTIP_H__ GtkTooltip *tooltip; #else GtkTooltips *tooltip; #endif typMascot tmp_mascot; gchar *tmp_pixfile[MAX_PIXMAP]; gboolean flag_make_pattern_list[MAX_ANIME_PATTERN]; gboolean flag_make_frame_list[MAX_ANIME_PATTERN]; gboolean flag_make_cat_list[MAX_MENU_CATEGORY]; gboolean flag_make_tgt_list[MAX_MENU_CATEGORY]; gint selected_smenu; // Need to Initialize gboolean flagChildDialog; gboolean flag_make_pixmap_list; gint pattern_num; // Prototype of Functions in this file void MenuSaveRC(); void MenuSaveMascot(); void MenuSaveDefMenu(); void MenuDelDefMenu(); void MenuSaveAll(); void MoveTmpDataRC(); void MoveTmpDataMascot(); void MoveTmpDataMenu(); static void conf_change(); #ifndef __GTK_COLOR_BUTTON_H__ void change_bgcolor(); #endif //void change_fgcolor(); #ifdef __GTK_COMBO_BOX_H__ static void cc_get_combo_box(); static void cc_get_combo_box_boolean(); #endif static void cc_move(); static void cc_clkmode (); static void cc_clktype (); static void cc_flag_xp(); static void cc_homepos (); static void cc_autobar (); static void cc_ip_style(); #ifdef USE_COMMON static void cc_cons_check_mode(); #endif static void cc_bal_defpos(); #ifdef USE_BIFF static void cc_mail_pixpos(); #endif // USE_BIFF static void cc_ff_side(); #ifdef USE_SOCKMSG static void cc_sockmsg_type(); #endif static void cc_get_adj(); static void cc_get_float(); static void cc_get_entry(); #ifdef USE_BIFF static void cc_mail_type(); #ifdef USE_SSL static void cc_mail_ssl(); #endif #endif // USE_BIFF static void cc_signal_type(); static void cc_get_toggle(); static void cc_get_toggle_nb(); static void cc_get_toggle_home(); #ifdef USE_CAIRO static void cc_get_toggle_sdw(); #endif static void check_menu_get_toggle(); static void check_menu_get_smenu(); #ifdef USE_BIFF static void mail_flag_toggle(); #endif // USE_BIFF static void test_click_sound(); static void clear_click_sound(); #ifdef USE_BIFF static void test_biff_sound(); static void clear_biff_sound(); #endif static void mc_up_tgt(); static void mc_down_tgt(); static void mc_up_cat(); static void mc_down_cat(); static void fs_set_udir(); #ifdef USE_COMMON static void fs_set_ddir(); #endif static void fs_set_updir(); #ifdef USE_COMMON static void fs_set_dpdir(); #endif static void fs_set_usdir(); #ifdef USE_COMMON static void fs_set_dsdir(); #endif static void fs_set_mascotext(); static void fs_set_pngext(); static void fs_set_gifext(); static void fs_set_xpmext(); static void fs_set_menuext(); static void fs_set_lzhext(); static void fs_set_rcext(); static void fs_set_nkrext(); static void fs_set_bmpext(); #ifdef USE_WIN32 static void uri_clicked(); #endif void my_file_chooser_add_filter(); void my_file_chooser_add_shortcut_folder(); void my_file_chooser_set_current_folder(); void ChangeMascotFS(); void NkrChangeMascotFS(); void ChangeMenuFS(); void MakeMenuFS(); void ChangeMascotMenu(); void CatRandomChangeMascotMenu(); void AllRandomChangeMascotMenu(); void ConfirmSaveOther(); void ConfirmSaveRelease(); void ConfirmUnlink(); void SaveMascotOther(); void SaveReleaseMascot(); void GoRelease(); void SaveMenuOther(); void SaveRCOther(); void ChangePopPass(); #ifdef __GTK_FONT_BUTTON_H__ void ChangeFontButton(); #else void ChangeFontname(); #endif #ifdef __GTK_COLOR_BUTTON_H__ void ChangeColorButton(); #else void ChangeColor(); #endif void ChangeTgt(); void MergeCatFS(); void DelTgt(); void ChangeDuetTgt(); void ChangeClickSound(); #ifdef USE_BIFF void ChangeBiffSound(); void ChangeMailFile(); void ChangeMailer(); #endif // USE_BIFF static void close_dialog(); #ifdef USE_COMMON static void close_cons(); static void ow_cons(); static void noow_cons(); #endif static void close_new_mascot_dialog(); static void close_child_dialog(); gboolean close_popup(); static void destroy_popup(); static void close_conf(); static void close_smenu(); void quit_all(); void TestPut(); void TestPut2(); void TestAnime(); void AddPixmap(); void DelPixmap(); void AddDelPattern(); void CopyPattern(); void AddDelFrame(); void ChangePixmap(); void NkrChangePixmap(); #ifdef USE_BIFF void ChangeBiffPixmap(); #endif void ChangeTgt(); static void create_change_image_dialog(); gchar* create_nkr_change_image_dialog(); #ifdef USE_BIFF static void create_change_biff_image_dialog(); #endif static void create_add_image_dialog(); static void create_del_image_dialog(); static void create_add_pattern_dialog(); static void create_del_pattern_dialog(); static void create_copy_pattern_dialog(); static void create_add_frame_dialog(); static void create_del_frame_dialog(); static void create_change_tgt_dialog(); static void create_add_tgt_dialog(); static void create_del_tgt_ditalog(); static void create_add_cat_dialog(); static void create_del_cat_dialog(); static void create_merge_cat_dialog(); static void create_change_duet_tgt_dialog(); static void create_change_click_sound_dialog(); #ifdef USE_BIFF static void create_change_biff_sound_dialog(); static void create_mail_file_dialog(); static void create_mailer_dialog(); #endif // USE_BIFF static void NewMascotSelectMascot(); static void NewMascotSelectImage(); static void MakeNewMascot(); static void create_new_mascot_file_selection_dialog(); static void create_new_mascot_image_selection_dialog(); static void create_new_mascot_dialog(); void create_pop_pass_dialog(); static void create_file_selection_dialog(); static void create_menu_selection_dialog(); static void create_smenu_dialog2(); static void create_nkr_selection_dialog(); static void create_new_menu_selection_dialog(); static void create_save_mascot_dialog(); static void create_save_release_mascot_dialog(); static void create_save_menu_dialog(); static void create_save_rc_dialog(); #ifndef __GTK_FONT_BUTTON_H__ static void create_font_selection_dialog(); #endif #ifndef __GTK_COLOR_BUTTON_H__ static void create_color_selection_dialog(); #endif static void change_colbal_default(); void create_config_dialog(); GtkWidget * create_menu_page(); GtkWidget * create_new_menu_page(); void make_pixmap_list(); void make_pattern_list(); void make_cat_list(); void make_frame_list(); void make_tgt_list(); GtkWidget * make_popup_menu(); GtkWidget * make_open_menu(); GtkWidget * make_save_menu(); GtkWidget * make_new_menu(); GtkWidget * make_install_menu(); GtkWidget * make_menu_menu(); GtkWidget * make_open_launcher_menu(); GtkWidget * make_open_develop_menu(); GtkWidget * make_develop_menu(); GtkWidget * make_cat_menu(); GtkWidget * make_tgt_menu(); void ChangeMascot(); void NkrChangeMascot(); #ifdef USE_COMMON void create_cons_dialog(); #endif void create_smenu_dialog(); void make_smenu_list(); GtkWidget* make_start_menubar(); void do_install_user_menu(); #ifdef USE_COMMON void do_install_common_menu(); #endif void do_install_user_mascot(); #ifdef USE_COMMON void do_install_common_mascot(); #endif void do_select_mascot(); void popup_message(gint , ...); void popup_progress(); void gui_arg_init(); gint select_menu_from_ext(); void unlink_all(); ///// Widget as Global argument ///// //Move GtkWidget *check_nb, *combo_nb, *spinner_manual; GtkWidget *spinner_home_x, *spinner_home_y, *check_vanish; #ifdef USE_CAIRO //Rendering GtkWidget *frame_sdw; #endif //Clock GtkWidget *entry_fontname_clk; //Balloon GtkWidget *entry_fontname_bal; #ifdef USE_BIFF //Biff GtkAdjustment *adj_pop_port; #endif // Pixmap GtkWidget *pixmap_table; GtkWidget *pixmap_entry[MAX_PIXMAP]; // Animation GtkWidget *pattern_table[MAX_ANIME_PATTERN]; GtkWidget *frame_table[MAX_ANIME_PATTERN]; GtkWidget *ptn_scrwin[MAX_ANIME_PATTERN]; GtkWidget *click_sound_entry[MAX_ANIME_PATTERN]; GtkWidget *duet_tgt_entry[MAX_ANIME_PATTERN]; // Menu Category GtkWidget *cat_table[MAX_MENU_CATEGORY]; GtkWidget *tgt_table[MAX_MENU_TARGET]; GtkWidget *cat_scrwin[MAX_MENU_CATEGORY]; GtkWidget *cat_note; GtkWidget *menu_page_table; //Misc GtkWidget *entry_deffontname_clk; GtkWidget *entry_deffontname_bal; void MenuSaveRC(void){ //MoveTmpDataRC(); SaveRC(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Resource as ...%%n \"%s\""),Mascot->rcfile); DoSysBalloon(Mascot,buf); g_free(buf); } } void MenuSaveMascot(void){ //MoveTmpDataMascot(); SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } } void MenuSaveDefMenu(void){ //MoveTmpDataRC(); SaveDefMenu(Mascot,FALSE); { gchar *buf; if( Mascot->menu_total>0){ buf=g_strdup_printf(_("Set Default Menu as ...%%n \"%s\""),Mascot->menu_file); } else{ buf=g_strdup(_("Remove Default Menu from Resource Setting")); } DoSysBalloon(Mascot,buf); g_free(buf); } } void MenuDelDefMenu(void){ Mascot->menu_total=0; Mascot->menu_file=NULL; SaveDefMenu(Mascot,FALSE); { gchar *buf; buf=g_strdup(_("Remove Default Menu from Resource Setting")); DoSysBalloon(Mascot,buf); g_free(buf); } gtk_widget_destroy(PopupMenu); ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); } void MenuSaveAll(void){ gchar *buf, *buf1, *buf2, *buf3, *buf4; SaveMascot(Mascot,FALSE); buf1=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); SaveRC(Mascot,FALSE); buf2=g_strdup_printf(_("%%aSaved Resource as ...%%n \"%s\""),Mascot->rcfile); if(Mascot->menu_total>0){ SaveMenu(Mascot); buf3=g_strdup_printf(_("%%aSaved Menu as ...%%n \"%s\""),Mascot->menu_file); buf4=g_strdup_printf(_("%%aSet Default Menu as ...%%n \"%s\""),Mascot->menu_file); } else{ buf3=NULL; buf4=g_strdup_printf(_("%%aRemove Default Menu from Resource Setting")); } SaveDefMenu(Mascot,FALSE); if(buf3){ buf=g_strconcat(buf1,buf2,buf3,buf4,NULL); g_free(buf1); g_free(buf2); g_free(buf3); g_free(buf4); } else{ buf=g_strconcat(buf1,buf2,buf4,NULL); g_free(buf1); g_free(buf2); g_free(buf4); } DoSysBalloon(Mascot, buf); g_free(buf); } void MoveTmpDataRC(void){ //// for RCFILE //Move Mascot->flag_xp=tmp_mascot.flag_xp; Mascot->offset=tmp_mascot.offset; Mascot->offsetp=tmp_mascot.offsetp; Mascot->ff_side=tmp_mascot.ff_side; Mascot->raise_force=tmp_mascot.raise_force; Mascot->raise_kwin=tmp_mascot.raise_kwin; Mascot->focus_autobar=tmp_mascot.focus_autobar; #ifdef USE_WIN32 Mascot->task_force=tmp_mascot.task_force; #endif Mascot->no_capbar=tmp_mascot.no_capbar; Mascot->bar_size=tmp_mascot.bar_size; Mascot->bar_offset=tmp_mascot.bar_offset; Mascot->homepos_nf=tmp_mascot.homepos_nf; Mascot->homepos_out=tmp_mascot.homepos_out; Mascot->homepos_nb=tmp_mascot.homepos_nb; Mascot->home_auto=tmp_mascot.home_auto; Mascot->home_auto_vanish=tmp_mascot.home_auto_vanish; Mascot->home_x=tmp_mascot.home_x; Mascot->home_y=tmp_mascot.home_y; #ifdef USE_CAIRO Mascot->sdw_flag=tmp_mascot.sdw_flag; Mascot->sdw_x=tmp_mascot.sdw_x; Mascot->sdw_y=tmp_mascot.sdw_y; Mascot->sdw_alpha=tmp_mascot.sdw_alpha; #endif #ifndef USE_WIN32 Mascot->sound_command=tmp_mascot.sound_command; #endif #ifdef USE_GTAR Mascot->tar_command=tmp_mascot.tar_command; #endif #if defined(USE_CAIRO) || defined(USE_WIN32) //Alpha Default Mascot->force_def_alpha=tmp_mascot.force_def_alpha; Mascot->def_alpha_main=tmp_mascot.def_alpha_main; #ifdef USE_BIFF Mascot->def_alpha_biff=tmp_mascot.def_alpha_biff; #endif #endif #ifdef USE_WIN32 Mascot->def_alpha_bal=tmp_mascot.def_alpha_bal; Mascot->def_alpha_clk=tmp_mascot.def_alpha_clk; Mascot->def_flag_balfg=tmp_mascot.def_flag_balfg; Mascot->def_flag_clkfg=tmp_mascot.def_flag_clkfg; #endif #ifdef USE_CAIRO Mascot->def_alpclk=tmp_mascot.def_alpclk; Mascot->def_alpclksd=tmp_mascot.def_alpclksd; Mascot->def_alpclkbg=tmp_mascot.def_alpclkbg; Mascot->def_alpclkbd=tmp_mascot.def_alpclkbd; Mascot->def_alpbal=tmp_mascot.def_alpbal; Mascot->def_alpbalbg=tmp_mascot.def_alpbalbg; Mascot->def_alpbalbd=tmp_mascot.def_alpbalbd; #endif //Misc Mascot->magnify=tmp_mascot.magnify; Mascot->duet_use_click=tmp_mascot.duet_use_click; Mascot->duet_use_random=tmp_mascot.duet_use_random; Mascot->sockmsg_type=tmp_mascot.sockmsg_type; Mascot->sockmsg_step=tmp_mascot.sockmsg_step; Mascot->sockmsg_expire_def=tmp_mascot.sockmsg_expire_def; Mascot->ip_style=tmp_mascot.ip_style; Mascot->flag_install=tmp_mascot.flag_install; #ifdef USE_CAIRO Mascot->force_composite=tmp_mascot.force_composite; Mascot->flag_img_cairo=tmp_mascot.flag_img_cairo; Mascot->flag_clk_cairo=tmp_mascot.flag_clk_cairo; Mascot->flag_bal_cairo=tmp_mascot.flag_bal_cairo; #endif Mascot->cons_check_mode=tmp_mascot.cons_check_mode; Mascot->deffontname_clk=tmp_mascot.deffontname_clk; Mascot->deffontname_bal=tmp_mascot.deffontname_bal; #ifdef __GTK_STATUS_ICON_H__ Mascot->tray_icon_flag=tmp_mascot.tray_icon_flag; if(Mascot->tray_icon_flag){ trayicon_show(Mascot); } else{ trayicon_hide(Mascot); } #endif } void MoveTmpDataMascot(void){ int i_pix, i_ptn, i_frm; gint i_tmp; gchar *pix_dir; gchar *tmp_file, *tmp_file2; /// Mascot->code=tmp_mascot.code; Mascot->name=tmp_mascot.name; //// Move Window Mascot->move=tmp_mascot.move; Mascot->xfix=tmp_mascot.xfix; Mascot->yfix=tmp_mascot.yfix; //// Clock Mascot->clkmode=tmp_mascot.clkmode; Mascot->clktype=tmp_mascot.clktype; Mascot->fontname_clk=tmp_mascot.fontname_clk; Mascot->clk_x=tmp_mascot.clk_x; Mascot->clk_y=tmp_mascot.clk_y; Mascot->clktext_x=tmp_mascot.clktext_x; Mascot->clktext_y=tmp_mascot.clktext_y; Mascot->clksd_x=tmp_mascot.clksd_x; Mascot->clksd_y=tmp_mascot.clksd_y; Mascot->flag_clksd=tmp_mascot.flag_clksd; Mascot->flag_clkrd=tmp_mascot.flag_clkrd; Mascot->wclkbd=tmp_mascot.wclkbd; //gdk_color_free(Mascot->colclk); if(gdk_color_equal(Mascot->def_colclk,tmp_mascot.colclk)&& gdk_color_equal(Mascot->colclk,tmp_mascot.colclk)){ Mascot->colclk=gdk_color_copy(tmp_mascot.def_colclk); } else{ Mascot->colclk=gdk_color_copy(tmp_mascot.colclk); } //gdk_color_free(Mascot->colclkbg); if(gdk_color_equal(Mascot->def_colclkbg,tmp_mascot.colclkbg)&& gdk_color_equal(Mascot->colclkbg,tmp_mascot.colclkbg)){ Mascot->colclkbg=gdk_color_copy(tmp_mascot.def_colclkbg); } else{ Mascot->colclkbg=gdk_color_copy(tmp_mascot.colclkbg); } //gdk_color_free(Mascot->colclkbd); if(gdk_color_equal(Mascot->def_colclkbd,tmp_mascot.colclkbd)&& gdk_color_equal(Mascot->colclkbd,tmp_mascot.colclkbd)){ Mascot->colclkbd=gdk_color_copy(tmp_mascot.def_colclkbd); } else{ Mascot->colclkbd=gdk_color_copy(tmp_mascot.colclkbd); } //gdk_color_free(Mascot->colclksd); if(gdk_color_equal(Mascot->def_colclksd,tmp_mascot.colclksd)&& gdk_color_equal(Mascot->colclksd,tmp_mascot.colclksd)){ Mascot->colclksd=gdk_color_copy(tmp_mascot.def_colclksd); } else{ Mascot->colclksd=gdk_color_copy(tmp_mascot.colclksd); } gdk_color_free(Mascot->def_colclk); Mascot->def_colclk=gdk_color_copy(tmp_mascot.def_colclk); gdk_color_free(Mascot->def_colclkbg); Mascot->def_colclkbg=gdk_color_copy(tmp_mascot.def_colclkbg); gdk_color_free(Mascot->def_colclkbd); Mascot->def_colclkbd=gdk_color_copy(tmp_mascot.def_colclkbd); gdk_color_free(Mascot->def_colclksd); Mascot->def_colclksd=gdk_color_copy(tmp_mascot.def_colclksd); #ifdef USE_CAIRO Mascot->alpclk=tmp_mascot.alpclk; Mascot->alpclksd=tmp_mascot.alpclksd; Mascot->alpclkbg=tmp_mascot.alpclkbg; Mascot->alpclkbd=tmp_mascot.alpclkbd; #endif //// Time Signal Mascot->signal.flag=tmp_mascot.signal.flag; Mascot->signal.type=tmp_mascot.signal.type; Mascot->signal.com=tmp_mascot.signal.com; //// Balloon Mascot->fontname_bal=tmp_mascot.fontname_bal; Mascot->baltext_x=tmp_mascot.baltext_x; Mascot->baltext_y=tmp_mascot.baltext_y; Mascot->wbalbd=tmp_mascot.wbalbd; Mascot->bal_defpos=tmp_mascot.bal_defpos; gdk_color_free(Mascot->colbal); if(gdk_color_equal(Mascot->def_colbal,tmp_mascot.colbal)&& gdk_color_equal(Mascot->colbal,tmp_mascot.colbal)){ Mascot->colbal=gdk_color_copy(tmp_mascot.def_colbal); } else{ Mascot->colbal=gdk_color_copy(tmp_mascot.colbal); } gdk_color_free(Mascot->colbalbg); if(gdk_color_equal(Mascot->def_colbalbg,tmp_mascot.colbalbg)&& gdk_color_equal(Mascot->colbalbg,tmp_mascot.colbalbg)){ Mascot->colbalbg=gdk_color_copy(tmp_mascot.def_colbalbg); } else{ Mascot->colbalbg=gdk_color_copy(tmp_mascot.colbalbg); } gdk_color_free(Mascot->colbalbd); if(gdk_color_equal(Mascot->def_colbalbd,tmp_mascot.colbalbd)&& gdk_color_equal(Mascot->colbalbd,tmp_mascot.colbalbd)){ Mascot->colbalbd=gdk_color_copy(tmp_mascot.def_colbalbd); } else{ Mascot->colbalbd=gdk_color_copy(tmp_mascot.colbalbd); } gdk_color_free(Mascot->def_colbal); Mascot->def_colbal=gdk_color_copy(tmp_mascot.def_colbal); gdk_color_free(Mascot->def_colbalbg); Mascot->def_colbalbg=gdk_color_copy(tmp_mascot.def_colbalbg); gdk_color_free(Mascot->def_colbalbd); Mascot->def_colbalbd=gdk_color_copy(tmp_mascot.def_colbalbd); #ifdef USE_CAIRO Mascot->alpbal=tmp_mascot.alpbal; Mascot->alpbalbg=tmp_mascot.alpbalbg; Mascot->alpbalbd=tmp_mascot.alpbalbd; #endif #ifdef USE_BIFF //// Biff Mascot->mail.type=tmp_mascot.mail.type; Mascot->mail.pop_server=tmp_mascot.mail.pop_server; Mascot->mail.pop_id=tmp_mascot.mail.pop_id; Mascot->mail.pop_save=tmp_mascot.mail.pop_save; Mascot->mail.pop_pass=tmp_mascot.mail.pop_pass; #ifdef USE_SSL Mascot->mail.ssl_mode=tmp_mascot.mail.ssl_mode; Mascot->mail.ssl_cert_skip=tmp_mascot.mail.ssl_cert_skip; #endif Mascot->mail.pop_port=tmp_mascot.mail.pop_port; Mascot->mail.file=tmp_mascot.mail.file; if(!tmp_mascot.mail.file){ if(Mascot->mail.type==MAIL_LOCAL){ Mascot->mail.file=g_strdup(g_getenv("MAIL")); } else if(Mascot->mail.type==MAIL_QMAIL){ #ifdef USE_WIN32 Mascot->mail.file=g_strconcat(get_win_home(), #else Mascot->mail.file=g_strconcat(g_get_home_dir(), #endif G_DIR_SEPARATOR_S, "Maildir", G_DIR_SEPARATOR_S, "new", G_DIR_SEPARATOR_S, NULL); } else if(Mascot->mail.type==MAIL_PROCMAIL){ Mascot->mail.file=g_strconcat(set_mhdir(),PROCMAIL_LOG,NULL); } } Mascot->mail.tooltips_fl=tmp_mascot.mail.tooltips_fl; Mascot->mail.spam_check=tmp_mascot.mail.spam_check; Mascot->mail.spam_mark=tmp_mascot.mail.spam_mark; Mascot->mail.interval=tmp_mascot.mail.interval; Mascot->mail.polling=tmp_mascot.mail.polling; Mascot->mail.mailer=tmp_mascot.mail.mailer; Mascot->mail.pix_file=tmp_mascot.mail.pix_file; Mascot->mail.pix_pos=tmp_mascot.mail.pix_pos; Mascot->mail.pix_x=tmp_mascot.mail.pix_x; Mascot->mail.pix_y=tmp_mascot.mail.pix_y; Mascot->mail.word=tmp_mascot.mail.word; Mascot->mail.sound= FullPathSoundFile(&tmp_mascot,tmp_mascot.mail.sound,TRUE); Mascot->mail.win_width=tmp_mascot.mail.win_width; Mascot->mail.win_height=tmp_mascot.mail.win_height; Mascot->mail.pop_max_fs=tmp_mascot.mail.pop_max_fs; #endif #if defined(USE_CAIRO) || defined(USE_WIN32) //Alpha if(Mascot->force_def_alpha){ Mascot->alpha_main=Mascot->def_alpha_main; #ifdef USE_BIFF Mascot->alpha_biff=Mascot->def_alpha_biff; #endif #ifdef USE_WIN32 Mascot->alpha_bal=Mascot->def_alpha_bal; Mascot->alpha_clk=Mascot->def_alpha_clk; Mascot->flag_balfg=Mascot->def_flag_balfg; Mascot->flag_clkfg=Mascot->def_flag_clkfg; #endif } else{ Mascot->alpha_main=tmp_mascot.alpha_main; #ifdef USE_BIFF Mascot->alpha_biff=tmp_mascot.alpha_biff; #endif #ifdef USE_WIN32 Mascot->alpha_bal=tmp_mascot.alpha_bal; Mascot->alpha_clk=tmp_mascot.alpha_clk; Mascot->flag_balfg=tmp_mascot.flag_balfg; Mascot->flag_clkfg=tmp_mascot.flag_clkfg; #endif } #endif //// Pixmap Mascot->xoff=tmp_mascot.xoff; Mascot->yoff=tmp_mascot.yoff; pix_dir=my_dirname(Mascot->sprites[0].filename); for(i_pix=0;i_pix USERDIR/PIXDIR/ // ¤ÎÍ¥Àè½ç°Ì¤Ç¥³¥Ô¡¼¤ò¤¹¤ë(ξÊý¤ËƱ¤¸¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¤È¤­¤Î¤ß) if(tmp_pixfile[i_pix]){ if(strcmp(my_dirname(tmp_pixfile[i_pix]),pix_dir)){ tmp_file=g_strconcat(pix_dir,G_DIR_SEPARATOR_S,my_basename(tmp_pixfile[i_pix]),NULL); #ifdef USE_WIN32 tmp_file2=g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, #else tmp_file2=g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, #endif PIXDIR, my_basename(tmp_pixfile[i_pix]), NULL); if((access(tmp_file,F_OK)!=0)&&(access(tmp_file2,F_OK)!=0)){ if(access(pix_dir,W_OK)==0){ g_print(_("Installing %s -> %s\n"),tmp_pixfile[i_pix],tmp_file); copy_file(tmp_pixfile[i_pix],tmp_file); } else{ g_print(_("Installing %s -> %s\n"),tmp_pixfile[i_pix],tmp_file2); copy_file(tmp_pixfile[i_pix],tmp_file2); } } } } //if(Mascot->sprites[i_pix].filename) g_free(Mascot->sprites[i_pix].filename); Mascot->sprites[i_pix].filename=tmp_pixfile[i_pix]; //if(Mascot->sprites[i_pix].pixmap) gdk_pixmap_unref(Mascot->sprites[i_pix].pixmap); //if(Mascot->sprites[i_pix].mask) gdk_pixmap_unref(Mascot->sprites[i_pix].mask); //Mascot->sprites[i_pix].pixmap=NULL; //Mascot->sprites[i_pix].mask=NULL; } for(i_pix=tmp_mascot.nPixmap;i_pixsprites[i_pix].filename=NULL; //if(Mascot->sprites[i_pix].pixmap) gdk_pixmap_unref(Mascot->sprites[i_pix].pixmap); //if(Mascot->sprites[i_pix].mask) gdk_pixmap_unref(Mascot->sprites[i_pix].mask); //Mascot->sprites[i_pix].pixmap=NULL; //Mascot->sprites[i_pix].mask=NULL; } Mascot->random_total=0; Mascot->click_total=0; //// Animation for(i_ptn=0;i_ptnframe_num[i_ptn]=tmp_mascot.frame_num[i_ptn]; Mascot->random_weight[i_ptn]=tmp_mascot.random_weight[i_ptn]; Mascot->click_weight[i_ptn]=tmp_mascot.click_weight[i_ptn]; Mascot->bal_lxoff[i_ptn]=tmp_mascot.bal_lxoff[i_ptn]; Mascot->bal_lyoff[i_ptn]=tmp_mascot.bal_lyoff[i_ptn]; Mascot->bal_rxoff[i_ptn]=tmp_mascot.bal_rxoff[i_ptn]; Mascot->bal_ryoff[i_ptn]=tmp_mascot.bal_ryoff[i_ptn]; Mascot->click_word[i_ptn]=tmp_mascot.click_word[i_ptn]; Mascot->click_sound[i_ptn]= FullPathSoundFile(&tmp_mascot,tmp_mascot.click_sound[i_ptn],TRUE); Mascot->duet_tgt[i_ptn]=tmp_mascot.duet_tgt[i_ptn]; Mascot->duet_ptn[i_ptn]=tmp_mascot.duet_ptn[i_ptn]; Mascot->duet_word[i_ptn]=tmp_mascot.duet_word[i_ptn]; Mascot->duet_delay[i_ptn]=tmp_mascot.duet_delay[i_ptn]; Mascot->random_total+=Mascot->random_weight[i_ptn]; Mascot->click_total+=Mascot->click_weight[i_ptn]; for(i_frm=0;i_frmframe_pix[i_ptn][i_frm]=tmp_mascot.frame_pix[i_ptn][i_frm]; Mascot->frame_min[i_ptn][i_frm]=tmp_mascot.frame_min[i_ptn][i_frm]; Mascot->frame_max[i_ptn][i_frm]=tmp_mascot.frame_max[i_ptn][i_frm]; Mascot->frame_loop[i_ptn][i_frm].next =tmp_mascot.frame_loop[i_ptn][i_frm].next; Mascot->frame_loop[i_ptn][i_frm].min =tmp_mascot.frame_loop[i_ptn][i_frm].min; Mascot->frame_loop[i_ptn][i_frm].max =tmp_mascot.frame_loop[i_ptn][i_frm].max; if(Mascot->frame_min[i_ptn][i_frm]>Mascot->frame_max[i_ptn][i_frm]){ i_tmp=Mascot->frame_max[i_ptn][i_frm]; Mascot->frame_max[i_ptn][i_frm]=Mascot->frame_min[i_ptn][i_frm]; Mascot->frame_min[i_ptn][i_frm]=i_tmp; } if( Mascot->frame_loop[i_ptn][i_frm].min > Mascot->frame_loop[i_ptn][i_frm].max){ i_tmp= Mascot->frame_loop[i_ptn][i_frm].max; Mascot->frame_loop[i_ptn][i_frm].max = Mascot->frame_loop[i_ptn][i_frm].min; Mascot->frame_loop[i_ptn][i_frm].min=i_tmp; } } } } void MoveTmpDataMenu(void){ int i_cat, i_tgt; //// for Menu Mascot->menu_file=tmp_mascot.menu_file; Mascot->menu_cat_max=tmp_mascot.menu_cat_max; Mascot->menu_total=tmp_mascot.menu_total; for(i_cat=0;i_catmenu_cat_max;i_cat++){ Mascot->menu_cat[i_cat]=tmp_mascot.menu_cat[i_cat]; Mascot->menu_tgt_max[i_cat]=tmp_mascot.menu_tgt_max[i_cat]; for(i_tgt=0;i_tgtmenu_tgt_max[i_cat];i_tgt++){ Mascot->menu_tgt[i_cat][i_tgt]=tmp_mascot.menu_tgt[i_cat][i_tgt]; Mascot->menu_tgt_name[i_cat][i_tgt] =tmp_mascot.menu_tgt_name[i_cat][i_tgt]; } } } static void conf_change(GtkWidget *w, GtkWidget *dialog) { if(flagChildDialog){ return; } InitMascot(Mascot); MoveTmpDataRC(); MoveTmpDataMascot(); MoveTmpDataMenu(); #ifdef USE_BIFF SetMailChecker(Mascot); #endif // USE_BIFF gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); InitComposite(Mascot); LoadPixmaps(win_main, Mascot, Mascot->sprites); ReInitGC(Mascot); #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; #ifdef USE_BIFF LoadBiffPixmap(biff_pix, Mascot); #endif if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if(Mascot->clkmode==CLOCK_PANEL){ #ifdef USE_WIN32 if((Mascot->flag_clkfg)&&(Mascot->alpha_clk!=100)){ gtk_widget_map(clock_fg); } else gtk_widget_unmap(clock_fg); #endif gtk_widget_map(clock_main); } else{ #ifdef USE_WIN32 gtk_widget_unmap(clock_fg); #endif gtk_widget_unmap(clock_main); } #ifdef USE_WIN32 if((Mascot->sdw_flag)&&(Mascot->sdw_height>0)){ gtk_widget_map(win_sdw); } else{ gtk_widget_unmap(win_sdw); } #endif gtk_widget_map(win_main); if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if((Mascot->move==MOVE_FIX) &&(Mascot->xfix>=0)&&(Mascot->xfix<=Mascot->width_root) &&(Mascot->yfix>=0)&&(Mascot->yfix<=Mascot->height_root)) MoveMascot(Mascot,Mascot->xfix,Mascot->yfix); else{ Mascot->x=tmp_mascot.x; Mascot->y=tmp_mascot.y; //MoveMascot(Mascot,Mascot->x,Mascot->y); MoveToFocus(Mascot,TRUE); } gtk_widget_destroy(PopupMenu); PopupMenu=make_popup_menu(); flag_make_pixmap_list=FALSE; Mascot->flag_menu=FALSE; while (my_main_iteration(FALSE)); gdk_flush(); } #ifndef __GTK_COLOR_BUTTON_H__ void change_bgcolor(GtkWidget *widget, GdkColor color){ GtkStyle *def_style, *style; def_style = gtk_widget_get_style(widget); style = gtk_style_copy(def_style); style->bg[GTK_STATE_NORMAL] = color; style->bg[GTK_STATE_ACTIVE] = color; style->bg[GTK_STATE_PRELIGHT] = color; style->bg[GTK_STATE_SELECTED] = color; gtk_widget_set_style(widget,style); } #endif /* void change_fgcolor(GtkWidget *widget, GdkColor color){ GtkStyle *def_style, *style; def_style = gtk_widget_get_style(widget); style = gtk_style_copy(def_style); style->fg[0] = color; gtk_widget_set_style(widget,style); } */ #ifndef __GTK_COMBO_BOX_H__ static void cc_move (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Focus Follow"))){ tmp_mascot.move=MOVE_FOCUS; } else{ tmp_mascot.move=MOVE_FIX; } } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_clkmode (GtkWidget *widget) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("No Clock"))){ tmp_mascot.clkmode=CLOCK_NO; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Clock on Image"))){ tmp_mascot.clkmode=CLOCK_PIXMAP; } else{ tmp_mascot.clkmode=CLOCK_PANEL; } } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_clktype (GtkWidget *widget) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("14:00:00"))){ tmp_mascot.clktype=CLOCK_TYPE_24S; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("14:00"))){ tmp_mascot.clktype=CLOCK_TYPE_24M; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("PM 2:00:00"))){ tmp_mascot.clktype=CLOCK_TYPE_12S; } else{ tmp_mascot.clktype=CLOCK_TYPE_12M; } } #endif static void cc_flag_xp (GtkWidget *widget, gboolean * gdata) { tmp_mascot.flag_xp=(gboolean)gdata; } #ifdef __GTK_COMBO_BOX_H__ static void cc_get_combo_box (GtkWidget *widget, gint * gdata) { GtkTreeIter iter; if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter)){ gint n; GtkTreeModel *model; model=gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); gtk_tree_model_get (model, &iter, 1, &n, -1); *gdata=n; } #ifndef USE_WIN32 if(tmp_mascot.focus_autobar==AUTOBAR_MANUAL){ gtk_widget_set_sensitive(check_nb,FALSE); gtk_widget_set_sensitive(combo_nb,FALSE); gtk_widget_set_sensitive(spinner_manual,TRUE); } else{ gtk_widget_set_sensitive(check_nb,TRUE); gtk_widget_set_sensitive(combo_nb,TRUE); gtk_widget_set_sensitive(spinner_manual,FALSE); } #endif } static void cc_get_combo_box_boolean (GtkWidget *widget, gint * gdata) { GtkTreeIter iter; if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter)){ gboolean flag; GtkTreeModel *model; model=gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); gtk_tree_model_get (model, &iter, 1, &flag, -1); *gdata=flag; } } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_homepos (GtkWidget *widget, gint * gdata) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Do Nothing"))){ *gdata=HOMEPOS_NEVER; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Vanish"))){ *gdata=HOMEPOS_VANISH; } else{ *gdata=HOMEPOS_BAR; } } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_autobar (GtkWidget *widget, gint * gdata) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Manual Scaling"))){ *gdata=AUTOBAR_MANUAL; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Auto Scaling"))){ *gdata=AUTOBAR_ORDINAL; } else{ *gdata=AUTOBAR_COMPIZ; } #ifndef USE_WIN32 if(*gdata==AUTOBAR_MANUAL){ gtk_widget_set_sensitive(check_nb,FALSE); gtk_widget_set_sensitive(combo_nb,FALSE); gtk_widget_set_sensitive(spinner_manual,TRUE); } else{ gtk_widget_set_sensitive(check_nb,TRUE); gtk_widget_set_sensitive(combo_nb,TRUE); gtk_widget_set_sensitive(spinner_manual,FALSE); } #endif } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_ip_style (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Nearest-Neighbor"))){ tmp_mascot.ip_style=MAG_IP_NEAREST; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Tiles"))){ tmp_mascot.ip_style=MAG_IP_TILES; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Bilinear"))){ tmp_mascot.ip_style=MAG_IP_BILINEAR; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Hyper"))){ tmp_mascot.ip_style=MAG_IP_HYPER; } } #endif #ifdef USE_COMMON #ifndef __GTK_COMBO_BOX_H__ static void cc_cons_check_mode (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Manual"))){ tmp_mascot.cons_check_mode=CONS_MANUAL; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Auto Overwrite"))){ tmp_mascot.cons_check_mode=CONS_AUTOOW; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Ignore"))){ tmp_mascot.cons_check_mode=CONS_IGNORE; } } #endif #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_bal_defpos (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Left"))){ tmp_mascot.bal_defpos=BAL_POS_LEFT; } else{ tmp_mascot.bal_defpos=BAL_POS_RIGHT; } } #endif #ifdef USE_BIFF #ifndef __GTK_COMBO_BOX_H__ static void cc_mail_pixpos (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Left"))){ tmp_mascot.mail.pix_pos=MAIL_PIX_LEFT; } else{ tmp_mascot.mail.pix_pos=MAIL_PIX_RIGHT; } } #endif #endif // USE_BIFF #ifndef __GTK_COMBO_BOX_H__ static void cc_ff_side (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Left"))){ tmp_mascot.ff_side=FF_SIDE_LEFT; } else{ tmp_mascot.ff_side=FF_SIDE_RIGHT; } } #endif #ifndef __GTK_COMBO_BOX_H__ static void cc_sockmsg_type (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Stepping"))){ tmp_mascot.sockmsg_type=SOCK_STEPPING; } else{ tmp_mascot.sockmsg_type=SOCK_NORMAL; } } #endif static void cc_get_adj (GtkWidget *widget, gint * gdata) { *gdata=GTK_ADJUSTMENT(widget)->value; } static void cc_get_float (GtkWidget *widget, gfloat * gdata) { *gdata=GTK_ADJUSTMENT(widget)->value; } static void cc_get_entry (GtkWidget *widget, gchar **gdata) { //if(*gdata) g_free(*gdata); *gdata=g_strdup(gtk_entry_get_text(GTK_ENTRY(widget))); } #ifdef USE_BIFF #ifndef __GTK_COMBO_BOX_H__ static void cc_mail_type (GtkWidget *widget,GdkEvent *event) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("None"))){ tmp_mascot.mail.type=MAIL_NO; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("POP3 (normal)"))){ tmp_mascot.mail.type=MAIL_POP3; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("POP3 (APOP auth)"))){ tmp_mascot.mail.type=MAIL_APOP; } #ifndef USE_WIN32 else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Local mbox"))){ tmp_mascot.mail.type=MAIL_LOCAL; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("qmail (Maildir)"))){ tmp_mascot.mail.type=MAIL_QMAIL; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("MH + Procmail"))){ tmp_mascot.mail.type=MAIL_PROCMAIL; } #endif } #endif #ifdef USE_SSL static void cc_mail_ssl (GtkWidget *widget,GdkEvent *event) { #ifdef __GTK_COMBO_BOX_H__ GtkTreeIter iter; if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter)){ gint n; GtkTreeModel *model; model=gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); gtk_tree_model_get (model, &iter, 1, &n, -1); tmp_mascot.mail.ssl_mode=n; } #else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Don't use SSL"))){ tmp_mascot.mail.ssl_mode=SSL_NONE; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Use SSL for POP3 Connection"))){ tmp_mascot.mail.ssl_mode=SSL_TUNNEL; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)), _("Use STARTTLS to start SSL session"))){ tmp_mascot.mail.ssl_mode=SSL_STARTTLS; } #endif switch(tmp_mascot.mail.ssl_mode){ case SSL_TUNNEL: if(tmp_mascot.mail.pop_port==POP3_PORT_NO){ gtk_adjustment_set_value(adj_pop_port, POP3_SSL_PORT_NO); } break; case SSL_NONE: case SSL_STARTTLS: if(tmp_mascot.mail.pop_port==POP3_SSL_PORT_NO){ gtk_adjustment_set_value(adj_pop_port, POP3_PORT_NO); } break; } } #endif //USE_SSL #endif // USE_BIFF #ifndef __GTK_COMBO_BOX_H__ static void cc_signal_type (GtkWidget *widget) { if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("None"))){ tmp_mascot.signal.type=SIGACT_NO; } else if(!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),_("Click Action"))){ tmp_mascot.signal.type=SIGACT_CLICK; } else{ tmp_mascot.signal.type=SIGACT_CHANGE; } } #endif static void cc_get_toggle (GtkWidget * widget, gboolean * gdata) { *gdata=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); } static void cc_get_toggle_nb (GtkWidget * widget, gboolean * gdata) { *gdata=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); if(!*gdata){ gtk_widget_set_sensitive(combo_nb,FALSE); } else{ gtk_widget_set_sensitive(combo_nb,TRUE); } } static void cc_get_toggle_home (GtkWidget * widget, gboolean * gdata) { *gdata=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); if(!*gdata){ gtk_widget_set_sensitive(spinner_home_x,TRUE); gtk_widget_set_sensitive(spinner_home_y,TRUE); gtk_widget_set_sensitive(check_vanish,FALSE); } else{ gtk_widget_set_sensitive(spinner_home_x,FALSE); gtk_widget_set_sensitive(spinner_home_y,FALSE); gtk_widget_set_sensitive(check_vanish,TRUE); } } #ifdef USE_CAIRO static void cc_get_toggle_sdw (GtkWidget * widget, gboolean * gdata) { *gdata=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); #ifndef USE_WIN32 if(!*gdata){ gtk_widget_set_sensitive(frame_sdw,FALSE); } else{ gtk_widget_set_sensitive(frame_sdw,TRUE); } #endif } #endif static void check_menu_get_toggle (GtkWidget * widget, gboolean * gdata) { if(GTK_CHECK_MENU_ITEM(widget)->active){ *gdata=TRUE; } else{ *gdata=FALSE; } } static void check_menu_get_smenu (GtkWidget * widget, gint *gdata) { if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))){ selected_smenu=(gint)gdata; } } #ifdef USE_BIFF static void mail_flag_toggle (GtkWidget * widget) { if(GTK_CHECK_MENU_ITEM(widget)->active){ Mascot->mail.flag=TRUE; } else{ Mascot->mail.flag=FALSE; } SetMailChecker(Mascot); } #endif // USE_BIFF static void test_click_sound (GtkWidget *widget, gpointer gdata) { int i_ptn; i_ptn=(int)gdata; sound_play(&tmp_mascot,tmp_mascot.click_sound[i_ptn]); } static void clear_click_sound (GtkWidget *widget, gpointer gdata) { int i_ptn; i_ptn=(int)gdata; tmp_mascot.click_sound[i_ptn]=NULL; gtk_entry_set_text(GTK_ENTRY(click_sound_entry[i_ptn]),""); } #ifdef USE_BIFF static void test_biff_sound (GtkWidget *widget) { sound_play(&tmp_mascot,tmp_mascot.mail.sound); } static void clear_biff_sound (GtkWidget *widget, gpointer gdata) { GtkWidget *snd_entry; snd_entry=(GtkWidget *)gdata; tmp_mascot.mail.sound=NULL; gtk_entry_set_text(GTK_ENTRY(snd_entry),""); } #endif static void mc_up_tgt (GtkWidget *widget, gpointer gdata) { int i_tmp, i_cat, i_tgt; gchar *tmp_menu_tgt, *tmp_menu_tgt_name; i_tmp=(int)gdata; i_cat=i_tmp / MAX_MENU_TARGET; i_tgt=i_tmp % MAX_MENU_TARGET; if(i_tgt<=0) return; tmp_menu_tgt=g_strdup(tmp_mascot.menu_tgt[i_cat][i_tgt-1]); tmp_menu_tgt_name=g_strdup(tmp_mascot.menu_tgt_name[i_cat][i_tgt-1]); tmp_mascot.menu_tgt[i_cat][i_tgt-1] =g_strdup(tmp_mascot.menu_tgt[i_cat][i_tgt]); tmp_mascot.menu_tgt_name[i_cat][i_tgt-1] =g_strdup(tmp_mascot.menu_tgt_name[i_cat][i_tgt]); tmp_mascot.menu_tgt[i_cat][i_tgt]=g_strdup(tmp_menu_tgt); tmp_mascot.menu_tgt_name[i_cat][i_tgt]=g_strdup(tmp_menu_tgt_name); make_tgt_list(i_cat); } static void mc_down_tgt (GtkWidget *widget, gpointer gdata) { int i_tmp, i_cat, i_tgt; gchar *tmp_menu_tgt, *tmp_menu_tgt_name; i_tmp=(int)gdata; i_cat=i_tmp / MAX_MENU_TARGET; i_tgt=i_tmp % MAX_MENU_TARGET; if(i_tgt>=MAX_MENU_TARGET) return; tmp_menu_tgt=g_strdup(tmp_mascot.menu_tgt[i_cat][i_tgt+1]); tmp_menu_tgt_name=g_strdup(tmp_mascot.menu_tgt_name[i_cat][i_tgt+1]); tmp_mascot.menu_tgt[i_cat][i_tgt+1] =g_strdup(tmp_mascot.menu_tgt[i_cat][i_tgt]); tmp_mascot.menu_tgt_name[i_cat][i_tgt+1] =g_strdup(tmp_mascot.menu_tgt_name[i_cat][i_tgt]); tmp_mascot.menu_tgt[i_cat][i_tgt]=g_strdup(tmp_menu_tgt); tmp_mascot.menu_tgt_name[i_cat][i_tgt]=g_strdup(tmp_menu_tgt_name); make_tgt_list(i_cat); } static void mc_up_cat (GtkWidget *widget, gpointer gdata) { int i_cat, i_tgt; gint tmp_menu_tgt_max; gchar *tmp_menu_cat; gchar *tmp_menu_tgt[MAX_MENU_TARGET]; gchar *tmp_menu_tgt_name[MAX_MENU_TARGET]; i_cat=(int)gdata; if(i_cat<=0) return; tmp_menu_tgt_max=tmp_mascot.menu_tgt_max[i_cat-1]; tmp_menu_cat=g_strdup(tmp_mascot.menu_cat[i_cat-1]); for(i_tgt=0;i_tgt=tmp_mascot.menu_cat_max-1) return; tmp_menu_tgt_max=tmp_mascot.menu_tgt_max[i_cat+1]; tmp_menu_cat=g_strdup(tmp_mascot.menu_cat[i_cat+1]); for(i_tgt=0;i_tgtflag_install; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ Mascot->file=g_strdup( gtk_file_selection_get_filename(cdata->fs)); switch(cdata->mode){ case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: Mascot->flag_install=TRUE; Mascot->flag_common=FALSE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; break; case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: Mascot->flag_install=TRUE; Mascot->flag_common=TRUE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; } switch(cdata->mode){ case MENU_SELECT: case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: ChangeMascot(); } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); Mascot->flag_menu=FALSE; Mascot->flag_install=flag_install; Mascot->flag_common=FALSE; switch(cdata->mode){ case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: Mascot->flag_ow=FALSE; Mascot->flag_ow_ini=FALSE; } } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¤Î¤Ã¤«¤ê¥­¥ã¥é¤ÎÆÉ¤ß¹þ¤ß #ifndef __GTK_FILE_CHOOSER_H__ void NkrChangeMascotFS(GtkWidget *w, GtkFileSelection *fs) { if(access(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs)),F_OK)==0){ Mascot->inifile=g_strdup( gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); NkrChangeMascot(); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs)), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs))); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); create_save_mascot_dialog(); } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥á¥Ë¥å¡¼¤ÎÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeMenuFS(GtkWidget *w, gpointer gdata) { confSelectMenu *cdata; gboolean flag_install; gchar *dest_file; cdata=(confSelectMenu *)gdata; flag_install=Mascot->flag_install; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ dest_file=g_strdup(gtk_file_selection_get_filename(cdata->fs)); switch(cdata->mode){ case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: select_menu_from_ext(Mascot,dest_file); Mascot->flag_install=TRUE; Mascot->flag_common=FALSE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; break; case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: select_menu_from_ext(Mascot,dest_file); Mascot->flag_install=TRUE; Mascot->flag_common=TRUE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; } gtk_widget_destroy(PopupMenu); ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); Mascot->flag_menu=FALSE; Mascot->flag_install=flag_install; Mascot->flag_common=FALSE; switch(cdata->mode){ case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: Mascot->flag_ow=FALSE; Mascot->flag_ow_ini=FALSE; } } #endif // ¿·µ¬¥á¥Ë¥å¡¼¤ÎºîÀ® #ifndef __GTK_FILE_CHOOSER_H__ void MakeMenuFS(GtkWidget *w, GtkFileSelection *fs) { FILE *fp_test; if((fp_test=fopen(gtk_file_selection_get_filename(fs),"w"))!=NULL){ fclose(fp_test); Mascot->menu_file=g_strdup(gtk_file_selection_get_filename(fs)); Mascot->menu_cat[0]=g_strdup(TMP_CATEGORY_NAME); Mascot->menu_tgt_max[0]=1; Mascot->menu_tgt[0][0] =g_strdup(my_basename(Mascot->file)); Mascot->menu_tgt_name[0][0]=ReadMascotName(Mascot, Mascot->file); Mascot->menu_cat_max=1; Mascot->menu_total=1; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Created Menu File ...%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } gtk_widget_destroy(PopupMenu); PopupMenu=make_popup_menu(); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); Mascot->flag_menu=FALSE; } #endif // ¥¯¥¤¥Ã¥¯¥á¥Ë¥å¡¼¤«¤é¤Î¥Þ¥¹¥³¥Ã¥È¤ÎÊѹ¹ void ChangeMascotMenu(GtkWidget *widget, gchar *mascotfile) { Mascot->file=g_strdup(mascotfile); ChangeMascot(); } // ¥¯¥¤¥Ã¥¯¥á¥Ë¥å¡¼¤«¤é¤Î¥Þ¥¹¥³¥Ã¥È¤Î¥«¥Æ¥´¥ê¡¼Æâ¥é¥ó¥À¥àÊѹ¹ void CatRandomChangeMascotMenu(GtkWidget *widget, gpointer gdata) { int i_cat,i_tgt; i_cat=(gint)gdata; i_tgt=RANDOM(Mascot->menu_tgt_max[i_cat]); Mascot->file=g_strdup(Mascot->menu_tgt[i_cat][i_tgt]); ChangeMascot(); } // ¥¯¥¤¥Ã¥¯¥á¥Ë¥å¡¼¤«¤é¤Î¥Þ¥¹¥³¥Ã¥È¤ÎÁ´¥é¥ó¥À¥àÊѹ¹ void AllRandomChangeMascotMenu(GtkWidget *widget) { Mascot->file=g_strdup(all_random_menu_mascot_file(Mascot)); ChangeMascot(); } // ¾¤Î̾Á°¤Ç¥Þ¥¹¥³¥Ã¥È¤òÊݸ void ConfirmSaveOther(GtkWidget *w, gpointer gdata) { confSaveOther *cdata; cdata=(confSaveOther *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } // ¾¤Î̾Á°¤Ç¥Þ¥¹¥³¥Ã¥È¤òÊݸ void ConfirmSaveRelease(GtkWidget *w, gpointer gdata) { confSaveReleaseMascot *cdata; cdata=(confSaveReleaseMascot *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } // ¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿temporary file¤òºï½ü void ConfirmUnlink(GtkWidget *w, gpointer gdata) { confUnlink *cdata; cdata=(confUnlink *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥Þ¥¹¥³¥Ã¥È¤ÎÊݸ #ifndef __GTK_FILE_CHOOSER_H__ void SaveMascotOther(GtkWidget *w, GtkFileSelection *fs) { GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; dest_file =g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); gtk_widget_unmap(GTK_WIDGET(fs)); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),dest_file); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked", close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked", ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->file=dest_file; SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->file=dest_file; SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); Mascot->flag_menu=FALSE; } #endif // ¤Î¤Ã¤«¤ê¥­¥ã¥é¥Õ¥¡¥¤¥ë¤ÎÊÑ´¹¤ª¤è¤ÓÊݸ #ifndef __GTK_FILE_CHOOSER_H__ void SaveNokkari(GtkWidget *w, GtkFileSelection *fs) { GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; dest_file =g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); gtk_widget_unmap(GTK_WIDGET(fs)); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),dest_file); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked", close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked", ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->inifile=dest_file; NkrSave(Mascot); } g_free(cdata); } else{ Mascot->inifile=dest_file; NkrSave(Mascot); } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); Mascot->flag_menu=FALSE; } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥ê¥ê¡¼¥¹ÍÑ¥Þ¥¹¥³¥Ã¥È¤ÎÊݸ void SaveReleaseMascot(GtkWidget *w, gpointer gdata) { GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveReleaseMascot *cdata; gchar *dest_file; gchar tmp_label[128]; gchar *tmp_file,*tmp_file1,*tmp_file2; int i_pix; char *fname; cdata=(confSaveReleaseMascot *)gdata; fname #ifdef __GTK_FILE_CHOOSER_H__ =g_strdup(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(cdata->fdialog))); #else =g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(cdata->fdialog))); #endif gtk_widget_unmap(GTK_WIDGET(cdata->fdialog)); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveRelease,(gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ if(cdata->new_copyright){ Mascot->copyright=g_strdup(cdata->new_copyright); } else{ Mascot->copyright=NULL; } if(cdata->new_name){ Mascot->name=g_strdup(cdata->new_name); } else{ Mascot->name=NULL; } if(cdata->new_code){ Mascot->code=g_strdup(cdata->new_code); } else{ Mascot->code=NULL; } Mascot->file=dest_file; SaveMascot(Mascot,TRUE); SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } if(!cdata->clk_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } if(!cdata->clk_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } tmp_file = g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S,NULL); #ifdef USE_WIN32 tmp_file1 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else tmp_file1 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif #ifdef USE_COMMON tmp_file2 = g_strdup(COMMON_DIR); if((strcmp(tmp_file,tmp_file1)!=0)&& (strcmp(tmp_file,tmp_file2)!=0)){ #else if((strcmp(tmp_file,tmp_file1)!=0)){ #endif for(i_pix=0;i_pixnPixmap;i_pix++){ tmp_file=g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S, my_basename(Mascot->sprites[i_pix].filename), NULL); if(access(tmp_file,F_OK)!=0){ copy_file(Mascot->sprites[i_pix].filename,tmp_file); } } } } } else{ if(cdata->new_copyright){ Mascot->copyright=g_strdup(cdata->new_copyright); } else{ Mascot->copyright=NULL; } if(cdata->new_name){ Mascot->name=g_strdup(cdata->new_name); } else{ Mascot->name=NULL; } if(cdata->new_code){ Mascot->code=g_strdup(cdata->new_code); } else{ Mascot->code=NULL; } Mascot->file=dest_file; SaveMascot(Mascot,TRUE); SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } if(!cdata->clk_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } if(!cdata->clk_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } tmp_file = g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S,NULL); #ifdef USE_WIN32 tmp_file1 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else tmp_file1 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif #ifdef USE_COMMON tmp_file2 = g_strdup(COMMON_DIR); if((strcmp(tmp_file,tmp_file1)!=0)&& (strcmp(tmp_file,tmp_file2)!=0)){ #else if((strcmp(tmp_file,tmp_file1)!=0)){ #endif for(i_pix=0;i_pixnPixmap;i_pix++){ tmp_file=g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S, my_basename(Mascot->sprites[i_pix].filename), NULL); if(access(tmp_file,F_OK)!=0){ copy_file(Mascot->sprites[i_pix].filename,tmp_file); } } } } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fdialog)); g_free(fname); Mascot->flag_menu=FALSE; } // ¥ê¥ê¡¼¥¹ÍÑ¥Þ¥¹¥³¥Ã¥ÈÊݸ : Copyright¤ÎÆþÎϽªÎ» void GoRelease(GtkWidget *w, gpointer gdata) { confSaveReleaseMascot *cdata; cdata=(confSaveReleaseMascot *)gdata; cdata->update=TRUE; cdata->new_copyright= g_strdup(gtk_entry_get_text(GTK_ENTRY(cdata->copyright_entry))); cdata->new_name= g_strdup(gtk_entry_get_text(GTK_ENTRY(cdata->name_entry))); cdata->new_code= g_strdup(gtk_entry_get_text(GTK_ENTRY(cdata->code_entry))); cdata->clk_font_flag= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->clk_font_check)); cdata->bal_font_flag= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->bal_font_check)); cdata->clk_color_flag= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->clk_color_check)); cdata->bal_color_flag= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->bal_color_check)); gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥á¥Ë¥å¡¼¤ÎÊݸ #ifndef __GTK_FILE_CHOOSER_H__ void SaveMenuOther(GtkWidget *w, GtkFileSelection *fs) { GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; dest_file =g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); gtk_widget_unmap(GTK_WIDGET(fs)); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("Menu Save : Overwrite Confirmation")); sprintf(tmp_label,_("Menu File %s already exists."),dest_file); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->menu_file=dest_file; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Saved Menu as ...%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->menu_file=dest_file; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Saved Menu as ...%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); Mascot->flag_menu=FALSE; } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥ê¥½¡¼¥¹¤ÎÊݸ #ifndef __GTK_FILE_CHOOSER_H__ void SaveRCOther(GtkWidget *w, GtkFileSelection *fs) { GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; dest_file=g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); gtk_widget_unmap(GTK_WIDGET(fs)); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("Resource Save : Overwrite Confirmation")); sprintf(tmp_label,_("Resource File %s already exists."),dest_file); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther,(gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->rcfile=dest_file; SaveRC(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Resource as ...%%n \"%s\""),Mascot->rcfile); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->rcfile=dest_file; SaveRC(Mascot,TRUE); SaveRC(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Resource as ...%%n \"%s\""),Mascot->rcfile); DoSysBalloon(Mascot,buf); g_free(buf); } } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(fs)); Mascot->flag_menu=FALSE; } #endif // POP¥Ñ¥¹¥ï¡¼¥É¤ÎÊѹ¹ (Biffµ¯Æ°»þ biff_init) void ChangePopPass(GtkWidget *w, gpointer gdata) { confPopPass *cdata; cdata=(confPopPass *)gdata; Mascot->mail.pop_pass= g_strdup(gtk_entry_get_text(GTK_ENTRY(cdata->entry))); gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } #ifdef __GTK_COLOR_BUTTON_H__ // ¿§ÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¿§¤ÎÊѹ¹ void ChangeFontButton(GtkWidget *w, gpointer gdata) { int bal_clk; bal_clk=(int)gdata; switch(bal_clk){ case CONF_FONT_CLK: if(tmp_mascot.fontname_clk) g_free(tmp_mascot.fontname_clk); tmp_mascot.fontname_clk =g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(w))); break; case CONF_FONT_BAL: if(tmp_mascot.fontname_bal) g_free(tmp_mascot.fontname_bal); tmp_mascot.fontname_bal =g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(w))); break; case CONF_DEF_FONT_CLK: if(tmp_mascot.deffontname_clk) g_free(tmp_mascot.deffontname_clk); tmp_mascot.deffontname_clk =g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(w))); break; case CONF_DEF_FONT_BAL: if(tmp_mascot.deffontname_bal) g_free(tmp_mascot.deffontname_bal); tmp_mascot.deffontname_bal =g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(w))); break; } } #else // ¥Õ¥©¥ó¥ÈÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥Õ¥©¥ó¥È¤ÎÊѹ¹ void ChangeFontname(GtkWidget *w, gpointer gdata) { confFont *cdata; cdata=(confFont *)gdata; cdata->fn=gtk_font_selection_dialog_get_font_name(cdata->fsd); if(cdata->fn){ gtk_entry_set_text(GTK_ENTRY(cdata->entry),cdata->fn); } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fsd)); } #endif #ifdef __GTK_COLOR_BUTTON_H__ // ¿§ÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¿§¤ÎÊѹ¹ void ChangeColorButton(GtkWidget *w, gpointer gdata) { int bal_clk; bal_clk=(int)gdata; switch(bal_clk){ case CONF_COLOR_CLK: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colclk); break; case CONF_COLOR_CLKBG: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colclkbg); break; case CONF_COLOR_CLKBD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colclkbd); break; case CONF_COLOR_CLKSD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colclksd); break; case CONF_COLOR_BAL: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colbal); break; case CONF_COLOR_BALBG: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colbalbg); break; case CONF_COLOR_BALBD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.colbalbd); break; case CONF_DEF_COLOR_CLK: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colclk); break; case CONF_DEF_COLOR_CLKBG: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colclkbg); break; case CONF_DEF_COLOR_CLKBD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colclkbd); break; case CONF_DEF_COLOR_CLKSD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colclksd); break; case CONF_DEF_COLOR_BAL: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colbal); break; case CONF_DEF_COLOR_BALBG: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colbalbg); break; case CONF_DEF_COLOR_BALBD: gtk_color_button_get_color(GTK_COLOR_BUTTON(w),tmp_mascot.def_colbalbd); break; } #ifdef USE_CAIRO switch(bal_clk){ case CONF_COLOR_CLK: tmp_mascot.alpclk=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #ifndef USE_WIN32 case CONF_COLOR_CLKBG: tmp_mascot.alpclkbg=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #endif case CONF_COLOR_CLKBD: tmp_mascot.alpclkbd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; case CONF_COLOR_CLKSD: tmp_mascot.alpclksd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; case CONF_COLOR_BAL: tmp_mascot.alpbal=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #ifndef USE_WIN32 case CONF_COLOR_BALBG: tmp_mascot.alpbalbg=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #endif case CONF_COLOR_BALBD: tmp_mascot.alpbalbd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; case CONF_DEF_COLOR_CLK: tmp_mascot.def_alpclk=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #ifndef USE_WIN32 case CONF_DEF_COLOR_CLKBG: tmp_mascot.def_alpclkbg=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #endif case CONF_DEF_COLOR_CLKBD: tmp_mascot.def_alpclkbd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; case CONF_DEF_COLOR_CLKSD: tmp_mascot.def_alpclksd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; case CONF_DEF_COLOR_BAL: tmp_mascot.def_alpbal=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #ifndef USE_WIN32 case CONF_DEF_COLOR_BALBG: tmp_mascot.def_alpbalbg=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; #endif case CONF_DEF_COLOR_BALBD: tmp_mascot.def_alpbalbd=gtk_color_button_get_alpha(GTK_COLOR_BUTTON(w)); break; } #endif } #else // ¿§ÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¿§¤ÎÊѹ¹ void ChangeColor(GtkWidget *w, gpointer gdata) { confColor *cdata; gdouble selcolor[4]; cdata=(confColor *)gdata; gtk_color_selection_get_color(GTK_COLOR_SELECTION(cdata->csd->colorsel), selcolor); cdata->color->red= selcolor[0]*0xFFFF; cdata->color->green=selcolor[1]*0xFFFF; cdata->color->blue= selcolor[2]*0xFFFF; gdk_color_alloc(gdk_colormap_get_system(),cdata->color); change_bgcolor(cdata->button,*cdata->color); #ifdef USE_CAIRO cdata->alpha= gtk_color_selection_get_current_alpha (GTK_COLOR_SELECTION(cdata->csd->colorsel)); #endif cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->csd)); } #endif static void close_dialog(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); gtk_main_quit(); gtk_widget_destroy(dialog); Mascot->flag_menu=FALSE; } #ifdef USE_COMMON static void close_cons(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); gtk_widget_destroy(dialog); gtk_main_quit(); Mascot->flag_menu=FALSE; } static void ow_cons(GtkWidget *w, gpointer gdata) { consType *cdata; cdata=(consType *)gdata; cdata->flag_auto= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->auto_check)); cdata->flag_ow=TRUE; gtk_widget_destroy(cdata->dialog); gtk_main_quit(); Mascot->flag_menu=FALSE; } static void noow_cons(GtkWidget *w, gpointer gdata) { consType *cdata; cdata=(consType *)gdata; cdata->flag_auto= gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cdata->auto_check)); cdata->flag_ow=FALSE; gtk_widget_destroy(cdata->dialog); gtk_main_quit(); Mascot->flag_menu=FALSE; } #endif static void close_new_mascot_dialog(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); gtk_main_quit(); gtk_widget_destroy(dialog); } static void close_child_dialog(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); gtk_main_quit(); gtk_widget_destroy(dialog); } gboolean close_popup(gpointer data) { GtkWidget *dialog; dialog=(GtkWidget *)data; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(dialog)); return(FALSE); } static void destroy_popup(GtkWidget *w, gpointer data) { guint timer; timer=(guint)data; g_source_remove((guint)timer); gtk_main_quit(); } static void close_conf(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); if(flagChildDialog){ return; } LoadPixmaps(win_main, Mascot, Mascot->sprites); DrawMascot0(Mascot); // ¥Æ¥¹¥Èɽ¼¨¤ÇShape¤¬ÊѤï¤Ã¤¿¾ì¹ç¤Î¤¿¤á¤ÎÂбþ if(Mascot->clkmode==CLOCK_PIXMAP){ DrawMascotWithDigit(Mascot); } else{ DrawMascot(Mascot); } while (my_main_iteration(FALSE)); gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); flag_make_pixmap_list=FALSE; Mascot->flag_menu=FALSE; gdk_flush(); } void quit_all(void) { #ifdef __GTK_STATUS_ICON_H__ trayicon_hide(Mascot); trayicon_destroy(Mascot); #endif gtk_main_quit(); exit(0); } static void close_smenu(GtkWidget *w, GtkWidget *dialog) { while (my_main_iteration(FALSE)); gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); if(selected_smenu==-1) gtk_main_quit(); selected_smenu=-1; } // ¥Þ¥¹¥³¥Ã¥È¥Æ¥¹¥Èɽ¼¨ÍÑ¥³¡¼¥ë¥Ð¥Ã¥¯ void TestPut(GtkWidget *w, gpointer gdata) { int i_pix; i_pix=(int)gdata; TestLoadPixmaps(&tmp_mascot, tmp_pixfile[i_pix], i_pix); } // ¥Þ¥¹¥³¥Ã¥È¥Æ¥¹¥Èɽ¼¨ÍÑ¥³¡¼¥ë¥Ð¥Ã¥¯ Animation¥Ú¡¼¥¸ÍÑ void TestPut2(GtkWidget *w, gpointer gdata) { int *i_pix; i_pix=(int *)gdata; TestLoadPixmaps(&tmp_mascot, tmp_pixfile[*i_pix], *i_pix); } // ¥Þ¥¹¥³¥Ã¥È¥Æ¥¹¥Èɽ¼¨ÍÑ¥³¡¼¥ë¥Ð¥Ã¥¯ Animation¥Ú¡¼¥¸ÍÑ void TestAnime(GtkWidget *w, gpointer gdata) { int i_ptn, i_frm; int seqend; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } i_ptn=(int)gdata; gtk_widget_set_sensitive(w, FALSE); i_frm=0; // ¥¢¥Ë¥á while(i_frm=0)){ tmp_mascot.frame_loop[i_ptn][i_frm].seq++; if(tmp_mascot.frame_loop[i_ptn][i_frm].seq==1){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×³«»Ï tmp_mascot.frame_loop[i_ptn][i_frm].seqend= RANDOM(tmp_mascot.frame_loop[i_ptn][i_frm].max -tmp_mascot.frame_loop[i_ptn][i_frm].min+1) +tmp_mascot.frame_loop[i_ptn][i_frm].min; if(tmp_mascot.frame_loop[i_ptn][i_frm].seqend==1){ tmp_mascot.frame_loop[i_ptn][i_frm].seq=0; i_frm++; } else{ i_frm= tmp_mascot.frame_loop[i_ptn][i_frm].next; } } else if(tmp_mascot.frame_loop[i_ptn][i_frm].seqend- tmp_mascot.frame_loop[i_ptn][i_frm].seq<=0){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×½ªÎ» tmp_mascot.frame_loop[i_ptn][i_frm].seq=0; i_frm++; } else{ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×·Ñ³ i_frm= tmp_mascot.frame_loop[i_ptn][i_frm].next; } } else{ i_frm++; } } TestLoadPixmaps(&tmp_mascot, tmp_pixfile[tmp_mascot.frame_pix[0][0]], tmp_mascot.frame_pix[0][0]); /* tmp_mascot.anime_seq++; if((seqend-tmp_mascot.anime_seq)<=0){ //¥Õ¥ì¡¼¥à¤Î½ªÎ» tmp_mascot.anime_seq=0; if(i_frm>=tmp_mascot.frame_num[i_ptn]){ //¥Ñ¥¿¡¼¥ó¤Î½ªÎ» if(i_ptn==0){ if(tmp_mascot.random_total==0){ // ¥é¥ó¥À¥à¥¢¥Ë¥á¤¬¤Ê¤¤¾ì¹ç ¥Ù¡¼¥¹¤ÎÀèÆ¬¤ËÌá¤ë i_frm=0; } else{ // ¥Ù¡¼¥¹¤Î½ªÎ» -> ¥é¥ó¥À¥à¥Ñ¥¿¡¼¥ó¤Ø¤Î°Ü¹Ô i_ptn=weight_random(mascot); i_frm=0; } } else{ // ½é´ü¾õÂÖ¤ØÌá¤ë i_ptn=0; i_frm=0; if(flag_balloon==TRUE){ // ¥Ð¥ë¡¼¥ó¤¬¤Ç¤Æ¤¤¤ë¾ì¹ç¤ÏÊĤ¸¤ë // ¥¯¥ê¥Ã¥¯¥¢¥Ë¥á¤Î½ªÎ» gtk_widget_unmap(balloon_main); flag_balloon=FALSE; } } } else{ //¼¡¤Î¥Õ¥ì¡¼¥à¤Ø°Ü¹Ô } seqend= RANDOM(tmp_mascot.frame_max[i_ptn][i_frm] -tmp_mascot.frame_min[i_ptn][i_frm]+1) +tmp_mascot.frame_min[i_ptn][i_frm]; }*/ gtk_widget_set_sensitive(w, TRUE); flagChildDialog=FALSE; } // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éPixmap¤òÄɲà #ifndef __GTK_FILE_CHOOSER_H__ void AddPixmap(GtkWidget *w, gpointer gdata) { confAddPixmap *cdata; #ifdef USE_GTK2 int i_pix; #endif cdata=(confAddPixmap *)gdata; #ifdef USE_GTK2 i_pix=0; while(gtk_file_selection_get_selections(cdata->fs)[i_pix]){ if(access(gtk_file_selection_get_selections(cdata->fs)[i_pix],F_OK)==0){ if(TestLoadPixmaps(&tmp_mascot, gtk_file_selection_get_selections(cdata->fs)[i_pix], tmp_mascot.nPixmap)){ tmp_pixfile[tmp_mascot.nPixmap] =g_strdup(gtk_file_selection_get_selections(cdata->fs)[i_pix]); tmp_mascot.nPixmap++; cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be loaded."), " ", gtk_file_selection_get_selections(cdata->fs)[i_pix], NULL); #else g_print (_("Cannot Load %s\n"), gtk_file_selection_get_selections(cdata->fs)[i_pix]); #endif } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_selections(cdata->fs)[i_pix], NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_selections(cdata->fs)[i_pix]); #endif } if(tmp_mascot.nPixmap>=MAX_PIXMAP) break; i_pix++; } #else if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ if(TestLoadPixmaps(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs), tmp_mascot.nPixmap)){ tmp_pixfile[tmp_mascot.nPixmap] =g_strdup(gtk_file_selection_get_filename(cdata->fs)); tmp_mascot.nPixmap++; cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be loaded."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Load %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } #endif gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¥À¥¤¥¢¥í¥°¤«¤éPixmap¤òºï½ü void DelPixmap(GtkWidget *w, gpointer gdata) { confDelPixmap *cdata; int i_ptn, i_frm; cdata=(confDelPixmap *)gdata; for(i_ptn=0;i_ptndel_pix){ cdata->hit_ptn=i_ptn; cdata->hit_frm=i_frm; break; } } if(cdata->hit_ptn!=-1) break; } if(cdata->hit_ptn==-1) cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dd)); } // ¥À¥¤¥¢¥í¥°¤«¤éPattern¤òÄɲÃ/ºï½ü void AddDelPattern(GtkWidget *w, gpointer gdata) { confPattern *cdata; cdata=(confPattern *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->pd)); } // ¥À¥¤¥¢¥í¥°¤«¤éPattern¤ò¥³¥Ô¡¼ void CopyPattern(GtkWidget *w, gpointer gdata) { confPatternCopy *cdata; cdata=(confPatternCopy *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->pd)); } // ¥À¥¤¥¢¥í¥°¤«¤éFrame¤òÄɲÃ/ºï½ü void AddDelFrame(GtkWidget *w, gpointer gdata) { confFrame *cdata; cdata=(confFrame *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fd)); } // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éPixmap¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangePixmap(GtkWidget *w, gpointer gdata) { confChangePixmap *cdata; cdata=(confChangePixmap *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ if(TestLoadPixmaps(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs), cdata->i_pix)){ tmp_pixfile[cdata->i_pix] =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be loaded."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Load %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¤Î¤Ã¤«¤ê¥­¥ã¥éÍÑ ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éPixmap¤ò»ØÄê #ifndef __GTK_FILE_CHOOSER_H__ void NkrChangePixmap(GtkWidget *w, gpointer gdata) { confNkrChangePixmap *cdata; cdata=(confNkrChangePixmap *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ cdata->filename =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #ifdef USE_BIFF #ifndef __GTK_FILE_CHOOSER_H__ // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éBiffÍÑ Pixmap¤òÊѹ¹ void ChangeBiffPixmap(GtkWidget *w, gpointer gdata) { confChangeBiffPixmap *cdata; cdata=(confChangeBiffPixmap *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.mail.pix_file =g_strdup(FullPathPixmapFile(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs))); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #endif // USE_BIFF // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éTarget¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeTgt(GtkWidget *w, gpointer gdata) { confChangeTgt *cdata; cdata=(confChangeTgt *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.menu_tgt[cdata->i_cat][cdata->i_tgt] =g_strdup(my_basename(gtk_file_selection_get_filename(cdata->fs))); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤é¤Î¥á¥Ë¥å¡¼¤ÎµÛ¼ý #ifndef __GTK_FILE_CHOOSER_H__ void MergeCatFS(GtkWidget *w, gpointer gdata) { confMergeCat *cdata; gchar *merge_file; gint menu_cat_max_old; #ifdef USE_GTK2 int i_menu; #endif cdata=(confMergeCat *)gdata; #ifdef USE_GTK2 i_menu=0; while(gtk_file_selection_get_selections(cdata->fs)[i_menu]){ if(access(gtk_file_selection_get_selections(GTK_FILE_SELECTION(cdata->fs))[i_menu], F_OK)==0){ merge_file=g_strdup( gtk_file_selection_get_selections(GTK_FILE_SELECTION(cdata->fs))[i_menu]); gtk_widget_destroy(PopupMenu); menu_cat_max_old=tmp_mascot.menu_cat_max; ReadMenu(&tmp_mascot,tmp_mascot.menu_cat_max,merge_file); if(tmp_mascot.menu_cat_max>MAX_MENU_CATEGORY){ tmp_mascot.menu_cat_max=menu_cat_max_old; } cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename(GTK_FILE_SELECTION(cdata->fs))[i_menu], NULL); #else g_print(_("Cannot Open %s\n"), gtk_file_selection_get_filename(GTK_FILE_SELECTION(cdata->fs))[i_menu]); #endif } if(tmp_mascot.menu_cat_max>=MAX_MENU_CATEGORY) break; i_menu++; } if(cdata->update) PopupMenu=make_popup_menu(); #else if(access(gtk_file_selection_get_filename(GTK_FILE_SELECTION(cdata->fs)), F_OK)==0){ merge_file=g_strdup( gtk_file_selection_get_filename(GTK_FILE_SELECTION(cdata->fs))); gtk_widget_destroy(PopupMenu); ReadMenu(&tmp_mascot,tmp_mascot.menu_cat_max,merge_file); PopupMenu=make_popup_menu(); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (GTK_FILE_SELECTION (cdata->fs)), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (GTK_FILE_SELECTION (cdata->fs))); #endif } #endif gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¥À¥¤¥¢¥í¥°¤«¤éTarget¤òºï½ü void DelTgt(GtkWidget *w, gpointer gdata) { confDelTgt *cdata; cdata=(confDelTgt *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dd)); } // ¥À¥¤¥¢¥í¥°¤«¤éCategory¤òÄɲÃ/ºï½ü void AddDelCat(GtkWidget *w, gpointer gdata) { confCat *cdata; cdata=(confCat *)gdata; cdata->update=TRUE; gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->pd)); } // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éClick Sound¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeDuetTgt(GtkWidget *w, gpointer gdata) { confChangeDuetTgt *cdata; cdata=(confChangeDuetTgt *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.duet_tgt[cdata->i_ptn] =g_strdup(my_basename(FullPathMascotFile(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs)))); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #ifndef __GTK_FILE_CHOOSER_H__ void ChangeClickSound(GtkWidget *w, gpointer gdata) { confChangeClickSound *cdata; cdata=(confChangeClickSound *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.click_sound[cdata->i_ptn] =g_strdup(FullPathSoundFile(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs),FALSE)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #ifdef USE_BIFF // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éBiff Sound¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeBiffSound(GtkWidget *w, gpointer gdata) { confChangeBiffSound *cdata; cdata=(confChangeBiffSound *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.mail.sound =g_strdup(FullPathSoundFile(&tmp_mascot, gtk_file_selection_get_filename(cdata->fs),FALSE)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éMail»²¾È¥Õ¥¡¥¤¥ë¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeMailFile(GtkWidget *w, gpointer gdata) { confMailFile *cdata; cdata=(confMailFile *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.mail.file =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif // ¥Õ¥¡¥¤¥ëÁªÂò¥À¥¤¥¢¥í¥°¤«¤éMailerµ¯Æ°¥³¥Þ¥ó¥É¤òÊѹ¹ #ifndef __GTK_FILE_CHOOSER_H__ void ChangeMailer(GtkWidget *w, gpointer gdata) { confMailer *cdata; cdata=(confMailer *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ tmp_mascot.mail.mailer =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #endif // USE_BIFF static void create_change_image_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; char win_title[64]; gint i_pix; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } i_pix=(gint)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"), i_pix); fdialog = gtk_file_chooser_dialog_new(_(win_title), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL,GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response(GTK_DIALOG(fdialog), GTK_RESPONSE_ACCEPT); gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_pixfile[i_pix])); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_pixfile[i_pix])); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_PIX); my_file_chooser_add_filter(fdialog,_("All File"),"*"); my_file_chooser_add_filter(fdialog,"PNG",PNG_EXTENSION); my_file_chooser_add_filter(fdialog,"GIF",GIF_EXTENSION); my_file_chooser_add_filter(fdialog,"XPM",XPM_EXTENSION); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = g_strdup(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog))); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ if(TestLoadPixmaps(&tmp_mascot,dest_file,i_pix)){ tmp_pixfile[i_pix]=dest_file; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be loaded."), " ", fname, NULL); #else g_print (_("Cannot Load %s\n"), fname); #endif } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"), fname); #endif } gtk_entry_set_text(GTK_ENTRY(pixmap_entry[i_pix]),my_basename(fname)); g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confChangePixmap *cdata; char win_title[64]; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"), cdata->i_pix); fdialog = gtk_file_selection_new(_(win_title)); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangePixmap, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), tmp_pixfile[cdata->i_pix]); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_updir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dpdir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(PNG_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_pngext, (gpointer)fdialog); button=gtk_button_new_with_label(GIF_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_gifext, (gpointer)fdialog); button=gtk_button_new_with_label(XPM_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_xpmext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(pixmap_entry[cdata->i_pix]), my_basename(tmp_pixfile[cdata->i_pix])); } flagChildDialog=FALSE; g_free(cdata); #endif } gchar* create_nkr_change_image_dialog (gchar *lost_filename, int i_pix) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; char win_title[64]; gchar *fname, *dir; gchar *dest_file; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"),i_pix); fdialog = gtk_file_chooser_dialog_new(_(win_title), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(lost_filename)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(lost_filename)); sprintf(win_title,_("Please select the image File for No.%d."),i_pix); #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("The image described in INI cannot be found."), " ", win_title, NULL); #else g_print (_("The image described in INI cannot be found.\n")); g_print ("%s\n",win_title); #endif my_file_chooser_add_shortcut_folder(fdialog,FOLDER_PIX); my_file_chooser_add_filter(fdialog,"BMP",BMP_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)!=0){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; return(dest_file); #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *label; confNkrChangePixmap *cdata; char win_title[64]; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=g_malloc0(sizeof(confNkrChangePixmap)); cdata->filename=NULL; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"),i_pix); fdialog = gtk_file_selection_new(_(win_title)); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy", close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", NkrChangePixmap, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), lost_filename); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); vbox = gtk_vbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), vbox,FALSE,FALSE,0); label=gtk_label_new(_("The image described in INI cannot be found.")); gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); sprintf(win_title,_("Please select the image File for No.%d."),i_pix); label=gtk_label_new(win_title); gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(vbox),hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_updir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dpdir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(BMP_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_bmpext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); flagChildDialog=FALSE; return(cdata->filename); #endif } #ifdef USE_BIFF static void create_change_biff_image_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; GtkWidget *pix_entry; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } pix_entry=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select New Image for Biff"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if(tmp_mascot.mail.pix_file){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.pix_file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.pix_file)); } else{ my_file_chooser_set_current_folder(fdialog, FOLDER_PIX); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_PIX); my_file_chooser_add_filter(fdialog,_("All File"),"*"); my_file_chooser_add_filter(fdialog,"PNG",PNG_EXTENSION); my_file_chooser_add_filter(fdialog,"GIF",GIF_EXTENSION); my_file_chooser_add_filter(fdialog,"XPM",XPM_EXTENSION); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.mail.pix_file =g_strdup(FullPathPixmapFile(&tmp_mascot,dest_file)); gtk_entry_set_text(GTK_ENTRY(pix_entry), to_utf8(my_basename(tmp_mascot.mail.pix_file))); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; GtkWidget *pix_entry; confChangeBiffPixmap *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=g_malloc0(sizeof(confChangeBiffPixmap)); pix_entry=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select New Image for Biff")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeBiffPixmap, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); if(tmp_mascot.mail.pix_file){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), tmp_mascot.mail.pix_file); } else{ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), #ifdef USE_WIN32 g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,PIXDIR, NULL)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), "*"); } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_updir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dpdir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(PNG_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_pngext, (gpointer)fdialog); button=gtk_button_new_with_label(GIF_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_gifext, (gpointer)fdialog); button=gtk_button_new_with_label(XPM_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_xpmext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(pix_entry), my_basename(tmp_mascot.mail.pix_file)); } flagChildDialog=FALSE; g_free(cdata); #endif } #endif // USE_BIFF static void create_add_image_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *scrwin; GtkWidget *fdialog; char win_title[64]; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.nPixmap>=MAX_PIXMAP){ popup_message(POPUP_TIMEOUT, _("Error: Append Image."), " ", _("The number of images maxes out."), NULL); return; } scrwin=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"), tmp_mascot.nPixmap); fdialog = gtk_file_chooser_dialog_new(_(win_title), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); #ifdef USE_GTK2 gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(fdialog),TRUE); #endif if(tmp_pixfile[tmp_mascot.nPixmap-1][0]=='/'){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_pixfile[tmp_mascot.nPixmap-1])); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_pixfile[tmp_mascot.nPixmap-1])); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_PIX); my_file_chooser_add_filter(fdialog,_("All File"),"*"); my_file_chooser_add_filter(fdialog,"PNG",PNG_EXTENSION); my_file_chooser_add_filter(fdialog,"GIF",GIF_EXTENSION); my_file_chooser_add_filter(fdialog,"XPM",XPM_EXTENSION); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { GSList *fnames; gchar *dest_file; int i_pix; fnames = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); i_pix=0; while((gchar *)g_slist_nth_data(fnames,i_pix)){ dest_file=to_locale((gchar *)g_slist_nth_data(fnames,i_pix)); if(access(dest_file,F_OK)==0){ if(TestLoadPixmaps(&tmp_mascot, dest_file, tmp_mascot.nPixmap)){ tmp_pixfile[tmp_mascot.nPixmap] =g_strdup(dest_file); tmp_mascot.nPixmap++; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be loaded."), " ", (gchar *)g_slist_nth_data(fnames,i_pix), NULL); #else g_print (_("Cannot Load %s\n"),(gchar *)g_slist_nth_data(fnames,i_pix)); #endif } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", (gchar *)g_slist_nth_data(fnames,i_pix), NULL); #else g_print (_("Cannot Open %s\n"),(gchar *)g_slist_nth_data(fnames,i_pix)); #endif } if(tmp_mascot.nPixmap>=MAX_PIXMAP) break; i_pix++; } make_pixmap_list(scrwin); g_slist_free(fnames); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *scrwin; GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confAddPixmap *cdata; char win_title[64]; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.nPixmap>=MAX_PIXMAP){ popup_message(POPUP_TIMEOUT, _("Error: Append Image."), " ", _("The number of images maxes out."), NULL); return; } scrwin=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confAddPixmap)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); sprintf(win_title,_("Select New Image for No.%02d"), tmp_mascot.nPixmap); fdialog = gtk_file_selection_new(_(win_title)); #ifdef USE_GTK2 gtk_file_selection_set_select_multiple(GTK_FILE_SELECTION(fdialog),TRUE); #endif cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", AddPixmap, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), tmp_pixfile[tmp_mascot.nPixmap-1]); //gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), // MASCOT_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_updir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dpdir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(PNG_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_pngext, (gpointer)fdialog); button=gtk_button_new_with_label(GIF_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_gifext, (gpointer)fdialog); button=gtk_button_new_with_label(XPM_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_xpmext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ make_pixmap_list(scrwin); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_del_image_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *scrwin; GtkWidget *deldialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confDelPixmap *cdata; gchar tmp_label[128]; int i_pix, i_ptn, i_frm; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } scrwin=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confDelPixmap)); cdata->del_pix=tmp_mascot.nPixmap-1; cdata->hit_ptn=-1; cdata->hit_frm=-1; cdata->update=FALSE; deldialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(deldialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(deldialog),5); gtk_window_set_title(GTK_WINDOW(deldialog),_("Select Image No. to Delete")); cdata->dd=deldialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Delete Image No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.nPixmap-1, 0,(gfloat)tmp_mascot.nPixmap-1, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->del_pix); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog,GTK_WIDGET(deldialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",DelPixmap, (gpointer)cdata); gtk_widget_show_all(deldialog); gtk_main(); if(cdata->update){ for(i_ptn=0;i_ptncdata->del_pix){ tmp_mascot.frame_pix[i_ptn][i_frm]--; } } } for(i_pix=cdata->del_pix;i_pixhit_ptn!=-1){ deldialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(deldialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(deldialog),5); gtk_window_set_title(GTK_WINDOW(deldialog), _("Error : Delete Image.")); sprintf(tmp_label,_("Image %02d is used in Pattern %02d / Frame %02d\n"), cdata->del_pix,cdata->hit_ptn,cdata->hit_frm); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Please Change...")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->vbox), label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(deldialog)); gtk_widget_show_all(deldialog); gtk_main(); } g_free(cdata); flagChildDialog=FALSE; } static void create_add_pattern_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *ptn_note; GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confPattern *cdata; int i_ptn,i_frm; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(pattern_num>=MAX_ANIME_PATTERN){ popup_message(POPUP_TIMEOUT, _("Error: Append Pattern."), " ", _("The number of patterns maxes out."), NULL); return; } ptn_note=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confPattern)); cdata->dest_ptn=pattern_num; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Pattern No. to Append")); cdata->pd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Append Pattern No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)pattern_num, 1,(gfloat)pattern_num,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_ptn); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelPattern, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ for(i_ptn=pattern_num;i_ptn>cdata->dest_ptn;i_ptn--){ tmp_mascot.frame_num[i_ptn]=tmp_mascot.frame_num[i_ptn-1]; tmp_mascot.random_weight[i_ptn]=tmp_mascot.random_weight[i_ptn-1]; tmp_mascot.click_weight[i_ptn]=tmp_mascot.click_weight[i_ptn-1]; tmp_mascot.bal_lxoff[i_ptn]=tmp_mascot.bal_lxoff[i_ptn-1]; tmp_mascot.bal_lyoff[i_ptn]=tmp_mascot.bal_lyoff[i_ptn-1]; tmp_mascot.bal_rxoff[i_ptn]=tmp_mascot.bal_rxoff[i_ptn-1]; tmp_mascot.bal_ryoff[i_ptn]=tmp_mascot.bal_ryoff[i_ptn-1]; tmp_mascot.click_word[i_ptn]=tmp_mascot.click_word[i_ptn-1]; tmp_mascot.duet_tgt[i_ptn]=tmp_mascot.duet_tgt[i_ptn-1]; tmp_mascot.duet_ptn[i_ptn]=tmp_mascot.duet_ptn[i_ptn-1]; tmp_mascot.duet_word[i_ptn]=tmp_mascot.duet_word[i_ptn-1]; tmp_mascot.duet_delay[i_ptn]=tmp_mascot.duet_delay[i_ptn-1]; for(i_frm=0;i_frmdest_ptn][0]=0; tmp_mascot.frame_min[cdata->dest_ptn][0]=1; tmp_mascot.frame_max[cdata->dest_ptn][0]=1; tmp_mascot.frame_loop[cdata->dest_ptn][0].next=-1; tmp_mascot.frame_loop[cdata->dest_ptn][0].min=0; tmp_mascot.frame_loop[cdata->dest_ptn][0].max=0; tmp_mascot.frame_num[cdata->dest_ptn]=1; tmp_mascot.random_weight[cdata->dest_ptn]=0; tmp_mascot.click_weight[cdata->dest_ptn]=0; tmp_mascot.bal_lxoff[cdata->dest_ptn]=0; tmp_mascot.bal_lyoff[cdata->dest_ptn]=0; tmp_mascot.bal_rxoff[cdata->dest_ptn]=0; tmp_mascot.bal_ryoff[cdata->dest_ptn]=0; tmp_mascot.click_word[cdata->dest_ptn]=NULL; tmp_mascot.duet_tgt[cdata->dest_ptn]=NULL; tmp_mascot.duet_ptn[cdata->dest_ptn]=1; tmp_mascot.duet_word[cdata->dest_ptn]=NULL; tmp_mascot.duet_delay[cdata->dest_ptn]=DEF_DUET_DELAY; for(i_frm=1;i_frmdest_ptn][i_frm]=-1; tmp_mascot.frame_min[cdata->dest_ptn][i_frm]=0; tmp_mascot.frame_max[cdata->dest_ptn][i_frm]=0; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].next=-1; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].min=0; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].max=0; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].seq=0; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].seqend=0; } pattern_num++; for(i_ptn=cdata->dest_ptn;i_ptndest_ptn); #else gtk_notebook_set_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn); #endif gtk_widget_queue_draw(GTK_WIDGET(ptn_note)); } g_free(cdata); flagChildDialog=FALSE; } static void create_del_pattern_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *ptn_note; GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confPattern *cdata; int i_ptn,i_frm; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(pattern_num==1){ popup_message(POPUP_TIMEOUT, _("Error: Delete Pattern."), " ", _("You cannot delete the base pattern."), NULL); return; } ptn_note=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confPattern)); cdata->dest_ptn=pattern_num-1; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Pattern No. to Delete")); cdata->pd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Delete Pattern No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)gtk_notebook_get_current_page(GTK_NOTEBOOK(ptn_note)), 1,(gfloat)pattern_num-1,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_ptn); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelPattern, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ for(i_ptn=cdata->dest_ptn;i_ptn=cdata->dest_ptn;i_ptn--){ gtk_notebook_remove_page(GTK_NOTEBOOK(ptn_note),i_ptn); flag_make_frame_list[i_ptn]=FALSE; flag_make_pattern_list[i_ptn]=FALSE; gtk_widget_queue_draw (GTK_WIDGET(ptn_note)); } tmp_mascot.frame_num[pattern_num-1]=0; tmp_mascot.random_weight[pattern_num-1]=0; tmp_mascot.click_weight[pattern_num-1]=0; tmp_mascot.bal_lxoff[pattern_num-1]=0; tmp_mascot.bal_lyoff[pattern_num-1]=0; tmp_mascot.bal_rxoff[pattern_num-1]=0; tmp_mascot.bal_ryoff[pattern_num-1]=0; tmp_mascot.click_word[pattern_num-1]=NULL; tmp_mascot.duet_tgt[pattern_num-1]=NULL; tmp_mascot.duet_ptn[pattern_num-1]=1; tmp_mascot.duet_word[pattern_num-1]=NULL; tmp_mascot.duet_delay[pattern_num-1]=DEF_DUET_DELAY; for(i_frm=0;i_frmdest_ptn;i_ptndest_ptn<=pattern_num){ #ifdef USE_GTK2 gtk_notebook_set_current_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn-1); #else gtk_notebook_set_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn-1); #endif } else{ #ifdef USE_GTK2 gtk_notebook_set_current_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn); #else gtk_notebook_set_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn); #endif } gtk_widget_queue_draw(GTK_WIDGET(ptn_note)); } g_free(cdata); flagChildDialog=FALSE; } static void create_copy_pattern_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *ptn_note; GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confPatternCopy *cdata; int i_ptn,i_frm; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(pattern_num==1){ popup_message(POPUP_TIMEOUT, _("Error: Copy Pattern."), " ", _("You should append new pattern to copy."), NULL); return; } ptn_note=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confPatternCopy)); cdata->dest_ptn=pattern_num-1; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Pattern Copy")); cdata->pd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Pattern Copy : No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)gtk_notebook_get_current_page(GTK_NOTEBOOK(ptn_note)), 1,(gfloat)pattern_num-1,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->from_ptn); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); label=gtk_label_new(_(" -> No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)pattern_num-1, 1,(gfloat)pattern_num-1,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_ptn); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",CopyPattern, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ tmp_mascot.frame_num[cdata->dest_ptn] =tmp_mascot.frame_num[cdata->from_ptn]; tmp_mascot.random_weight[cdata->dest_ptn] =tmp_mascot.random_weight[cdata->from_ptn]; tmp_mascot.click_weight[cdata->dest_ptn] =tmp_mascot.click_weight[cdata->from_ptn]; tmp_mascot.bal_lxoff[cdata->dest_ptn] =tmp_mascot.bal_lxoff[cdata->from_ptn]; tmp_mascot.bal_lyoff[cdata->dest_ptn] =tmp_mascot.bal_lyoff[cdata->from_ptn]; tmp_mascot.bal_rxoff[cdata->dest_ptn] =tmp_mascot.bal_rxoff[cdata->from_ptn]; tmp_mascot.bal_ryoff[cdata->dest_ptn] =tmp_mascot.bal_ryoff[cdata->from_ptn]; tmp_mascot.click_word[cdata->dest_ptn] =tmp_mascot.click_word[cdata->from_ptn]; tmp_mascot.duet_tgt[cdata->dest_ptn] =tmp_mascot.duet_tgt[cdata->from_ptn]; tmp_mascot.duet_ptn[cdata->dest_ptn] =tmp_mascot.duet_ptn[cdata->from_ptn]; tmp_mascot.duet_word[cdata->dest_ptn] =tmp_mascot.duet_word[cdata->from_ptn]; tmp_mascot.duet_delay[cdata->dest_ptn] =tmp_mascot.duet_delay[cdata->from_ptn]; for(i_frm=0;i_frmdest_ptn][i_frm] =tmp_mascot.frame_pix[cdata->from_ptn][i_frm]; tmp_mascot.frame_min[cdata->dest_ptn][i_frm] =tmp_mascot.frame_min[cdata->from_ptn][i_frm]; tmp_mascot.frame_max[cdata->dest_ptn][i_frm] =tmp_mascot.frame_max[cdata->from_ptn][i_frm]; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].next =tmp_mascot.frame_loop[cdata->from_ptn][i_frm].next; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].min =tmp_mascot.frame_loop[cdata->from_ptn][i_frm].min; tmp_mascot.frame_loop[cdata->dest_ptn][i_frm].max =tmp_mascot.frame_loop[cdata->from_ptn][i_frm].max; } for(i_ptn=pattern_num-1;i_ptn>=cdata->dest_ptn;i_ptn--){ gtk_notebook_remove_page(GTK_NOTEBOOK(ptn_note),i_ptn); flag_make_frame_list[i_ptn]=FALSE; flag_make_pattern_list[i_ptn]=FALSE; gtk_widget_queue_draw (GTK_WIDGET(ptn_note)); } for(i_ptn=cdata->dest_ptn;i_ptndest_ptn); #else gtk_notebook_set_page(GTK_NOTEBOOK(ptn_note), cdata->dest_ptn); #endif gtk_widget_queue_draw(GTK_WIDGET(ptn_note)); } g_free(cdata); flagChildDialog=FALSE; } static void create_add_frame_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confFrame *cdata; int i_ptn,i_frm; i_ptn=(int)gdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.frame_num[i_ptn]>=MAX_ANIME_FRAME){ popup_message(POPUP_TIMEOUT, _("Error: Append Frame."), " ", _("The number of frames maxes out."), NULL); return; } cdata=g_malloc0(sizeof(confFrame)); cdata->dest_frm=tmp_mascot.frame_num[i_ptn]; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Frame No. to Append")); cdata->fd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Append Frame No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_num[i_ptn], 0, (gfloat)tmp_mascot.frame_num[i_ptn],1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_frm); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelFrame, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ for(i_frm=tmp_mascot.frame_num[i_ptn];i_frm>cdata->dest_frm;i_frm--){ tmp_mascot.frame_pix[i_ptn][i_frm]=tmp_mascot.frame_pix[i_ptn][i_frm-1]; tmp_mascot.frame_min[i_ptn][i_frm]=tmp_mascot.frame_min[i_ptn][i_frm-1]; tmp_mascot.frame_max[i_ptn][i_frm]=tmp_mascot.frame_max[i_ptn][i_frm-1]; tmp_mascot.frame_loop[i_ptn][i_frm].next =tmp_mascot.frame_loop[i_ptn][i_frm-1].next; tmp_mascot.frame_loop[i_ptn][i_frm].min =tmp_mascot.frame_loop[i_ptn][i_frm-1].min; tmp_mascot.frame_loop[i_ptn][i_frm].max =tmp_mascot.frame_loop[i_ptn][i_frm-1].max; } tmp_mascot.frame_pix[i_ptn][cdata->dest_frm]=0; tmp_mascot.frame_min[i_ptn][cdata->dest_frm]=1; tmp_mascot.frame_max[i_ptn][cdata->dest_frm]=1; tmp_mascot.frame_loop[i_ptn][cdata->dest_frm].next=-1; tmp_mascot.frame_loop[i_ptn][cdata->dest_frm].min=0; tmp_mascot.frame_loop[i_ptn][cdata->dest_frm].max=0; tmp_mascot.frame_num[i_ptn]++; make_frame_list(i_ptn); } g_free(cdata); flagChildDialog=FALSE; } static void create_del_frame_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confFrame *cdata; int i_ptn,i_frm; i_ptn=(int)gdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.frame_num[i_ptn]==1){ popup_message(POPUP_TIMEOUT, _("Error: Delete Frame."), " ", _("You cannot delete no more frames."), NULL); return; } cdata=g_malloc0(sizeof(confFrame)); cdata->dest_frm=tmp_mascot.frame_num[i_ptn]-1; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Frame No. to Delete")); cdata->fd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Delete Frame No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_num[i_ptn]-1, 0, (gfloat)tmp_mascot.frame_num[i_ptn]-1,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_frm); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelFrame, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ for(i_frm=cdata->dest_frm;i_frmi_cat=i_cat; cdata->i_tgt=i_tgt; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select Mascot File")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeTgt, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt])); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ tmp_mascot.menu_tgt_name[i_cat][i_tgt] =ReadMascotName(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt]); make_tgt_list(i_cat); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_add_tgt_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ int i_cat, i_tgt; GtkWidget *fdialog; i_cat=(int)gdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.menu_tgt_max[i_cat]>=MAX_MENU_TARGET){ popup_message(POPUP_TIMEOUT, _("Error: Append Mascot."), " ", _("The number of mascots maxes out."), NULL); return; } // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select New Mascot File"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); i_tgt=tmp_mascot.menu_tgt_max[i_cat]; gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt-1]))); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt-1]))); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_filter(fdialog,_("Mascot File"),MASCOT_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.menu_tgt[i_cat][i_tgt] =g_strdup(my_basename(dest_file)); tmp_mascot.menu_tgt_max[i_cat]++; tmp_mascot.menu_total++; tmp_mascot.menu_tgt_name[i_cat][i_tgt] =ReadMascotName(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt]); make_tgt_list(i_cat); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else int i_cat, i_tgt; GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confChangeTgt *cdata; i_cat=(int)gdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.menu_tgt_max[i_cat]>=MAX_MENU_TARGET){ popup_message(POPUP_TIMEOUT, _("Error: Append Mascot."), " ", _("The number of mascots maxes out."), NULL); return; } cdata=g_malloc0(sizeof(confChangeTgt)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select New Mascot File")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; cdata->i_cat=i_cat; i_tgt=tmp_mascot.menu_tgt_max[i_cat]; cdata->i_tgt=i_tgt; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked",ChangeTgt, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt-1])); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MASCOT_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ tmp_mascot.menu_tgt_max[i_cat]++; tmp_mascot.menu_total++; tmp_mascot.menu_tgt_name[i_cat][i_tgt] =ReadMascotName(&tmp_mascot, tmp_mascot.menu_tgt[i_cat][i_tgt]); make_tgt_list(i_cat); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_del_tgt_dialog(GtkWidget *w, gpointer gdata) { int i_cat, i_tgt, dest_tgt; GtkWidget *deldialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confDelTgt *cdata; i_cat=(int)gdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.menu_tgt_max[i_cat]==1){ popup_message(POPUP_TIMEOUT, _("Error: Delete Mascot."), " ", _("You cannot delete no more mascots."), NULL); return; } dest_tgt=tmp_mascot.menu_tgt_max[i_cat]-1; cdata=g_malloc0(sizeof(confDelTgt)); cdata->update=FALSE; deldialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(deldialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(deldialog),5); gtk_window_set_title(GTK_WINDOW(deldialog),_("Select Mascot No. to Remove from the Menu")); cdata->dd=deldialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Remove Mascot No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)dest_tgt, 0,(gfloat)dest_tgt,1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&dest_tgt); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(deldialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(deldialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",DelTgt, (gpointer)cdata); gtk_widget_show_all(deldialog); gtk_main(); if(cdata->update){ tmp_mascot.menu_tgt_max[i_cat]--; tmp_mascot.menu_total--; for(i_tgt=dest_tgt;i_tgt=MAX_MENU_CATEGORY){ popup_message(POPUP_TIMEOUT, _("Error: Append Category."), " ", _("The number of categories maxes out."), NULL); return; } cdata=g_malloc0(sizeof(confCat)); cdata->dest_cat=tmp_mascot.menu_cat_max; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Category No. to Append")); cdata->pd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Append Category No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.menu_cat_max, 0,(gfloat)tmp_mascot.menu_cat_max, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_cat); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelCat, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ for(i_cat=tmp_mascot.menu_cat_max;i_cat>cdata->dest_cat;i_cat--){ tmp_mascot.menu_cat[i_cat] =g_strdup(tmp_mascot.menu_cat[i_cat-1]); tmp_mascot.menu_tgt_max[i_cat]=tmp_mascot.menu_tgt_max[i_cat-1]; for(i_tgt=0;i_tgtdest_cat]=g_strdup(TMP_CATEGORY_NAME); tmp_mascot.menu_tgt_max[cdata->dest_cat]=1; tmp_mascot.menu_tgt[cdata->dest_cat][0] =g_strdup(my_basename(tmp_mascot.file)); tmp_mascot.menu_tgt_name[cdata->dest_cat][0] =ReadMascotName(&tmp_mascot, tmp_mascot.file); tmp_mascot.menu_cat_max++; tmp_mascot.menu_total++; if(cdata->dest_cat==tmp_mascot.menu_cat_max-1){ make_cat_list(cat_note, cdata->dest_cat-1); } // Up/Down¥¿¥°¤¬ÉÕ¤¯¤è¤¦¤Ë¤Ê¤ë for(i_cat=cdata->dest_cat;i_catdest_cat); #else gtk_notebook_set_page(GTK_NOTEBOOK(cat_note), cdata->dest_cat); #endif gtk_widget_queue_draw(GTK_WIDGET(cat_note)); } g_free(cdata); flagChildDialog=FALSE; } static void create_del_cat_dialog(GtkWidget *w) { GtkWidget *dialog; GtkWidget *button; GtkWidget *label; GtkAdjustment *adj; GtkWidget *spinner; GtkWidget *hbox; confCat *cdata; int i_cat, i_tgt, dest_menu_tgt_max; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.menu_cat_max<=1){ popup_message(POPUP_TIMEOUT, _("Error: Delete Category."), " ", _("You cannot delete no more categories."), NULL); return; } cdata=g_malloc0(sizeof(confCat)); cdata->dest_cat=tmp_mascot.menu_cat_max-1; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Select Category No. to Delete")); cdata->pd=dialog; hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Delete Category No.")); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)gtk_notebook_get_current_page(GTK_NOTEBOOK(cat_note)), 0,(gfloat)tmp_mascot.menu_cat_max-1, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&cdata->dest_cat); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",AddDelCat, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ dest_menu_tgt_max=tmp_mascot.menu_tgt_max[cdata->dest_cat]; for(i_cat=cdata->dest_cat;i_catdest_cat;i_catdest_cat==tmp_mascot.menu_cat_max){ make_cat_list(cat_note, cdata->dest_cat-1); } if(cdata->dest_catdest_cat); #else gtk_notebook_set_page(GTK_NOTEBOOK(cat_note), cdata->dest_cat); #endif } else{ #ifdef USE_GTK2 gtk_notebook_set_current_page(GTK_NOTEBOOK(cat_note), tmp_mascot.menu_cat_max-1); #else gtk_notebook_set_page(GTK_NOTEBOOK(cat_note), tmp_mascot.menu_cat_max-1); #endif } gtk_widget_queue_draw(GTK_WIDGET(cat_note)); } g_free(cdata); flagChildDialog=FALSE; } static void create_merge_cat_dialog(GtkWidget *w) { #ifdef __GTK_FILE_CHOOSER_H__ int i_cat, old_cat_max; GtkWidget *fdialog; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } if(tmp_mascot.menu_cat_max>=MAX_MENU_CATEGORY){ popup_message(POPUP_TIMEOUT, _("Error: Merge Menu."), " ", _("The number of categories maxes out."), NULL); return; } old_cat_max=tmp_mascot.menu_cat_max; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select Menu File to Merge"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); #ifdef USE_GTK2 gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(fdialog),TRUE); #endif gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_file))); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_file))); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_filter(fdialog,_("Menu File"),MENU_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { GSList *fnames; gchar *merge_file; gint menu_cat_max_old; int i_menu; gboolean update; gchar *dest_file; update=FALSE; fnames = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); i_menu=0; while((gchar *)g_slist_nth_data(fnames,i_menu)){ dest_file=to_locale((gchar *)g_slist_nth_data(fnames,i_menu)); if(access(dest_file,F_OK)==0){ merge_file=g_strdup(dest_file); gtk_widget_destroy(PopupMenu); menu_cat_max_old=tmp_mascot.menu_cat_max; ReadMenu(&tmp_mascot,tmp_mascot.menu_cat_max,merge_file); if(tmp_mascot.menu_cat_max>MAX_MENU_CATEGORY){ tmp_mascot.menu_cat_max=menu_cat_max_old; } update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", (gchar *)g_slist_nth_data(fnames,i_menu), NULL); #else g_print(_("Cannot Open %s\n"), (gchar *)g_slist_nth_data(fnames,i_menu)); #endif } if(tmp_mascot.menu_cat_max>=MAX_MENU_CATEGORY) break; i_menu++; } if(update){ PopupMenu=make_popup_menu(); for(i_cat=old_cat_max-1;i_cat=MAX_MENU_CATEGORY){ popup_message(POPUP_TIMEOUT, _("Error: Merge Menu."), " ", _("The number of categories maxes out."), NULL); return; } old_cat_max=tmp_mascot.menu_cat_max; cdata=g_malloc0(sizeof(confMergeCat)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select Menu File to Merge")); #ifdef USE_GTK2 gtk_file_selection_set_select_multiple(GTK_FILE_SELECTION(fdialog),TRUE); #endif cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", MergeCatFS, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathMascotFile(&tmp_mascot, tmp_mascot.menu_file)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MENU_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MENU_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_menuext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ for(i_cat=old_cat_max-1;i_catfs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; cdata->i_ptn=i_ptn; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeDuetTgt, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); #ifdef USE_WIN32 userdir = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else userdir = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), userdir); g_free(userdir); if(tmp_mascot.duet_tgt[i_ptn]){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathMascotFile(&tmp_mascot, tmp_mascot.duet_tgt[i_ptn])); } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(duet_tgt_entry[i_ptn]), tmp_mascot.duet_tgt[i_ptn]); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_change_click_sound_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ int i_ptn; GtkWidget *fdialog; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } i_ptn=(int)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select Sound File"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if(tmp_mascot.click_sound[i_ptn]){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), FullPathSoundFile(&tmp_mascot, to_utf8(tmp_mascot.click_sound[i_ptn],FALSE))); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), FullPathSoundFile(&tmp_mascot, to_utf8(tmp_mascot.click_sound[i_ptn],FALSE))); } else{ my_file_chooser_set_current_folder(fdialog, FOLDER_SOUND); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_SOUND); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.click_sound[i_ptn] =g_strdup(FullPathSoundFile(&tmp_mascot,dest_file,FALSE)); gtk_entry_set_text(GTK_ENTRY(click_sound_entry[i_ptn]), my_basename(tmp_mascot.click_sound[i_ptn])); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else int i_ptn; GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confChangeClickSound *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } i_ptn=(int)gdata; cdata=g_malloc0(sizeof(confChangeClickSound)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select Sound File")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; cdata->i_ptn=i_ptn; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeClickSound, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); if(tmp_mascot.click_sound[i_ptn]){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathSoundFile(&tmp_mascot, tmp_mascot.click_sound[i_ptn],FALSE)); } else{ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), #ifdef USE_WIN32 g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,SOUNDDIR, NULL)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), "*"); } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Sound Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_usdir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Sound Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dsdir, (gpointer)fdialog); #endif gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(click_sound_entry[i_ptn]), my_basename(tmp_mascot.click_sound[i_ptn])); } flagChildDialog=FALSE; g_free(cdata); #endif } #ifdef USE_BIFF static void create_change_biff_sound_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; GtkWidget *snd_entry; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } snd_entry=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select Sound File"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if(tmp_mascot.mail.sound){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathSoundFile(&tmp_mascot, tmp_mascot.mail.sound,FALSE))); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(FullPathSoundFile(&tmp_mascot, tmp_mascot.mail.sound,FALSE))); } else{ my_file_chooser_set_current_folder(fdialog, FOLDER_SOUND); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_SOUND); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.mail.sound =g_strdup(FullPathSoundFile(&tmp_mascot,dest_file,FALSE)); gtk_entry_set_text(GTK_ENTRY(snd_entry), my_basename(tmp_mascot.mail.sound)); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; GtkWidget *snd_entry; confChangeBiffSound *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } snd_entry=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confChangeBiffSound)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select Sound File")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeBiffSound, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); if(tmp_mascot.mail.sound){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), FullPathSoundFile(&tmp_mascot, tmp_mascot.mail.sound,FALSE)); } else{ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), #ifdef USE_WIN32 g_strconcat(get_win_home(),G_DIR_SEPARATOR_S, #else g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S, #endif USER_DIR,SOUNDDIR, NULL)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), "*"); } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Sound Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_usdir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Sound Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dsdir, (gpointer)fdialog); #endif gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(snd_entry), my_basename(tmp_mascot.mail.sound)); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_mail_file_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; GtkWidget *file_entry; gchar *dir; if(flagChildDialog){ return; } else{ switch(tmp_mascot.mail.type){ case MAIL_POP3: case MAIL_APOP: return; break; } flagChildDialog=TRUE; } file_entry=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select the file refered for the mail checking"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if(tmp_mascot.mail.file){ if(access(tmp_mascot.mail.file,F_OK)==0){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.file)); } } else{ switch(tmp_mascot.mail.type){ case MAIL_LOCAL: gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), g_getenv("MAIL")); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), g_getenv("MAIL")); break; case MAIL_QMAIL: gtk_file_chooser_set_action (GTK_FILE_CHOOSER (fdialog), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); #ifdef USE_WIN32 dir=g_strconcat(get_win_home(), #else dir=g_strconcat(g_get_home_dir(), #endif G_DIR_SEPARATOR_S, "Maildir", G_DIR_SEPARATOR_S, "new", NULL); if(access(dir,F_OK)==0){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), dir); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), dir); } break; case MAIL_PROCMAIL: gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), g_strconcat(set_mhdir(),PROCMAIL_LOG,NULL)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), g_strconcat(set_mhdir(),PROCMAIL_LOG,NULL)); break; } } gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.mail.file=dest_file; gtk_entry_set_text(GTK_ENTRY(file_entry), tmp_mascot.mail.file); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; GtkWidget *file_entry; confMailFile *cdata; if(flagChildDialog){ return; } else{ switch(tmp_mascot.mail.type){ case MAIL_POP3: case MAIL_APOP: return; break; } flagChildDialog=TRUE; } file_entry=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confMailFile)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select the file refered for the mail checking")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeMailFile, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); if(tmp_mascot.mail.file){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), tmp_mascot.mail.file); } else{ switch(tmp_mascot.mail.type){ case MAIL_LOCAL: gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), g_getenv("MAIL")); break; case MAIL_QMAIL: gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), #ifdef USE_WIN32 g_strconcat(get_win_home(), #else g_strconcat(g_get_home_dir(), #endif G_DIR_SEPARATOR_S, "Maildir", G_DIR_SEPARATOR_S, "new", G_DIR_SEPARATOR_S, NULL)); break; case MAIL_PROCMAIL: gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), g_strconcat(set_mhdir(),PROCMAIL_LOG,NULL)); break; } } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(file_entry), tmp_mascot.mail.file); } flagChildDialog=FALSE; g_free(cdata); #endif } static void create_mailer_dialog(GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; GtkWidget *file_entry; gchar *dir; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } file_entry=(GtkWidget *)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select mailer command"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if(tmp_mascot.mail.mailer){ if(access(tmp_mascot.mail.mailer,F_OK)==0){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.mailer)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(tmp_mascot.mail.mailer)); } } #ifdef USE_WIN32 my_file_chooser_add_filter(fdialog,_("All File"),"*"); my_file_chooser_add_filter(fdialog,"EXE","*.exe"); #endif gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ tmp_mascot.mail.mailer=dest_file; gtk_entry_set_text(GTK_ENTRY(file_entry), tmp_mascot.mail.mailer); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; GtkWidget *file_entry; confMailFile *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } file_entry=(GtkWidget *)gdata; cdata=g_malloc0(sizeof(confMailFile)); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select mailer command")); cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeMailer, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); if(tmp_mascot.mail.mailer){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), tmp_mascot.mail.mailer); } gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ gtk_entry_set_text(GTK_ENTRY(file_entry), tmp_mascot.mail.mailer); } flagChildDialog=FALSE; g_free(cdata); #endif } #endif // USE_BIFF #ifndef __GTK_FILE_CHOOSER_H__ static void NewMascotSelectMascot(GtkWidget *w, gpointer gdata) { confNewMascot *cdata; cdata=(confNewMascot *)gdata; if(access(my_dirname(gtk_file_selection_get_filename(cdata->fs)),W_OK)==0){ cdata->mascot_file =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif #ifndef __GTK_FILE_CHOOSER_H__ static void NewMascotSelectImage(GtkWidget *w, gpointer gdata) { confNewMascot *cdata; cdata=(confNewMascot *)gdata; if(access(gtk_file_selection_get_filename(cdata->fs),F_OK)==0){ cdata->image_file =g_strdup(gtk_file_selection_get_filename(cdata->fs)); cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", gtk_file_selection_get_filename (cdata->fs), NULL); #else g_print (_("Cannot Open %s\n"), gtk_file_selection_get_filename (cdata->fs)); #endif } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->fs)); } #endif static void MakeNewMascot(GtkWidget *w, gpointer gdata) { confNewMascot *cdata; int i_pix; gchar *tmp_file; gboolean tmp_flag; cdata=(confNewMascot *)gdata; InitMascot(Mascot); Mascot->file=cdata->mascot_file; if(strcmp(my_dirname(cdata->mascot_file),my_dirname(cdata->image_file))){ #ifdef USE_WIN32 tmp_file=g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, #else tmp_file=g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, #endif PIXDIR, NULL); if(!strcmp(my_dirname(cdata->mascot_file),tmp_file)){ #ifdef USE_WIN32 tmp_file=g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, PIXDIR, my_basename(cdata->image_file), NULL); #else tmp_file=g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, PIXDIR, my_basename(cdata->image_file), NULL); #endif } else{ tmp_file=g_strconcat(my_dirname(cdata->mascot_file), G_DIR_SEPARATOR_S, my_basename(cdata->image_file), NULL); } g_print(_("Installing %s -> %s\n"),cdata->image_file,tmp_file); copy_file(cdata->image_file,tmp_file); Mascot->sprites[0].filename=tmp_file; } else{ Mascot->sprites[0].filename=cdata->image_file; } if(cdata->copyright) Mascot->copyright=cdata->copyright; Mascot->random_total=0; Mascot->click_total=0; Mascot->name=NULL; Mascot->move=MOVE_FIX; Mascot->xoff=0; Mascot->yoff=0; Mascot->x=0; Mascot->y=0; Mascot->clk_x=INIT_CLK_POS; Mascot->clk_y=INIT_CLK_POS; Mascot->clktext_x=INIT_CLK_TEXT; Mascot->clktext_y=INIT_CLK_TEXT; Mascot->clksd_x=INIT_CLK_SD; Mascot->clksd_y=INIT_CLK_SD; Mascot->wclkbd=INIT_CLK_BORDER; Mascot->clkmode=CLOCK_NO; Mascot->clktype=CLOCK_TYPE_24S; Mascot->flag_clksd=TRUE; Mascot->flag_clkrd=TRUE; #ifdef USE_WIN32 Mascot->flag_clkfg=TRUE; #endif Mascot->fontname_clk=Mascot->deffontname_clk; Mascot->baltext_x=INIT_BAL_TEXT; Mascot->baltext_y=INIT_BAL_TEXT; Mascot->wbalbd=INIT_BAL_BORDER; Mascot->bal_defpos=BAL_POS_LEFT; Mascot->fontname_bal=Mascot->deffontname_bal; #ifdef USE_WIN32 Mascot->flag_balfg=TRUE; #endif Mascot->colclk=gdk_color_copy(Mascot->def_colclk); Mascot->colclksd=gdk_color_copy(Mascot->def_colclksd); Mascot->colclkbg=gdk_color_copy(Mascot->def_colclkbg); Mascot->colclkbd=gdk_color_copy(Mascot->def_colclkbd); Mascot->colbal=gdk_color_copy(Mascot->def_colbal); Mascot->colbalbg=gdk_color_copy(Mascot->def_colbalbg); Mascot->colbalbd=gdk_color_copy(Mascot->def_colbalbd); #ifdef USE_BIFF //// Biff Mascot->mail.pix_file=NULL; Mascot->mail.pix_pos=MAIL_PIX_RIGHT; Mascot->mail.pix_x=0; Mascot->mail.pix_y=0; Mascot->mail.word=NULL; Mascot->mail.sound=NULL; #endif // USE_BIFF #if defined(USE_CAIRO) || defined(USE_WIN32) Mascot->alpha_main=100; #ifdef USE_BIFF Mascot->alpha_biff=100; #endif #endif #ifdef USE_WIN32 Mascot->alpha_bal=100; Mascot->alpha_clk=100; #endif for(i_pix=1;i_pixsprites[i_pix].filename) g_free(Mascot->sprites[i_pix].filename); Mascot->sprites[i_pix].filename=NULL; } Mascot->frame_num[0]=1; Mascot->frame_pix[0][0]=0; Mascot->frame_min[0][0]=1; Mascot->frame_max[0][0]=100; SaveMascot(Mascot,FALSE); tmp_flag=Mascot->flag_install; Mascot->flag_install=FALSE; ReadMascot(Mascot,FALSE); InitComposite(Mascot); LoadPixmaps(win_main, Mascot, Mascot->sprites); ReInitGC(Mascot); #ifdef USE_WIN32 gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; #ifdef USE_BIFF LoadBiffPixmap(biff_pix, Mascot); #endif // USE_BIFF if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if(Mascot->clkmode==CLOCK_PANEL){ #ifdef USE_WIN32 if((Mascot->flag_clkfg)&&(Mascot->alpha_clk!=100)){ gtk_widget_map(clock_fg); } else gtk_widget_unmap(clock_fg); #endif gtk_widget_map(clock_main); } else{ #ifdef USE_WIN32 gtk_widget_unmap(clock_fg); #endif gtk_widget_unmap(clock_main); } #ifdef USE_WIN32 if((Mascot->sdw_flag)&&(Mascot->sdw_height>0)){ gtk_widget_map(win_sdw); } else{ gtk_widget_unmap(win_sdw); } #endif gtk_widget_map(win_main); if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if(Mascot->move==MOVE_FIX){ MoveMascot(Mascot,Mascot->xfix,Mascot->yfix); } else{ MoveToFocus(Mascot,TRUE); } Mascot->flag_install=tmp_flag; { gchar *buf; buf=g_strdup_printf(_("Created New Mascot ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } gtk_main_quit(); gtk_widget_destroy(GTK_WIDGET(cdata->dialog)); } static void create_new_mascot_file_selection_dialog (GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; confNewMascot *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=(confNewMascot *)gdata; gtk_widget_unmap(cdata->dialog); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select New Mascot File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); //cdata->fs=GTK_FILE_CHOOSER(fdialog); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog, _("Mascot File"), MASCOT_EXTENSION); my_file_chooser_add_filter(fdialog, _("All File"), "*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(my_dirname(dest_file),W_OK)==0){ cdata->mascot_file=dest_file; cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } flagChildDialog=FALSE; gtk_main_quit(); while (my_main_iteration(FALSE)); #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confNewMascot *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=(confNewMascot *)gdata; gtk_widget_unmap(cdata->dialog); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select New Mascot File")); cdata->fs=GTK_FILE_SELECTION(fdialog); my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", NewMascotSelectMascot, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MASCOT_EXTENSION); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ } flagChildDialog=FALSE; gtk_main_quit(); while (my_main_iteration(FALSE)); #endif } static void create_new_mascot_image_selection_dialog (GtkWidget *w, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; confNewMascot *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=(confNewMascot *)gdata; gtk_widget_unmap(cdata->dialog); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Select Image for New Mascot"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); //cdata->fs=GTK_FILE_CHOOSER(fdialog); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_PIX); my_file_chooser_add_filter(fdialog,_("All File"),"*"); my_file_chooser_add_filter(fdialog,"PNG",PNG_EXTENSION); my_file_chooser_add_filter(fdialog,"GIF",GIF_EXTENSION); my_file_chooser_add_filter(fdialog,"XPM",XPM_EXTENSION); gtk_file_chooser_add_shortcut_folder(GTK_FILE_CHOOSER(fdialog), to_utf8(my_dirname(cdata->mascot_file)), NULL); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ cdata->image_file=dest_file; cdata->update=TRUE; } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } g_free(fname); } else { gtk_widget_destroy(fdialog); } if(cdata->update){ } flagChildDialog=FALSE; gtk_main_quit(); while (my_main_iteration(FALSE)); #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confNewMascot *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=(confNewMascot *)gdata; gtk_widget_unmap(cdata->dialog); // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Select Image for New Mascot")); cdata->fs=GTK_FILE_SELECTION(fdialog); my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", NewMascotSelectImage, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_child_dialog, GTK_WIDGET(fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_updir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Pix Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_dpdir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(PNG_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_pngext, (gpointer)fdialog); button=gtk_button_new_with_label(GIF_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_gifext, (gpointer)fdialog); button=gtk_button_new_with_label(XPM_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_xpmext, (gpointer)fdialog); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), cdata->mascot_file); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), ""); gtk_widget_show_all(fdialog); gtk_main(); if(cdata->update){ } flagChildDialog=FALSE; gtk_main_quit(); while (my_main_iteration(FALSE)); #endif } static void create_new_mascot_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *dialog; GtkWidget *button_cancel; GtkWidget *button_ok; GtkWidget *table; GtkWidget *hbox; GtkWidget *label; GtkWidget *entry; confNewMascot *cdata; Mascot->flag_menu=TRUE; cdata=g_malloc0(sizeof(confNewMascot)); cdata->mascot_file=NULL; cdata->image_file=NULL; cdata->copyright=NULL; cdata->update=FALSE; dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Create New Mascot")); my_signal_connect(dialog,"destroy",gtk_main_quit, NULL); cdata->dialog=dialog; label=gtk_label_new(_("Creating New Masscot...")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); hbox=gtk_hbox_new(FALSE,0); #ifdef USE_GTK2 g_object_ref(hbox); gtk_object_sink(GTK_OBJECT(hbox)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("1. Please select Mascot File Name to be created")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button_cancel=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button_cancel=gtk_button_new_with_label(_("Cancel")); #endif #ifdef USE_GTK2 g_object_ref(button_cancel); gtk_object_sink(GTK_OBJECT(button_cancel)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_cancel,TRUE,TRUE,0); my_signal_connect(button_cancel,"clicked",close_new_mascot_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button_ok=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button_ok=gtk_button_new_with_label(_("OK")); #endif #ifdef USE_GTK2 g_object_ref(button_ok); gtk_object_sink(GTK_OBJECT(button_ok)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_ok,TRUE,TRUE,0); my_signal_connect(button_ok,"clicked", create_new_mascot_file_selection_dialog, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); // Mascot FileÁªÂò : Cancel¤¬²¡¤µ¤ì¤Æ¤¤¤¿¤é½ªÎ» if(!cdata->update){ g_free(cdata); Mascot->flag_menu=FALSE; return; } cdata->update=FALSE; gtk_widget_destroy(hbox); gtk_widget_destroy(button_ok); gtk_widget_destroy(button_cancel); #ifdef USE_GTK2 g_object_unref(hbox); g_object_unref(button_ok); g_object_unref(button_cancel); #endif hbox=gtk_hbox_new(FALSE,0); #ifdef USE_GTK2 g_object_ref(hbox); gtk_object_sink(GTK_OBJECT(hbox)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("2. Please select an Image File Name to be used in Mascot")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); #ifdef __GTK_STOCK_H__ button_cancel=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button_cancel=gtk_button_new_with_label(_("Cancel")); #endif #ifdef USE_GTK2 g_object_ref(button_cancel); gtk_object_sink(GTK_OBJECT(button_cancel)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_cancel,TRUE,TRUE,0); my_signal_connect(button_cancel,"clicked", close_new_mascot_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button_ok=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button_ok=gtk_button_new_with_label(_("OK")); #endif #ifdef USE_GTK2 g_object_ref(button_ok); gtk_object_sink(GTK_OBJECT(button_ok)); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_ok,TRUE,TRUE,0); my_signal_connect(button_ok,"clicked", create_new_mascot_image_selection_dialog, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_widget_map(dialog); gtk_main(); // Mascot ImageÁªÂò : Cancel¤¬²¡¤µ¤ì¤Æ¤¤¤¿¤é½ªÎ» if(!cdata->update){ g_free(cdata); Mascot->flag_menu=FALSE; return; } cdata->update=FALSE; gtk_widget_destroy(hbox); gtk_widget_destroy(button_ok); gtk_widget_destroy(button_cancel); #ifdef USE_GTK2 g_object_unref(hbox); g_object_unref(button_ok); g_object_unref(button_cancel); #endif table=gtk_table_new(2,6,FALSE); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), table,TRUE,TRUE,0); label=gtk_label_new(_("Mascot File : ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 0, 1, 0, 1); label=gtk_label_new(cdata->mascot_file); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 1, 2, 0, 1); label=gtk_label_new(_("Image File : ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 0, 1, 1, 2); label=gtk_label_new(cdata->image_file); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 1, 2, 1, 2); label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 0, 2, 2, 3); label=gtk_label_new(_("At last, Please Input Descrption for Copyright")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), label, 0, 2, 3, 4); entry = gtk_entry_new (); gtk_entry_set_text(GTK_ENTRY(entry),"Copyright (C) "); gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); label=gtk_label_new(_("At last, Please Input Descrption for Copyright")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach_defaults (GTK_TABLE(table), entry, 0, 2, 4, 5); my_signal_connect (entry,"changed",cc_get_entry,&cdata->copyright); #ifdef __GTK_STOCK_H__ button_cancel=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button_cancel=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_cancel,TRUE,TRUE,0); my_signal_connect(button_cancel,"clicked",close_new_mascot_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button_ok=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button_ok=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_ok,TRUE,TRUE,0); my_signal_connect(button_ok,"clicked",MakeNewMascot, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_widget_map(dialog); gtk_main(); g_free(cdata); Mascot->flag_menu=FALSE; } void create_pop_pass_dialog(void) { GtkWidget *dialog; GtkWidget *button_cancel; GtkWidget *button_ok; GtkWidget *hbox; GtkWidget *label; GtkWidget *entry; confPopPass *cdata; gchar tmp[512]; Mascot->flag_menu=TRUE; cdata=g_malloc0(sizeof(confPopPass)); dialog = gtk_dialog_new(); cdata->dialog=dialog; gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Please Input POP Password")); my_signal_connect(dialog,"destroy",gtk_main_quit, NULL); label=gtk_label_new(_("Please Input POP Password")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); if(Mascot->mail.pop_server!=NULL){ sprintf(tmp,_("Server : %s"),Mascot->mail.pop_server); label=gtk_label_new(tmp); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); } if(Mascot->mail.pop_id!=NULL){ sprintf(tmp,_("User ID : %s"),Mascot->mail.pop_id); label=gtk_label_new(tmp); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); } label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); hbox=gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox,TRUE,TRUE,0); label=gtk_label_new(_("Password : ")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); entry = gtk_entry_new (); gtk_box_pack_start(GTK_BOX(hbox),entry,TRUE,TRUE,0); gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); if(Mascot->mail.pop_pass!=NULL) gtk_entry_set_text(GTK_ENTRY(entry),Mascot->mail.pop_pass); gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); cdata->entry=entry; #ifdef __GTK_STOCK_H__ button_cancel=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button_cancel=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_cancel,TRUE,TRUE,0); my_signal_connect(button_cancel,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button_ok=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button_ok=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button_ok,TRUE,TRUE,0); my_signal_connect(button_ok,"clicked",ChangePopPass, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); Mascot->flag_menu=FALSE; g_free(cdata); } static void create_file_selection_dialog(GtkWidget *widget, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; gint mode; mode=(gint) gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; switch(mode){ case MENU_SELECT: case START_MENU_SELECT: fdialog = gtk_file_chooser_dialog_new(_("Open Mascot"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); ; break; case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new mascot into your user's direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), _("\n If you want to install more than one mascot with a launcher menu,"), _(" please install using \"Install Launcher Menu\"."), NULL); #endif fdialog = gtk_file_chooser_dialog_new(_("Install New Mascot to User's Directory"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); break; #ifdef USE_COMMON case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new mascot into the MaCoPiX common direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), _("\n If you want to install more than one mascot with a launcher menu,"), _(" please install using \"Install Launcher Menu\"."), NULL); #endif fdialog = gtk_file_chooser_dialog_new(_("Install New Mascot to the Common Directory"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); #endif } if(mode==MENU_SELECT){ if(Mascot->file){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->file)); } } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_filter(fdialog,_("Mascot File"),MASCOT_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gboolean flag_install; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file = to_locale(fname); flag_install=Mascot->flag_install; if(access(dest_file,F_OK)==0){ Mascot->file=dest_file; switch(mode){ case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: Mascot->flag_install=TRUE; Mascot->flag_common=FALSE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; break; case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: Mascot->flag_install=TRUE; Mascot->flag_common=TRUE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; } switch(mode){ case MENU_SELECT: case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: ChangeMascot(); } } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } Mascot->flag_menu=FALSE; Mascot->flag_install=flag_install; Mascot->flag_common=FALSE; switch(mode){ case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: Mascot->flag_ow=FALSE; Mascot->flag_ow_ini=FALSE; } g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; confSelectMenu *cdata; gint mode; mode=(gint) gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); cdata=g_malloc0(sizeof(confSelectMenu)); Mascot->flag_menu=TRUE; switch(mode){ case MENU_SELECT: case START_MENU_SELECT: fdialog = gtk_file_selection_new(_("Open Mascot")); break; case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new mascot into your user's direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), _("\n If you want to install more than one mascot with a launcher menu,"), _(" please install using \"Install Launcher Menu\"."), NULL); #endif fdialog = gtk_file_selection_new(_("Install New Mascot to User's Directory")); break; #ifdef USE_COMMON case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new mascot into the MaCoPiX common direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), _("\n If you want to install more than one mascot with a launcher menu,"), _(" please install using \"Install Launcher Menu\"."), NULL); #endif fdialog = gtk_file_selection_new(_("Install New Mascot to the Common Directory")); #endif } cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->mode=mode; my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); switch(mode){ case MENU_SELECT: case MENU_INSTALL_USER: #ifdef USE_COMMON case MENU_INSTALL_COMMON: #endif my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked",close_dialog,GTK_WIDGET(fdialog)); break; case START_MENU_SELECT: case START_MENU_INSTALL_USER: #ifdef USE_COMMON case START_MENU_INSTALL_COMMON: #endif my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", exit, NULL); } my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeMascotFS, (gpointer)cdata); if(mode==MENU_SELECT){ if(Mascot->file){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), Mascot->file); } } gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MASCOT_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_menu_selection_dialog(GtkWidget *widget, gpointer gdata) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; gchar *filepath; gint mode; mode=(gint) gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; switch(mode){ case MENU_SELECT: case START_MENU_SELECT: fdialog = gtk_file_chooser_dialog_new(_("Open Launcher Menu"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); break; case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new launcher menu with its mascots into your user's direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), NULL); #endif fdialog = gtk_file_chooser_dialog_new(_("Install New Launcher Menu to User's Directory"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); break; #ifdef USE_COMMON case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new launcher menu with mascots into the MaCoPiX common direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), NULL); #endif fdialog = gtk_file_chooser_dialog_new(_("Install New Launcher Menu to the Common Directory"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); #endif } if(mode==MENU_SELECT){ if(Mascot->menu_file){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->menu_file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->menu_file)); } else{ my_file_chooser_set_current_folder(fdialog, FOLDER_DEFAULT); } } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); #ifdef USE_LHA32 my_file_chooser_add_filter(fdialog,_("LZH File"),LZH_EXTENSION); #endif #if defined(USE_GTAR) || defined(USE_TAR32) my_file_chooser_add_filter(fdialog,_("TAR+GZ File"),TAR_EXTENSION); #endif my_file_chooser_add_filter(fdialog,_("Menu File"),MENU_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gboolean flag_install; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); flag_install=Mascot->flag_install; if(access(dest_file,F_OK)==0){ switch(mode){ case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: select_menu_from_ext(Mascot,dest_file); Mascot->flag_install=TRUE; Mascot->flag_common=FALSE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; break; case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: select_menu_from_ext(Mascot,dest_file); Mascot->flag_install=TRUE; Mascot->flag_common=TRUE; Mascot->flag_ow=TRUE; Mascot->flag_ow_ini=TRUE; break; default: Mascot->menu_file=dest_file; } gtk_widget_destroy(PopupMenu); ReadMenu(Mascot,0,NULL); PopupMenu=make_popup_menu(); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } Mascot->flag_menu=FALSE; Mascot->flag_install=flag_install; Mascot->flag_common=FALSE; switch(mode){ case MENU_INSTALL_USER: case MENU_INSTALL_COMMON: Mascot->flag_ow=FALSE; Mascot->flag_ow_ini=FALSE; } g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; gchar *filepath; confSelectMenu *cdata; gint mode; mode=(gint) gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); cdata=g_malloc0(sizeof(confSelectMenu)); Mascot->flag_menu=TRUE; switch(mode){ case MENU_SELECT: case START_MENU_SELECT: fdialog = gtk_file_selection_new(_("Open Launcher Menu")); break; case MENU_INSTALL_USER: case START_MENU_INSTALL_USER: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new launcher menu with its mascots into your user's direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), NULL); #endif fdialog = gtk_file_selection_new(_("Install New Launcher Menu to User's Directory")); break; #ifdef USE_COMMON case MENU_INSTALL_COMMON: case START_MENU_INSTALL_COMMON: #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*3, _("Caution : You're going to install a new launcher menu with mascots into the MaCoPiX common direcroty.\n"), _(" If you already have the file with the same filename,"), _(" it will be overwritten."), NULL); #endif fdialog = gtk_file_selection_new(_("Install New Launcher Menu to the Common Directory")); #endif } cdata->fs=GTK_FILE_SELECTION(fdialog); cdata->mode=mode; my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", ChangeMenuFS, (gpointer)cdata); switch(mode){ case MENU_SELECT: case MENU_INSTALL_USER: #ifdef USE_COMMON case MENU_INSTALL_COMMON: #endif my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); break; case START_MENU_SELECT: case START_MENU_INSTALL_USER: #ifdef USE_COMMON case START_MENU_INSTALL_COMMON: #endif my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", exit, NULL); } if(mode==MENU_SELECT){ if(Mascot->menu_file){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), Mascot->menu_file); } else{ #ifdef USE_WIN32 filepath=g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #else filepath=g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog),filepath); } } #ifdef USE_LHA32 gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), LZH_EXTENSION); #else #if defined(USE_GTAR) || defined(USE_TAR32) gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), TAR_EXTENSION); #else gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MENU_EXTENSION); #endif #endif gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif #ifdef USE_LHA32 button=gtk_button_new_with_label(LZH_EXTENSION); my_signal_connect(button,"clicked", fs_set_lzhext, (gpointer)fdialog); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); #endif #if defined(USE_GTAR) || defined(USE_TAR32) button=gtk_button_new_with_label(TAR_EXTENSION); my_signal_connect(button,"clicked", fs_set_tarext, (gpointer)fdialog); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); #endif button=gtk_button_new_with_label(MENU_EXTENSION); my_signal_connect(button,"clicked", fs_set_menuext, (gpointer)fdialog); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); gtk_widget_show_all(fdialog); gtk_main(); g_free(cdata); #endif } static void create_smenu_dialog2(void) { // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; create_smenu_dialog(Mascot,TRUE); Mascot->flag_menu=FALSE; } static void create_nkr_selection_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_chooser_dialog_new(_("Convert from Nokkari-Chara"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_filter(fdialog,_("Nokkari-Chara File"),NKR_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ Mascot->inifile=dest_file; NkrChangeMascot(); } else{ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } create_save_mascot_dialog(); g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_file_selection_new(_("Convert from Nokkari-Chara")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", NkrChangeMascotFS, fdialog); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), NKR_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(NKR_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_nkrext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_new_menu_selection_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_chooser_dialog_new(_("Select New Launcher Menu File to Create"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); my_file_chooser_set_current_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog,_("Menu File"),MENU_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; gchar *dest_file; FILE *fp_test; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if((fp_test=fopen(dest_file,"w"))!=NULL){ fclose(fp_test); Mascot->menu_file=dest_file; Mascot->menu_cat[0]=g_strdup(TMP_CATEGORY_NAME); Mascot->menu_tgt_max[0]=1; Mascot->menu_tgt[0][0] =g_strdup(my_basename(Mascot->file)); Mascot->menu_tgt_name[0][0]=ReadMascotName(Mascot, Mascot->file); Mascot->menu_cat_max=1; Mascot->menu_total=1; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Created Menu File%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } gtk_widget_destroy(PopupMenu); PopupMenu=make_popup_menu(); } else{ #ifdef GTK_ popup_message(POPUP_TIMEOUT*2, _("Error: File cannot be opened."), " ", fname, NULL); #else g_print (_("Cannot Open %s\n"),fname); #endif } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; gchar *filepath; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_selection_new(_("Select New Launcher Menu File to Create")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", MakeMenuFS, GTK_FILE_SELECTION(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); #ifdef USE_WIN32 filepath=g_strconcat(get_win_home(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #else filepath=g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog),filepath); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MENU_EXTENSION); gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MENU_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_menuext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_save_mascot_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_chooser_dialog_new(_("Save Mascot to Other File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE_AS, GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->file)); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog,_("Mascot File"),MASCOT_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; gchar *dest_file; gchar tmp_label[128]; confSaveOther *cdata; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->file=dest_file; SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->file=dest_file; SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *hbox; GtkWidget *button; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_selection_new(_("Save Mascot to Other File")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", SaveMascotOther, fdialog); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), Mascot->file); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MASCOT_EXTENSION); //gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_save_nokkari_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_chooser_dialog_new(_("Convert Mascot to Nokkari-Chara"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog,_("Nokkari-Chara File"),NKR_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); //gtk_widget_unmap(GTK_WIDGET(fs)); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->inifile=dest_file; NkrSave(Mascot); } g_free(cdata); } else{ Mascot->inifile=dest_file; NkrSave(Mascot); } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *hbox; GtkWidget *button; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_selection_new(_("Convert Mascot to Nokkari-Chara")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", SaveNokkari, fdialog); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), NKR_EXTENSION); //gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(NKR_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_nkrext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_save_release_mascot_dialog(void) { GtkWidget *fdialog; GtkWidget *dialog; GtkWidget *table; GtkWidget *label; GtkWidget *entry; GtkWidget *check0; GtkWidget *check1; GtkWidget *check2; GtkWidget *check3; GtkWidget *button; GtkWidget *hbox; confSaveReleaseMascot *cdata; Mascot->flag_menu=TRUE; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); cdata=g_malloc0(sizeof(confSaveReleaseMascot)); // CopyrightÍÑ¥À¥¤¥¢¥í¥° dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("Setup for Release Mascot")); my_signal_connect(dialog,"destroy",gtk_main_quit, NULL); cdata->dialog=dialog; cdata->update=FALSE; cdata->clk_font_flag=FALSE; cdata->bal_font_flag=FALSE; cdata->clk_color_flag=FALSE; cdata->bal_color_flag=FALSE; label=gtk_label_new(_("Please edit the setting for this mascot")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),label,TRUE,TRUE,0); table = gtk_table_new (2, 6, FALSE); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),table,TRUE,TRUE,0); label=gtk_label_new(_("Mascot Name")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); if(Mascot->name){ gtk_entry_set_text(GTK_ENTRY(entry),Mascot->name); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1); cdata->name_entry=entry; label=gtk_label_new(_("Copyright")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); if(Mascot->copyright){ gtk_entry_set_text(GTK_ENTRY(entry),Mascot->copyright); } else{ gtk_entry_set_text(GTK_ENTRY(entry),"Copyright (C)"); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); cdata->copyright_entry=entry; label=gtk_label_new(_("Character Code")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); gtk_entry_set_text(GTK_ENTRY(entry),DEF_CODE1); gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 2, 3); cdata->code_entry=entry; check0 = gtk_check_button_new_with_label(_("Save Fontset for Clock")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check0),FALSE); gtk_table_attach(GTK_TABLE(table), check0, 0, 2, 3, 4, GTK_FILL,GTK_SHRINK,0,0); cdata->clk_font_check=check0; check1 = gtk_check_button_new_with_label(_("Save Colors for Clock")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check1),FALSE); gtk_table_attach(GTK_TABLE(table), check1, 0, 2, 4, 5, GTK_FILL,GTK_SHRINK,0,0); cdata->clk_color_check=check1; check2 = gtk_check_button_new_with_label(_("Save Fontset for Balloon")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check2),FALSE); gtk_table_attach(GTK_TABLE(table), check2, 0, 2, 5, 6, GTK_FILL,GTK_SHRINK,0,0); cdata->bal_font_check=check2; check3 = gtk_check_button_new_with_label(_("Save Colors for Baloon")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check3),FALSE); gtk_table_attach(GTK_TABLE(table), check3, 0, 2, 6, 7, GTK_FILL,GTK_SHRINK,0,0); cdata->bal_color_check=check3; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",GoRelease, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); // Mascot FileÁªÂò : Cancel¤¬²¡¤µ¤ì¤Æ¤¤¤¿¤é½ªÎ» if(!cdata->update){ g_free(cdata); Mascot->flag_menu=FALSE; return; } // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); #ifdef __GTK_FILE_CHOOSER_H__ fdialog = gtk_file_chooser_dialog_new(_("Save Mascot for Release"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog,_("Mascot File"),MASCOT_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (fdialog), my_basename(to_utf8(Mascot->file))); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; gchar *dest_file; gchar tmp_label[128]; gchar *tmp_file,*tmp_file1,*tmp_file2; int i_pix; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); //gtk_widget_unmap(fdialog); if(access(dest_file,F_OK)==0){ dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("File Save : Overwrite Confirmation")); sprintf(tmp_label,_("File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveRelease, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ if(cdata->new_copyright){ Mascot->copyright=g_strdup(cdata->new_copyright); } else{ Mascot->copyright=NULL; } if(cdata->new_name){ Mascot->name=g_strdup(cdata->new_name); } else{ Mascot->name=NULL; } if(cdata->new_code){ Mascot->code=g_strdup(cdata->new_code); } else{ Mascot->code=NULL; } Mascot->file=dest_file; SaveMascot(Mascot,TRUE); SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } if(!cdata->clk_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } if(!cdata->clk_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } tmp_file = g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S,NULL); #ifdef USE_WIN32 tmp_file1 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else tmp_file1 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif #ifdef USE_COMMON tmp_file2 = g_strdup(COMMON_DIR); if((strcmp(tmp_file,tmp_file1)!=0)&& (strcmp(tmp_file,tmp_file2)!=0)){ #else if((strcmp(tmp_file,tmp_file1)!=0)){ #endif for(i_pix=0;i_pixnPixmap;i_pix++){ tmp_file=g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S, my_basename(Mascot->sprites[i_pix].filename), NULL); if(access(tmp_file,F_OK)!=0){ copy_file(Mascot->sprites[i_pix].filename,tmp_file); } } } } } else{ if(cdata->new_copyright){ Mascot->copyright=g_strdup(cdata->new_copyright); } else{ Mascot->copyright=NULL; } if(cdata->new_name){ Mascot->name=g_strdup(cdata->new_name); } else{ Mascot->name=NULL; } if(cdata->new_code){ Mascot->code=g_strdup(cdata->new_code); } else{ Mascot->code=NULL; } Mascot->file=dest_file; SaveMascot(Mascot,TRUE); SaveMascot(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Mascot as ...%%n \"%s\""),Mascot->file); DoSysBalloon(Mascot,buf); g_free(buf); } if(!cdata->clk_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_font_flag){ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetFontForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetFontForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } if(!cdata->clk_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_CLOCK,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_CLOCK,TRUE); } if(!cdata->bal_color_flag){ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,FALSE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,FALSE); } else{ SetColorForReleaseData(Mascot,TRUE,SET_RELEASE_BALLOON,TRUE); SetColorForReleaseData(Mascot,FALSE,SET_RELEASE_BALLOON,TRUE); } tmp_file = g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S,NULL); #ifdef USE_WIN32 tmp_file1 = g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #else tmp_file1 = g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, NULL); #endif #ifdef USE_COMMON tmp_file2 = g_strdup(COMMON_DIR); if((strcmp(tmp_file,tmp_file1)!=0)&& (strcmp(tmp_file,tmp_file2)!=0)){ #else if((strcmp(tmp_file,tmp_file1)!=0)){ #endif for(i_pix=0;i_pixnPixmap;i_pix++){ tmp_file=g_strconcat(my_dirname(Mascot->file),G_DIR_SEPARATOR_S, my_basename(Mascot->sprites[i_pix].filename), NULL); if(access(tmp_file,F_OK)!=0){ copy_file(Mascot->sprites[i_pix].filename,tmp_file); } } } } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } g_free(cdata); #else fdialog = gtk_file_selection_new(_("Save Mascot for Release")); cdata->fdialog=fdialog; cdata->update=FALSE; my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", SaveReleaseMascot, (gpointer)cdata); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MASCOT_EXTENSION); gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), my_basename(Mascot->file)); //gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MASCOT_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_mascotext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); g_free(cdata); #endif } static void create_save_menu_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_chooser_dialog_new(_("Save Menu to File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); if(Mascot->menu_file){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->menu_file)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->menu_file)); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_shortcut_folder(fdialog, FOLDER_CURRENT); my_file_chooser_add_filter(fdialog,_("Menu File"),MENU_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("Menu Save : Overwrite Confirmation")); sprintf(tmp_label,_("Menu File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->menu_file=dest_file; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Saved Menu as ...%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->menu_file=dest_file; SaveMenu(Mascot); { gchar *buf; buf=g_strdup_printf(_("Saved Menu as ...%%n \"%s\""),Mascot->menu_file); DoSysBalloon(Mascot,buf); g_free(buf); } } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_selection_new(_("Save Menu to File")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", SaveMenuOther, fdialog); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), MENU_EXTENSION); if(Mascot->menu_file){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), Mascot->menu_file); } //gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(MENU_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_menuext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } static void create_save_rc_dialog(void) { #ifdef __GTK_FILE_CHOOSER_H__ GtkWidget *fdialog; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_chooser_dialog_new(_("Save Resource to File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); if(Mascot->rcfile){ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->rcfile)); gtk_file_chooser_select_filename (GTK_FILE_CHOOSER (fdialog), to_utf8(Mascot->rcfile)); } my_file_chooser_add_shortcut_folder(fdialog, FOLDER_DEFAULT); my_file_chooser_add_filter(fdialog,_("Resource File"),RC_EXTENSION); my_file_chooser_add_filter(fdialog,_("All File"),"*"); gtk_widget_show_all(fdialog); if (gtk_dialog_run(GTK_DIALOG(fdialog)) == GTK_RESPONSE_ACCEPT) { char *fname; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confSaveOther *cdata; gchar *dest_file; gchar tmp_label[128]; fname = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fdialog)); gtk_widget_destroy(fdialog); dest_file=to_locale(fname); if(access(dest_file,F_OK)==0){ cdata=g_malloc0(sizeof(confSaveOther)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("Resource Save : Overwrite Confirmation")); sprintf(tmp_label,_("Resource File %s already exists."),fname); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Overwrite?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmSaveOther, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ Mascot->rcfile=dest_file; SaveRC(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Resource as ...%%n \"%s\""),Mascot->rcfile); DoSysBalloon(Mascot,buf); g_free(buf); } } g_free(cdata); } else{ Mascot->rcfile=dest_file; SaveRC(Mascot,TRUE); SaveRC(Mascot,FALSE); { gchar *buf; buf=g_strdup_printf(_("Saved Resource as ...%%n \"%s\""),Mascot->rcfile); DoSysBalloon(Mascot,buf); g_free(buf); } } Mascot->flag_menu=FALSE; g_free(fname); } else { gtk_widget_destroy(fdialog); Mascot->flag_menu=FALSE; } #else GtkWidget *fdialog; GtkWidget *button; GtkWidget *hbox; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; fdialog = gtk_file_selection_new(_("Save Resource to File")); my_signal_connect(fdialog,"destroy",close_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FILE_SELECTION(fdialog)->ok_button, "clicked", SaveRCOther, fdialog); my_signal_connect(GTK_FILE_SELECTION(fdialog)->cancel_button, "clicked", close_dialog, GTK_WIDGET(fdialog)); gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), RC_EXTENSION); if(Mascot->rcfile){ gtk_file_selection_set_filename (GTK_FILE_SELECTION (fdialog), to_utf8(Mascot->rcfile)); } //gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (fdialog)); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(fdialog)->action_area), hbox,FALSE,FALSE,0); button=gtk_button_new_with_label(_("User Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_udir, (gpointer)fdialog); #ifdef USE_COMMON button=gtk_button_new_with_label(_("Common Dir")); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_ddir, (gpointer)fdialog); #endif button=gtk_button_new_with_label(RC_EXTENSION); gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0); my_signal_connect(button,"clicked", fs_set_rcext, (gpointer)fdialog); gtk_widget_show_all(fdialog); gtk_main(); #endif } #ifndef __GTK_FONT_BUTTON_H__ static void create_font_selection_dialog(GtkWidget *w, gpointer gdata) { GtkWidget *fdialog; int bal_clk; confFont *cdata; if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=g_malloc0(sizeof(confFont)); bal_clk=(int)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_font_selection_dialog_new(_("Fontset Selection")); cdata->fsd=GTK_FONT_SELECTION_DIALOG(fdialog); cdata->fn=NULL; switch(bal_clk){ case CONF_FONT_CLK: cdata->entry=entry_fontname_clk; gtk_font_selection_dialog_set_font_name(cdata->fsd, tmp_mascot.fontname_clk); break; case CONF_FONT_BAL: cdata->entry=entry_fontname_bal; gtk_font_selection_dialog_set_font_name(cdata->fsd, tmp_mascot.fontname_bal); break; case CONF_DEF_FONT_CLK: cdata->entry=entry_deffontname_clk; gtk_font_selection_dialog_set_font_name(cdata->fsd, tmp_mascot.deffontname_clk); break; case CONF_DEF_FONT_BAL: cdata->entry=entry_deffontname_bal; gtk_font_selection_dialog_set_font_name(cdata->fsd, tmp_mascot.deffontname_bal); break; } my_signal_connect(GTK_FONT_SELECTION_DIALOG(fdialog)->ok_button, "clicked", ChangeFontname, (gpointer)cdata); my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_FONT_SELECTION_DIALOG(fdialog)->cancel_button, "clicked", close_child_dialog,GTK_WIDGET(fdialog)); gtk_widget_show(fdialog); gtk_main(); if(cdata->fn){ switch(bal_clk){ case CONF_FONT_CLK: tmp_mascot.fontname_clk=cdata->fn; break; case CONF_FONT_BAL: tmp_mascot.fontname_bal=cdata->fn; break; case CONF_DEF_FONT_CLK: tmp_mascot.deffontname_clk=cdata->fn; break; case CONF_DEF_FONT_BAL: tmp_mascot.deffontname_bal=cdata->fn; break; } } g_free(cdata); flagChildDialog=FALSE; } #endif #ifndef __GTK_COLOR_BUTTON_H__ static void create_color_selection_dialog(GtkWidget *w, gpointer gdata) { GdkColor init_col = {0, 0, 0, 0}; GtkWidget *fdialog; int bal_clk; confColor *cdata=NULL; gdouble selcolor[4]; #ifdef USE_CAIRO guint16 selalpha; #endif if(flagChildDialog){ return; } else{ flagChildDialog=TRUE; } cdata=g_malloc0(sizeof(confColor)); bal_clk=(int)gdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); fdialog = gtk_color_selection_dialog_new(_("Color Selection")); gtk_color_selection_set_update_policy (GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (fdialog)->colorsel), GTK_UPDATE_CONTINUOUS); #ifdef USE_CAIRO gtk_color_selection_set_has_opacity_control(GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (fdialog)->colorsel), TRUE); #endif cdata->csd=GTK_COLOR_SELECTION_DIALOG(fdialog); //cdata->color=&init_col; cdata->color=g_malloc0(sizeof(GdkColor)); cdata->update=FALSE; cdata->button=w; switch(bal_clk){ case CONF_COLOR_CLK: selcolor[0]=(gdouble)tmp_mascot.colclk->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colclk->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colclk->blue/0xFFFF; break; case CONF_COLOR_CLKBG: selcolor[0]=(gdouble)tmp_mascot.colclkbg->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colclkbg->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colclkbg->blue/0xFFFF; break; case CONF_COLOR_CLKBD: selcolor[0]=(gdouble)tmp_mascot.colclkbd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colclkbd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colclkbd->blue/0xFFFF; break; case CONF_COLOR_CLKSD: selcolor[0]=(gdouble)tmp_mascot.colclksd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colclksd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colclksd->blue/0xFFFF; break; case CONF_COLOR_BAL: selcolor[0]=(gdouble)tmp_mascot.colbal->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colbal->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colbal->blue/0xFFFF; break; case CONF_COLOR_BALBG: selcolor[0]=(gdouble)tmp_mascot.colbalbg->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colbalbg->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colbalbg->blue/0xFFFF; break; case CONF_COLOR_BALBD: selcolor[0]=(gdouble)tmp_mascot.colbalbd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.colbalbd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.colbalbd->blue/0xFFFF; break; case CONF_DEF_COLOR_CLK: selcolor[0]=(gdouble)tmp_mascot.def_colclk->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colclk->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colclk->blue/0xFFFF; break; case CONF_DEF_COLOR_CLKBG: selcolor[0]=(gdouble)tmp_mascot.def_colclkbg->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colclkbg->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colclkbg->blue/0xFFFF; break; case CONF_DEF_COLOR_CLKBD: selcolor[0]=(gdouble)tmp_mascot.def_colclkbd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colclkbd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colclkbd->blue/0xFFFF; break; case CONF_DEF_COLOR_CLKSD: selcolor[0]=(gdouble)tmp_mascot.def_colclksd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colclksd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colclksd->blue/0xFFFF; break; case CONF_DEF_COLOR_BAL: selcolor[0]=(gdouble)tmp_mascot.def_colbal->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colbal->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colbal->blue/0xFFFF; break; case CONF_DEF_COLOR_BALBG: selcolor[0]=(gdouble)tmp_mascot.def_colbalbg->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colbalbg->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colbalbg->blue/0xFFFF; break; case CONF_DEF_COLOR_BALBD: selcolor[0]=(gdouble)tmp_mascot.def_colbalbd->red/0xFFFF; selcolor[1]=(gdouble)tmp_mascot.def_colbalbd->green/0xFFFF; selcolor[2]=(gdouble)tmp_mascot.def_colbalbd->blue/0xFFFF; break; } selcolor[3]=1; gtk_color_selection_set_color( GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (fdialog)->colorsel), selcolor); #ifdef USE_CAIRO switch(bal_clk){ case CONF_COLOR_CLK: selalpha=tmp_mascot.alpclk; break; case CONF_COLOR_CLKBG: selalpha=tmp_mascot.alpclkbg; break; case CONF_COLOR_CLKBD: selalpha=tmp_mascot.alpclkbd; break; case CONF_COLOR_CLKSD: selalpha=tmp_mascot.alpclksd; break; case CONF_COLOR_BAL: selalpha=tmp_mascot.alpbal; break; case CONF_COLOR_BALBG: selalpha=tmp_mascot.alpbalbg; break; case CONF_COLOR_BALBD: selalpha=tmp_mascot.alpbalbd; break; case CONF_DEF_COLOR_CLK: selalpha=tmp_mascot.def_alpclk; break; case CONF_DEF_COLOR_CLKBG: selalpha=tmp_mascot.def_alpclkbg; break; case CONF_DEF_COLOR_CLKBD: selalpha=tmp_mascot.def_alpclkbd; break; case CONF_DEF_COLOR_CLKSD: selalpha=tmp_mascot.def_alpclksd; break; case CONF_DEF_COLOR_BAL: selalpha=tmp_mascot.def_alpbal; break; case CONF_DEF_COLOR_BALBG: selalpha=tmp_mascot.def_alpbalbg; break; case CONF_DEF_COLOR_BALBD: selalpha=tmp_mascot.def_alpbalbd; break; } gtk_color_selection_set_current_alpha (GTK_COLOR_SELECTION(cdata->csd->colorsel),selalpha); #endif my_signal_connect(GTK_COLOR_SELECTION_DIALOG(fdialog)->ok_button, "clicked", ChangeColor, (gpointer)cdata); my_signal_connect(fdialog,"destroy",close_child_dialog, GTK_WIDGET(fdialog)); my_signal_connect(GTK_COLOR_SELECTION_DIALOG(fdialog)->cancel_button, "clicked", close_child_dialog,GTK_WIDGET(fdialog)); gtk_widget_show(fdialog); gtk_main(); if(cdata->update){ switch(bal_clk){ case CONF_COLOR_CLK: tmp_mascot.colclk=gdk_color_copy(cdata->color); break; case CONF_COLOR_CLKBG: tmp_mascot.colclkbg=gdk_color_copy(cdata->color); break; case CONF_COLOR_CLKBD: tmp_mascot.colclkbd=gdk_color_copy(cdata->color); break; case CONF_COLOR_CLKSD: tmp_mascot.colclksd=gdk_color_copy(cdata->color); break; case CONF_COLOR_BAL: tmp_mascot.colbal=gdk_color_copy(cdata->color); break; case CONF_COLOR_BALBG: tmp_mascot.colbalbg=gdk_color_copy(cdata->color); break; case CONF_COLOR_BALBD: tmp_mascot.colbalbd=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_CLK: tmp_mascot.def_colclk=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_CLKBG: tmp_mascot.def_colclkbg=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_CLKBD: tmp_mascot.def_colclkbd=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_CLKSD: tmp_mascot.def_colclksd=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_BAL: tmp_mascot.def_colbal=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_BALBG: tmp_mascot.def_colbalbg=gdk_color_copy(cdata->color); break; case CONF_DEF_COLOR_BALBD: tmp_mascot.def_colbalbd=gdk_color_copy(cdata->color); break; } #ifdef USE_CAIRO switch(bal_clk){ case CONF_COLOR_CLK: tmp_mascot.alpclk=cdata->alpha; break; case CONF_COLOR_CLKBG: tmp_mascot.alpclkbg=cdata->alpha; break; case CONF_COLOR_CLKBD: tmp_mascot.alpclkbd=cdata->alpha; break; case CONF_COLOR_CLKSD: tmp_mascot.alpclksd=cdata->alpha; break; case CONF_COLOR_BAL: tmp_mascot.alpbal=cdata->alpha; break; case CONF_COLOR_BALBG: tmp_mascot.alpbalbg=cdata->alpha; break; case CONF_COLOR_BALBD: tmp_mascot.alpbalbd=cdata->alpha; break; case CONF_DEF_COLOR_CLK: tmp_mascot.def_alpclk=cdata->alpha; break; case CONF_DEF_COLOR_CLKBG: tmp_mascot.def_alpclkbg=cdata->alpha; break; case CONF_DEF_COLOR_CLKBD: tmp_mascot.def_alpclkbd=cdata->alpha; break; case CONF_DEF_COLOR_CLKSD: tmp_mascot.def_alpclksd=cdata->alpha; break; case CONF_DEF_COLOR_BAL: tmp_mascot.def_alpbal=cdata->alpha; break; case CONF_DEF_COLOR_BALBG: tmp_mascot.def_alpbalbg=cdata->alpha; break; case CONF_DEF_COLOR_BALBD: tmp_mascot.def_alpbalbd=cdata->alpha; break; } #endif } g_free(cdata); flagChildDialog=FALSE; } #endif static void change_colbal_default(GtkWidget *w, gpointer gdata) { tmp_mascot.colbal->red =tmp_mascot.def_colbal->red; tmp_mascot.colbal->green=tmp_mascot.def_colbal->green; tmp_mascot.colbal->blue =tmp_mascot.def_colbal->blue; tmp_mascot.colbalbg->red =tmp_mascot.def_colbalbg->red; tmp_mascot.colbalbg->green=tmp_mascot.def_colbalbg->green; tmp_mascot.colbalbg->blue =tmp_mascot.def_colbalbg->blue; tmp_mascot.colbalbd->red =tmp_mascot.def_colbalbd->red; tmp_mascot.colbalbd->green=tmp_mascot.def_colbalbd->green; tmp_mascot.colbalbd->blue =tmp_mascot.def_colbalbd->blue; #ifdef USE_CAIRO tmp_mascot.alpbal =tmp_mascot.def_alpbal; tmp_mascot.alpbalbg =tmp_mascot.def_alpbalbg; tmp_mascot.alpbalbd =tmp_mascot.def_alpbalbd; #endif } static void change_colclk_default(GtkWidget *w, gpointer gdata) { tmp_mascot.colclk->red =tmp_mascot.def_colclk->red; tmp_mascot.colclk->green=tmp_mascot.def_colclk->green; tmp_mascot.colclk->blue =tmp_mascot.def_colclk->blue; tmp_mascot.colclkbg->red =tmp_mascot.def_colclkbg->red; tmp_mascot.colclkbg->green=tmp_mascot.def_colclkbg->green; tmp_mascot.colclkbg->blue =tmp_mascot.def_colclkbg->blue; tmp_mascot.colclkbd->red =tmp_mascot.def_colclkbd->red; tmp_mascot.colclkbd->green=tmp_mascot.def_colclkbd->green; tmp_mascot.colclkbd->blue =tmp_mascot.def_colclkbd->blue; tmp_mascot.colclksd->red =tmp_mascot.def_colclksd->red; tmp_mascot.colclksd->green=tmp_mascot.def_colclksd->green; tmp_mascot.colclksd->blue =tmp_mascot.def_colclksd->blue; #ifdef USE_CAIRO tmp_mascot.alpclk =tmp_mascot.def_alpclk; tmp_mascot.alpclksd =tmp_mascot.def_alpclksd; tmp_mascot.alpclkbg =tmp_mascot.def_alpclkbg; tmp_mascot.alpclkbd =tmp_mascot.def_alpclkbd; #endif } // ÀßÄê¥À¥¤¥¢¥í¥°¤ÎÀ¸À® void create_config_dialog(void) { GtkWidget *conf_main; GtkWidget *conf_tbl; GtkWidget *all_note; GtkWidget *button; int i_pix; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; // ¥Æ¥ó¥Ý¥é¥ê¥Ç¡¼¥¿¤ÎÍÑ°Õ tmp_mascot=*Mascot; for(i_pix=0;i_pixsprites[i_pix].filename; } #ifdef USE_GTK2 conf_main = gtk_window_new(GTK_WINDOW_TOPLEVEL); #else conf_main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_title(GTK_WINDOW(conf_main), _("Config for MaCoPiX")); //gtk_widget_set_app_paintable(conf_main, TRUE); gtk_widget_realize(conf_main); my_signal_connect(conf_main,"destroy",close_conf, GTK_WIDGET(conf_main)); gtk_container_set_border_width (GTK_CONTAINER (conf_main), 5); // 3x6¤Î¥Æ¡¼¥Ö¥ë conf_tbl = gtk_table_new (3, 6, FALSE); gtk_container_add (GTK_CONTAINER (conf_main), conf_tbl); all_note = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (all_note), GTK_POS_TOP); gtk_notebook_set_scrollable (GTK_NOTEBOOK (all_note), TRUE); gtk_table_attach_defaults (GTK_TABLE(conf_tbl), all_note, 0, 6, 0, 1); /////// ¥Þ¥¹¥³¥Ã¥È¶¦Ä̤ÎÀßÄê /////// { GtkWidget *conf_note; GtkWidget *label; conf_note = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (conf_note), GTK_POS_TOP); gtk_notebook_set_scrollable (GTK_NOTEBOOK (conf_note), TRUE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_table_attach(GTK_TABLE(conf_tbl), button, 4, 5, 1, 2, GTK_FILL,GTK_FILL,0,0); my_signal_connect(button,"clicked",close_conf, GTK_WIDGET(conf_main)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_table_attach(GTK_TABLE(conf_tbl), button, 5, 6, 1, 2, GTK_FILL,GTK_FILL,0,0); my_signal_connect(button,"clicked",conf_change, GTK_WIDGET(conf_main)); // ¥Î¡¼¥È¥Ö¥Ã¥¯¤ÎÀ¸À® { gint i_resource=0; GtkWidget *frame; GtkWidget *table; GtkWidget *label; GtkWidget *combo; GtkWidget *clabel; GtkWidget *table1; GtkWidget *table2; GtkWidget *check; GtkWidget *vbox; GtkWidget *hbox; GtkAdjustment *adj; GtkWidget *scale; GtkWidget *spinner; GtkWidget *button; GtkWidget *scrwin; // °ÜưÀßÄê i_resource++; { GtkWidget *table3; // 3x2¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (2, 3, FALSE); frame = gtk_frame_new (_("Focus Follow")); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table1 = gtk_table_new(2,5,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); frame = gtk_frame_new (_("Offset on the Title Bar")); gtk_table_attach(GTK_TABLE(table1), frame, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table2 = gtk_table_new(2,3,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame), table2); gtk_table_set_col_spacing (GTK_TABLE(table2), 0, 15); vbox = gtk_hbox_new(FALSE,10); gtk_container_set_border_width (GTK_CONTAINER (vbox), 0); gtk_table_attach_defaults (GTK_TABLE(table2), vbox, 0, 2, 0, 1); label = gtk_label_new (_("Starting Point")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 5); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Left upper corner of the focused window"), 1, FF_SIDE_LEFT, -1); if(Mascot->ff_side==FF_SIDE_LEFT) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Right upper corner of the focused window"), 1, FF_SIDE_RIGHT, -1); if(Mascot->ff_side==FF_SIDE_RIGHT) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(vbox), combo,FALSE, FALSE, 0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.ff_side); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(vbox), combo,FALSE, FALSE, 0); clabel = gtk_list_item_new_with_label (_("Right")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Left")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->ff_side==FF_SIDE_RIGHT){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Right")); } else if(Mascot->ff_side==FF_SIDE_LEFT){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Left")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_ff_side,NULL); #endif table3 = gtk_table_new(3,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table3), 5); gtk_table_attach (GTK_TABLE(table2), table3, 0, 2, 1, 3, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); { GSList *group=NULL; check = gtk_radio_button_new(group); #ifdef USE_GTK2 group=gtk_radio_button_get_group(GTK_RADIO_BUTTON(check)); #else group=gtk_radio_button_group(GTK_RADIO_BUTTON(check)); #endif gtk_table_attach(GTK_TABLE(table3), check, 0, 1, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect (check, "toggled",cc_flag_xp, (gpointer *)FALSE); if(!Mascot->flag_xp){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } else{ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),FALSE); } check = gtk_radio_button_new(group); #ifdef USE_GTK2 group=gtk_radio_button_get_group(GTK_RADIO_BUTTON(check)); #else group=gtk_radio_button_group(GTK_RADIO_BUTTON(check)); #endif gtk_table_attach(GTK_TABLE(table3), check, 0, 1, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect (check, "toggled",cc_flag_xp, (gpointer *)TRUE); if(Mascot->flag_xp){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } else{ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),FALSE); } } label = gtk_label_new (_("Absolute[pix]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table3), label, 1, 2, 0, 1, GTK_SHRINK,GTK_FILL,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->offset, 0, Mascot->width_root, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.offset); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach (GTK_TABLE(table3), scale, 2, 3, 0, 1, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); label = gtk_label_new (_("Relative[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach (GTK_TABLE(table3), label, 1, 2, 1, 2, GTK_FILL,GTK_FILL,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->offsetp, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.offsetp); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach (GTK_TABLE(table3), scale, 2, 3, 1, 2, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); frame = gtk_frame_new (_("Title Bar Size")); gtk_table_attach(GTK_TABLE(table1), frame, 0, 1, 1, 2, GTK_FILL,GTK_FILL,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table2 = gtk_table_new(2,4,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame), table2); gtk_table_set_row_spacings (GTK_TABLE(table2), 5); gtk_table_set_col_spacings (GTK_TABLE(table2), 8); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Manual Scaling"), 1, AUTOBAR_MANUAL, -1); if(Mascot->focus_autobar==AUTOBAR_MANUAL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Auto Scaling"), 1, AUTOBAR_ORDINAL, -1); if(Mascot->focus_autobar==AUTOBAR_ORDINAL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Auto Scaling (for Compiz)"), 1, AUTOBAR_COMPIZ, -1); if(Mascot->focus_autobar==AUTOBAR_COMPIZ) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach (GTK_TABLE(table2), combo,0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.focus_autobar); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults (GTK_TABLE(table2), combo,0, 2, 0, 1); clabel = gtk_list_item_new_with_label (_("Manual Scaling")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Auto Scaling")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Auto Scaling (for Compiz)")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->focus_autobar==AUTOBAR_MANUAL){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Manual Scaling")); } else if(Mascot->focus_autobar==AUTOBAR_ORDINAL){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Auto Scaling")); } else if(Mascot->focus_autobar==AUTOBAR_COMPIZ){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Auto Scaling (for Compiz)")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_autobar, &tmp_mascot.focus_autobar); #endif #ifdef USE_WIN32 gtk_widget_set_sensitive(combo,FALSE); #endif #if defined(USE_GTK2) && !defined(USE_WIN32) label = gtk_label_new (_("Window Manager [start-up]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 0, 1, 1, 2); { label = gtk_label_new (GetCurrentWMName(conf_main)); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 1, 2, 1, 2); } #endif label = gtk_label_new (_("Bar Size (Manual)")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 0, 1, 2, 3); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->bar_size, 0.0, 50.0, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.bar_size); spinner_manual = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner_manual), FALSE); gtk_table_attach (GTK_TABLE(table2), spinner_manual, 1, 2, 2, 3, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef USE_WIN32 gtk_widget_set_sensitive(spinner_manual,FALSE); #else if(Mascot->focus_autobar!=AUTOBAR_MANUAL){ gtk_widget_set_sensitive(spinner_manual,FALSE); } #endif label = gtk_label_new (_("Offset for Shaped Bar")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 0, 1, 3, 4); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->bar_offset, -50, 50.0, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.bar_offset); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach (GTK_TABLE(table2), spinner, 1, 2, 3, 4, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef USE_WIN32 gtk_widget_set_sensitive(spinner,FALSE); #endif frame = gtk_frame_new (_("Home Position")); gtk_table_attach(GTK_TABLE(table1), frame, 1, 2, 1, 2, GTK_FILL,GTK_FILL,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table2 = gtk_table_new(2,4,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame), table2); gtk_table_set_row_spacings (GTK_TABLE(table2), 5); gtk_table_set_col_spacings (GTK_TABLE(table2), 5); vbox = gtk_hbox_new(FALSE,10); gtk_container_set_border_width (GTK_CONTAINER (vbox), 0); gtk_table_attach_defaults (GTK_TABLE(table2), vbox, 0, 2, 0, 1); check = gtk_check_button_new_with_label(_("Auto")); gtk_box_pack_start(GTK_BOX(vbox), check,FALSE, FALSE, 5); if(Mascot->home_auto){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle_home, &tmp_mascot.home_auto); #ifdef USE_WIN32 gtk_widget_set_sensitive(check,FALSE); #endif label = gtk_label_new (_(" X")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 2); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->home_x, 0,Mascot->width_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.home_x); spinner_home_x = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner_home_x), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner_home_x,FALSE, FALSE, 5); #ifdef USE_WIN32 gtk_widget_set_sensitive(spinner_home_x,FALSE); #endif label = gtk_label_new (_(" Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 2); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->home_y, 0, Mascot->height_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.home_y); spinner_home_y = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner_home_y), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner_home_y,FALSE, FALSE, 5); #ifdef USE_WIN32 gtk_widget_set_sensitive(spinner_home_y,FALSE); #endif if(!Mascot->home_auto){ gtk_widget_set_sensitive(spinner_home_x,TRUE); gtk_widget_set_sensitive(spinner_home_y,TRUE); } else{ gtk_widget_set_sensitive(spinner_home_x,FALSE); gtk_widget_set_sensitive(spinner_home_y,FALSE); } vbox = gtk_hbox_new(FALSE,10); gtk_container_set_border_width (GTK_CONTAINER (vbox), 0); gtk_table_attach_defaults (GTK_TABLE(table2), vbox, 0, 2, 1, 2); label = gtk_label_new (" "); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 5); check_vanish = gtk_check_button_new_with_label(_("Vanish when auto-detection failed")); gtk_box_pack_start(GTK_BOX(vbox), check_vanish,FALSE, FALSE, 5); if(Mascot->home_auto_vanish){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_vanish),TRUE); } my_signal_connect (check_vanish, "toggled",cc_get_toggle_home, &tmp_mascot.home_auto_vanish); if(!Mascot->home_auto){ gtk_widget_set_sensitive(check_vanish,FALSE); } else{ gtk_widget_set_sensitive(check_vanish,TRUE); } label = gtk_label_new (_("No Focus")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 0, 1, 2, 3); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Do Nothing"), 1, HOMEPOS_NEVER, -1); if(Mascot->homepos_nf==HOMEPOS_NEVER) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Vanish"), 1, HOMEPOS_VANISH, -1); if(Mascot->homepos_nf==HOMEPOS_VANISH) iter_set=iter; gtk_list_store_append(store, &iter); #ifdef USE_WIN32 gtk_list_store_set(store, &iter, 0, _("Sit on Task Bar"), 1, HOMEPOS_BAR, -1); #else gtk_list_store_set(store, &iter, 0, _("Move to Home Position"), 1, HOMEPOS_BAR, -1); #endif if(Mascot->homepos_nf==HOMEPOS_BAR) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults (GTK_TABLE(table2), combo, 1, 2, 2, 3); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.homepos_nf); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults (GTK_TABLE(table2), combo, 1, 2, 2, 3); clabel = gtk_list_item_new_with_label (_("Do Nothing")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Vanish")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); #ifdef USE_WIN32 clabel = gtk_list_item_new_with_label (_("Sit on Task Bar")); #else clabel = gtk_list_item_new_with_label (_("Move to Home Position")); #endif gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->homepos_nf==HOMEPOS_NEVER){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Do Nothing")); } else if(Mascot->homepos_nf==HOMEPOS_VANISH){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Vanish")); } else if(Mascot->homepos_nf==HOMEPOS_BAR){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), #ifdef USE_WIN32 _("Sit on Task Bar")); #else _("Move to Home Position")); #endif } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_homepos, &tmp_mascot.homepos_nf); #endif label = gtk_label_new (_("Sticked Out")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table2), label, 0, 1, 3, 4); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Do Nothing"), 1, HOMEPOS_NEVER, -1); if(Mascot->homepos_out==HOMEPOS_NEVER) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Vanish"), 1, HOMEPOS_VANISH, -1); if(Mascot->homepos_out==HOMEPOS_VANISH) iter_set=iter; gtk_list_store_append(store, &iter); #ifdef USE_WIN32 gtk_list_store_set(store, &iter, 0, _("Sit on Task Bar"), 1, HOMEPOS_BAR, -1); #else gtk_list_store_set(store, &iter, 0, _("Move to Home Position"), 1, HOMEPOS_BAR, -1); #endif if(Mascot->homepos_out==HOMEPOS_BAR) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults (GTK_TABLE(table2), combo, 1, 2, 3, 4); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.homepos_out); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults (GTK_TABLE(table2), combo, 1, 2, 3, 4); clabel = gtk_list_item_new_with_label (_("Do Nothing")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Vanish")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); #ifdef USE_WIN32 clabel = gtk_list_item_new_with_label (_("Sit on Task Bar")); #else clabel = gtk_list_item_new_with_label (_("Move to Home Position")); #endif gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->homepos_out==HOMEPOS_NEVER){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Do Nothing")); } else if(Mascot->homepos_out==HOMEPOS_VANISH){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Vanish")); } else if(Mascot->homepos_out==HOMEPOS_BAR){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), #ifdef USE_WIN32 _("Sit on Task Bar")); #else _("Move to Home Position")); #endif } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_homepos, &tmp_mascot.homepos_out); #endif frame = gtk_frame_new (_("Management for Window w/o Title Bar")); gtk_table_attach(GTK_TABLE(table1), frame, 0, 2, 2, 3, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table2 = gtk_table_new(3,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame), table2); check_nb = gtk_check_button_new_with_label(_("Ignore Window w/o Title Bar")); gtk_table_attach(GTK_TABLE(table2), check_nb, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); if(Mascot->no_capbar){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_nb),TRUE); } my_signal_connect (check_nb, "toggled",cc_get_toggle_nb,&tmp_mascot.no_capbar); #ifndef USE_WIN32 if(Mascot->focus_autobar==AUTOBAR_MANUAL){ gtk_widget_set_sensitive(check_nb,FALSE); } #endif label = gtk_label_new (_(" Action : ")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Do Nothing"), 1, HOMEPOS_NEVER, -1); if(Mascot->homepos_nb==HOMEPOS_NEVER) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Vanish"), 1, HOMEPOS_VANISH, -1); if(Mascot->homepos_nb==HOMEPOS_VANISH) iter_set=iter; gtk_list_store_append(store, &iter); #ifdef USE_WIN32 gtk_list_store_set(store, &iter, 0, _("Sit on Task Bar"), 1, HOMEPOS_BAR, -1); #else gtk_list_store_set(store, &iter, 0, _("Move to Home Position"), 1, HOMEPOS_BAR, -1); #endif if(Mascot->homepos_nb==HOMEPOS_BAR) iter_set=iter; combo_nb = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults (GTK_TABLE(table2), combo_nb, 2, 3, 0, 1); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo_nb),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo_nb), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo_nb),&iter_set); gtk_widget_show(combo_nb); my_signal_connect (combo_nb,"changed",cc_get_combo_box, &tmp_mascot.homepos_nb); } #else combo_nb = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo_nb)->entry),FALSE); gtk_table_attach_defaults (GTK_TABLE(table2), combo_nb, 2, 3, 0, 1); clabel = gtk_list_item_new_with_label (_("Do Nothing")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo_nb)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Vanish")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo_nb)->list), clabel); gtk_widget_show(clabel); #ifdef USE_WIN32 clabel = gtk_list_item_new_with_label (_("Sit on Task Bar")); #else clabel = gtk_list_item_new_with_label (_("Move to Home Position")); #endif gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo_nb)->list), clabel); gtk_widget_show(clabel); if(Mascot->homepos_nb==HOMEPOS_NEVER){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo_nb)->entry), _("Do Nothing")); } else if(Mascot->homepos_nb==HOMEPOS_VANISH){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo_nb)->entry), _("Vanish")); } else if(Mascot->homepos_nb==HOMEPOS_BAR){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo_nb)->entry), #ifdef USE_WIN32 _("Sit on Task Bar")); #else _("Move to Home Position")); #endif } my_signal_connect (GTK_COMBO(combo_nb)->entry,"changed",cc_homepos, &tmp_mascot.homepos_nb); #endif label = gtk_label_new (_(" * Mascot could fail to follow the focus with older window managers.")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 0, 3, 1, 2, GTK_FILL,GTK_SHRINK,0,0); #ifdef USE_WIN32 frame = gtk_frame_new (_("for Windows")); gtk_table_attach(GTK_TABLE(table1), frame, 0, 2, 3, 4, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table2 = gtk_table_new(1,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame), table2); check = gtk_check_button_new_with_label(_("Stay on Task Bar")); gtk_table_attach(GTK_TABLE(table2), check, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); if(Mascot->task_force){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.task_force); #endif table2=gtk_table_new(1,2,FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), table2, 0, 2, 3, 4); frame = gtk_frame_new (_("Foreground Mapping")); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 1, 2, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table1 = gtk_table_new(1,1,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); check = gtk_check_button_new_with_label(_("Force to Raise to the Foreground")); gtk_table_attach_defaults(GTK_TABLE(table1), check, 0, 1, 0, 1); if(Mascot->raise_force){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.raise_force); check = gtk_check_button_new_with_label(_("Raise with Mascot shaping (for translucent KWin)")); gtk_table_attach_defaults(GTK_TABLE(table1), check, 0, 1, 1, 2); if(Mascot->raise_kwin){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.raise_kwin); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 2, 3); label = gtk_label_new (_("Move")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // »þÊó i_resource++; { GtkWidget *entry; // 1x3¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 2, FALSE); frame = gtk_frame_new (_("Time Signal")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL,GTK_FILL,0,0); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); table1 = gtk_table_new (3, 2, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); check = gtk_check_button_new_with_label(_("Use Signal")); gtk_table_attach(GTK_TABLE(table1), check, 0, 2, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); if(Mascot->signal.flag){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.signal.flag); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_table_attach(GTK_TABLE(table1), hbox, 2, 3, 0, 1, GTK_SHRINK, GTK_SHRINK, 0, 0); label = gtk_label_new (_("Mascot Action")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("None"), 1, SIGACT_NO, -1); if(Mascot->signal.type==SIGACT_NO) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Click Action"), 1, SIGACT_CLICK, -1); if(Mascot->signal.type==SIGACT_CLICK) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Mascot Random Change"), 1, SIGACT_CHANGE, -1); if(Mascot->signal.type==SIGACT_CHANGE) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.signal.type); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); clabel = gtk_list_item_new_with_label (_("None")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Click Action")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Mascot Random Change")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->signal.type==SIGACT_CLICK){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Click Action")); } else if(Mascot->signal.type==SIGACT_CHANGE){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Mascot Random Change")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_signal_type, NULL); #endif label = gtk_label_new (_("External Command")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry,&tmp_mascot.signal.com); gtk_table_attach (GTK_TABLE(table1), entry, 1, 3, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->signal.com){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->signal.com); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 1, 2); label = gtk_label_new (_("Time Signal")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } #ifdef USE_BIFF // Biff i_resource++; { GtkWidget *entry; GtkWidget *table2; GtkWidget *frame1; // 1x5¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 5, FALSE); frame = gtk_frame_new (_("Server Information")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (1, 3, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); //gtk_table_set_row_spacings (GTK_TABLE(table1), 5); //gtk_table_set_row_spacing (GTK_TABLE(table1), 5, 0); //gtk_table_set_col_spacings (GTK_TABLE(table1), 8); hbox = gtk_hbox_new(FALSE, 5); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 0, 1); label = gtk_label_new (_("Protocol")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox),label,FALSE,FALSE,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("None"), 1, MAIL_NO, -1); if(Mascot->mail.type==MAIL_NO) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("POP3 (normal)"), 1, MAIL_POP3, -1); if(Mascot->mail.type==MAIL_POP3) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("POP3 (APOP auth)"), 1, MAIL_APOP, -1); if(Mascot->mail.type==MAIL_APOP) iter_set=iter; #ifndef USE_WIN32 gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Local mbox"), 1, MAIL_LOCAL, -1); if(Mascot->mail.type==MAIL_LOCAL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("qmail (Maildir)"), 1, MAIL_QMAIL, -1); if(Mascot->mail.type==MAIL_QMAIL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("MH + Procmail"), 1, MAIL_PROCMAIL, -1); if(Mascot->mail.type==MAIL_PROCMAIL) iter_set=iter; #endif combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox),combo,FALSE,FALSE,0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.mail.type); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox),combo,FALSE,FALSE,0); clabel = gtk_list_item_new_with_label (_("None")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("POP3 (normal)")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("POP3 (APOP auth)")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); #ifndef USE_WIN32 clabel = gtk_list_item_new_with_label (_("Local mbox")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("qmail (Maildir)")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("MH + Procmail")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); #endif switch(Mascot->mail.type){ case MAIL_NO: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("None")); break; case MAIL_POP3: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("POP3 (normal)")); break; case MAIL_APOP: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("POP3 (APOP auth)")); break; #ifndef USE_WIN32 case MAIL_LOCAL: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Local mbox")); break; case MAIL_QMAIL: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("qmail (Maildir)")); break; case MAIL_PROCMAIL: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("MH + Procmail")); break; #endif } my_signal_connect (GTK_COMBO(combo)->entry, "changed",cc_mail_type,NULL); #endif label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox),label,TRUE,TRUE,0); frame1 = gtk_frame_new ("POP3"); gtk_container_set_border_width (GTK_CONTAINER (frame1), 5); gtk_table_attach(GTK_TABLE(table1), frame1, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table2 = gtk_table_new (4, 4, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_table_set_row_spacings (GTK_TABLE(table2), 5); gtk_table_set_col_spacings (GTK_TABLE(table2), 5); gtk_container_add (GTK_CONTAINER (frame1), table2); label = gtk_label_new (_("Address")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 0, 1, 0, 1,0,0,0,0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.pop_server); gtk_table_attach (GTK_TABLE(table2), entry, 1, 3, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->mail.pop_server){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.pop_server); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); label = gtk_label_new (_("User ID")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 0, 1, 1, 2,0,0,0,0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.pop_id); gtk_table_attach (GTK_TABLE(table2), entry, 1, 2, 1, 2, GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL,0,0); if(Mascot->mail.pop_id){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.pop_id); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); label = gtk_label_new (_(" Password")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 2, 3, 1, 2,0,0,0,0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.pop_pass); gtk_table_attach (GTK_TABLE(table2), entry, 3, 4, 1, 2, GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL,0,0); gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); if(Mascot->mail.pop_save){ if(Mascot->mail.pop_pass){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.pop_pass); } } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table2), hbox, 3, 4, 2, 3); label = gtk_label_new (""); gtk_box_pack_start(GTK_BOX(hbox), label,TRUE, TRUE, 5); check = gtk_check_button_new_with_label(_("Save Password")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 5); if(Mascot->mail.pop_save){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.mail.pop_save); #ifdef USE_SSL label = gtk_label_new ("SSL"); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach(GTK_TABLE(table2), label, 0, 1, 2, 3,0,0,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("None"), 1, SSL_NONE, -1); if(Mascot->mail.ssl_mode==SSL_NONE) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Use SSL for POP3 Connection"), 1, SSL_TUNNEL, -1); if(Mascot->mail.ssl_mode==SSL_TUNNEL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Use STARTTLS to start SSL session"), 1, SSL_STARTTLS, -1); if(Mascot->mail.ssl_mode==SSL_STARTTLS) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults(GTK_TABLE(table2), combo, 1, 3, 2, 3); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_mail_ssl, NULL); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table2), combo, 1, 3, 2, 3); clabel = gtk_list_item_new_with_label (_("Don't use SSL")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Use SSL for POP3 Connection")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Use STARTTLS to start SSL session")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); switch(Mascot->mail.ssl_mode){ case SSL_NONE: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Don't use SSL")); break; case SSL_TUNNEL: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Use SSL for POP3 Connection")); break; case SSL_STARTTLS: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Use STARTTLS to start SSL session")); break; } my_signal_connect (GTK_COMBO(combo)->entry, "changed",cc_mail_ssl,NULL); #endif hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table2), hbox, 1, 4, 3, 4); check = gtk_check_button_new_with_label(_("Skip to Verify on SSL Certification")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 0); if(Mascot->mail.ssl_cert_skip){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.mail.ssl_cert_skip); check = gtk_check_button_new_with_label(_("Non-Blocking SSL")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 0); if(Mascot->mail.ssl_nonblock){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.mail.ssl_nonblock); #endif hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table2), hbox, 3, 4, 0, 1); label = gtk_label_new (""); gtk_box_pack_start(GTK_BOX(hbox), label,TRUE, TRUE, 5); label = gtk_label_new (_(" Port No.")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 5); adj_pop_port = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.pop_port, 1, 65535, 1.0, 100.0, 100.0); my_signal_connect (adj_pop_port, "value_changed",cc_get_adj, &tmp_mascot.mail.pop_port); spinner = gtk_spin_button_new (adj_pop_port, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); frame1 = gtk_frame_new (_("Local mbox / Maildir / .procmailrc")); gtk_container_set_border_width (GTK_CONTAINER (frame1), 5); gtk_table_attach(GTK_TABLE(table1), frame1, 0, 1, 2, 3, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table2 = gtk_table_new (5, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table2), 5); gtk_container_add (GTK_CONTAINER (frame1), table2); { GtkWidget *hbox2; hbox2 = gtk_hbox_new(FALSE, 0); gtk_table_attach_defaults (GTK_TABLE(table2), hbox2, 1, 5, 0, 1); label = gtk_label_new (_("File / Directory")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox2), label,FALSE, FALSE, 5); entry = gtk_entry_new (); gtk_box_pack_start(GTK_BOX(hbox2), entry,TRUE, TRUE, 0); if(Mascot->mail.file){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.file); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.file); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_OPEN); #else button = gtk_button_new_with_label("..."); #endif gtk_box_pack_start(GTK_BOX(hbox2), button,FALSE, FALSE, 0); my_signal_connect (button,"clicked",create_mail_file_dialog, (gpointer)entry); } frame = gtk_frame_new (_("Operating Information")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (1, 3, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 0, 1); label = gtk_label_new (_("Interval[sec]")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.interval, 10, 3600, 10.0, 10.0, 10.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.interval); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); label = gtk_label_new (_(" Mailer")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); { GtkWidget *hbox2; hbox2 = gtk_hbox_new(FALSE,0); gtk_box_pack_start(GTK_BOX(hbox), hbox2,TRUE, TRUE, 0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.mailer); gtk_box_pack_start(GTK_BOX(hbox2), entry,TRUE, TRUE, 0); if(Mascot->mail.mailer){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.mailer); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_OPEN); #else button = gtk_button_new_with_label("..."); #endif gtk_box_pack_start(GTK_BOX(hbox2), button,FALSE, FALSE, 0); my_signal_connect (button,"clicked",create_mailer_dialog, (gpointer)entry); } hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 1, 2); label = gtk_label_new (_("Polling command")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.mail.polling); gtk_box_pack_start(GTK_BOX(hbox), entry,TRUE, TRUE, 0); if(Mascot->mail.polling){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.polling); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 2, 3); label = gtk_label_new (_("Max Mails for POP Scan")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.pop_max_fs, 10, 999, 10.0, 10.0, 10.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.pop_max_fs); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); label = gtk_label_new (" "); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Tooltips on biff pix")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 0); if(Mascot->mail.tooltips_fl){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.mail.tooltips_fl); frame = gtk_frame_new (_("SPAM exception")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 2, 3, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (3, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); check = gtk_check_button_new_with_label(_("Use exception")); gtk_table_attach(GTK_TABLE(table1), check, 0, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->mail.spam_check){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.mail.spam_check); label = gtk_label_new (_("Mark in Header")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter; store = gtk_list_store_new(1, G_TYPE_STRING); /* if(Mascot->mail.spam_mark){ gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, Mascot->mail.spam_mark, -1); } */ gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, SPAM_M_SPAMASSASIN,-1); gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, SPAM_M_POPFILE, -1); gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL); combo = gtk_combo_box_entry_new_with_model(GTK_TREE_MODEL(store),0); gtk_table_attach (GTK_TABLE(table1), combo, 2, 3, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); g_object_unref(store); if(Mascot->mail.spam_mark){ gtk_entry_set_text(GTK_ENTRY(GTK_BIN(combo)->child), Mascot->mail.spam_mark); } gtk_entry_set_editable(GTK_ENTRY(GTK_BIN(combo)->child),TRUE); gtk_widget_show(combo); my_signal_connect (GTK_BIN(combo)->child,"changed",cc_get_entry, &tmp_mascot.mail.spam_mark); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach (GTK_TABLE(table1), combo, 2, 3, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); // spamassasin clabel = gtk_list_item_new_with_label (SPAM_M_SPAMASSASIN); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); // popfile clabel = gtk_list_item_new_with_label (SPAM_M_POPFILE); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_get_entry, &tmp_mascot.mail.spam_mark); if(Mascot->mail.spam_mark){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), Mascot->mail.spam_mark); } gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),TRUE); #endif frame = gtk_frame_new (_("Mail List Window")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 3, 4, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (1, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 0, 1); label = gtk_label_new (_("Width")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.win_width, 100, Mascot->width_root, 10.0, 10.0, 10.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.win_width); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_box_pack_start(GTK_BOX(hbox), scale,TRUE, TRUE, 0); label = gtk_label_new (_("Height")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.win_height, 100, Mascot->height_root, 10.0, 10.0, 10.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.win_height); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_box_pack_start(GTK_BOX(hbox), scale,TRUE, TRUE, 0); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 4, 5); label = gtk_label_new (_("Biff")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } #endif // USE_BIFF // ÉÁ²è (Drawring) i_resource++; { GtkWidget *entry; GtkWidget *frame1; // 1x5¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 3, FALSE); frame = gtk_frame_new (_("Mascot Magnification")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 2, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); label = gtk_label_new (_("Magnification[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->magnify, 10, 400, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.magnify); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 0, 1); label = gtk_label_new (_("Interpolation Style")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Nearest-Neighbor"), 1, MAG_IP_NEAREST, -1); if(Mascot->ip_style==MAG_IP_NEAREST) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Tiles"), 1, MAG_IP_TILES, -1); if(Mascot->ip_style==MAG_IP_TILES) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Bilinear"), 1, MAG_IP_BILINEAR, -1); if(Mascot->ip_style==MAG_IP_BILINEAR) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Hyper"), 1, MAG_IP_HYPER, -1); if(Mascot->ip_style==MAG_IP_HYPER) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults(GTK_TABLE(table1), combo, 1, 2, 1, 2); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.ip_style); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), combo, 1, 2, 1, 2); clabel = gtk_list_item_new_with_label (_("Nearest-Neighbor")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Tiles")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Bilinear")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Hyper")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); switch(Mascot->ip_style){ case MAG_IP_NEAREST: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Nearest-Neighbor")); break; case MAG_IP_TILES: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Tiles")); break; case MAG_IP_BILINEAR: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Bilinear")); break; case MAG_IP_HYPER: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Hyper")); break; } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_ip_style, NULL); #endif #ifdef USE_CAIRO frame = gtk_frame_new (_("Graphic lib. for Image Rendering (Cairo enables trancelucency w/composited desktop)")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL,GTK_FILL,0,0); vbox = gtk_vbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); gtk_container_add (GTK_CONTAINER (frame), vbox); frame1 = gtk_frame_new (_("Current Desktop")); gtk_container_set_border_width (GTK_CONTAINER (frame1), 5); gtk_box_pack_start(GTK_BOX(vbox), frame1,TRUE, FALSE, 5); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 10); gtk_container_add (GTK_CONTAINER (frame1), hbox); #ifdef USE_WIN32 label = gtk_label_new (_("Translucency is partly supported by Windows native graphics.")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); #else switch(Mascot->flag_composite){ case COMPOSITE_FALSE: label = gtk_label_new (_("Current system does not support translucent windows.")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); break; case COMPOSITE_TRUE: label = gtk_label_new (_("Current system support translucent windows.")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); break; case COMPOSITE_UNKNOWN: label = gtk_label_new (_("Translucent support is UNKNOWN. ")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); check = gtk_check_button_new_with_label(_("Forced translucent rendering")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 5); if(Mascot->force_composite){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.force_composite); break; } #endif check = gtk_check_button_new_with_label(_("Use Cairo for Mascot and Biff image rendering (Support anti-aliased outline).")); gtk_box_pack_start(GTK_BOX(vbox), check,FALSE, FALSE, 0); if(Mascot->flag_img_cairo){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle_sdw, &tmp_mascot.flag_img_cairo); #ifdef USE_WIN32 gtk_widget_set_sensitive(check,FALSE); #endif { GtkWidget *vbox_sdw; GtkWidget *hbox_sdw; frame_sdw = gtk_frame_new (_("Shadow of Mascot")); gtk_container_set_border_width (GTK_CONTAINER (frame_sdw), 5); gtk_box_pack_start(GTK_BOX(vbox), frame_sdw,FALSE, FALSE, 0); vbox_sdw = gtk_vbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (vbox_sdw), 0); gtk_container_add (GTK_CONTAINER (frame_sdw), vbox_sdw); hbox_sdw = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox_sdw), 5); gtk_box_pack_start(GTK_BOX(vbox_sdw), hbox_sdw,FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Drop Shadow of Mascot")); gtk_box_pack_start(GTK_BOX(hbox_sdw), check,FALSE, FALSE, 0); if(Mascot->sdw_flag){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.sdw_flag); label = gtk_label_new (_(" Offset X")); gtk_box_pack_start(GTK_BOX(hbox_sdw), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef USE_WIN32 adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->sdw_x, -5.0, 5.0, 1.0, 1.0, 0.0); spinner = gtk_spin_button_new (adj, 0, 0); #else adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->sdw_x, -5.0, 5.0, 0.1, 0.1, 0.0); spinner = gtk_spin_button_new (adj, 1, 1); #endif gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox_sdw), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); my_signal_connect (adj, "value_changed",cc_get_float, &tmp_mascot.sdw_x); label = gtk_label_new (_("Y")); gtk_box_pack_start(GTK_BOX(hbox_sdw), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef USE_WIN32 adj = (GtkAdjustment *)gtk_adjustment_new (Mascot->sdw_y, 0.0, 5.0, 1.0, 1.0, 0.0); spinner = gtk_spin_button_new (adj, 0, 0); #else adj = (GtkAdjustment *)gtk_adjustment_new (Mascot->sdw_y, 0.0, 5.0, 0.1, 0.1, 0.0); spinner = gtk_spin_button_new (adj, 1, 1); #endif gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox_sdw), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); my_signal_connect (adj, "value_changed",cc_get_float, &tmp_mascot.sdw_y); hbox_sdw = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox_sdw), 5); gtk_box_pack_start(GTK_BOX(vbox_sdw), hbox_sdw,FALSE, FALSE, 0); label = gtk_label_new (_("Opacity [%]")); gtk_box_pack_start(GTK_BOX(hbox_sdw), label,FALSE, FALSE, 5); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->sdw_alpha, 0, 100, 10.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.sdw_alpha); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_box_pack_start(GTK_BOX(hbox_sdw), scale,TRUE, TRUE, 5); #ifndef USE_WIN32 if(!Mascot->flag_img_cairo){ gtk_widget_set_sensitive(frame_sdw,FALSE); } #endif } #ifdef USE_WIN32 check = gtk_check_button_new_with_label(_("Use Cairo for Panel Clock rendering.")); #else check = gtk_check_button_new_with_label(_("Support translucent panel clock (by Cairo).")); #endif gtk_box_pack_start(GTK_BOX(vbox), check,FALSE, FALSE, 0); if(Mascot->flag_clk_cairo){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_clk_cairo); #ifdef USE_WIN32 check = gtk_check_button_new_with_label(_("Use Cairo for Balloon rendering.")); #else check = gtk_check_button_new_with_label(_("Support translucent balloon (by Cairo).")); #endif gtk_box_pack_start(GTK_BOX(vbox), check,FALSE, FALSE, 0); if(Mascot->flag_bal_cairo){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_bal_cairo); #endif table1=gtk_table_new(1,1,FALSE); #ifdef USE_CAIRO gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 2, 3); #else gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 1, 3); #endif label = gtk_label_new (_("Rendering")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ¥Õ¥©¥ó¥È/¿§ i_resource++; { GtkWidget *entry; // 1x5¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 5, FALSE); frame = gtk_frame_new (_("Default for Clock")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); table1=gtk_table_new(4,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 4, 0, 1); label = gtk_label_new (_("Fontset")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_FONT_BUTTON_H__ button = gtk_font_button_new_with_font(Mascot->deffontname_clk); gtk_box_pack_start(GTK_BOX(hbox), button,TRUE, TRUE, 0); gtk_font_button_set_show_style(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_font(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_size(GTK_FONT_BUTTON(button),TRUE); my_signal_connect(button,"font-set",ChangeFontButton, (gpointer *)CONF_DEF_FONT_CLK); #else entry_deffontname_clk = gtk_entry_new (); gtk_box_pack_start(GTK_BOX(hbox), entry_deffontname_clk,TRUE, TRUE, 0); gtk_entry_set_text(GTK_ENTRY(entry_deffontname_clk), Mascot->deffontname_clk); gtk_entry_set_editable(GTK_ENTRY(entry_deffontname_clk),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_SELECT_FONT); #else button = gtk_button_new_with_label("..."); #endif gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); my_signal_connect(button,"clicked",create_font_selection_dialog, (gpointer *)CONF_DEF_FONT_CLK); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 1, 2); label = gtk_label_new (_("Text")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colclk); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpclk); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_CLK); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colclk); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_CLK); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 1, 2, 1, 2); label = gtk_label_new (_("BG")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colclkbg); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #if defined(USE_CAIRO) && !defined(USE_WIN32) gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpclkbg); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_CLKBG); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colclkbg); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_CLKBG); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 2, 3, 1, 2); label = gtk_label_new (_("Border")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colclkbd); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpclkbd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_CLKBD); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colclkbd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_CLKBD); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 3, 4, 1, 2); label = gtk_label_new (_("Shadow")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colclksd); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpclksd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_CLKSD); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colclksd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_CLKSD); #endif frame = gtk_frame_new (_("Default for Balloon")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); table1=gtk_table_new(3,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 3, 0, 1); label = gtk_label_new (_("Fontset")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_FONT_BUTTON_H__ button = gtk_font_button_new_with_font(Mascot->deffontname_bal); gtk_box_pack_start(GTK_BOX(hbox), button,TRUE, TRUE, 0); gtk_font_button_set_show_style(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_font(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_size(GTK_FONT_BUTTON(button),TRUE); my_signal_connect(button,"font-set",ChangeFontButton, (gpointer *)CONF_DEF_FONT_BAL); #else entry_deffontname_bal = gtk_entry_new (); gtk_box_pack_start(GTK_BOX(hbox), entry_deffontname_bal,TRUE,TRUE, 0); gtk_entry_set_text(GTK_ENTRY(entry_deffontname_bal), Mascot->deffontname_bal); gtk_entry_set_editable(GTK_ENTRY(entry_deffontname_bal),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_SELECT_FONT); #else button = gtk_button_new_with_label("..."); #endif gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); my_signal_connect(button,"clicked",create_font_selection_dialog, (gpointer *)CONF_DEF_FONT_BAL); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 0, 1, 1, 2); label = gtk_label_new (_("Text")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colbal); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpbal); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_BAL); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colbal); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_BAL); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 1, 2, 1, 2); label = gtk_label_new (_("BG")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colbalbg); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #if defined(USE_CAIRO) && !defined(USE_WIN32) gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpbalbg); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_BALBG); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colbalbg); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_BALBG); #endif hbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults(GTK_TABLE(table1), hbox, 2, 3, 1, 2); label = gtk_label_new (_("Border")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->def_colbalbd); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->def_alpbalbd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_DEF_COLOR_BALBD); #else button = gtk_button_new(); gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->def_colbalbd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_DEF_COLOR_BALBD); #endif #if defined(USE_CAIRO) || defined(USE_WIN32) #ifdef USE_WIN32 frame = gtk_frame_new (_("Default Opacity")); #else frame = gtk_frame_new (_("Default Opacity (Enable ONLY w/Compositing Window Managers)")); #endif gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 2, 3, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (4, 5, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); check = gtk_check_button_new_with_label(_("Take precedence default opacities over mascot settings")); gtk_table_attach(GTK_TABLE(table1), check, 0, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->force_def_alpha){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.force_def_alpha); #ifndef USE_WIN32 if(Mascot->flag_composite==COMPOSITE_FALSE) gtk_widget_set_sensitive(check,FALSE); #endif label = gtk_label_new (_("Mascot [%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); #ifdef USE_BIFF label = gtk_label_new (_("Biff Image [%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); #endif #ifdef USE_WIN32 label = gtk_label_new (_("Balloon [%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 3, 4, GTK_FILL,GTK_SHRINK,0,0); label = gtk_label_new (_("Clock [%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 4, 5, GTK_FILL,GTK_SHRINK,0,0); #endif adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->def_alpha_main, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.def_alpha_main); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 1, 2); #ifndef USE_WIN32 #if GTK_CHECK_VERSION(2,12,0) if(Mascot->flag_composite==COMPOSITE_FALSE) #endif gtk_widget_set_sensitive(scale,FALSE); #endif #ifdef USE_BIFF adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->def_alpha_biff, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.def_alpha_biff); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 2, 3); #ifndef USE_WIN32 #if GTK_CHECK_VERSION(2,12,0) if(Mascot->flag_composite==COMPOSITE_FALSE) #endif gtk_widget_set_sensitive(scale,FALSE); #endif #endif #ifdef USE_WIN32 adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->def_alpha_bal, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.def_alpha_bal); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 3, 4); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->def_alpha_clk, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.def_alpha_clk); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 4, 5); label = gtk_label_new (" "); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 2, 3, 3, 4, GTK_SHRINK,GTK_SHRINK,0,0); check = gtk_check_button_new_with_label(_("BG only")); gtk_table_attach(GTK_TABLE(table1), check, 3, 4, 3, 4, GTK_SHRINK,GTK_SHRINK,0,0); if(Mascot->def_flag_balfg){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.def_flag_balfg); label = gtk_label_new (" "); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 2, 3, 4, 5, GTK_SHRINK,GTK_SHRINK,0,0); check = gtk_check_button_new_with_label(_("BG only")); gtk_table_attach(GTK_TABLE(table1), check, 3, 4, 4, 5, GTK_SHRINK,GTK_SHRINK,0,0); if(Mascot->def_flag_clkfg){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.def_flag_clkfg); #endif #endif table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 3, 5); label = gtk_label_new (_("Font/Color")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ¤½¤Î¾ i_resource++; { GtkWidget *entry; gint y_tbl=0; // 1x5¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (3, 4, FALSE); #ifdef USE_SOCKMSG frame = gtk_frame_new (_("Duet Animation")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (2, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); check = gtk_check_button_new_with_label(_("Synchronize with CLICK animation ")); gtk_table_attach(GTK_TABLE(table1), check, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); if(Mascot->duet_use_click){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.duet_use_click); check = gtk_check_button_new_with_label(_("Synchronize with RANDOM animation")); gtk_table_attach(GTK_TABLE(table1), check, 1, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); if(Mascot->duet_use_random){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.duet_use_random); #ifdef USE_GTK2 y_tbl++; frame = gtk_frame_new (_("Socket Message")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (3, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); hbox = gtk_hbox_new(FALSE, 0); gtk_table_attach(GTK_TABLE(table1), hbox, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); label = gtk_label_new (_("Balloon printing")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Lump Sum"), 1, SOCK_NORMAL, -1); if(Mascot->sockmsg_type==SOCK_NORMAL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Stepping"), 1, SOCK_STEPPING, -1); if(Mascot->sockmsg_type==SOCK_STEPPING) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 3); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.sockmsg_type); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 3); clabel = gtk_list_item_new_with_label (_("Lump Sum")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Stepping")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->sockmsg_type==SOCK_NORMAL){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Lump Sum")); } else if(Mascot->sockmsg_type==SOCK_STEPPING){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Stepping")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed", cc_sockmsg_type,NULL); #endif // __GTL_COMBO_BOX_H__ hbox = gtk_hbox_new(FALSE, 0); gtk_table_attach(GTK_TABLE(table1), hbox, 1, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); label = gtk_label_new (_(" Stepping interval [frame]")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->sockmsg_step, 0,10, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.sockmsg_step); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 3); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); hbox = gtk_hbox_new(FALSE, 0); gtk_table_attach(GTK_TABLE(table1), hbox, 2, 3, 0, 1, GTK_FILL,GTK_SHRINK,0,0); label = gtk_label_new (_(" Default expiration [ms]")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->sockmsg_expire_def, 100, 65535, 100.0, 1000.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.sockmsg_expire_def); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 3); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #endif //USE_GTK2 #endif //USE_SOCKMSG y_tbl++; frame = gtk_frame_new (_("Auto Install")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 2, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); check = gtk_check_button_new_with_label(_("Auto Mascot Install to User Dir.")); gtk_table_attach(GTK_TABLE(table1), check, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); if(Mascot->flag_install){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_install); #ifdef USE_COMMON label = gtk_label_new(_("User & Common Dir Consistency Check")); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Manual"), 1, CONS_MANUAL, -1); if(Mascot->cons_check_mode==CONS_MANUAL) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Auto Overwrite"), 1, CONS_AUTOOW, -1); if(Mascot->cons_check_mode==CONS_AUTOOW) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Ignore"), 1, CONS_IGNORE, -1); if(Mascot->cons_check_mode==CONS_IGNORE) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach_defaults(GTK_TABLE(table1), combo, 1, 2, 1, 2); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.cons_check_mode); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), combo, 1, 2, 1, 2); clabel = gtk_list_item_new_with_label (_("Manual")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Auto Overwrite")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Ignore")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); switch(Mascot->cons_check_mode){ case CONS_MANUAL: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Manual")); break; case CONS_AUTOOW: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Auto Overwrite")); break; case CONS_IGNORE: gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Ignore")); break; } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_cons_check_mode, NULL); #endif #endif #ifndef USE_WIN32 y_tbl++; frame = gtk_frame_new (_("Sound Command")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); entry = gtk_entry_new (); if(tmp_mascot.sound_command){ gtk_entry_set_text(GTK_ENTRY(entry),tmp_mascot.sound_command); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 0, 2, 0, 1); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.sound_command); label = gtk_label_new(_("(\"%s\" will be translated to the sound file.)")); gtk_table_attach(GTK_TABLE(table1), label, 0, 2, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); #endif #ifdef USE_GTAR y_tbl++; frame = gtk_frame_new (_("GNU tar Command [for *.tar.gz Extraction]")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); entry = gtk_entry_new (); if(tmp_mascot.tar_command){ gtk_entry_set_text(GTK_ENTRY(entry),tmp_mascot.tar_command); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 0, 2, 0, 1); my_signal_connect (entry,"changed",cc_get_entry, &tmp_mascot.tar_command); label = gtk_label_new(_("(1st \"%s\" : *.tar.gz file, 2nd \"%s\" : temp dir.)")); gtk_table_attach(GTK_TABLE(table1), label, 0, 2, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); #endif #ifdef __GTK_STATUS_ICON_H__ y_tbl++; frame = gtk_frame_new (_("Tray Icon")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, y_tbl, y_tbl+1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,1,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); check = gtk_check_button_new_with_label(_("Show Tray Icon in Task Bar")); if(Mascot->tray_icon_flag){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.tray_icon_flag); gtk_table_attach_defaults(GTK_TABLE(table1), check, 0, 2, 0, 1); #endif table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, y_tbl+1, y_tbl+2); label = gtk_label_new (_("Misc.")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ¾ðÊó i_resource++; { GtkWidget *entry; gchar buf[1024]; #if HAVE_SYS_UTSNAME_H struct utsname utsbuf; #endif // 1x4¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 4, FALSE); frame = gtk_frame_new (_("About This Program")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); vbox = gtk_vbox_new(FALSE,0); gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new ("macopix : Mascot Constructive Pilot for X , version "VERSION); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); g_snprintf(buf, sizeof(buf), "GTK+ %d.%d.%d / GLib %d.%d.%d", gtk_major_version, gtk_minor_version, gtk_micro_version, glib_major_version, glib_minor_version, glib_micro_version); label = gtk_label_new (buf); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); #if HAVE_SYS_UTSNAME_H uname(&utsbuf); g_snprintf(buf, sizeof(buf), "Operating System: %s %s (%s)", utsbuf.sysname, utsbuf.release, utsbuf.machine); #elif defined(USE_WIN32) g_snprintf(buf, sizeof(buf), "Operating System: %s", WindowsVersion()); #else g_snprintf(buf, sizeof(buf), "Operating System: unknown UNIX"); #endif label = gtk_label_new (buf); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); g_snprintf(buf, sizeof(buf), "Compiled-in features : Biff=%s, SSL=%s, SockMsg=%s, Cairo=%s, UNLHA32=%s, TAR32=%s", #ifdef USE_BIFF "ON", #else "OFF", #endif #ifdef USE_SSL #ifdef USE_GNUTLS "GNUTLS", #else "OpenSSL", #endif #else "OFF", #endif #ifdef USE_SOCKMSG "ON", #else "OFF", #endif #ifdef USE_CAIRO "ON", #else "OFF", #endif #ifdef USE_UNLHA32 "ON", #else "OFF", #endif #ifdef USE_TAR32 "ON"); #else "OFF"); #endif label = gtk_label_new (buf); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); label = gtk_label_new (""); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); label = gtk_label_new ("Copyright(C) 2002-2008 K.Chimari "); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); #ifdef USE_WIN32 hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); button = gtk_button_new_with_label(DEFAULT_URL); gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); my_signal_connect(button,"clicked",uri_clicked, NULL); #else label = gtk_label_new (DEFAULT_URL); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); #endif frame = gtk_frame_new (_("Resource File")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,1,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); entry = gtk_entry_new (); if(tmp_mascot.rcfile){ gtk_entry_set_text(GTK_ENTRY(entry), to_utf8(tmp_mascot.rcfile)); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 0, 2, 0, 1); frame = gtk_frame_new (_("Menu File")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,2,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); entry = gtk_entry_new (); if(tmp_mascot.menu_file){ gtk_entry_set_text(GTK_ENTRY(entry), to_utf8(tmp_mascot.menu_file)); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 0, 2, 0, 1); label = gtk_label_new (_("Character Code")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); if(tmp_mascot.menu_code){ gtk_entry_set_text(GTK_ENTRY(entry),tmp_mascot.menu_code); } else{ gtk_entry_set_text(GTK_ENTRY(entry),_("(Based on the locale environment)")); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 1, 2, 1, 2); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 3, 4); label = gtk_label_new (_("Info.")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } } label = gtk_label_new (_("Resource")); gtk_notebook_append_page (GTK_NOTEBOOK (all_note), conf_note, label); } /////// ¥Þ¥¹¥³¥Ã¥ÈÊ̤ÎÀßÄê /////// { GtkWidget *conf_note; GtkWidget *label; conf_note = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (conf_note), GTK_POS_TOP); gtk_notebook_set_scrollable (GTK_NOTEBOOK (conf_note), TRUE); // ¥Î¡¼¥È¥Ö¥Ã¥¯¤ÎÀ¸À® { gint i_mascot=0; GtkWidget *frame; GtkWidget *table; GtkWidget *label; GtkWidget *combo; GtkWidget *clabel; GtkWidget *table1; GtkWidget *table2; GtkWidget *check; GtkWidget *vbox; GtkWidget *hbox; GtkAdjustment *adj; GtkWidget *scale; GtkWidget *spinner; GtkWidget *button; GtkWidget *scrwin; // °ÜưÀßÄê i_mascot++; { // 3x6¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (3, 4, FALSE); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_table_attach(GTK_TABLE(table), hbox, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); label = gtk_label_new (_("Mode")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Fix Position"), 1, MOVE_FIX, -1); if(Mascot->move==MOVE_FIX) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Focus Follow"), 1, MOVE_FOCUS, -1); if(Mascot->move==MOVE_FOCUS) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.move); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); clabel = gtk_list_item_new_with_label (_("Fix Position")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Focus Follow")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->move==MOVE_FOCUS){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Focus Follow")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_move,NULL); #endif frame = gtk_frame_new (_("Fix Position")); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 1, 2, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table1 = gtk_table_new(2,1,FALSE); gtk_container_add (GTK_CONTAINER (frame), table1); vbox = gtk_hbox_new(FALSE,0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new (_("X")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->xfix, 0,Mascot->width_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.xfix); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner,FALSE, FALSE, 0); gtk_table_attach_defaults (GTK_TABLE(table1), vbox, 1, 2, 3, 4); vbox = gtk_hbox_new(FALSE,0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->yfix, 0, Mascot->height_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.yfix); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner,FALSE, FALSE, 0); gtk_table_attach_defaults (GTK_TABLE(table1), vbox, 2, 3, 3, 4); frame = gtk_frame_new (_("Mascot Offset for Focus Follow")); gtk_table_attach (GTK_TABLE(table), frame, 0, 2, 2, 3, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); table1 = gtk_table_new(2,1,FALSE); gtk_container_add (GTK_CONTAINER (frame), table1); vbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults (GTK_TABLE(table1), vbox, 0, 1, 0, 1); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new (_("X")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->xoff, 0,Mascot->width_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.xoff); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner,FALSE, FALSE, 0); vbox = gtk_hbox_new(FALSE,0); gtk_table_attach_defaults (GTK_TABLE(table1), vbox, 1, 2, 0, 1); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->yoff, 0, Mascot->height_root, 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.yoff); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(vbox), spinner,FALSE, FALSE, 0); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 3,4); label = gtk_label_new (_("Move")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // »þ·×ÀßÄê i_mascot++; { GtkWidget *entry; // 2x4¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (2, 5, FALSE); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach(GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); label = gtk_label_new (_("Mode")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("No Clock"), 1, CLOCK_NO, -1); if(Mascot->clkmode==CLOCK_NO) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Clock on Image"), 1, CLOCK_PIXMAP, -1); if(Mascot->clkmode==CLOCK_PIXMAP) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Panel Clock"), 1, CLOCK_PANEL, -1); if(Mascot->clkmode==CLOCK_PANEL) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.clkmode); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); clabel = gtk_list_item_new_with_label (_("No Clock")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Clock on Image")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Panel Clock")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->clkmode==CLOCK_PIXMAP){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Clock on Image")); } else if(Mascot->clkmode==CLOCK_PANEL){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Panel Clock")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_clkmode,NULL); #endif hbox = gtk_hbox_new(FALSE,5); gtk_table_attach(GTK_TABLE(table), hbox, 1, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); label = gtk_label_new (_("Digit Type")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("14:00:00"), 1, CLOCK_TYPE_24S, -1); if(Mascot->clktype==CLOCK_TYPE_24S) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("14:00"), 1, CLOCK_TYPE_24M, -1); if(Mascot->clktype==CLOCK_TYPE_24M) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("PM 2:00:00"), 1, CLOCK_TYPE_12S, -1); if(Mascot->clktype==CLOCK_TYPE_12S) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("PM 2:00"), 1, CLOCK_TYPE_12M, -1); if(Mascot->clktype==CLOCK_TYPE_12M) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.clktype); } #else combo = gtk_combo_new(); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); gtk_box_pack_start(GTK_BOX(hbox), combo,FALSE, FALSE, 0); clabel = gtk_list_item_new_with_label (_("14:00:00")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("14:00")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("PM 2:00:00")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("PM 2:00")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->clktype==CLOCK_TYPE_24S){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("14:00:00")); } else if(Mascot->clktype==CLOCK_TYPE_24M){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("14:00")); } else if(Mascot->clktype==CLOCK_TYPE_12S){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("PM 2:00:00")); } else if(Mascot->clktype==CLOCK_TYPE_12M){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("PM 2:00")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_clktype,NULL); #endif frame = gtk_frame_new (_("Fontset")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 1, 2, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 1, FALSE); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); #ifdef __GTK_FONT_BUTTON_H__ button = gtk_font_button_new_with_font(Mascot->fontname_clk); gtk_table_attach_defaults (GTK_TABLE(table1),button, 0, 2, 0, 1); gtk_font_button_set_show_style(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_font(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_size(GTK_FONT_BUTTON(button),TRUE); my_signal_connect(button,"font-set",ChangeFontButton, (gpointer *)CONF_FONT_CLK); #else entry_fontname_clk = gtk_entry_new (); gtk_table_attach_defaults (GTK_TABLE(table1), entry_fontname_clk, 0, 1, 0, 1); gtk_entry_set_text(GTK_ENTRY(entry_fontname_clk),Mascot->fontname_clk); gtk_entry_set_editable(GTK_ENTRY(entry_fontname_clk),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_SELECT_FONT); #else button = gtk_button_new_with_label("..."); #endif gtk_table_attach (GTK_TABLE(table1), button, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",create_font_selection_dialog, (gpointer *)CONF_FONT_CLK); #endif frame = gtk_frame_new (_("Size/Position")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new (5, 3, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacing (GTK_TABLE(table1), 0, 15); gtk_table_set_col_spacing (GTK_TABLE(table1), 2, 15); gtk_table_set_row_spacing (GTK_TABLE(table1), 0, 5); gtk_table_set_row_spacing (GTK_TABLE(table1), 1, 5); label = gtk_label_new (_("Panel Position")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("X")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2, 0, 1); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clk_x, -Mascot->width*3, Mascot->width*4, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.clk_x); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach_defaults (GTK_TABLE(table1), spinner, 2, 3, 0, 1); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table1), label, 3, 4, 0, 1); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clk_y, -Mascot->height*2, Mascot->height*3, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj,&tmp_mascot.clk_y); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach_defaults (GTK_TABLE(table1), spinner, 4, 5, 0, 1); label = gtk_label_new (_("Text Offset")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("X")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2, 1, 2); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clktext_x, 1, Mascot->width, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.clktext_x); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach_defaults (GTK_TABLE(table1), spinner, 2, 3, 1, 2); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach_defaults (GTK_TABLE(table1), label, 3, 4, 1, 2); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clktext_y, 1, Mascot->height, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.clktext_y); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach_defaults (GTK_TABLE(table1), spinner, 4, 5, 1, 2); label = gtk_label_new (_("Border Width")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->wclkbd, 0, 10, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.wclkbd); spinner = gtk_spin_button_new (adj, 0, 0); gtk_table_attach_defaults (GTK_TABLE(table1), spinner, 2, 3, 2, 3); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); frame = gtk_frame_new (_("Decoration")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 3, 4, GTK_FILL,GTK_SHRINK,0,0); vbox = gtk_vbox_new(FALSE,5); gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), 0); hbox = gtk_hbox_new(FALSE,5); gtk_box_pack_start(GTK_BOX(vbox), hbox,FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); check = gtk_check_button_new_with_label(_("Drop Shadow")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 0); if(Mascot->flag_clksd){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_clksd); label = gtk_label_new (_(" Shadow Offset X")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clksd_x, -5, 5, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.clksd_x); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); label = gtk_label_new (_("Y")); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->clksd_y, -5, 5, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.clksd_y); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); hbox = gtk_hbox_new(FALSE,5); gtk_box_pack_start(GTK_BOX(vbox), hbox,FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); check = gtk_check_button_new_with_label(_("Rounded Corner for Panel Clock")); gtk_box_pack_start(GTK_BOX(hbox), check,FALSE, FALSE, 0); if(Mascot->flag_clkrd){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_clkrd); frame = gtk_frame_new (_("Color")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 1, 2, 2, 4, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (2, 6, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Text")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colclk); gtk_table_attach (GTK_TABLE(table1), button,1,2,0,1,1,1,0,0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpclk); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_CLK); #else button = gtk_button_new(); gtk_table_attach (GTK_TABLE(table1), button,1,2,0,1,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colclk); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_CLK); #endif label = gtk_label_new (_("BG")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colclkbg); gtk_table_attach(GTK_TABLE(table1), button,1,2,1,2,1,1,0,0); #if defined(USE_CAIRO) && !defined(USE_WIN32) gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpclkbg); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_CLKBG); #else button = gtk_button_new(); gtk_table_attach(GTK_TABLE(table1), button,1,2,1,2,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colclkbg); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_CLKBG); #endif label = gtk_label_new (_("Border")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colclkbd); gtk_table_attach(GTK_TABLE(table1),button,1,2,2,3,1,1,0,0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpclkbd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_CLKBD); #else button = gtk_button_new(); gtk_table_attach(GTK_TABLE(table1),button,1,2,2,3,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colclkbd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_CLKBD); #endif label = gtk_label_new (_("Shadow")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,3, 4); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colclksd); gtk_table_attach(GTK_TABLE(table1),button,1,2,3,4,1,1,0,0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpclksd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_CLKSD); #else button = gtk_button_new(); gtk_table_attach(GTK_TABLE(table1),button,1,2,3,4,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colclksd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_CLKSD); #endif #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Back to Default"),GTK_STOCK_REFRESH); #else button=gtk_button_new_with_label(_("Back to Default")); #endif gtk_table_attach (GTK_TABLE(table1), button,0,2,4,5,1,1,0,0); my_signal_connect(button,"clicked",change_colclk_default, NULL); #ifdef USE_WIN32 frame = gtk_frame_new (_("Opacity")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 4, 5, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (4, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Opacity Alpha[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->alpha_clk, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.alpha_clk); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 0, 1); label = gtk_label_new (" "); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 2, 3, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); check = gtk_check_button_new_with_label(_("BG only")); gtk_table_attach(GTK_TABLE(table1), check, 3, 4, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); if(Mascot->flag_clkfg){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_clkfg); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 5, 6); #else table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 4, 5); #endif label = gtk_label_new (_("Clock")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ¤Õ¤­¤À¤·ÀßÄê i_mascot++; { // 2x4¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (2, 5, FALSE); frame = gtk_frame_new (_("Fontset")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); #ifdef __GTK_FONT_BUTTON_H__ button = gtk_font_button_new_with_font(Mascot->fontname_bal); gtk_table_attach_defaults (GTK_TABLE(table1),button, 0, 2, 0, 1); gtk_font_button_set_show_style(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_font(GTK_FONT_BUTTON(button),TRUE); gtk_font_button_set_use_size(GTK_FONT_BUTTON(button),TRUE); my_signal_connect(button,"font-set",ChangeFontButton, (gpointer *)CONF_FONT_BAL); #else entry_fontname_bal = gtk_entry_new (); gtk_table_attach_defaults (GTK_TABLE(table1), entry_fontname_bal, 0, 1, 0, 1); gtk_entry_set_text(GTK_ENTRY(entry_fontname_bal),Mascot->fontname_bal); gtk_entry_set_editable(GTK_ENTRY(entry_fontname_bal),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_SELECT_FONT); #else button = gtk_button_new_with_label("..."); #endif gtk_table_attach (GTK_TABLE(table1), button, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",create_font_selection_dialog, (gpointer *)CONF_FONT_BAL); #endif frame = gtk_frame_new (_("Size/Position")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (6, 3, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_col_spacings (GTK_TABLE(table1), 5); gtk_table_set_col_spacing (GTK_TABLE(table1), 0, 15); gtk_table_set_col_spacing (GTK_TABLE(table1), 2, 15); gtk_table_set_row_spacing (GTK_TABLE(table1), 0, 5); gtk_table_set_row_spacing (GTK_TABLE(table1), 1, 5); label = gtk_label_new (_("Text Offset")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("X")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE(table1), label, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->baltext_x, 0, 20, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.baltext_x); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach (GTK_TABLE(table1), spinner, 2, 3, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE(table1), label, 3, 4, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->baltext_y, 0, 20, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.baltext_y); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_table_attach (GTK_TABLE(table1), spinner, 4, 5, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); label = gtk_label_new (_("Border Width")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->wbalbd, 0, 10, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.wbalbd); spinner = gtk_spin_button_new (adj, 0, 0); gtk_table_attach (GTK_TABLE(table1), spinner, 2, 3,1, 2, GTK_SHRINK,GTK_SHRINK,0,0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); label = gtk_label_new (_("Default Position")); gtk_table_attach_defaults (GTK_TABLE(table1), label,0,1,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Left side of mascot"), 1, BAL_POS_LEFT, -1); if(Mascot->bal_defpos==BAL_POS_LEFT) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Right side of mascot"), 1, BAL_POS_RIGHT, -1); if(Mascot->bal_defpos==BAL_POS_RIGHT) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach (GTK_TABLE(table1), combo, 2, 6, 2, 3, GTK_SHRINK,GTK_SHRINK,0,0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.bal_defpos); } #else combo = gtk_combo_new(); gtk_table_attach (GTK_TABLE(table1), combo, 2, 6, 2, 3, GTK_SHRINK,GTK_SHRINK,0,0); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); clabel = gtk_list_item_new_with_label (_("Left")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Right")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->bal_defpos==BAL_POS_RIGHT){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Right")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_bal_defpos, NULL); #endif frame = gtk_frame_new (_("Color")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 1, 2, 1, 2, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (2, 4, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Text")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colbal); gtk_table_attach (GTK_TABLE(table1), button,1,2,0,1,1,1,0,0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpbal); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_BAL); #else button = gtk_button_new(); gtk_table_attach (GTK_TABLE(table1), button,1,2,0,1,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colbal); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_BAL); #endif label = gtk_label_new (_("BG")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colbalbg); gtk_table_attach(GTK_TABLE(table1), button,1,2,1,2,1,1,0,0); #if defined(USE_CAIRO) && !defined(USE_WIN32) gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpbalbg); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_BALBG); #else button = gtk_button_new(); gtk_table_attach(GTK_TABLE(table1), button,1,2,1,2,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colbalbg); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_BALBG); #endif label = gtk_label_new (_("Border")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef __GTK_COLOR_BUTTON_H__ button = gtk_color_button_new_with_color(Mascot->colbalbd); gtk_table_attach(GTK_TABLE(table1),button,1,2,2,3,1,1,0,0); #ifdef USE_CAIRO gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(button),TRUE); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(button), Mascot->alpbalbd); #endif my_signal_connect(button,"color-set",ChangeColorButton, (gpointer *)CONF_COLOR_BALBD); #else button = gtk_button_new(); gtk_table_attach(GTK_TABLE(table1),button,1,2,2,3,1,1,0,0); gtk_widget_set_usize (button, 40, 25); gtk_container_set_border_width(GTK_CONTAINER (button), 5); change_bgcolor(button, *Mascot->colbalbd); my_signal_connect(button,"clicked",create_color_selection_dialog, (gpointer *)CONF_COLOR_BALBD); #endif #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Back to Default"),GTK_STOCK_REFRESH); #else button=gtk_button_new_with_label(_("Back to Default")); #endif gtk_table_attach (GTK_TABLE(table1), button,0,2,3,4,1,1,0,0); my_signal_connect(button,"clicked",change_colbal_default, NULL); #ifdef USE_WIN32 frame = gtk_frame_new (_("Opacity")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 2, 3, GTK_FILL,GTK_FILL,0,0); table1 = gtk_table_new (4, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Opacity Alpha[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->alpha_bal, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.alpha_bal); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 0, 1); label = gtk_label_new (" "); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 2, 3, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); check = gtk_check_button_new_with_label(_("BG only")); gtk_table_attach(GTK_TABLE(table1), check, 3, 4, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); if(Mascot->flag_balfg){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } my_signal_connect (check, "toggled",cc_get_toggle, &tmp_mascot.flag_balfg); #endif frame = gtk_frame_new (_("Control Characters for Balloon Messages")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); #ifdef USE_WIN32 gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 3, 4, GTK_FILL,GTK_FILL,0,0); #else gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 2, 3, GTK_FILL,GTK_FILL,0,0); #endif table1 = gtk_table_new (2, 7, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 2); label = gtk_label_new ("%[n]c"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("([n]+1) frames waiting. (default : n=1)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,0, 1); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%[n]a"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("([n]+1) frames waiting with a new line. (default : n=10)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,1, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%n"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("New line.")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,2, 3); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%[n]p"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,3, 4); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("New page after ([n]+1) frames waiting. (default : n=10)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,3, 4); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%m"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,4, 5); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("Number of arrived mails. (only for biff message)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,4, 5); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%f"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,5, 6); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("From: of the latest mail. (only for biff message with POP)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,5, 6); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new ("%s"); gtk_table_attach_defaults (GTK_TABLE(table1), label, 0, 1,6, 7); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); label = gtk_label_new (_("Subject: of the latest mail. (only for biff message with POP)")); gtk_table_attach_defaults (GTK_TABLE(table1), label, 1, 2,6, 7); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); #ifdef USE_WIN32 table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 4, 5); #else table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 2, 3, 4); #endif label = gtk_label_new (_("Balloon")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ²èÁüÀßÄê i_mascot++; { table = gtk_table_new (2, 4, FALSE); #if defined(USE_CAIRO) || defined(USE_WIN32) #ifdef USE_WIN32 frame = gtk_frame_new (_("Opacity")); #else frame = gtk_frame_new (_("Opacity (Enable ONLY w/Compositing Window Managers)")); #endif gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 1, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Opacity Alpha[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->alpha_main, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.alpha_main); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 2, 0, 1); #ifndef USE_WIN32 #if GTK_CHECK_VERSION(2,12,0) if(Mascot->flag_composite==COMPOSITE_FALSE) #endif gtk_widget_set_sensitive(scale,FALSE); #endif #endif scrwin = gtk_scrolled_window_new (NULL, NULL); #if defined(USE_CAIRO) || defined(USE_WIN32) gtk_table_attach_defaults (GTK_TABLE(table), scrwin, 0, 2, 1, 2); #else gtk_table_attach_defaults (GTK_TABLE(table), scrwin, 0, 2, 0, 1); #endif gtk_container_set_border_width (GTK_CONTAINER (scrwin), 5); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(scrwin), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); make_pixmap_list(scrwin); hbox = gtk_hbox_new(FALSE,5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_table_attach(GTK_TABLE(table), hbox, 0, 2, 2, 3, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Append"),GTK_STOCK_ADD); #else button=gtk_button_new_with_label(_("Append")); #endif gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); my_signal_connect(button,"clicked",create_add_image_dialog, (gpointer)scrwin); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Delete"),GTK_STOCK_REMOVE); #else button=gtk_button_new_with_label(_("Delete")); #endif gtk_box_pack_start(GTK_BOX(hbox), button,FALSE, FALSE, 0); my_signal_connect(button,"clicked",create_del_image_dialog, (gpointer)scrwin); label = gtk_label_new (_("Images")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } // ¥¢¥Ë¥áÀßÄê i_mascot++; { GtkWidget *ptn_note; table = gtk_table_new (1, 2, FALSE); ptn_note = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (ptn_note), GTK_POS_RIGHT); gtk_notebook_set_scrollable (GTK_NOTEBOOK (ptn_note), TRUE); gtk_table_attach_defaults (GTK_TABLE(table), ptn_note, 0, 1, 0, 1); // Pattern ¼ýÏ¿ÍÑnotebook { gint i_ptn=0; for(i_ptn=0;i_ptnmail.pix_file){ gtk_entry_set_text(GTK_ENTRY(entry), my_basename(Mascot->mail.pix_file)); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_OPEN); #else button = gtk_button_new_with_label("..."); #endif gtk_table_attach (GTK_TABLE(table2), button, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",create_change_biff_image_dialog, (gpointer)entry); label = gtk_label_new (_("Position")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); #ifdef __GTK_COMBO_BOX_H__ { GtkListStore *store; GtkTreeIter iter, iter_set; GtkCellRenderer *renderer; store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_INT); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Left side of mascot"), 1, MAIL_PIX_LEFT, -1); if(Mascot->mail.pix_pos==MAIL_PIX_LEFT) iter_set=iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Right side of mascot"), 1, MAIL_PIX_RIGHT, -1); if(Mascot->mail.pix_pos==MAIL_PIX_RIGHT) iter_set=iter; combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); gtk_table_attach (GTK_TABLE(table1), combo, 1, 2, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo),renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT(combo), renderer, "text",0,NULL); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo),&iter_set); gtk_widget_show(combo); my_signal_connect (combo,"changed",cc_get_combo_box, &tmp_mascot.mail.pix_pos); } #else combo = gtk_combo_new(); gtk_table_attach(GTK_TABLE(table1), combo, 1, 2, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(combo)->entry),FALSE); clabel = gtk_list_item_new_with_label (_("Left")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); clabel = gtk_list_item_new_with_label (_("Right")); gtk_container_add (GTK_CONTAINER (GTK_COMBO(combo)->list), clabel); gtk_widget_show(clabel); if(Mascot->mail.pix_pos==MAIL_PIX_RIGHT){ gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), _("Right")); } my_signal_connect (GTK_COMBO(combo)->entry,"changed",cc_mail_pixpos, NULL); #endif hbox = gtk_hbox_new(FALSE,5); gtk_table_attach(GTK_TABLE(table1), hbox, 2, 3, 1, 2,0,0,0,0); label = gtk_label_new (_("X")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.pix_x, (gfloat)(-Mascot->width), (gfloat)(Mascot->width), 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.pix_x); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); hbox = gtk_hbox_new(FALSE,5); gtk_table_attach(GTK_TABLE(table1), hbox, 3, 4, 1, 2,0,0,0,0); label = gtk_label_new (_("Y")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label,FALSE, FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->mail.pix_y, (gfloat)(-Mascot->height), (gfloat)(Mascot->height), 1.0, 1.0, 1.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.mail.pix_y); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_box_pack_start(GTK_BOX(hbox), spinner,FALSE, FALSE, 0); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); #if defined(USE_CAIRO) || defined(USE_WIN32) label = gtk_label_new (_("Opacity Alpha[%]")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)Mascot->alpha_biff, 0, 100, 1.0, 10.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.alpha_biff); scale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), scale, 1, 4, 2, 3); #ifndef USE_WIN32 #if GTK_CHECK_VERSION(2,12,0) if(Mascot->flag_composite==COMPOSITE_FALSE) #endif gtk_widget_set_sensitive(scale,FALSE); #endif #endif frame = gtk_frame_new (_("Biff Action")); // Ã忮ưºî gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND,GTK_SHRINK,0,0); table1 = gtk_table_new (2, 3, FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); gtk_table_set_row_spacings (GTK_TABLE(table1), 5); label = gtk_label_new (_("Message")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1,0,0,0,0); entry = gtk_entry_new (); my_signal_connect (entry,"changed",cc_get_entry,&tmp_mascot.mail.word); gtk_table_attach (GTK_TABLE(table1), entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->mail.word){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.word); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); label = gtk_label_new (_("Sound File")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2,0,0,0,0); table2 = gtk_table_new (4, 1, FALSE); gtk_table_attach (GTK_TABLE(table1), table2, 1, 2, 1, 2, GTK_FILL, GTK_SHRINK,0,0); entry = gtk_entry_new (); gtk_table_attach (GTK_TABLE(table2), entry, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,0,0); if(Mascot->mail.sound){ gtk_entry_set_text(GTK_ENTRY(entry), Mascot->mail.sound); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(NULL,GTK_STOCK_OPEN); #else button = gtk_button_new_with_label("..."); #endif gtk_table_attach (GTK_TABLE(table2), button, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",create_change_biff_sound_dialog, (gpointer)entry); button = gtk_button_new_with_label(_("Clear")); gtk_table_attach (GTK_TABLE(table2), button, 2, 3, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect (button,"clicked",clear_biff_sound, (gpointer)entry); button = gtk_button_new_with_label(_("Test")); gtk_table_attach (GTK_TABLE(table2), button, 3, 4, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); my_signal_connect (button,"clicked",test_biff_sound,NULL); table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 2, 3); label = gtk_label_new (_("Biff")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } #endif // USE_BIFF // ¾ðÊó i_mascot++; { GtkWidget *entry; // 1x4¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (1, 2, FALSE); frame = gtk_frame_new (_("About This Mascot")); gtk_container_set_border_width (GTK_CONTAINER (frame), 5); gtk_table_attach(GTK_TABLE(table), frame, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); table1 = gtk_table_new(2,4,FALSE); gtk_container_set_border_width (GTK_CONTAINER (table1), 5); gtk_table_set_row_spacings (GTK_TABLE (table1), 5); gtk_table_set_col_spacings (GTK_TABLE (table1), 5); gtk_container_add (GTK_CONTAINER (frame), table1); label = gtk_label_new (_("Name")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 0, 1, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); if(tmp_mascot.name){ gtk_entry_set_text(GTK_ENTRY(entry),tmp_mascot.name); } gtk_entry_set_editable(GTK_ENTRY(entry),TRUE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 1, 2, 0, 1); my_signal_connect (entry,"changed",cc_get_entry,&tmp_mascot.name); label = gtk_label_new (_("File")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 1, 2, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); gtk_entry_set_text(GTK_ENTRY(entry), to_utf8(tmp_mascot.file)); gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 1, 2, 1, 2); label = gtk_label_new (_("Character Code")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach(GTK_TABLE(table1), label, 0, 1, 2, 3, GTK_FILL,GTK_SHRINK,0,0); entry = gtk_entry_new (); if(tmp_mascot.code){ gtk_entry_set_text(GTK_ENTRY(entry),tmp_mascot.code); } else{ gtk_entry_set_text(GTK_ENTRY(entry),_("(Based on the locale environment)")); } gtk_entry_set_editable(GTK_ENTRY(entry),FALSE); gtk_table_attach_defaults(GTK_TABLE(table1), entry, 1, 2, 2, 3); if(Mascot->copyright){ label = gtk_label_new (Mascot->copyright); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_table_attach_defaults(GTK_TABLE(table1), label, 0, 2, 3, 4); } table1=gtk_table_new(1,1,FALSE); gtk_table_attach_defaults(GTK_TABLE(table), table1, 0, 1, 1, 2); label = gtk_label_new (_("Info.")); gtk_notebook_append_page (GTK_NOTEBOOK (conf_note), table, label); } } label = gtk_label_new (_("Mascot")); gtk_notebook_append_page (GTK_NOTEBOOK (all_note), conf_note, label); } // ¥á¥Ë¥å¡¼ÀßÄê { GtkWidget *table; GtkWidget *label; if(tmp_mascot.menu_total==0){ table=create_new_menu_page(); } else{ table=create_menu_page(); } label = gtk_label_new (_("Menu")); gtk_notebook_append_page (GTK_NOTEBOOK (all_note), table, label); } gtk_widget_show_all(conf_main); gdk_flush(); } // ÀßÄê¥À¥¤¥¢¥í¥°Ãæ¤Î¥á¥Ë¥å¡¼ÀßÄê¥Ú¡¼¥¸¤ÎºîÀ® // ¥á¥Ë¥å¡¼¤¬¤¢¤ë¾ì¹ç GtkWidget * create_menu_page() { GtkWidget *table; GtkWidget *button; GtkWidget *hbox; // 2x1¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (2, 1, FALSE); cat_note = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (cat_note), GTK_POS_TOP); gtk_notebook_set_scrollable (GTK_NOTEBOOK (cat_note), TRUE); gtk_table_attach_defaults (GTK_TABLE(table), cat_note, 0, 1, 0, 1); // Category ¼ýÏ¿ÍÑnotebook { gint i_cat=0; for(i_cat=0;i_catentry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 1, 2, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); // Min adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_min[i_ptn][i_frm], 1,999, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.frame_min[i_ptn][i_frm]); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 2, 3, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); // Max adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_max[i_ptn][i_frm], 1,999, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.frame_max[i_ptn][i_frm]); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 3, 4, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); // Block Next adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_loop[i_ptn][i_frm].next, -1, tmp_mascot.frame_num[i_ptn]-1, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.frame_loop[i_ptn][i_frm].next); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 4, 5, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); // Block Min adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_loop[i_ptn][i_frm].min, 0,999, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.frame_loop[i_ptn][i_frm].min); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 5, 6, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); // Block Max adj = (GtkAdjustment *)gtk_adjustment_new ((gfloat)tmp_mascot.frame_loop[i_ptn][i_frm].max, 0,999, 1.0, 1.0, 0.0); my_signal_connect (adj, "value_changed",cc_get_adj, &tmp_mascot.frame_loop[i_ptn][i_frm].max); spinner = gtk_spin_button_new (adj, 0, 0); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), FALSE); gtk_entry_set_editable(GTK_ENTRY(>K_SPIN_BUTTON(spinner)->entry), FALSE); gtk_table_attach(GTK_TABLE(frame_table[i_ptn]), spinner, 6, 7, i_frm+2, i_frm+3, GTK_FILL,GTK_SHRINK,0,0); } label=gtk_label_new(""); gtk_table_attach_defaults(GTK_TABLE(frame_table[i_ptn]), label, 0, 7, MAX_ANIME_FRAME+2, MAX_ANIME_FRAME+3); gtk_widget_show_all(frame_table[i_ptn]); } // ¥«¥Æ¥´¥ê¡¼Æâ¥¿¡¼¥²¥Ã¥È¥ê¥¹¥È void make_tgt_list(int i_cat) { int i_tgt; char no_tmp[3]; GtkWidget *label; GtkWidget *button; GtkWidget *entry; GtkWidget *arrow; GtkWidget *hbox; if(flag_make_tgt_list[i_cat]){ gtk_widget_destroy(tgt_table[i_cat]); #ifdef USE_GTK2 g_object_unref(tgt_table[i_cat]); #endif } else flag_make_tgt_list[i_cat]=TRUE; tgt_table[i_cat] = gtk_table_new (5, MAX_MENU_CATEGORY+2, FALSE); #ifdef USE_GTK2 g_object_ref (tgt_table[i_cat]); gtk_object_sink (GTK_OBJECT (tgt_table[i_cat])); #endif gtk_container_set_border_width (GTK_CONTAINER (tgt_table[i_cat]), 5); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (cat_scrwin[i_cat]), tgt_table[i_cat]); label = gtk_label_new (_("No.")); gtk_table_attach(GTK_TABLE(tgt_table[i_cat]), label, 1, 2, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0); label = gtk_label_new (_("Name")); gtk_table_attach(GTK_TABLE(tgt_table[i_cat]), label, 2, 3, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0); label = gtk_label_new (_("File")); gtk_table_attach(GTK_TABLE(tgt_table[i_cat]), label, 3, 5, 0, 1, GTK_FILL,GTK_SHRINK,0,0); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0); for(i_tgt=0;i_tgtmail.flag){ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(biff_check),TRUE); } else{ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(biff_check),FALSE); } my_signal_connect (biff_check, "toggled",mail_flag_toggle,NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); #endif // USE_BIFF sig_check =gtk_check_menu_item_new_with_label (_("Time Signal")); gtk_widget_show (sig_check); gtk_container_add (GTK_CONTAINER (popup_menu), sig_check); if(Mascot->signal.flag){ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(sig_check),TRUE); } else{ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(sig_check),FALSE); } my_signal_connect (sig_check, "toggled",check_menu_get_toggle, &Mascot->signal.flag); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); cat_menu=make_cat_menu(); gtk_widget_show(cat_menu); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_REFRESH, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Mascot Launcher")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Mascot Launcher")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),cat_menu); if(Mascot->menu_total==0){ gtk_widget_set_state(popup_button, GTK_STATE_INSENSITIVE); } bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU); popup_button =gtk_image_menu_item_new_with_label (_("Exit")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(popup_button),image); #else popup_button =gtk_menu_item_new_with_label (_("Exit")); #endif gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",quit_all,NULL); gtk_widget_show_all(popup_menu); return(popup_menu); } GtkWidget * make_open_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; GtkWidget *bar; GtkWidget *launcher_menu; GtkWidget *develop_menu; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Open Mascot")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_file_selection_dialog, (gpointer)MENU_SELECT); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); launcher_menu=make_open_launcher_menu(); gtk_widget_show (launcher_menu); popup_button =gtk_menu_item_new_with_label (_("Launcher Menu")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),launcher_menu); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); develop_menu=make_open_develop_menu(); gtk_widget_show (develop_menu); popup_button =gtk_menu_item_new_with_label (_("For Developper")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),develop_menu); return(popup_menu); } GtkWidget * make_save_menu(void) { GtkWidget *popup_menu; GtkWidget *menu_menu; GtkWidget *develop_menu; GtkWidget *popup_button; GtkWidget *bar; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Save All")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",MenuSaveAll,NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); popup_button =gtk_menu_item_new_with_label (_("Save Mascot")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",MenuSaveMascot,NULL); popup_button =gtk_menu_item_new_with_label (_("Save Mascot As...")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_save_mascot_dialog,NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); menu_menu=make_menu_menu(); gtk_widget_show (menu_menu); popup_button =gtk_menu_item_new_with_label (_("Launcher Menu")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),menu_menu); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); popup_button =gtk_menu_item_new_with_label (_("Save Resource")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_save_rc_dialog,NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); develop_menu=make_develop_menu(); gtk_widget_show (develop_menu); popup_button =gtk_menu_item_new_with_label (_("For Developper")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),develop_menu); return(popup_menu); } GtkWidget * make_new_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; GtkWidget *bar; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Create New Mascot")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_new_mascot_dialog,NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); popup_button =gtk_menu_item_new_with_label (_("Create New Launcher Menu")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_new_menu_selection_dialog, NULL); return(popup_menu); } GtkWidget * make_install_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; GtkWidget *bar; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Launcher Menu [User]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_menu_selection_dialog, (gpointer)MENU_INSTALL_USER); #ifdef USE_COMMON popup_button =gtk_menu_item_new_with_label (_("Launcher Menu [Common]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_menu_selection_dialog, (gpointer)MENU_INSTALL_COMMON); if(!check_common_dir2()){ gtk_widget_set_state(popup_button, GTK_STATE_INSENSITIVE); } #endif bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); popup_button =gtk_menu_item_new_with_label (_("Mascot [User]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_file_selection_dialog, (gpointer)MENU_INSTALL_USER); #ifdef USE_COMMON popup_button =gtk_menu_item_new_with_label (_("Mascot [Common]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_file_selection_dialog, (gpointer)MENU_INSTALL_COMMON); if(!check_common_dir2()){ gtk_widget_set_state(popup_button, GTK_STATE_INSENSITIVE); } #endif return(popup_menu); } GtkWidget * make_menu_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Save")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_save_menu_dialog,NULL); if(Mascot->menu_total==0){ gtk_widget_set_state(popup_button, GTK_STATE_INSENSITIVE); } popup_button =gtk_menu_item_new_with_label (_("Set as Default")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",MenuSaveDefMenu,NULL); if(Mascot->menu_total==0){ gtk_widget_set_state(popup_button, GTK_STATE_INSENSITIVE); } popup_button =gtk_menu_item_new_with_label (_("Remove from Default")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",MenuDelDefMenu,NULL); return(popup_menu); } GtkWidget * make_open_launcher_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("File Select")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_menu_selection_dialog, (gpointer)MENU_SELECT); popup_button =gtk_menu_item_new_with_label (_("Launcher")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_smenu_dialog2,NULL); return(popup_menu); } GtkWidget * make_open_develop_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Convert from Nokkari-Chara")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_nkr_selection_dialog, NULL); return(popup_menu); } GtkWidget * make_develop_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Save for Release")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate", create_save_release_mascot_dialog,NULL); popup_button =gtk_menu_item_new_with_label (_("Convert to Nokkari-Chara")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",create_save_nokkari_dialog, NULL); return(popup_menu); } GtkWidget * make_cat_menu(void) { GtkWidget *popup_menu; GtkWidget *popup_button; GtkWidget *bar; GtkWidget *tgt_menu; int i_cat; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Random Change")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",AllRandomChangeMascotMenu, NULL); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); for(i_cat=0;i_catmenu_cat_max;i_cat++){ tgt_menu=make_tgt_menu(i_cat); gtk_widget_show (tgt_menu); popup_button =gtk_menu_item_new_with_label (Mascot->menu_cat[i_cat]); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); gtk_menu_item_set_submenu(GTK_MENU_ITEM(popup_button),tgt_menu); } return(popup_menu); } GtkWidget * make_tgt_menu(int i_cat) { GtkWidget *popup_menu; GtkWidget *popup_button; GtkWidget *bar; int i_tgt; popup_menu = gtk_menu_new(); gtk_widget_show (popup_menu); popup_button =gtk_menu_item_new_with_label (_("Random Change")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",CatRandomChangeMascotMenu, (gpointer)i_cat); bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (popup_menu), bar); for(i_tgt=0;i_tgtmenu_tgt_max[i_cat];i_tgt++){ popup_button =gtk_menu_item_new_with_label(Mascot->menu_tgt_name[i_cat][i_tgt]); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (popup_menu), popup_button); my_signal_connect (popup_button, "activate",ChangeMascotMenu, Mascot->menu_tgt[i_cat][i_tgt]); } return(popup_menu); } //¥Þ¥¹¥³¥Ã¥ÈÊѹ¹ void ChangeMascot(){ gdk_color_free(Mascot->colclk); gdk_color_free(Mascot->colclkbg); gdk_color_free(Mascot->colclkbd); gdk_color_free(Mascot->colclksd); gdk_color_free(Mascot->colbal); gdk_color_free(Mascot->colbalbd); gdk_color_free(Mascot->colbalbg); InitMascot(Mascot); ReadMascot(Mascot,FALSE); InitComposite(Mascot); LoadPixmaps(win_main, Mascot, Mascot->sprites); ReInitGC(Mascot); #ifdef USE_WIN32 //#if GTK_CHECK_VERSION(2,12,0) || defined(USE_WIN32) gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; #ifdef USE_BIFF gtk_widget_unmap(biff_pix); LoadBiffPixmap(biff_pix, Mascot); remap_biff_pix(Mascot); #endif // USE_BIFF if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if(Mascot->clkmode==CLOCK_PANEL){ #ifdef USE_WIN32 if((Mascot->flag_clkfg)&&(Mascot->alpha_clk!=100)){ gtk_widget_map(clock_fg); } else gtk_widget_unmap(clock_fg); #endif gtk_widget_map(clock_main); } else{ #ifdef USE_WIN32 gtk_widget_unmap(clock_fg); #endif gtk_widget_unmap(clock_main); } #ifdef USE_WIN32 if((Mascot->sdw_flag)&&(Mascot->sdw_height>0)){ gtk_widget_map(win_sdw); } else{ gtk_widget_unmap(win_sdw); } #endif gtk_widget_map(win_main); if(Mascot->clkmode!=CLOCK_NO) clock_update(Mascot, TRUE); if(Mascot->move==MOVE_FIX){ MoveMascot(Mascot,Mascot->xfix,Mascot->yfix); } else{ MoveToFocus(Mascot,TRUE); } } // ¤Î¤Ã¤«¤ê¥­¥ã¥é¤Ø¥Þ¥¹¥³¥Ã¥ÈÊѹ¹ void NkrChangeMascot(){ InitMascot(Mascot); NkrRead(Mascot); InitComposite(Mascot); LoadPixmaps(win_main, Mascot, Mascot->sprites); ReInitGC(Mascot); #ifdef USE_WIN32 //#if GTK_CHECK_VERSION(2,12,0) || defined(USE_WIN32) gtk_widget_unmap(balloon_fg); #endif gtk_widget_unmap(balloon_main); flag_balloon=FALSE; #ifdef USE_BIFF gtk_widget_unmap(biff_pix); LoadBiffPixmap(biff_pix, Mascot); #endif // USE_BIFF Mascot->yoff=Mascot->height - Mascot->yoff; #ifdef USE_WIN32 //#if GTK_CHECK_VERSION(2,12,0) || defined(USE_WIN32) gtk_widget_unmap(clock_fg); #endif gtk_widget_unmap(clock_main); MoveToFocus(Mascot,TRUE); } #ifdef USE_COMMON // ¥Õ¥¡¥¤¥ëÀ°¹ç¥Á¥§¥Ã¥¯ void create_cons_dialog(typMascot *mascot, gchar *target_file, time_t user_mtime, time_t common_mtime, gboolean menu_flag) { GtkWidget *cons_main; GtkWidget *cons_tbl; GtkWidget *cons_tbl2; GtkWidget *cons_text; GtkWidget *vbox; GtkWidget *label; GtkWidget *button; GtkWidget *check; gchar *tmp_text=NULL; gchar tmp_time[128]; struct tm *tm_ptr; consType *cdata; // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); Mascot->flag_menu=TRUE; cdata=g_malloc0(sizeof(consType)); #ifdef USE_GTK2 cons_main = gtk_window_new(GTK_WINDOW_TOPLEVEL); #else cons_main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_position(GTK_WINDOW(cons_main), GTK_WIN_POS_CENTER); gtk_window_set_title(GTK_WINDOW(cons_main), _("MaCoPiX : Consistency Check for Common & User Dir.")); gtk_widget_realize(cons_main); my_signal_connect(cons_main,"destroy",close_cons, GTK_WIDGET(cons_main)); gtk_container_set_border_width (GTK_CONTAINER (cons_main), 5); // 6x3¤Î¥Æ¡¼¥Ö¥ë cons_tbl = gtk_table_new (6, 3, FALSE); gtk_container_add (GTK_CONTAINER (cons_main), cons_tbl); vbox = gtk_vbox_new(FALSE,5); gtk_table_attach(GTK_TABLE(cons_tbl), vbox, 0, 6, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); label = gtk_label_new(_("WARNING")); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); label = gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); if(menu_flag){ tmp_text=g_strconcat(_("Menu file : "), "\"", target_file, "\"", NULL); } else{ tmp_text=g_strconcat(_("Mascot file : "), "\"", target_file, "\"", NULL); } label = gtk_label_new (tmp_text); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); label = gtk_label_new(_(" File in User Dir is older than the corresponded one in Common Dir.")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); // 2x2¤Î¥Æ¡¼¥Ö¥ë cons_tbl2 = gtk_table_new (2, 2, FALSE); gtk_box_pack_start(GTK_BOX(vbox), cons_tbl2,FALSE, FALSE, 0); label = gtk_label_new(_(" [User Dir]")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(cons_tbl2), label, 0, 1, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); tm_ptr=gmtime(&user_mtime); sprintf(tmp_time, _(" %4d/%02d/%02d %02d:%02d:%02d"), tm_ptr->tm_year+1900,tm_ptr->tm_mon+1,tm_ptr->tm_mday, tm_ptr->tm_hour,tm_ptr->tm_min,tm_ptr->tm_sec); label = gtk_label_new(tmp_time); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(cons_tbl2), label, 1, 2, 0, 1, GTK_SHRINK,GTK_SHRINK,0,0); label = gtk_label_new(_(" [Common Dir]")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(cons_tbl2), label, 0, 1, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); tm_ptr=gmtime(&common_mtime); sprintf(tmp_time, _(" %4d/%02d/%02d %02d:%02d:%02d"), tm_ptr->tm_year+1900,tm_ptr->tm_mon+1,tm_ptr->tm_mday, tm_ptr->tm_hour,tm_ptr->tm_min,tm_ptr->tm_sec); label = gtk_label_new(tmp_time); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(cons_tbl2), label, 1, 2, 1, 2, GTK_SHRINK,GTK_SHRINK,0,0); label = gtk_label_new(_("Do you want to overwite the newer file to User Dir?")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label,FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Don't ask this from the next time.")); gtk_box_pack_start(GTK_BOX(vbox), check, FALSE, FALSE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),FALSE); cdata->dialog=GTK_WIDGET(cons_main); cdata->auto_check=GTK_WIDGET(check); cdata->filename=target_file; cdata->flag_ow=FALSE; cdata->flag_auto=FALSE; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_table_attach(GTK_TABLE(cons_tbl), button, 4, 5, 2, 3, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",noow_cons, (gpointer)cdata); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_table_attach(GTK_TABLE(cons_tbl), button, 5, 6, 2, 3, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",ow_cons, (gpointer)cdata); gtk_widget_show_all(cons_main); gtk_main(); gdk_flush(); mascot->flag_consow=cdata->flag_ow; if(cdata->flag_auto){ if(mascot->flag_consow){ mascot->cons_check_mode=CONS_AUTOOW; } else{ mascot->cons_check_mode=CONS_IGNORE; } } else{ mascot->cons_check_mode=CONS_MANUAL; } g_free(cdata); } #endif // µ¯Æ°¥á¥Ë¥å¡¼ÁªÂò¥À¥¤¥¢¥í¥° void create_smenu_dialog(typMascot *mascot, gboolean flag_popup) { GtkWidget *main; GtkWidget *table; GtkWidget *table1; GtkWidget *scrwin; GtkWidget *button; GtkWidget *vscrollbar; GtkWidget *vbox, *vbox2; GtkWidget *label; GtkWidget *menubar; typScanMenu *smenu; gint i_menu; gboolean update_flag=TRUE; #ifdef USE_WIN32 GtkWidget *hbox; #endif GtkTargetEntry drag_types[1] = {{"text/uri-list", 0, 0}}; smenu=g_malloc0(sizeof(typScanMenu)); selected_smenu=0; ScanMenu(smenu,FALSE); /* #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*5, _("No Menu Files are installed!!\n"), _("Please install one menu file at least\n"), _(" or appoint a mascot file in option in order to start MaCoPiX!\n"), NULL); #else g_print("\n"); g_print(_("No Menu Files are installed!!\n")); g_print(_("Please install one menu file at least\n")); g_print(_(" or appoint a mascot file in option in order to start MaCoPiX!\n")); #endif exit(1); } */ // Win¹½ÃۤϽŤ¤¤Î¤ÇÀè¤ËExpose¥¤¥Ù¥ó¥ÈÅù¤ò¤¹¤Ù¤Æ½èÍý¤·¤Æ¤«¤é while (my_main_iteration(FALSE)); mascot->flag_menu=TRUE; #ifdef USE_GTK2 main = gtk_window_new(GTK_WINDOW_TOPLEVEL); #else main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_position(GTK_WINDOW(main), GTK_WIN_POS_CENTER); if(smenu->max_menu==0){ /* Drag and Drop */ gtk_drag_dest_set (main, GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_HIGHLIGHT | GTK_DEST_DEFAULT_DROP, drag_types, 1, GDK_ACTION_COPY); my_signal_connect (main, "drag-data-received", signal_drag_data_received_smenu, NULL); gtk_window_set_title(GTK_WINDOW(main), _("MaCoPiX : Starting up")); gtk_widget_realize(main); my_signal_connect(main,"destroy",close_smenu, GTK_WIDGET(main)); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add (GTK_CONTAINER (main), vbox); menubar=make_start_menubar(); gtk_box_pack_start(GTK_BOX(vbox), menubar,FALSE, FALSE, 0); vbox2 = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 10); gtk_box_pack_start(GTK_BOX(vbox), vbox2,FALSE, FALSE, 0); label=gtk_label_new(_("No Menu Files are installed!!")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_("Please install one menu file at least,")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_(" or appoint a mascot file in option in order to start MaCoPiX!")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_("You can download mascot files from MaCoPiX official web.")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); #ifdef USE_WIN32 hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, FALSE, 0); button = gtk_button_new_with_label(DEFAULT_URL); gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); my_signal_connect(button,"clicked",uri_clicked, NULL); #else label = gtk_label_new (DEFAULT_URL); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); #endif label=gtk_label_new(""); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_("Menus and Mascots can be installed by the menu bar of this window.")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_("Or, drag & drop a mascot menu archive (*.tar.gz) directly")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); label=gtk_label_new(_("into this window, in order to install it.")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox2), label,TRUE,TRUE,0); gtk_widget_show_all(main); gtk_main(); gdk_flush(); if((!Mascot->file)&&(!Mascot->menu_file)) exit(1); gtk_widget_destroy(main); } else{ if(flag_popup){ gtk_window_set_title(GTK_WINDOW(main), _("MaCoPiX : Launcher Menu Selection")); } else{ gtk_window_set_title(GTK_WINDOW(main), _("MaCoPiX : Start Menu Selection")); } gtk_widget_realize(main); my_signal_connect(main,"destroy",close_smenu, GTK_WIDGET(main)); gtk_container_set_border_width (GTK_CONTAINER (main), 5); // 2x2¤Î¥Æ¡¼¥Ö¥ë table = gtk_table_new (4, 3, FALSE); gtk_table_set_col_spacings (GTK_TABLE(table), 100); gtk_table_set_row_spacings (GTK_TABLE(table), 7); gtk_container_add (GTK_CONTAINER (main), table); scrwin = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_usize (scrwin, SMENU_WIN_WIDTH, SMENU_WIN_HEIGHT); gtk_table_attach_defaults (GTK_TABLE(table), scrwin, 0, 4, 0, 1); gtk_container_set_border_width (GTK_CONTAINER (scrwin), 5); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(scrwin), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); make_smenu_list(scrwin, smenu); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_table_attach(GTK_TABLE(table), button, 2, 3, 1, 2, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",close_smenu,GTK_WIDGET(main)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_table_attach(GTK_TABLE(table), button, 3, 4, 1, 2, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",gtk_main_quit, NULL); gtk_widget_show_all(main); gtk_main(); gdk_flush(); if(selected_smenu==-1){ if(!flag_popup) exit(1); } else{ if(smenu->dir[selected_smenu]==SMENU_DIR_USER){ #ifdef USE_WIN32 mascot->menu_file=g_strconcat(get_win_home(),G_DIR_SEPARATOR_S,USER_DIR, #else mascot->menu_file=g_strconcat(g_get_home_dir(),G_DIR_SEPARATOR_S,USER_DIR, #endif smenu->file[selected_smenu],NULL); } #ifdef USE_COMMON else if(smenu->dir[selected_smenu]==SMENU_DIR_COMMON){ mascot->menu_file=g_strconcat(COMMON_DIR, smenu->file[selected_smenu],NULL); } #endif else{ mascot->menu_file=g_strdup(smenu->file[selected_smenu]); } if(flag_popup){// Popup¤«¤é gtk_widget_destroy(PopupMenu); ReadMenu(mascot,0,NULL); PopupMenu=make_popup_menu(); } gtk_widget_destroy(main); } } g_free(smenu); } GtkWidget *make_start_menubar(typMascot *mascot){ GtkWidget *menu_bar; GtkWidget *menu_item; GtkWidget *menu; GtkWidget *popup_button; GtkWidget *bar; #ifdef __GTK_STOCK_H__ GtkWidget *image; #endif menu_bar=gtk_menu_bar_new(); gtk_widget_show (menu_bar); #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU); menu_item =gtk_image_menu_item_new_with_label (_("Exit")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),image); #else menu_item =gtk_menu_item_new_with_label (_("Exit")); #endif gtk_widget_show (menu_item); #ifdef USE_GTK2 gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), menu_item); #else gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), menu_item); #endif menu=gtk_menu_new(); gtk_widget_show (menu); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_item), menu); popup_button =gtk_menu_item_new_with_label (_("Exit")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",gtk_main_quit,NULL); // Install #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_HARDDISK, GTK_ICON_SIZE_MENU); menu_item =gtk_image_menu_item_new_with_label (_("Install")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),image); #else menu_item =gtk_menu_item_new_with_label (_("Install")); #endif gtk_widget_show (menu_item); #ifdef USE_GTK2 gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), menu_item); #else gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), menu_item); #endif menu=gtk_menu_new(); gtk_widget_show (menu); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_item), menu); popup_button =gtk_menu_item_new_with_label (_("Launcher Menu [User]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",do_install_user_menu, (gpointer)mascot); #ifdef USE_COMMON popup_button =gtk_menu_item_new_with_label (_("Launcher Menu [Common]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",do_install_common_menu, (gpointer)mascot); #endif bar =gtk_menu_item_new(); gtk_widget_show (bar); gtk_container_add (GTK_CONTAINER (menu), bar); popup_button =gtk_menu_item_new_with_label (_("Mascot [User]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",do_install_user_mascot, (gpointer)mascot); #ifdef USE_COMMON popup_button =gtk_menu_item_new_with_label (_("Mascot [Common]")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",do_install_common_mascot, (gpointer)mascot); #endif // Open #ifdef __GTK_STOCK_H__ image=gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU); menu_item =gtk_image_menu_item_new_with_label (_("Open")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),image); #else menu_item =gtk_menu_item_new_with_label (_("Open")); #endif gtk_widget_show (menu_item); #ifdef USE_GTK2 gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), menu_item); #else gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), menu_item); #endif menu=gtk_menu_new(); gtk_widget_show (menu); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_item), menu); popup_button =gtk_menu_item_new_with_label (_("Installed Mascot")); gtk_widget_show (popup_button); gtk_container_add (GTK_CONTAINER (menu), popup_button); my_signal_connect (popup_button, "activate",do_select_mascot, (gpointer)mascot); gtk_widget_show_all(menu_bar); return(menu_bar); } void do_install_user_menu(GtkWidget *w, gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; create_menu_selection_dialog(NULL,(gpointer)START_MENU_INSTALL_USER); gtk_main_quit(); } #ifdef USE_COMMON void do_install_common_menu(GtkWidget *w, gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; create_menu_selection_dialog(NULL,(gpointer)START_MENU_INSTALL_COMMON); gtk_main_quit(); } #endif void do_install_user_mascot(GtkWidget *w, gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; create_file_selection_dialog(NULL,(gpointer)START_MENU_INSTALL_USER); gtk_main_quit(); } #ifdef USE_COMMON void do_install_common_mascot(GtkWidget *w, gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; create_file_selection_dialog(NULL,(gpointer)START_MENU_INSTALL_COMMON); gtk_main_quit(); } #endif void do_select_mascot(GtkWidget *w, gpointer gdata){ typMascot *mascot; mascot=(typMascot *)gdata; create_file_selection_dialog(NULL,(gpointer)START_MENU_SELECT); gtk_main_quit(); } // µ¯Æ°¥á¥Ë¥å¡¼¥ê¥¹¥È void make_smenu_list(GtkWidget *scrwin, typScanMenu *smenu) { int i_menu; gchar tmp[15]; GtkWidget *check; GtkWidget *label; GtkWidget *button; GtkWidget *smenu_table; GSList *group = NULL; smenu_table = gtk_table_new (5, MAX_MENU_CATEGORY2+2, FALSE); gtk_container_set_border_width (GTK_CONTAINER (smenu_table), 5); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrwin), smenu_table); gtk_table_set_col_spacings (GTK_TABLE (smenu_table), 7); gtk_table_set_row_spacings (GTK_TABLE (smenu_table), 7); label = gtk_label_new (_("File")); gtk_table_attach(GTK_TABLE(smenu_table), label, 1, 2, 0, 1, GTK_EXPAND,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); label = gtk_label_new (_("Dir.")); gtk_table_attach(GTK_TABLE(smenu_table), label, 2, 3, 0, 1, GTK_EXPAND,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); label = gtk_label_new (_("Entry")); gtk_table_attach(GTK_TABLE(smenu_table), label, 3, 4, 0, 1, GTK_EXPAND,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); label = gtk_label_new (_("Category")); gtk_table_attach(GTK_TABLE(smenu_table), label, 4, 5, 0, 1, GTK_EXPAND|GTK_FILL,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); for(i_menu=0;i_menumax_menu;i_menu++){ check = gtk_radio_button_new(group); #ifdef USE_GTK2 group=gtk_radio_button_get_group(GTK_RADIO_BUTTON(check)); #else group=gtk_radio_button_group(GTK_RADIO_BUTTON(check)); #endif gtk_table_attach (GTK_TABLE(smenu_table), check, 0, 1, i_menu+1, i_menu+2, GTK_SHRINK,GTK_SHRINK,0,2); my_signal_connect (check, "toggled",check_menu_get_smenu, (gpointer *)i_menu); if(i_menu==0){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),TRUE); } else{ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check),FALSE); } label = gtk_label_new (smenu->file[i_menu]); gtk_table_attach(GTK_TABLE(smenu_table), label, 1, 2, i_menu+1, i_menu+2, GTK_FILL,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); if(smenu->dir[i_menu]==SMENU_DIR_USER){ label = gtk_label_new (_("User")); } #ifdef USE_COMMON else if(smenu->dir[i_menu]==SMENU_DIR_COMMON){ label = gtk_label_new (_("Common")); } #endif else{ label = gtk_label_new (_("Unknown")); } gtk_table_attach(GTK_TABLE(smenu_table), label, 2, 3, i_menu+1, i_menu+2, GTK_FILL,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); if(smenu->flag_combine[i_menu]){ sprintf(tmp, _("%4d categories"),smenu->num[i_menu]); } else{ sprintf(tmp, _("%4d mascots"),smenu->num[i_menu]); } label = gtk_label_new (tmp); gtk_table_attach(GTK_TABLE(smenu_table), label, 3, 4, i_menu+1, i_menu+2, GTK_FILL,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); if(smenu->flag_combine[i_menu]){ label = gtk_label_new (_("-- Combined Menu --")); } else{ label = gtk_label_new (smenu->cat[i_menu]); } gtk_table_attach(GTK_TABLE(smenu_table), label, 4, 5, i_menu+1, i_menu+2, GTK_FILL,GTK_SHRINK,0,2); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); } label=gtk_label_new(""); gtk_table_attach_defaults(GTK_TABLE(smenu_table), label, 0, 3, MAX_MENU_CATEGORY2+1, MAX_MENU_CATEGORY2+2); gtk_widget_show_all(smenu_table); } void popup_message(gint delay, ...){ va_list args; gchar *msg1; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; gint timer; va_start(args, delay); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog),_("MaCoPiX Message")); #ifdef USE_GTK2 gtk_dialog_set_has_separator(GTK_DIALOG(dialog),FALSE); #endif if(delay>0){ timer=g_timeout_add(delay*1000, (GSourceFunc)close_popup, (gpointer)dialog); } my_signal_connect(dialog,"destroy",destroy_popup, (gpointer *)timer); while(1){ msg1=va_arg(args,gchar*); if(!msg1) break; label=gtk_label_new(msg1); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); } va_end(args); gtk_widget_show_all(dialog); gtk_main(); flagChildDialog=FALSE; } void popup_progress(typMascot *mascot, gchar *msg1){ GtkWidget *label; GtkWidget *align; mascot->pdata = g_malloc (sizeof (ProgressData)); mascot->pdata->dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(mascot->pdata->dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width(GTK_CONTAINER(mascot->pdata->dialog),5); gtk_window_set_title(GTK_WINDOW(mascot->pdata->dialog), _("MaCoPiX : Installing Mascots")); #ifdef USE_GTK2 gtk_dialog_set_has_separator(GTK_DIALOG(mascot->pdata->dialog),FALSE); #endif label=gtk_label_new(msg1); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mascot->pdata->dialog)->vbox), label,TRUE,TRUE,0); /* Ãæ±û¤ËÇÛÃÖ¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¤Þ¤¹¡£*/ align = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(mascot->pdata->dialog)->vbox), align, FALSE, FALSE, 5); gtk_widget_show (align); /* GtkProgressBar ¤òÀ¸À®¤·¤Þ¤¹¡£*/ mascot->pdata->pbar = gtk_progress_bar_new (); gtk_progress_bar_set_bar_style (GTK_PROGRESS_BAR(mascot->pdata->pbar), GTK_PROGRESS_CONTINUOUS); gtk_container_add (GTK_CONTAINER (align), mascot->pdata->pbar); gtk_widget_show (mascot->pdata->pbar); gtk_widget_show_all(mascot->pdata->dialog); gdk_flush(); } void destroy_progress(typMascot *mascot){ gtk_widget_destroy(mascot->pdata->dialog); g_free (mascot->pdata); } void gui_arg_init(){ flagChildDialog=FALSE; flag_make_pixmap_list=FALSE; pattern_num=0; } gint select_menu_from_ext(typMascot *mascot, gchar *dest_file){ gboolean hit_flag; gint menu_ext; hit_flag=FALSE; if(strcmp(dest_file+strlen(dest_file)-strlen(LZH_EXTENSION)+1, LZH_EXTENSION+1)==0){ #ifdef USE_LHA32 mascot->menu_file=unlha_menu(dest_file); mascot->installed_menu_dir=my_dirname(mascot->menu_file); hit_flag=TRUE; menu_ext=MENU_LHA; #endif } else if(strcmp(dest_file+strlen(dest_file)-strlen(TAR_EXTENSION)+1, TAR_EXTENSION+1)==0){ #if defined(USE_GTAR) || defined(USE_TAR32) mascot->menu_file=untar_menu(mascot,dest_file); mascot->installed_menu_dir=my_dirname(mascot->menu_file); hit_flag=TRUE; menu_ext=MENU_TAR; #endif } else{ mascot->menu_file=dest_file; hit_flag=TRUE; menu_ext=MENU_MENU; } if(!hit_flag){ #ifdef GTK_MSG popup_message(POPUP_TIMEOUT*5, _("Selected File\n"), dest_file, _("cannot be opend as MaCoPiX menu.\n"), NULL); #else g_print("\n"); g_print(_("Selected File cannot be opened as MaCoPiX menu.\n")), #endif } return(menu_ext); } void unlink_all(gchar *dirname) { struct dirent *entry; DIR *dirp; gchar *rm_file; GtkWidget *dialog; GtkWidget *label; GtkWidget *button; confUnlink *cdata; gchar tmp_label[128]; Mascot->flag_menu=TRUE; cdata=g_malloc0(sizeof(confUnlink)); dialog = gtk_dialog_new(); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_container_set_border_width(GTK_CONTAINER(dialog),5); gtk_window_set_title(GTK_WINDOW(dialog), _("MaCoPiX : Deletion of temporay files")); label=gtk_label_new(_("Install of the new menu file has been completed.")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(" "); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); label=gtk_label_new(_("Remove the temporary direcotry?")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); sprintf(tmp_label,"\"%s\"",to_utf8(dirname)); label=gtk_label_new(tmp_label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label,TRUE,TRUE,0); cdata->update=FALSE; cdata->dialog=dialog; #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("Cancel"),GTK_STOCK_CANCEL); #else button=gtk_button_new_with_label(_("Cancel")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",close_child_dialog, GTK_WIDGET(dialog)); #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button,TRUE,TRUE,0); my_signal_connect(button,"clicked",ConfirmUnlink, (gpointer)cdata); gtk_widget_show_all(dialog); gtk_main(); if(cdata->update){ if((dirp = opendir(dirname)) != NULL){ while((entry = readdir(dirp))!=NULL){ rm_file=g_strconcat(dirname,G_DIR_SEPARATOR_S,entry->d_name,NULL); unlink(rm_file); g_free(rm_file); } closedir(dirp); rmdir(dirname); } } g_free(cdata); Mascot->flag_menu=FALSE; } macopix-1.7.4/src/nokkari.h0000644000076400007640000000363510622156017012521 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // A unified desktop mascot program // for UNIX / X Window System with Gdk Environment // // nokkari.h : Nokkari-Character Converter Header for MaCoPiX // (for Nokkari-chara ver1.40 or later) // copyright K.Chimari 2002-4 // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // // // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®æœ€å¤§ãƒžã‚¹ã‚³ãƒƒãƒˆè¨±å®¹æ•° #define MASCOTNUM 64 // 一ã¤ã®ãƒžã‚¹ã‚³ãƒƒãƒˆã«å¯¾ã™ã‚‹æœ€å¤§ã‚¢ãƒ‹ãƒ¡ãƒ¼ã‚·ãƒ§ãƒ³ãƒ•レーム許容数 #define ANIMFRAME 29 // 最大クリックアニメーションパターン許容数 #define CLICKPATTERNMAX 10 // 最大ランダムアニメーションパターン許容数 #define RANIMPATTERNMAX 10 // デフォルト㮠xoff yoff (xpm直接指定モードã®ã¿æœ‰åй) #define DEF_XOFF 100 #define DEF_YOFF 100 // ã®ã£ã‹ã‚Šã‚­ãƒ£ãƒ©ç”¨è¨­å®š // ç”»åƒãƒ•ァイル数 #define NKR_MAX_FILE 30 // パターン数 #define NKR_MAX_PAT 10 // 1パターン内フレーム数 #define NKR_MAX_PAT_Y 99 // 1パターン内フレーム数 変æ›è¡Œåˆ—用Buffer #define BUF_NKR_MAX_PAT_Y 500 // コード #define NKR_CODE "SJIS" #define MACOPIX_CODE "EUC-JP" macopix-1.7.4/src/bmp.h0000644000076400007640000000514710622155310011634 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // bmp.h // Configu header for bmp write/read // originated from gimp-1.3 // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include #include #include #define MAXCOLORS 256 #define BitSet(byte, bit) (((byte) & (bit)) == (bit)) #define Write(file,buffer,len) fwrite(buffer, len, 1, file) #define WriteOK(file,buffer,len) (Write(buffer, len, file) != 0) extern gint32 ToL (guchar *); extern void FromL (gint32, guchar *); extern gint16 ToS (guchar *); extern void FromS (gint16, guchar *); extern int WriteBMP (const gchar *filename, GdkPixbuf *pbuf); extern void WriteColorMap (FILE *, gint *, gint *, gint *, gint); extern void WriteImage (FILE *filename, guchar *data, gint width, gint height, gint encoded, gint channels, gint bpp, gint spzeile, gint MapSize); extern struct Bitmap_File_Head_Struct { gchar zzMagic[2]; /* 00 "BM" */ gulong bfSize; /* 02 */ gushort zzHotX; /* 06 */ gushort zzHotY; /* 08 */ gulong bfOffs; /* 0A */ gulong biSize; /* 0E */ } Bitmap_File_Head; extern struct Bitmap_Head_Struct { gulong biWidth; /* 12 */ gulong biHeight; /* 16 */ gushort biPlanes; /* 1A */ gushort biBitCnt; /* 1C */ gulong biCompr; /* 1E */ gulong biSizeIm; /* 22 */ gulong biXPels; /* 26 */ gulong biYPels; /* 2A */ gulong biClrUsed; /* 2E */ gulong biClrImp; /* 32 */ /* 36 */ } Bitmap_Head; /* *************************************************************** bmp.h *** */ macopix-1.7.4/src/configfile.h0000644000076400007640000000526110622155504013165 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // A unified desktop mascot program // for UNIX / X Window System with Gdk Environment // // configfile.h : Save Data Access for MaCoPiX // copyright K.Chimari 2002 // (diverting from original program of XMMS) // // XMMS - Cross-platform multimedia player // Copyright (C) 1998-1999 Peter Alm, Mikael Alm, Olle Hallnas, // Thomas Nilsson and 4Front Technologies // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // // #ifndef XMMS_CONFIGFILE_H #define XMMS_CONFIGFILE_H #include typedef struct { gchar *key; gchar *value; } ConfigLine; typedef struct { gchar *name; GList *lines; } ConfigSection; typedef struct { GList *sections; } ConfigFile; ConfigFile *xmms_cfg_new(void); ConfigFile *xmms_cfg_open_file(gchar * filename); gboolean xmms_cfg_write_file(ConfigFile * cfg, gchar * filename); void xmms_cfg_free(ConfigFile * cfg); gboolean xmms_cfg_read_string(ConfigFile * cfg, gchar * section, gchar * key, gchar ** value); gboolean xmms_cfg_read_int(ConfigFile * cfg, gchar * section, gchar * key, gint * value); gboolean xmms_cfg_read_boolean(ConfigFile * cfg, gchar * section, gchar * key, gboolean * value); gboolean xmms_cfg_read_float(ConfigFile * cfg, gchar * section, gchar * key, gfloat * value); gboolean xmms_cfg_read_double(ConfigFile * cfg, gchar * section, gchar * key, gdouble * value); void xmms_cfg_write_string(ConfigFile * cfg, gchar * section, gchar * key, gchar * value); void xmms_cfg_write_int(ConfigFile * cfg, gchar * section, gchar * key, gint value); void xmms_cfg_write_boolean(ConfigFile * cfg, gchar * section, gchar * key, gboolean value); void xmms_cfg_write_float(ConfigFile * cfg, gchar * section, gchar * key, gfloat value); void xmms_cfg_write_double(ConfigFile * cfg, gchar * section, gchar * key, gdouble value); void xmms_cfg_remove_key(ConfigFile * cfg, gchar * section, gchar * key); #endif macopix-1.7.4/src/nokkari.c0000644000076400007640000006401411003302621012476 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // nokkari.c // Nokkari-Chara (an Window Sitter for MS Win) Converter // (for Nokkari-chara ver1.40 or later) // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #include "nokkari.h" #ifdef HAVE_SYS_WAIT_H #include #endif #include #ifndef USE_GTK2 #include #endif #if HAVE_ICONV # include #endif #define CODE_TEST #define BUFFSIZE 4096 void NkrSave(); void NkrRead(); gint anim_loop(); void remove_anim_loop(); #ifndef USE_GTK2 void WritePNG(); #endif #if HAVE_ICONV void CodeHenkanSJIS(); void CodeHenkanEUC(); #endif void create_nkr_dialog(); static void close_nkr(); extern gchar* to_locale(); extern gchar* to_utf8(); extern int WriteBMP (); extern gchar* create_nkr_change_image_dialog(); extern void copy_file(); #if HAVE_ICONV extern gchar *conv_iconv_strdup(); #endif #ifdef __GTK_STOCK_H__ extern GtkWidget* gtkut_button_new_from_stock(); #endif extern void my_signal_connect(); extern gchar* my_dirname(); extern gchar* my_basename(); extern gboolean my_main_iteration(); int total_ptn; gchar *rdm_ptn, *clk_ptn; gchar *nkr_msg; extern typMascot *Mascot; extern gchar* FullPathPixmapFile(); // ¤Î¤Ã¤«¤ê¥­¥ã¥éÍÑ ini¥Õ¥¡¥¤¥ë¤Î¥»¡¼¥Ö void NkrSave (typMascot *mascot) { ConfigFile *cfgfile; gchar *filename=NULL; gchar tmp[64], *tmp1=NULL, *tmp2=NULL, tmp_msg[256]; int i_pix=0, i_ptn=0, i_frm=0, i_tmp; gchar *p=NULL; FILE *fp; GdkPixbuf *pixbuf = NULL; total_ptn=0; rdm_ptn=NULL; clk_ptn=NULL; nkr_msg=NULL; filename = g_strdup(mascot->inifile); cfgfile = xmms_cfg_open_file(filename); if (!cfgfile) cfgfile = xmms_cfg_new(); // ¥¿¥¤¥È¥ë sprintf(tmp,"%s [MaCoPiX]",mascot->name); xmms_cfg_write_string(cfgfile, "Chara", "Name",tmp); // ²èÁü¥Õ¥¡¥¤¥ë for(i_pix=0;i_pixnPixmap;i_pix++){ if(mascot->sprites[i_pix].filename){ sprintf(tmp, "File%d", i_pix+1); tmp2=g_strdup(my_basename(mascot->sprites[i_pix].filename)); p=(char *)strstr(tmp2,".png"); strcpy(p,".bmp"); // BMP¥Õ¥¡¥¤¥ë¤Î½ñ¤­½Ð¤· #ifdef USE_GTK2 pixbuf = gdk_pixbuf_new_from_file(mascot->sprites[i_pix].filename,NULL); #else pixbuf = gdk_pixbuf_new_from_file(mascot->sprites[i_pix].filename); #endif if(pixbuf==NULL){ g_print (_("Cannot Load Image %s\n"), mascot->sprites[i_pix].filename); exit(1); } tmp1=g_strconcat(my_dirname(mascot->inifile),G_DIR_SEPARATOR_S,tmp2,NULL); WriteBMP (tmp1, pixbuf); #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixbuf)); #else gdk_pixbuf_unref(pixbuf); #endif if(mascot->sprites[i_pix].filename){ xmms_cfg_write_string(cfgfile, "Pat", tmp, tmp2); if(i_pix>NKR_MAX_FILE-1){ sprintf(tmp_msg, _("Warning : Too much BMP files for Nokkari-Chara! [File%d]\n"), i_pix+1); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } } else{ xmms_cfg_remove_key(cfgfile, "Pat", tmp); } } } i_tmp=i_pix; for(i_pix=i_tmp;i_pixxoff); xmms_cfg_write_string(cfgfile, "Pos", "X",tmp); sprintf(tmp,"%d",mascot->height-mascot->yoff); xmms_cfg_write_string(cfgfile, "Pos", "Y",tmp); // ¥¢¥Ë¥á¡¼¥·¥ç¥ó i_ptn=0; while(anim_loop(mascot,i_ptn,cfgfile)==-1){ i_ptn++; } for(i_ptn=total_ptn;i_ptninifile); xmms_cfg_free(cfgfile); if((fp=fopen(mascot->inifile,"a"))==NULL){ g_message(_("Cannot Save Ini File!")); exit(1); } fprintf(fp,"\n[EOF]\n"); fclose(fp); #if HAVE_ICONV CodeHenkanSJIS(mascot); #endif create_nkr_dialog(mascot); } // ¥¢¥Ë¥á¡¼¥·¥ç¥óloop¤ÎºÆ¸½ 1ptn¤Ö¤ó gint anim_loop(typMascot *mascot, int i_ptn, ConfigFile *cfgfile) { int i_frm=0, i_allfrm=0, i_wgt; int seqend; int total_frm=0; int frm_pix[BUF_NKR_MAX_PAT_Y],frm_num[BUF_NKR_MAX_PAT_Y]; int max_frm; gchar tmp[64], tmp2[64], *tmp1=NULL; int wp_no,wp_max,i_wp; gchar *wp[64]; gchar w_tmp[1024],wp_tmp[1024],tmp_msg[256]; int i_p; if(mascot->frame_pix[i_ptn][0]==-1) return(i_ptn); // ¥¢¥Ë¥á while(i_frmframe_num[i_ptn]){ seqend=RANDOM(mascot->frame_max[i_ptn][i_frm] -mascot->frame_min[i_ptn][i_frm]+1) +mascot->frame_min[i_ptn][i_frm]; total_frm+=seqend; frm_num[i_allfrm]=total_frm; frm_pix[i_allfrm]=mascot->frame_pix[i_ptn][i_frm]; i_allfrm++; // ¥Ö¥í¥Ã¥¯¥ë¡¼¥× if((mascot->frame_loop[i_ptn][i_frm].next>=0)){ mascot->frame_loop[i_ptn][i_frm].seq++; if(mascot->frame_loop[i_ptn][i_frm].seq==1){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×³«»Ï mascot->frame_loop[i_ptn][i_frm].seqend= RANDOM(mascot->frame_loop[i_ptn][i_frm].max -mascot->frame_loop[i_ptn][i_frm].min+1) +mascot->frame_loop[i_ptn][i_frm].min; if(mascot->frame_loop[i_ptn][i_frm].seqend==1){ mascot->frame_loop[i_ptn][i_frm].seq=0; i_frm++; } else{ i_frm= mascot->frame_loop[i_ptn][i_frm].next; } } else if(mascot->frame_loop[i_ptn][i_frm].seqend- mascot->frame_loop[i_ptn][i_frm].seq<=0){ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×½ªÎ» mascot->frame_loop[i_ptn][i_frm].seq=0; i_frm++; } else{ // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×·Ñ³ i_frm= mascot->frame_loop[i_ptn][i_frm].next; } } else{ i_frm++; } } max_frm=i_allfrm; if(mascot->random_weight[i_ptn]>0){ sprintf(tmp,"Pat%d",total_ptn+1); xmms_cfg_write_int(cfgfile, "Anime", tmp, max_frm); // Buffer ±Ì¤ìÂкö if(max_frm>BUF_NKR_MAX_PAT_Y-1){ max_frm=BUF_NKR_MAX_PAT_Y-1; } if(max_frm>=NKR_MAX_PAT_Y){ sprintf(tmp_msg, _("Warning : Too much Frames!! [%s=%d]\n"),tmp,max_frm); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } for(i_frm=0;i_frmrandom_weight[i_ptn];i_wgt++){ if(rdm_ptn) rdm_ptn=g_strconcat(rdm_ptn,tmp,NULL); else rdm_ptn=g_strdup(tmp); } total_ptn++; } if(mascot->click_weight[i_ptn]>0){ sprintf(tmp,"Pat%d",total_ptn+1); xmms_cfg_write_int(cfgfile, "Anime", tmp, max_frm); // Buffer ±Ì¤ìÂкö if(max_frm>BUF_NKR_MAX_PAT_Y-1){ max_frm=BUF_NKR_MAX_PAT_Y-1; } if(max_frm>=NKR_MAX_PAT_Y){ sprintf(tmp_msg, _("Warning : Too much Frames!! [%s=%d]\n"),tmp, max_frm); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } for(i_frm=0;i_frmclick_word[i_ptn]) { strcpy(w_tmp,mascot->click_word[i_ptn]); wp_no=0; wp[wp_no]=(char *)strtok(w_tmp,"%"); for(;;){ wp_no++; if((wp[wp_no]=(char *)strtok(NULL,"%"))==NULL){ wp_max=wp_no; break; } if((wp[wp_no][0]=='p')||(wp[wp_no][0]=='n')|| (wp[wp_no][0]=='a')){ wp[wp_no]++; } else if((wp[wp_no][0]=='m')||(wp[wp_no][0]=='c')){ strcpy(wp_tmp,&wp[wp_no][1]); strcat(wp[wp_no-1],wp_tmp); wp_no--; } else if(isdigit(wp[wp_no][0])){ i_p=0; for(;;){ i_p++; if(isdigit(wp[wp_no][i_p])){ } else if((wp[wp_no][i_p]=='p')||(wp[wp_no][i_p]=='a')|| (wp[wp_no][i_p]=='n')){ wp[wp_no]+=i_p+1; break; } else if((wp[wp_no][i_p]=='c')||(wp[wp_no][i_p]=='m')){ strcpy(wp_tmp,&wp[wp_no][i_p+1]); strcat(wp[wp_no-1],wp_tmp); wp_no--; break; } } } else{ strcpy(wp_tmp,wp[wp_no]); strcat(wp[wp_no-1],"%"); strcat(wp[wp_no-1],wp_tmp); wp_no--; } } if(wp_max>3){ sprintf(tmp_msg, _("Warning : Too much Line numbers for the Balloon message! [Pat%d]\n"), total_ptn+1); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } tmp1=NULL; for(i_wp=0;i_wprandom_weight[i_ptn];i_wgt++){ if(clk_ptn) clk_ptn=g_strconcat(clk_ptn,tmp,NULL); else clk_ptn=g_strdup(tmp); } total_ptn++; } return(-1); } // ¥¢¥Ë¥á¡¼¥·¥ç¥óloop¤Îºï½ü 1ptn¤Ö¤ó (½Å¤Í½ñ¤­Âкö) void remove_anim_loop(int i_ptn, ConfigFile *cfgfile) { int i_frm=0; gchar tmp[64]; sprintf(tmp,"Pat%d",i_ptn+1); xmms_cfg_write_int(cfgfile, "Anime", tmp, 0); xmms_cfg_remove_key(cfgfile, "Serifu", tmp); for(i_frm=0;i_frmrandom_total=0; mascot->click_total=0; // mascot->flag_consow=FALSE; // Ini¥Õ¥¡¥¤¥ë¤ÏľÀÜdir»ØÄê¤Ç inifilename = g_strdup(mascot->inifile); if(access(inifilename,F_OK)!=0){ g_message(_("Cannot Find Mascot File %s\n"),my_basename(mascot->inifile)); exit(1); } #if HAVE_ICONV CodeHenkanEUC(mascot); #endif /* mascot->file=g_strdup(filename); */ cfgfile = xmms_cfg_open_file(inifilename); if (cfgfile) { // General if(!xmms_cfg_read_string(cfgfile, "Chara", "Name",&mascot->name)) mascot->name=NULL; mascot->copyright=NULL; mascot->code=g_strdup(MACOPIX_CODE); // Focus Movement etc. mascot->move=MOVE_FOCUS; if(!xmms_cfg_read_int(cfgfile, "Pos", "X",&mascot->xoff)) mascot->xoff=0; if(!xmms_cfg_read_int(cfgfile, "Pos", "Y",&mascot->yoff)) mascot->yoff=0; mascot->x=0; mascot->y=0; // Clock mascot->clk_x=INIT_CLK_POS; mascot->clk_y=INIT_CLK_POS; mascot->clktext_x=INIT_CLK_TEXT; mascot->clktext_x=INIT_CLK_TEXT; mascot->wclkbd=INIT_CLK_BORDER; mascot->clkmode=CLOCK_NO; mascot->clktype=CLOCK_TYPE_24S; mascot->flag_clksd=TRUE; mascot->fontname_clk=NULL; // mascot->fontname_clk=g_strconcat(FONT_CLK,NULL); // Balloon mascot->baltext_x=INIT_BAL_TEXT; mascot->baltext_y=INIT_BAL_TEXT; mascot->wbalbd=INIT_BAL_BORDER; mascot->bal_defpos=BAL_POS_LEFT; mascot->fontname_bal=NULL; // mascot->fontname_bal=g_strconcat(FONT_BAL,NULL); // Color for Clock mascot->colclk->red=COLOR_CLK_R; mascot->colclk->green=COLOR_CLK_G; mascot->colclk->blue=COLOR_CLK_B; mascot->colclksd->red=COLOR_CLKSD_R; mascot->colclksd->green=COLOR_CLKSD_G; mascot->colclksd->blue=COLOR_CLKSD_B; mascot->colclkbg->red=COLOR_CLKBG_R; mascot->colclkbg->green=COLOR_CLKBG_G; mascot->colclkbg->blue=COLOR_CLKBG_B; mascot->colclkbd->red=COLOR_CLKBD_R; mascot->colclkbd->green=COLOR_CLKBD_G; mascot->colclkbd->blue=COLOR_CLKBD_B; // Color for Balloon mascot->colbal->red=COLOR_BAL_R; mascot->colbal->green=COLOR_BAL_G; mascot->colbal->blue=COLOR_BAL_B; mascot->colbalbg->red=COLOR_BALBG_R; mascot->colbalbg->green=COLOR_BALBG_G; mascot->colbalbg->blue=COLOR_BALBG_B; mascot->colbalbd->red=COLOR_BALBD_R; mascot->colbalbd->green=COLOR_BALBD_G; mascot->colbalbd->blue=COLOR_BALBD_B; #ifdef USE_BIFF // BiffÍѥǡ¼¥¿ mascot->mail.pix_file=NULL; mascot->mail.pix_pos=MAIL_PIX_RIGHT; mascot->mail.pix_x=0; mascot->mail.pix_y=0; mascot->mail.sound=NULL; #endif // Pixmap¥Ç¡¼¥¿ for(i_pix=0;i_pixsprites[i_pix].pixmap=NULL; mascot->sprites[i_pix].mask=NULL; sprintf(tmp, "File%d", i_pix+1); if(!xmms_cfg_read_string(cfgfile, "Pat", tmp, &tmp1)){ mascot->sprites[i_pix].filename=NULL; break; } else{//¥Ñ¥¿¡¼¥óµ­½Ò¤¬¤¢¤Ã¤¿¡£ filename0=g_strconcat(my_dirname(mascot->inifile),G_DIR_SEPARATOR_S,tmp1,NULL); if(strlen(my_basename(tmp1))!=0){ if(access(filename0,F_OK)!=0){ while(!(filename0= g_strdup(create_nkr_change_image_dialog(tmp1,i_pix)))){ } } tmp_open=to_utf8(filename0); #ifdef USE_GTK2 pixbuf = gdk_pixbuf_new_from_file(tmp_open,NULL); #else pixbuf = gdk_pixbuf_new_from_file(tmp_open); #endif // BMP¤ÎÎФÏAlpha¤ÎÈ´¤­Éôʬ¤Ë pixbuf2=gdk_pixbuf_add_alpha(pixbuf,TRUE,0x00,0xFF,0x00); tmp2=g_strdup(my_basename(tmp1)); p=(char *)strstr(tmp2,".bmp"); strcpy(p,".png"); filename0=g_strconcat(my_dirname(mascot->inifile),G_DIR_SEPARATOR_S,tmp2,NULL); #ifdef USE_GTK2 gdk_pixbuf_save(pixbuf2,filename0,"png",NULL,NULL); #else WritePNG(pixbuf2,filename0); #endif #ifdef USE_GTK2 g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(pixbuf2)); #else gdk_pixbuf_unref(pixbuf); gdk_pixbuf_unref(pixbuf2); #endif g_free(tmp_open); mascot->sprites[i_pix].filename= (gchar *)FullPathPixmapFile(mascot, filename0); } else{ // "File%d=" ¤È¤À¤±¤«¤«¤ì¤Æ¤¤¤ë mascot->sprites[i_pix].filename=NULL; } } } // Animation¥Ç¡¼¥¿ // ´ðÄì¥Ñ¥¿¡¼¥ó mascot->click_word[0]=NULL; mascot->click_sound[0]=NULL; mascot->frame_pix[0][0]=0; mascot->frame_min[0][0]=1; mascot->frame_max[0][0]=100; mascot->frame_loop[0][0].next=-1; mascot->frame_num[0]=1; // ¥Ñ¥¿¡¼¥ó1°Ê¹ß // ³Æ¥Ñ¥¿¡¼¥ó¤Î¥Õ¥ì¡¼¥à0¤Îpix¥Õ¥¡¥¤¥ë̾¤¬¤Ê¤¤¤È¤¦¤Á¤­¤ê for(i_ptn=1;i_ptnframe_num[i_ptn])){ if(mascot->frame_num[i_ptn]>MAX_ANIME_FRAME){ sprintf(tmp_msg, _("Warning : Too much Frames for MaCoPiX! [Pattern%d]\n"), i_ptn); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } else if(mascot->frame_num[i_ptn]<=0){ break; } old_frm=1; for(i_frm=0;i_frmframe_num[i_ptn];i_frm++){ sprintf(tmp0, "Pat%d_%d", i_ptn,i_frm+1); if(xmms_cfg_read_string(cfgfile, "Anime", tmp0, &tmp1)){ sscanf(tmp1,"%d %d", &mascot->frame_pix[i_ptn][i_frm], &cur_frm); mascot->frame_pix[i_ptn][i_frm]--; mascot->frame_min[i_ptn][i_frm]=cur_frm-old_frm; mascot->frame_max[i_ptn][i_frm]=cur_frm-old_frm; mascot->frame_loop[i_ptn][i_frm].next=-1; old_frm=cur_frm; } else{ sprintf(tmp_msg, _("Error : Cannot find Frame setting! [Pat%d_%d]\n"), i_ptn,i_frm+1); if(nkr_msg) nkr_msg=g_strconcat(nkr_msg,tmp_msg,NULL); else nkr_msg=g_strdup(tmp_msg); } } } // ¤»¤ê¤Õ sprintf(tmp0, "Pat%d", i_ptn); if(xmms_cfg_read_string(cfgfile, "Serifu", tmp0, &tmp1)){ if(strlen(tmp1)!=0){ tmp[strlen(tmp1)-1]='\0'; wp=(gchar *)strtok(tmp1," "); mascot->click_word[i_ptn]=g_strdup(wp); for(;;){ if((wp=(gchar *)strtok(NULL," "))==NULL){ break; } else{ mascot->click_word[i_ptn]= g_strconcat(mascot->click_word[i_ptn],"%n",wp,NULL); } } } else{ mascot->click_word[i_ptn]=NULL; } } else{ mascot->click_word[i_ptn]=NULL; } // ¥Ñ¥¿¡¼¥ó½ªÎ»½èÍý //mascot->frame_pix[i_ptn][0]=-1; } // ¥é¥ó¥À¥à¥¢¥Ë¥á for(i_ptn=0;i_ptnrandom_weight[i_ptn]=0; mascot->click_weight[i_ptn]=0; } if(xmms_cfg_read_string(cfgfile, "Random", "AnimeNo", &tmp1)){ tmp[strlen(tmp1)-1]='\0'; wp=(gchar *)strtok(tmp1," "); mascot->random_weight[atoi(wp)]++; mascot->random_total++; for(;;){ if((wp=(gchar *)strtok(NULL," "))==NULL){ break; } else{ mascot->random_weight[atoi(wp)]++; mascot->random_total++; } } } // Click¥¢¥Ë¥á for(i_ptn=0;i_ptnclick_weight[i_ptn]=0; mascot->click_weight[i_ptn]=0; } if(xmms_cfg_read_string(cfgfile, "Click", "AnimeNo", &tmp1)){ tmp[strlen(tmp1)-1]='\0'; wp=(gchar *)strtok(tmp1," "); mascot->click_weight[atoi(wp)]++; mascot->click_total++; for(;;){ if((wp=(gchar *)strtok(NULL," "))==NULL){ break; } else{ mascot->click_weight[atoi(wp)]++; mascot->click_total++; } } } xmms_cfg_free(cfgfile); } g_free(inifilename); g_free(filename0); g_free(filename2); g_free(tmp1); g_free(tmp2); } #if HAVE_ICONV void CodeHenkanSJIS(typMascot *mascot){ gchar *tmpname; FILE *src_fp, *dest_fp; gchar *buf, *buf2, *buf3=NULL; buf=g_malloc0(sizeof(gchar)*BUFFSIZE); #ifdef USE_WIN32 tmpname = g_strdup_printf("%s%smacopix-tmpcode.XXXXXX", g_get_tmp_dir(), G_DIR_SEPARATOR_S); #else tmpname = g_strdup_printf("%s%smacopix-tmpcode.%d.XXXXXX", g_get_tmp_dir(), G_DIR_SEPARATOR_S, getuid()); #endif if ((src_fp = fopen(mascot->inifile, "rb")) == NULL) { g_print(_("Cannot open copy source file %s"),mascot->inifile); exit(1); } if ((dest_fp = fopen(tmpname, "wb")) == NULL) { g_print(_("Cannot open copy destination file %s"),tmpname); exit(1); } while( fgets( buf,BUFFSIZE-2,src_fp ) != NULL ){ #ifdef USE_GTK2 buf2=conv_iconv_strdup(buf, "UTF-8", "SJIS"); #else buf2=conv_iconv_strdup(buf, "EUCJP", "SJIS"); #endif if(buf2[strlen(buf2)-1]=='\n'){ buf2[strlen(buf2)-1]='\r'; buf3=g_strconcat(buf2,"\n",NULL); } fwrite(buf3, strlen(buf3), sizeof(gchar), dest_fp); g_free(buf2); if(buf3) g_free(buf3); } fclose(dest_fp); fclose(src_fp); #ifndef USE_WIN32 chmod(tmpname, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); #endif g_free(buf); copy_file(tmpname,mascot->inifile); unlink(tmpname); } void CodeHenkanEUC(typMascot *mascot){ gchar *tmpname; FILE *src_fp, *dest_fp; gchar *buf, *buf2; buf=g_malloc0(sizeof(gchar)*BUFFSIZE); #ifdef USE_WIN32 tmpname = g_strdup_printf("%s%smacopix-tmpcode.XXXXXX", g_get_tmp_dir(), G_DIR_SEPARATOR_S); #else tmpname = g_strdup_printf("%s%smacopix-tmpcode.%d.XXXXXX", g_get_tmp_dir(), G_DIR_SEPARATOR_S, getuid()); #endif if ((src_fp = fopen(mascot->inifile, "rb")) == NULL) { g_print(_("Cannot open copy source file %s"),mascot->inifile); exit(1); } if ((dest_fp = fopen(tmpname, "wb")) == NULL) { g_print(_("Cannot open copy destination file %s"),tmpname); exit(1); } while( fgets( buf,BUFFSIZE-2,src_fp ) != NULL ){ buf2=conv_iconv_strdup(buf, "SJIS", "EUCJP"); if((buf2[strlen(buf2)-2]=='\r')&&(buf2[strlen(buf2)-1]=='\n')){ buf2[strlen(buf2)-2]='\n'; buf2[strlen(buf2)-1]='\0'; } fwrite(buf2, strlen(buf2), sizeof(gchar), dest_fp); g_free(buf2); } fclose(dest_fp); fclose(src_fp); #ifndef USE_WIN32 chmod(tmpname, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); #endif g_free(buf); copy_file(tmpname,mascot->inifile); unlink(tmpname); } #endif /* HAVE_ICONV */ #ifndef USE_GTK2 // From "Linux Moe Moe project" void WritePNG(GdkPixbuf *pic, gchar *fname) { FILE *fp; png_structp png_ptr; png_infop info_ptr; fp = fopen(fname, "wb"); if (fp == NULL) { return; } png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (png_ptr == NULL) { fclose(fp); return; } info_ptr = png_create_info_struct(png_ptr); if (info_ptr == NULL) { fclose(fp); png_destroy_write_struct(&png_ptr, (png_infopp)NULL); return; } if (setjmp(png_ptr->jmpbuf)) { fclose(fp); png_destroy_write_struct(&png_ptr, (png_infopp)NULL); return; } /* ----- libpng ¤Ë¥¹¥È¥ê¡¼¥à¤òÅϤ¹ */ png_init_io(png_ptr, fp); /* ----- png ¥¿¥¤¥×¤ÎÀßÄê */ if (gdk_pixbuf_get_has_alpha(pic) == TRUE) { png_set_IHDR(png_ptr, info_ptr, gdk_pixbuf_get_width(pic), gdk_pixbuf_get_height(pic), 8, PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); } else { png_set_IHDR(png_ptr, info_ptr, gdk_pixbuf_get_width(pic), gdk_pixbuf_get_height(pic), 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); } /* ----- ¥¤¥ó¥Õ¥©¥á¡¼¥·¥ç¥ó¥Ø¥Ã¥À¡¼½ñ½Ð¤· */ png_write_info(png_ptr, info_ptr); /* ----- ¥Ô¥¯¥»¥ë½ñ½Ð¤· */ { png_uint_32 k, height; png_bytep row_pointers[gdk_pixbuf_get_height(pic)]; height = gdk_pixbuf_get_height(pic); for(k=0; kflag_menu=TRUE; #ifdef USE_GTK2 nkr_main = gtk_window_new(GTK_WINDOW_TOPLEVEL); text_buffer = gtk_text_buffer_new(NULL); #else nkr_main = gtk_window_new(GTK_WINDOW_DIALOG); #endif gtk_window_set_title(GTK_WINDOW(nkr_main), _("MaCoPiX <--> Nokkari-Chara Convert Log")); gtk_widget_realize(nkr_main); my_signal_connect(nkr_main,"destroy",close_nkr, GTK_WIDGET(nkr_main)); gtk_container_set_border_width (GTK_CONTAINER (nkr_main), 5); // 6x3¤Î¥Æ¡¼¥Ö¥ë nkr_tbl = gtk_table_new (6, 3, FALSE); gtk_container_add (GTK_CONTAINER (nkr_main), nkr_tbl); #ifdef USE_GTK2 nkr_scroll = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(nkr_scroll), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); nkr_text = gtk_text_view_new_with_buffer (text_buffer); gtk_text_view_set_editable (GTK_TEXT_VIEW (nkr_text), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (nkr_text), FALSE); gtk_container_add(GTK_CONTAINER(nkr_scroll), nkr_text); gtk_widget_set_usize (nkr_scroll, NKR_WIN_WIDTH, NKR_WIN_HEIGHT); gtk_table_attach (GTK_TABLE (nkr_tbl), nkr_scroll, 0, 5, 0, 1, GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0); #else nkr_text = gtk_text_new (NULL, NULL); gtk_widget_set_usize (nkr_text, NKR_WIN_WIDTH, NKR_WIN_HEIGHT); gtk_text_set_editable (GTK_TEXT (nkr_text), FALSE); gtk_table_attach_defaults (GTK_TABLE(nkr_tbl), nkr_text, 0, 5, 0, 1); nkr_scroll = gtk_vscrollbar_new (GTK_TEXT (nkr_text)->vadj); gtk_table_attach (GTK_TABLE (nkr_tbl), nkr_scroll, 5, 6, 0, 1, GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0); #endif if(nkr_msg){ nkr_msg=g_strconcat(nkr_msg, _("\n\n The above warnings/errors are found in conversion...\n\n Please modify and use this mascot on Nokkari-Chara ver1.40 or later.\n"), NULL); } else{ nkr_msg=g_strdup(_("\n Congratulations!!\n===================\n\n You've scceeded to convert with no errors.\n\n Please use this mascot on Nokkari-Chara ver1.40 or later.\n")); } #ifdef USE_GTK2 gtk_text_buffer_get_start_iter(text_buffer, &start_iter); gtk_text_buffer_insert (text_buffer, &start_iter, nkr_msg, -1); #else gtk_text_insert (GTK_TEXT (nkr_text), NULL, NULL, NULL, nkr_msg, -1); #endif #ifdef __GTK_STOCK_H__ button=gtkut_button_new_from_stock(_("OK"),GTK_STOCK_OK); #else button=gtk_button_new_with_label(_("OK")); #endif gtk_table_attach(GTK_TABLE(nkr_tbl), button, 4, 5, 2, 3, GTK_FILL,GTK_SHRINK,0,0); my_signal_connect(button,"clicked",close_nkr, GTK_WIDGET(nkr_main)); gtk_widget_show_all(nkr_main); gdk_flush(); } static void close_nkr(GtkWidget *w, GtkWidget *dialog) { //gdk_pointer_ungrab(GDK_CURRENT_TIME); while (my_main_iteration(FALSE)); gtk_widget_destroy(GTK_WIDGET(dialog)); while (my_main_iteration(FALSE)); Mascot->flag_menu=FALSE; gdk_flush(); } macopix-1.7.4/src/alpha.c0000644000076400007640000000453211012170400012122 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // alpha.c // Using Alpha Blending Windows only in MS Windows // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // #include "main.h" #ifdef USE_WIN32 #define _WIN32_WINNT 0x0500 #include #include void GdkWinChangeAlpha(); void GdkWinChangeAlphaFG(); void GdkWinSetAlpha(); void GdkWinChangeAlpha(GdkWindow *win, gint alpha){ HWND hWnd; DWORD dwExStyle; hWnd = GDK_WINDOW_HWND(win); dwExStyle = GetWindowLong(hWnd, GWL_EXSTYLE); if(alpha==100){ if(dwExStyle&WS_EX_LAYERED){ SetWindowLong(hWnd, GWL_EXSTYLE, dwExStyle^WS_EX_LAYERED); } } else{ if(!(dwExStyle&WS_EX_LAYERED)){ SetWindowLong(hWnd, GWL_EXSTYLE, dwExStyle|WS_EX_LAYERED); } SetLayeredWindowAttributes(hWnd, 0, (255*alpha)/100, LWA_ALPHA); } } void GdkWinChangeAlphaFG(GdkWindow *win, GdkColor *col){ HWND hWnd; DWORD dwExStyle; hWnd = GDK_WINDOW_HWND(win); dwExStyle = GetWindowLong(hWnd, GWL_EXSTYLE); if(!(dwExStyle&WS_EX_LAYERED)){ SetWindowLong(hWnd, GWL_EXSTYLE, dwExStyle|WS_EX_LAYERED); } SetLayeredWindowAttributes(hWnd, RGB(col->red/0x100,col->green/0x100,col->blue/0x100), 0, LWA_COLORKEY); } void GdkWinSetAlpha(GdkWindow *win){ HWND hWnd; DWORD dwExStyle; hWnd = GDK_WINDOW_HWND(win); dwExStyle = GetWindowLong(hWnd, GWL_EXSTYLE); if(!(dwExStyle&WS_EX_LAYERED)){ SetWindowLong(hWnd, GWL_EXSTYLE, dwExStyle|WS_EX_LAYERED); } } #endif // USE_WIN32 macopix-1.7.4/src/md5c.c0000644000076400007640000003507310620532635011711 00000000000000/* GNet API added by David Helder 2000-6-11. All additions and changes placed in the public domain. Files originally from: http://www.gxsnmp.org/CVS/gxsnmp/ */ /* * This code implements the MD5 message-digest algorithm. * The algorithm is due to Ron Rivest. This code was * written by Colin Plumb in 1993, no copyright is claimed. * This code is in the public domain; do with it what you wish. * * Equivalent code is available from RSA Data Security, Inc. * This code has been tested against that, and is equivalent, * except that you don't need to include two pages of legalese * with every copy. * * To compute the message digest of a chunk of bytes, declare an * MD5Context structure, pass it to MD5Init, call MD5Update as * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ #include "md5.h" #include #include /* ************************************************************ */ /* Code below is from Colin Plumb implementation */ struct MD5Context { guint32 buf[4]; guint32 bits[2]; guchar in[64]; int doByteReverse; }; static void MD5Init(struct MD5Context *context); static void MD5Update(struct MD5Context *context, guchar const *buf, guint len); static void MD5Final(guchar digest[16], struct MD5Context *context); static void MD5Transform(guint32 buf[4], guint32 const in[16]); /* * This is needed to make RSAREF happy on some MS-DOS compilers. */ typedef struct MD5Context MD5_CTX; static void byteReverse(guint8 *buf, guint longs); /* * Note: this code is harmless on little-endian machines. */ void byteReverse(guint8 *buf, guint longs) { guint32 t; do { t = (guint32) ((guint) buf[3] << 8 | buf[2]) << 16 | ((guint) buf[1] << 8 | buf[0]); *(guint32 *) buf = t; buf += 4; } while (--longs); } /* * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious * initialization constants. */ void MD5Init(struct MD5Context *ctx) { ctx->buf[0] = 0x67452301; ctx->buf[1] = 0xefcdab89; ctx->buf[2] = 0x98badcfe; ctx->buf[3] = 0x10325476; ctx->bits[0] = 0; ctx->bits[1] = 0; #if (G_BYTE_ORDER == G_BIG_ENDIAN) ctx->doByteReverse = 1; #else ctx->doByteReverse = 0; #endif } /* * Update context to reflect the concatenation of another buffer full * of bytes. */ void MD5Update(struct MD5Context *ctx, guint8 const *buf, guint len) { guint32 t; /* Update bitcount */ t = ctx->bits[0]; if ((ctx->bits[0] = t + ((guint32) len << 3)) < t) ctx->bits[1]++; /* Carry from low to high */ ctx->bits[1] += len >> 29; t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ /* Handle any leading odd-sized chunks */ if (t) { guint8 *p = (guint8 *) ctx->in + t; t = 64 - t; if (len < t) { g_memmove(p, buf, len); return; } g_memmove(p, buf, t); if (ctx->doByteReverse) byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (guint32 *) ctx->in); buf += t; len -= t; } /* Process data in 64-byte chunks */ while (len >= 64) { g_memmove(ctx->in, buf, 64); if (ctx->doByteReverse) byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (guint32 *) ctx->in); buf += 64; len -= 64; } /* Handle any remaining bytes of data. */ g_memmove(ctx->in, buf, len); } /* * Final wrapup - pad to 64-byte boundary with the bit pattern * 1 0* (64-bit count of bits processed, MSB-first) */ void MD5Final(guint8 digest[16], struct MD5Context *ctx) { guint count; guint8 *p; /* Compute number of bytes mod 64 */ count = (ctx->bits[0] >> 3) & 0x3F; /* Set the first char of padding to 0x80. This is safe since there is always at least one byte free */ p = ctx->in + count; *p++ = 0x80; /* Bytes of padding needed to make 64 bytes */ count = 64 - 1 - count; /* Pad out to 56 mod 64 */ if (count < 8) { /* Two lots of padding: Pad the first block to 64 bytes */ memset(p, 0, count); if (ctx->doByteReverse) byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (guint32 *) ctx->in); /* Now fill the next block with 56 bytes */ memset(ctx->in, 0, 56); } else { /* Pad block to 56 bytes */ memset(p, 0, count - 8); } if (ctx->doByteReverse) byteReverse(ctx->in, 14); /* Append length in bits and transform */ ((guint32 *) ctx->in)[14] = ctx->bits[0]; ((guint32 *) ctx->in)[15] = ctx->bits[1]; MD5Transform(ctx->buf, (guint32 *) ctx->in); if (ctx->doByteReverse) byteReverse((guint8 *) ctx->buf, 4); g_memmove(digest, ctx->buf, 16); memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ /* #define F1(x, y, z) (x & y | ~x & z) */ #define F1(x, y, z) (z ^ (x & (y ^ z))) #define F2(x, y, z) F1(z, x, y) #define F3(x, y, z) (x ^ y ^ z) #define F4(x, y, z) (y ^ (x | ~z)) /* This is the central step in the MD5 algorithm. */ #define MD5STEP(f, w, x, y, z, data, s) \ ( w += f(x, y, z) + data, w = w<>(32-s), w += x ) /* * The core of the MD5 algorithm, this alters an existing MD5 hash to * reflect the addition of 16 longwords of new data. MD5Update blocks * the data and converts bytes into longwords for this routine. */ void MD5Transform(guint32 buf[4], guint32 const in[16]) { register guint32 a, b, c, d; a = buf[0]; b = buf[1]; c = buf[2]; d = buf[3]; MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); MD5STEP(F1, a, b, c, d, in[8] + 0x698098d8, 7); MD5STEP(F1, d, a, b, c, in[9] + 0x8b44f7af, 12); MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17); MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22); MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7); MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12); MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17); MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22); MD5STEP(F2, a, b, c, d, in[1] + 0xf61e2562, 5); MD5STEP(F2, d, a, b, c, in[6] + 0xc040b340, 9); MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14); MD5STEP(F2, b, c, d, a, in[0] + 0xe9b6c7aa, 20); MD5STEP(F2, a, b, c, d, in[5] + 0xd62f105d, 5); MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9); MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14); MD5STEP(F2, b, c, d, a, in[4] + 0xe7d3fbc8, 20); MD5STEP(F2, a, b, c, d, in[9] + 0x21e1cde6, 5); MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9); MD5STEP(F2, c, d, a, b, in[3] + 0xf4d50d87, 14); MD5STEP(F2, b, c, d, a, in[8] + 0x455a14ed, 20); MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5); MD5STEP(F2, d, a, b, c, in[2] + 0xfcefa3f8, 9); MD5STEP(F2, c, d, a, b, in[7] + 0x676f02d9, 14); MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20); MD5STEP(F3, a, b, c, d, in[5] + 0xfffa3942, 4); MD5STEP(F3, d, a, b, c, in[8] + 0x8771f681, 11); MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16); MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23); MD5STEP(F3, a, b, c, d, in[1] + 0xa4beea44, 4); MD5STEP(F3, d, a, b, c, in[4] + 0x4bdecfa9, 11); MD5STEP(F3, c, d, a, b, in[7] + 0xf6bb4b60, 16); MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23); MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4); MD5STEP(F3, d, a, b, c, in[0] + 0xeaa127fa, 11); MD5STEP(F3, c, d, a, b, in[3] + 0xd4ef3085, 16); MD5STEP(F3, b, c, d, a, in[6] + 0x04881d05, 23); MD5STEP(F3, a, b, c, d, in[9] + 0xd9d4d039, 4); MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11); MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16); MD5STEP(F3, b, c, d, a, in[2] + 0xc4ac5665, 23); MD5STEP(F4, a, b, c, d, in[0] + 0xf4292244, 6); MD5STEP(F4, d, a, b, c, in[7] + 0x432aff97, 10); MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15); MD5STEP(F4, b, c, d, a, in[5] + 0xfc93a039, 21); MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6); MD5STEP(F4, d, a, b, c, in[3] + 0x8f0ccc92, 10); MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15); MD5STEP(F4, b, c, d, a, in[1] + 0x85845dd1, 21); MD5STEP(F4, a, b, c, d, in[8] + 0x6fa87e4f, 6); MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10); MD5STEP(F4, c, d, a, b, in[6] + 0xa3014314, 15); MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21); MD5STEP(F4, a, b, c, d, in[4] + 0xf7537e82, 6); MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10); MD5STEP(F4, c, d, a, b, in[2] + 0x2ad7d2bb, 15); MD5STEP(F4, b, c, d, a, in[9] + 0xeb86d391, 21); buf[0] += a; buf[1] += b; buf[2] += c; buf[3] += d; } /* ************************************************************ */ /* Code below is David Helder's API for GNet */ struct _GMD5 { struct MD5Context ctx; gchar digest[GNET_MD5_HASH_LENGTH]; }; /** * gnet_md5_new: * @buffer: buffer to hash * @length: length of @buffer * * Creates a #GMD5 from @buffer. * * Returns: a new #GMD5. * **/ GMD5* gnet_md5_new (const gchar* buffer, guint length) { GMD5* md5; md5 = g_new0 (GMD5, 1); MD5Init (&md5->ctx); MD5Update (&md5->ctx, buffer, length); MD5Final ((gpointer) &md5->digest, &md5->ctx); return md5; } /** * gnet_md5_new_string: * @str: hexidecimal string * * Creates a #GMD5 from @str. @str is a hexidecimal string * representing the digest. * * Returns: a new #GMD5. * **/ GMD5* gnet_md5_new_string (const gchar* str) { GMD5* md5; guint i; g_return_val_if_fail (str, NULL); g_return_val_if_fail (strlen(str) >= (GNET_MD5_HASH_LENGTH * 2), NULL); md5 = g_new0 (GMD5, 1); for (i = 0; i < (GNET_MD5_HASH_LENGTH * 2); ++i) { guint val = 0; switch (str[i]) { case '0': val = 0; break; case '1': val = 1; break; case '2': val = 2; break; case '3': val = 3; break; case '4': val = 4; break; case '5': val = 5; break; case '6': val = 6; break; case '7': val = 7; break; case '8': val = 8; break; case '9': val = 9; break; case 'A': case 'a': val = 10; break; case 'B': case 'b': val = 11; break; case 'C': case 'c': val = 12; break; case 'D': case 'd': val = 13; break; case 'E': case 'e': val = 14; break; case 'F': case 'f': val = 15; break; default: g_return_val_if_fail (FALSE, NULL); } if (i % 2) md5->digest[i / 2] |= val; else md5->digest[i / 2] = val << 4; } return md5; } /** * gnet_md5_clone * @md5: a #GMD5 * * Copies a #GMD5. * * Returns: a copy of @md5. * **/ GMD5* gnet_md5_clone (const GMD5* md5) { GMD5* md52; g_return_val_if_fail (md5, NULL); md52 = g_new0 (GMD5, 1); md52->ctx = md5->ctx; memcpy (md52->digest, md5->digest, sizeof(md5->digest)); return md52; } /** * gnet_md5_delete * @md5: a #GMD5 * * Deletes a #GMD5. * **/ void gnet_md5_delete (GMD5* md5) { if (md5) g_free (md5); } /** * gnet_md5_new_incremental * * Creates a #GMD5 incrementally. After creating a #GMD5, call * gnet_md5_update() one or more times to hash data. Finally, call * gnet_md5_final() to compute the final hash value. * * Returns: a new #GMD5. * **/ GMD5* gnet_md5_new_incremental (void) { GMD5* md5; md5 = g_new0 (GMD5, 1); MD5Init (&md5->ctx); return md5; } /** * gnet_md5_update * @md5: a #GMD5 * @buffer: buffer to add * @length: length of @buffer * * Updates the hash with @buffer. This may be called several times * on a hash created by gnet_md5_new_incremental() before being * finalized by calling gnet_md5_final(). * **/ void gnet_md5_update (GMD5* md5, const gchar* buffer, guint length) { g_return_if_fail (md5); MD5Update (&md5->ctx, buffer, length); } /** * gnet_md5_final * @md5: a #GMD5 * * Calcuates the final hash value of a #GMD5. This should only be * called on an #GMD5 created by gnet_md5_new_incremental(). * **/ void gnet_md5_final (GMD5* md5) { g_return_if_fail (md5); MD5Final ((gpointer) &md5->digest, &md5->ctx); } /* **************************************** */ /** * gnet_md5_equal * @p1: first #GMD5. * @p2: second #GMD5. * * Compares two #GMD5's for equality. * * Returns: TRUE if they are equal; FALSE otherwise. * **/ gint gnet_md5_equal (gconstpointer p1, gconstpointer p2) { GMD5* md5a = (GMD5*) p1; GMD5* md5b = (GMD5*) p2; guint i; for (i = 0; i < GNET_MD5_HASH_LENGTH; ++i) if (md5a->digest[i] != md5b->digest[i]) return FALSE; return TRUE; } /** * gnet_md5_hash * @p: a #GMD5 * * Creates a hash code for a #GMD5 for use with GHashTable. This * hash value is not the same as the MD5 digest. * * Returns: the hash code for @p. * **/ guint gnet_md5_hash (gconstpointer p) { const GMD5* md5 = (const GMD5*) p; const guint* q; g_return_val_if_fail (md5, 0); q = (const guint*) md5->digest; return (q[0] ^ q[1] ^ q[2] ^ q[3]); } /** * gnet_md5_get_digest * @md5: a #GMD5 * * Gets the raw MD5 digest. * * Returns: a callee-owned buffer containing the MD5 hash digest. * The buffer is %GNET_MD5_HASH_LENGTH bytes long. * **/ gchar* gnet_md5_get_digest (const GMD5* md5) { g_return_val_if_fail (md5, NULL); return (gchar*) md5->digest; } static gchar bits2hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; /** * gnet_md5_get_string * @md5: a #GMD5 * * Gets the digest represented a human-readable string. * * Returns: a hexadecimal string representing the digest. The string * is 2 * %GNET_MD5_HASH_LENGTH bytes long and NULL terminated. The * string is caller owned. * **/ gchar* gnet_md5_get_string (const GMD5* md5) { gchar* str; guint i; g_return_val_if_fail (md5, NULL); str = g_new (gchar, GNET_MD5_HASH_LENGTH * 2 + 1); str[GNET_MD5_HASH_LENGTH * 2] = '\0'; for (i = 0; i < GNET_MD5_HASH_LENGTH; ++i) { str[i * 2] = bits2hex[(md5->digest[i] & 0xF0) >> 4]; str[(i * 2) + 1] = bits2hex[(md5->digest[i] & 0x0F) ]; } return str; } /** * gnet_md5_copy_string * @md5: a #GMD5 * @buffer: buffer at least 2 * %GNET_MD5_HASH_LENGTH bytes long * * Copies the digest, represented as a string, into @buffer. The * string is not NULL terminated. * **/ void gnet_md5_copy_string (const GMD5* md5, gchar* buffer) { guint i; g_return_if_fail (md5); g_return_if_fail (buffer); for (i = 0; i < GNET_MD5_HASH_LENGTH; ++i) { buffer[i * 2] = bits2hex[(md5->digest[i] & 0xF0) >> 4]; buffer[(i * 2) + 1] = bits2hex[(md5->digest[i] & 0x0F) ]; } } macopix-1.7.4/src/ssl.h0000644000076400007640000000533610625664335011676 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // ssl.h // Heade for SSL (OpenSSL) management // originated from Libsylph 2.4.0 (see blow) // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * LibSylph -- E-Mail client library * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __SSL_H__ #define __SSL_H__ #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifdef USE_SSL #include #ifdef USE_OPENSSL #include #include #include #include #include #endif #ifdef USE_GNUTLS #include #endif typedef enum { SSL_METHOD_SSLv23, SSL_METHOD_TLSv1 } SSLMethod; void ssl_init (void); void ssl_done (void); SSL *ssl_init_socket (gint fd, char *server, gint ssl_cert_res, gchar **subject, gchar **issue, glong *verify); SSL *ssl_init_socket_with_method (gint fd, char *server, gint ssl_cert_res, gchar **subject, gchar **issue, glong *verify, SSLMethod method); void ssl_done_socket (SSL *ssl); #endif /* USE_SSL */ #endif /* __SSL_H__ */ macopix-1.7.4/src/main.h0000644000076400007640000004567111030075127012011 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // main.h // Configuration header for MaCoPiX // // Copyright 2002-2008 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // // // difference between Gtk+2 version // // - Translucent mascot and biff images // gdk_window_set_opacity // Gtk+ 2.12 // // - Tooltip for clock (__GTK_TOOLTIP_H__) // Gtk+2.12 // If no, use Gtktooltips. // // - Auto detection of composited or not // gtk_widget_is_composited // Gtk+2.10 // If no, flag_composite=COMPISTE_UNKNOWN // // - Text layout for Cairo (__PANGOCAIRO_H__) // pango/pangocairo.h // Gtk+2.10 // If no, use cairo_show_text. // // - Icon on GNOME system tray (__GTK_STATUS_ICON_H__) // gtkstatusicon.h // Gtk+2.10 // // - Translucent Clock and Balloon (USE_CAIRO) // cairo/cairo.h // Gtk+2.8?? // // - Combo Box (__GTK_COMBO_BOX__) // gtkcombobox.h // Gtk+ 2.4 // If no, use GtkCombo. // // - Color Button (__GTK_CLOR_BUTTON__) // gtkcolorbutton.h // Gtk+ 2.4 // If no, use GtkColorSelection and GtkButton. // // - File Chooser (__GTK_FILE_CHOOSER__) // gtkfilechooser.h // Gtk+ 2.4 // If no, use GtkFileSelection. // // - Icon on menus (__GTK_STOCK_H__) // gtkstock.h // Gtk+ 2.2 (Some Items could be replaced by Gtk+ version.) // // #ifndef MAIN_H #define MAIN_H 1 #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include #include #include #include //#include #ifndef DISABLE_CAIRO #if defined(CAIRO_H) #define USE_CAIRO #endif #endif #ifdef USE_CAIRO #include #endif #include "version.h" #include "configfile.h" #include "intl.h" #include "libpop.h" // Homepage URL #define DEFAULT_URL "http://rosegray.sakura.ne.jp/" // ¥Ý¥Ã¥×¥¢¥Ã¥×¥á¥Ã¥»¡¼¥¸ #define GTK_MSG // ¥Þ¥¹¥³¥Ã¥È¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define MASCOT_EXTENSION "*.mcpx" // ¥á¥Ë¥å¡¼¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define MENU_EXTENSION "*.menu" // LZH¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define LZH_EXTENSION "*.lzh" // tar.gz¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define TAR_EXTENSION "*.tar.gz" #define MENU_EXTRACT_GTAR_COMMAND "tar -zxf %s -C %s " // MENU enum{ MENU_MENU, MENU_LHA, MENU_TAR }MENU_EXT; // ²èÁü¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define PNG_EXTENSION "*.png" #define GIF_EXTENSION "*.gif" #define XPM_EXTENSION "*.xpm" // ¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #ifdef USE_WIN32 #define RC_EXTENSION "*.ini" #else #define RC_EXTENSION "*.rc" #endif // ¤Î¤Ã¤«¤ê¥­¥ã¥éÄêµÁ¥Õ¥¡¥¤¥ëÍѳÈÄ¥»Ò #define NKR_EXTENSION "*.ini" // ¤Î¤Ã¤«¤ê¥­¥ã¥éÍÑ BMP¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò #define BMP_EXTENSION "*.bmp" // ¸Ä¿ÍÍÑÀßÄꥻ¡¼¥Ö¥Ç¥£¥ì¥¯¥È¥ê // (home¤Î¤·¤¿¤«¤é¤ÎÁêÂХǥ£¥ì¥¯¥È¥ê) #ifdef USE_WIN32 #define USER_DIR "UserData" G_DIR_SEPARATOR_S #else #define USER_DIR ".macopix" G_DIR_SEPARATOR_S #endif #define PIXDIR "pixmap" G_DIR_SEPARATOR_S #define SOUNDDIR "sound" G_DIR_SEPARATOR_S // Folder enum{ FOLDER_DEFAULT, FOLDER_PIX, FOLDER_SOUND, FOLDER_CURRENT }MaCoPiXFolder; // ¸Ä¿ÍÍÑ¥»¡¼¥Ö¥Õ¥¡¥¤¥ë // (USER_DIRÃæ¤ËºîÀ® : ¥Þ¥¹¥³¥Ã¥ÈÈó°Í¸¥Ñ¥é¥á¡¼¥¿¤òÊݸ) #ifdef USE_WIN32 #define USER_RCFILE "macopix.ini" #else #define USER_RCFILE "macopix.rc" #endif // ¥«¥Æ¥´¥ê¡¼¿·µ¬ºîÀ®»þ¤Î¥Æ¥ó¥Ý¥é¥ê¥Í¡¼¥à #define TMP_CATEGORY_NAME "(New Category)" // ¥Þ¥¹¥³¥Ã¥È¤Î¥Ç¥Õ¥©¥ë¥È¥³¡¼¥É #define DEF_CODE1 "EUC-JP" #define DEF_CODE2 "SJIS-WIN" // ¥Õ¥©¥ó¥È #ifdef USE_WIN32 #define FONT_CLK "arial bold 9" #define FONT_BAL "ms pgothic 9" #else #ifdef USE_GTK2 #define FONT_CLK "Sans 14" #define FONT_BAL "Sans 10" #else #define FONT_CLK "-alias-fixed-bold-r-normal-*-*-160-*-*-c-*-*" #define FONT_BAL "-alias-fixed-bold-r-normal-*-*-120-*-*-c-*-*" #endif #endif // »þ·×¹¹¿·»þ´Ö [msec] #define INTERVAL 100 // CLOCK_MODE enum{ CLOCK_NO, CLOCK_PIXMAP, CLOCK_PANEL }ClockMode; //ANIME #define MAX_PIXMAP 64 #define MAX_ANIME_FRAME 64 #define MAX_ANIME_PATTERN 10 //MENU #define MAX_MENU_CATEGORY 20 #define MAX_MENU_CATEGORY2 99 #define MAX_MENU_TARGET 40 //DEFAULT PARAMETER for Clock & Balloon #ifdef USE_WIN32 #define INIT_CLK_POS 20 #define INIT_CLK_TEXT 4 #define INIT_CLK_BORDER 0 #else #define INIT_CLK_POS 20 #define INIT_CLK_TEXT 5 #define INIT_CLK_BORDER 2 #endif #define INIT_CLK_SD 1 #define INIT_BAL_TEXT 3 #define INIT_BAL_BORDER 1 // Home Position »ØÄê»þ¤Î¥ª¥Õ¥»¥Ã¥È // OS, Wndow Manager, X¤ÎVersion¤ÇÊѲ½¤¹¤ë¤«¤â? #define ROOTOFF_X 0 #define ROOTOFF_Y (-10) // Home Position Mode enum{ HOMEPOS_NEVER, HOMEPOS_VANISH, HOMEPOS_BAR } HomePos; // MOVE mode enum{ MOVE_FIX, MOVE_FOCUS }MoveMode; // Focus Follow ´ð½à°ÌÃÖ enum{ FF_SIDE_LEFT, FF_SIDE_RIGHT } FFPos; // Focus Autobar ¥¿¥¤¥È¥ë¥Ð¡¼»»½ÐË¡ enum{ AUTOBAR_MANUAL, AUTOBAR_ORDINAL, AUTOBAR_COMPIZ } AutoBar; // Balloon Position enum{ BAL_POS_LEFT, BAL_POS_RIGHT } PosBalloon; // Balloon Mode enum{BALLOON_NORMAL, BALLOON_MAIL, BALLOON_POPERROR, BALLOON_SOCKMSG, BALLOON_DUET, BALLOON_SYS } TypBalloon; // BiffÍÑ Balloon¤Î¼«Á³¾ÃÌÇ¥³¥Þ¿ô #define BALLOON_EXPIRE 150 // SocketÍÑ Balloon¤Î¼«Á³¾ÃÌÇ¥³¥Þ¿ô #define SOCK_BALLOON_EXPIRE 100 // Sockmsg¡¡¤Ç¤Õ¤­¤À¤·¤ò¥¿¥¤¥Ô¥ó¥°É÷¤Ë¤¹¤ë¤«¤É¤¦¤« typedef enum { SOCK_NORMAL, SOCK_STEPPING } SockMsgType; // Sockmsg ¥¿¥¤¥Ô¥ó¥°¤Ç¤Î¥³¥Þ´Ö³Ö #define SOCK_INTERVAL 1 // SysÍÑ Balloon¤Î¼«Á³¾ÃÌÇ¥³¥Þ¿ô #define SYS_BALLOON_EXPIRE 50 // ¥Þ¥¹¥³¥Ã¥ÈSocket¤ÎÈ¿±þ¥Ç¥£¥ì¥¤ ¥³¥Þ¿ô #define DEF_DUET_DELAY 20 // Duet Anime mode enum{ DUET_CLICK, DUET_RANDOM }DuetAnimeMode; // Interpolation Style for Magnification enum{ MAG_IP_NEAREST, MAG_IP_TILES, MAG_IP_BILINEAR, MAG_IP_HYPER } TypInterpolate; //Clock ¥¿¥¤¥× enum{ CLOCK_TYPE_24S, CLOCK_TYPE_24M, CLOCK_TYPE_12S, CLOCK_TYPE_12M } ClockType; // Font size ratio for AM/PM sign #ifdef USE_CAIRO #define CLOCK_AMPM_RATIO 0.6 #endif // Install mode enum{ MENU_SELECT, MENU_INSTALL_USER, MENU_INSTALL_COMMON, START_MENU_SELECT, START_MENU_INSTALL_USER, START_MENU_INSTALL_COMMON, } MenuSelect; #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) || defined(USE_WIN32) //DEFAULT Alpha #define DEF_ALPHA_MAIN 100 #ifdef USE_BIFF #define DEF_ALPHA_BIFF 100 #endif #endif #ifdef USE_WIN32 #define DEF_ALPHA_BAL 80 #define DEF_ALPHA_CLK 50 #endif #ifdef USE_CAIRO #define CAIRO_DEF_ALPHA_OTHER 0xFFFF #define CAIRO_DEF_ALPHA_SDW 0xB000 #ifdef USE_WIN32 #define CAIRO_DEF_ALPHA_CLK 0xFFFF #define CAIRO_DEF_ALPHA_BAL 0xFFFF #else #define CAIRO_DEF_ALPHA_CLK 0x9000 #define CAIRO_DEF_ALPHA_BAL 0xB000 #endif #endif #ifdef USE_CAIRO // SHADOW #ifdef USE_WIN32 #define CAIRO_SHADOW_X 2.0 #define CAIRO_SHADOW_Y 2.0 #else #define CAIRO_SHADOW_X 2.3 #define CAIRO_SHADOW_Y 2.3 #endif #define CAIRO_SHADOW_ALPHA 40 #endif //DEFAULT COLOR #ifdef USE_WIN32 #define COLOR_CLK_R 0xffff #define COLOR_CLK_G 0xf600 #define COLOR_CLK_B 0xde00 #define COLOR_CLKSD_R 0x0000 #define COLOR_CLKSD_G 0x0000 #define COLOR_CLKSD_B 0x0000 #define COLOR_CLKBG_R 0x2100 #define COLOR_CLKBG_G 0x0000 #define COLOR_CLKBG_B 0x0000 #define COLOR_CLKBD_R 0xffff #define COLOR_CLKBD_G 0xdc00 #define COLOR_CLKBD_B 0xbf00 #else #define COLOR_CLK_R 0xffff #define COLOR_CLK_G 0x0000 #define COLOR_CLK_B 0x0000 #define COLOR_CLKSD_R 0x7fff #define COLOR_CLKSD_G 0x7fff #define COLOR_CLKSD_B 0x7fff #define COLOR_CLKBG_R 0xffff #define COLOR_CLKBG_G 0xcfff #define COLOR_CLKBG_B 0xcfff #define COLOR_CLKBD_R 0xcfff #define COLOR_CLKBD_G 0x7fff #define COLOR_CLKBD_B 0x7fff #endif #define COLOR_BAL_R 0x4B55 #define COLOR_BAL_G 0x30E2 #define COLOR_BAL_B 0x2527 #define COLOR_BALBG_R 0xffff #define COLOR_BALBG_G 0xfa80 #define COLOR_BALBG_B 0xdbff #define COLOR_BALBD_R 0x7e9f #define COLOR_BALBD_G 0x67d2 #define COLOR_BALBD_B 0x53f4 // for Callback of Configuration Dialog enum{CONF_FONT_CLK, CONF_FONT_BAL, CONF_DEF_FONT_CLK, CONF_DEF_FONT_BAL, INIT_DEF_FONT_CLK, INIT_DEF_FONT_BAL} GuiFontConf; enum{CONF_COLOR_CLK, CONF_COLOR_CLKBG, CONF_COLOR_CLKBD, CONF_COLOR_CLKSD, CONF_COLOR_BAL, CONF_COLOR_BALBG, CONF_COLOR_BALBD, CONF_DEF_COLOR_CLK, CONF_DEF_COLOR_CLKBG, CONF_DEF_COLOR_CLKBD, CONF_DEF_COLOR_CLKSD, CONF_DEF_COLOR_BAL, CONF_DEF_COLOR_BALBG, CONF_DEF_COLOR_BALBD} GuiColorConf; enum{ SET_RELEASE_BALLOON, SET_RELEASE_CLOCK } SetReleaseData; // Setting for BIFF #define DEF_MAIL_INTERVAL 60 enum{ MAIL_NO, MAIL_LOCAL, MAIL_POP3, MAIL_APOP, MAIL_QMAIL, MAIL_PROCMAIL } MailStatus0; enum{ MAIL_PIX_LEFT, MAIL_PIX_RIGHT } MailPixPos; #undef POP_DEBUG /* pop3 debugging mode */ #define POP3_PORT_NO 110 /* pop3 port */ #ifdef USE_SSL #define POP3_SSL_PORT_NO 995 /* pop3 over SSL port */ #endif #define POP3_OK 0 /* pop3 ok */ #define POP3_OK_NORMAL 0 /* pop3 ok */ #define POP3_OK_FS_OVER 1 /* pop3 ok but FS overflow */ #define POP3_ERROR (-1) /* pop3 error status for data read */ #define POP3_SSL_CERT (-2) /* pop3 error status for waiting ssl certificate */ #define POP3_ERROR_MESSAGE "POP access error" #define POP3_MAX_FS 40 #define SPAM_M_SPAMASSASIN "X-Spam-Flag: YES" #define SPAM_M_POPFILE "X-Text-Classification: spam" #define SPAM_CHECK TRUE #define PROCMAILRC G_DIR_SEPARATOR_S ".procmailrc" #define MH_MAIL_DIR G_DIR_SEPARATOR_S "Mail" #define PROCMAIL_LOG G_DIR_SEPARATOR_S "procmail.log" #define BIFF_TOOLTIPS TRUE enum{ NO_MAIL, OLD_MAIL, NEW_MAIL, KEEP_NEW_MAIL } MailStatus; // mail status; array subscripts #define BIFF_WIN_WIDTH 540 // Default_Size of Biff Window #define BIFF_WIN_HEIGHT 250 #define NKR_WIN_WIDTH 540 // Size of NKR Convert Log Window #define NKR_WIN_HEIGHT 150 #define SMENU_WIN_WIDTH 500 // Size of SMENU Window #define SMENU_WIN_HEIGHT 200 // ¥«¡¼¥½¥ë #define CURSOR_NORMAL GDK_TCROSS #define CURSOR_PUSH GDK_CROSS_REVERSE #define CURSOR_DRAG_H GDK_SB_H_DOUBLE_ARROW #define CURSOR_DRAG_F GDK_PLUS #define CURSOR_BIFF GDK_QUESTION_ARROW #define CURSOR_CLK GDK_ARROW // ¥¨¥é¡¼¥Ý¥Ã¥×¥¢¥Ã¥×¤Î¥¿¥¤¥à¥¢¥¦¥È[sec] #define POPUP_TIMEOUT 2 // »þÊóÍÑÀßÄê enum{ SIGACT_NO, SIGACT_CLICK, SIGACT_CHANGE } SignalAction; // Consistency Check enum{ CONS_MANUAL, CONS_AUTOOW, CONS_IGNORE } ConsMode; // ¥á¥Ë¥å¡¼¤Î¾ì½ê enum{ SMENU_DIR_COMMON, SMENU_DIR_USER } ScanMenuDir; typedef enum { SSL_NONE, SSL_TUNNEL, SSL_STARTTLS } SSLType; typedef enum { SSL_CERT_NONE, SSL_CERT_ACCEPT, SSL_CERT_DENY } SSLCertRes; // COMPOSITE_FLAG enum{ COMPOSITE_FALSE, COMPOSITE_TRUE, COMPOSITE_UNKNOWN }CompositeFlag; // ¥é¥ó¥À¥àÀ¸À®ÍÑ´Ø¿ô #define RANDOMIZE() srand(time(NULL)+getpid()) #define RANDOM(x) (rand()%(x)) // ¥×¥í¥°¥ì¥¹¥Ð¡¼Íѹ½Â¤ÂÎ typedef struct _ProgressData { GtkWidget *pbar; GtkWidget *dialog; } ProgressData; // ¥Ö¥í¥Ã¥¯¥ë¡¼¥×Íѹ½Â¤ÂÎ typedef struct{ int next; int seq; int seqend; int min; int max; }BlockLoop; // ²èÁü¥Õ¥¡¥¤¥ëÍѹ½Â¤ÂÎ typedef struct{ //gchar **xpm_data; gchar *filename; GdkPixmap *pixmap; GdkBitmap *mask; #ifdef USE_WIN32 GdkPixmap *pixmap_sdw; GdkBitmap *mask_sdw; #endif }typSprite; // ¤Õ¤¿¤Ä¤Îglong¹½Â¤ÂΡ¡(x,y) (w,h)¤Ê¤É typedef struct{ glong x; glong y; gboolean flag; }MyXY; // ¥«¡¼¥½¥ë¹½Â¤ÂÎ typedef struct _typCursor typCursor; struct _typCursor{ GdkCursor *normal; GdkCursor *push; GdkCursor *drag_f; GdkCursor *drag_h; GdkCursor *biff; GdkCursor *clk; }; // »þÊóÍѹ½Â¤ÂÎ typedef struct _typSignal typSignal; struct _typSignal{ gint type; gchar *com; gboolean flag; }; #ifdef USE_CAIRO // PangoCairo FontÊÑ´¹ÍÑ typedef struct _myPangoCairo myPangoCairo; struct _myPangoCairo{ gchar *family; gdouble pointsize; cairo_font_slant_t slant; cairo_font_weight_t weight; }; #endif // ¥á¥Ë¥å¡¼¥¹¥­¥ã¥óÍѹ½Â¤ÂÎ typedef struct _typScanMenu typScanMenu; struct _typScanMenu{ gchar *file[MAX_MENU_CATEGORY2]; gint dir[MAX_MENU_CATEGORY2]; gint num[MAX_MENU_CATEGORY2]; gchar *cat[MAX_MENU_CATEGORY2]; gboolean flag_combine[MAX_MENU_CATEGORY2]; gint max_menu; }; // ¥á¥¤¥ëÍѹ½Â¤ÂÎ typedef struct _typMail typMail; struct _typMail{ gboolean flag; gint type; gchar *pop_id; gchar *pop_pass; gboolean pop_save; gchar *pop_server; gint pop_port; gboolean pop_child_fl; gboolean pop_readed; gchar *file; gchar *polling; gchar *mailer; gint interval; gchar *pix_file; gint pix_pos; gint pix_x; gint pix_y; gchar *word; gchar *sound; off_t size; time_t last_check; int count; // mailcount in server int new_count; int fetched_count; // fetched fs this access int displayed_count; // displayed fs signed int status; signed int pop3_fs_status; gint proc_id; GdkPixmap *pixmap; GdkBitmap *mask; //GtkWidget *w_draw; //GtkWidget *e_draw; #ifndef __GTK_TOOLTIP_H__ GtkTooltips *tooltips; #endif gboolean tooltips_fl; gboolean drag; gchar *fs_max; gint win_width; gint win_height; gboolean spam_check; gchar *spam_mark; gint spam_count; gint pop_max_fs; gchar *last_f; gchar *last_s; guint ssl_mode; gint ssl_cert_res; gboolean ssl_cert_skip; gboolean ssl_nonblock; gchar *ssl_sub; gchar *ssl_iss; glong ssl_verify; }; typedef struct _typMascot typMascot; struct _typMascot{ char *file; char *rcfile; gchar *inifile; gchar *name; gchar *copyright; int nPixmap; int x; int y; int xfix; int yfix; int height; int width; #ifdef USE_WIN32 int sdw_height; #endif gint magnify; gint ip_style; int height_root; int width_root; gboolean flag_install; gboolean flag_common; gboolean flag_ow; gboolean flag_ow_ini; gboolean drag; gboolean clk_drag; #ifdef USE_GTK2 PangoFontDescription *fontclk; PangoFontDescription *fontbal; #else GdkFont *fontclk; GdkFont *fontbal; #endif gchar *fontname_bal; gchar *fontname_clk; gchar *deffontname_bal; gchar *deffontname_clk; #ifdef USE_CAIRO myPangoCairo fontbal_pc; myPangoCairo fontclk_pc; #endif typSprite *sprites; int clkmode; int clk_x; int clk_y; int clktext_x; int clktext_y; gint clksd_x; gint clksd_y; int wclkbd; int wbalbd; int baltext_x; int baltext_y; int balseq; gint balwidth; gint balheight; //GtkWidget *w_drawing; GdkGC *gc_main[2]; GdkGC *gc_mainsd[2]; GdkGC *gc_clk[2]; GdkGC *gc_clksd[2]; GdkGC *gc_clkbg[2]; GdkGC *gc_clkbd[2]; GdkGC *gc_clkmask[2]; GdkGC *gc_bal[2]; GdkGC *gc_balbg[2]; GdkGC *gc_balbd[2]; GdkGC *gc_balmask[2]; GdkColor *def_colclk; GdkColor *def_colclksd; GdkColor *def_colclkbg; GdkColor *def_colclkbd; GdkColor *def_colbal; GdkColor *def_colbalbg; GdkColor *def_colbalbd; GdkColor *colclk; GdkColor *colclksd; GdkColor *colclkbg; GdkColor *colclkbd; GdkColor *colbal; GdkColor *colbalbg; GdkColor *colbalbd; #ifdef USE_CAIRO gint def_alpclk; gint def_alpclksd; gint def_alpclkbg; gint def_alpclkbd; gint def_alpbal; gint def_alpbalbg; gint def_alpbalbd; gint alpclk; gint alpclksd; gint alpclkbg; gint alpclkbd; gint alpbal; gint alpbalbg; gint alpbalbd; gboolean force_def_alpha; gint alpha_main; gint def_alpha_main; #ifdef USE_BIFF gint alpha_biff; gint def_alpha_biff; #endif #endif #ifdef USE_WIN32 gint alpha_bal; gint def_alpha_bal; gint alpha_clk; gint def_alpha_clk; #endif #ifdef USE_CAIRO gboolean flag_img_cairo; gboolean flag_bal_cairo; gboolean flag_clk_cairo; #endif gboolean flag_clksd; gboolean flag_clkrd; #ifdef USE_WIN32 gboolean def_flag_clkfg; gboolean flag_clkfg; gboolean def_flag_balfg; gboolean flag_balfg; #endif gint clktype; gboolean clk_pm; char digit[20]; int anime_ptn; int anime_frm; int anime_seq; int anime_seqend; int frame_num[MAX_ANIME_PATTERN]; int frame_pix[MAX_ANIME_PATTERN][MAX_ANIME_FRAME]; int frame_min[MAX_ANIME_PATTERN][MAX_ANIME_FRAME]; int frame_max[MAX_ANIME_PATTERN][MAX_ANIME_FRAME]; BlockLoop frame_loop[MAX_ANIME_PATTERN+1][MAX_ANIME_FRAME]; int random_weight[MAX_ANIME_PATTERN]; int click_weight[MAX_ANIME_PATTERN]; char *click_word[MAX_ANIME_PATTERN]; gint bal_lxoff[MAX_ANIME_PATTERN]; gint bal_lyoff[MAX_ANIME_PATTERN]; gint bal_rxoff[MAX_ANIME_PATTERN]; gint bal_ryoff[MAX_ANIME_PATTERN]; int random_total; int click_total; gint move; gboolean raise_force; gboolean raise_kwin; guint focus_autobar; #ifdef USE_WIN32 gboolean task_force; #endif gboolean no_capbar; gint bar_size; gint bar_offset; gint xoff; gint yoff; gint homepos_nf; gint homepos_out; gint homepos_nb; gboolean home_auto; gboolean home_auto_vanish; gint home_x; gint home_y; gint ff_side; gint offset; gboolean flag_xp; gint offsetp; gboolean flag_menu; gint pixmap_page; gint bal_page; gint clk_page; gint bal_mode; gint bal_defpos; gint bal_pos; gchar *menu_file; gchar *installed_menu_dir; gchar *menu_cat[MAX_MENU_CATEGORY]; gchar *menu_tgt[MAX_MENU_CATEGORY][MAX_MENU_TARGET]; gchar *menu_tgt_name[MAX_MENU_CATEGORY][MAX_MENU_TARGET]; gint menu_cat_max; gint menu_tgt_max[MAX_MENU_CATEGORY]; gint menu_total; gchar *sound_command; #ifndef USE_WIN32 gchar *tar_command; #endif gchar *click_sound[MAX_ANIME_PATTERN]; typSignal signal; typMail mail; gboolean flag_consow; gint cons_check_mode; gchar *sockmsg; gint sockmsg_expire; gint sockmsg_expire_def; gint sockmsg_type; gint sockmsg_step; gchar *sysmsg; gboolean duet_open; gchar *duet_file; gchar *duet_tgt[MAX_ANIME_PATTERN]; gint duet_ptn[MAX_ANIME_PATTERN]; gchar *duet_word[MAX_ANIME_PATTERN]; gint duet_delay[MAX_ANIME_PATTERN]; gint duet_seq; gint duet_mode; gboolean duet_use_click; gboolean duet_use_random; typCursor cursor; gchar *code; gchar *menu_code; ProgressData *pdata; //#if GTK_CHECK_VERSION(2, 10, 0) #ifdef __GTK_STATUS_ICON_H__ GtkStatusIcon *tray_icon; gboolean tray_icon_flag; #endif #if GTK_CHECK_VERSION(2,12,0) || defined(USE_CAIRO) gint flag_composite; gint force_composite; #endif #ifdef USE_CAIRO gint sdw_flag; gfloat sdw_x; gfloat sdw_y; gint sdw_alpha; #endif gint sdw_x_int; gint sdw_y_int; }; #endif macopix-1.7.4/src/md5ify.c0000644000076400007640000000431210622155771012252 00000000000000// MaCoPiX = Mascot Construnctive Pilot for X // (ActX / Gtk+ Evolution) // // // md5ify.c // MD5 message-digest algorithm // originated from fetchmail *** see below copyright *** // // Copyright 2002-2007 K.Chimari // http://rosegray.sakura.ne.jp/ // // // 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 St, Fifth Floor, Boston, MA 02110-1301 USA. // /* * For license terms, see the file COPYING in this directory. */ /*********************************************************************** module: md5ify.c project: fetchmail programmer: Carl Harris, ceharris@mal.com description: Simple interface to MD5 module. ***********************************************************************/ #include "main.h" #ifdef USE_BIFF #include #include #if defined(STDC_HEADERS) #include #endif #include "md5.h" char * MD5Digest (unsigned char *s) { int i; /*MD5_CTX context;*/ GMD5* context; /*unsigned char digest[16];*/ gchar* digest; static char ascii_digest [33]; /*MD5Init(&context);*/ context = gnet_md5_new_incremental(); /*MD5Update(&context, s, strlen(s));*/ gnet_md5_update (context,s,strlen(s)); /*MD5Final(digest, &context);*/ gnet_md5_final(context); digest = gnet_md5_get_string(context); /*for (i = 0; i < 16; i++) sprintf(ascii_digest+2*i, "%02x", digest[i]);*/ sprintf(ascii_digest,"%s",digest); g_free(digest); gnet_md5_delete(context); return(ascii_digest); } #endif // USE_BIFF macopix-1.7.4/src/tar32.dll0000755000076400007640000130000010465046544012340 00000000000000MZÿÿ¸@øº´ Í!¸LÍ!This program cannot be run in DOS mode. $à¯W ¤Î9ó¤Î9ó¤Î9óßÒ5ó¢Î9ó'Ò7ó¹Î9óËÑ2ó²Î9óËÑ3ó<Î9ó[î3ó£Î9óÆÑ*ó¡Î9ó¤Î8ó!Î9ó¢í3ó¯Î9ó¢í2ó©Î9ócÈ?ó¥Î9ó[î=ó¥Î9óRich¤Î9óPELÃ@ÓDà! €$€ª™ Ÿ<@pPh0 .text ò `.rdata °@@.data¤zÀpÀ@À.rsrcp@0@@.relocî8P@@@BQŠT$‹ÁŠL$ˆH3ɉH ‰H‰HˆPƒÊÿ‰H‰H ‰H$‰P(‰H0‰P,ljH8YÃV‹ñèöD$t V軃ċÆ^Âjÿh(âd¡Pd‰%QSV‹ñ‰t$Ç3Û‰\$èÇ8‹F;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë QèZƒÄ‰^‰^ ‰^$‹F ;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qè-ƒÄ‹L$ ‰^ ‰^‰^^[d‰ ƒÄÃQSUV‹ñW‹|$ƒÉÿ3Àò®÷ÑI‰t$‹Ùnƒûývèó‹M3ÿ;ÏtŠAÿ„Àt<ÿt;ßu4þȈAÿ‰}‰}‰} ëS;ßu j‹ÍèëD‹E ƒøw;Ãsj‹ÍèìS‹Íè„‹t$‹}‹Ë‹ÁÁéó¥‹Èƒáó¤‹M‹t$‰]3ÿÆ‹T$‹D$RPèn?3É;ljF8_•Á^]ŠÁ[Y‹D$‹T$P‹A8RPèmA‹D$‹T$P‹A8RPèAÂV‹ñ‹F8…Àt Pè AÇF8^ÃjÿhHâd¡Pd‰%ƒì$‹A V…ÀÇD$t<‹t$8ŠAWyj‹Îˆèò‹ dQjW‹Îèá‹Æ_^‹L$$d‰ ƒÄ0‹I …Éu¹`T$QRèåƒÄ‹D$ÇD$0ƒøvc‹ dƒÀüQT$PRL$èø‹@…Àu¸`ShœÀPè@…ƒÄL$…Àj”Ãè]„Û[t‹D$‹t$8ƒÀüL$PjVè°ë‹t$8L$hÀQVèªƒÄ ‹L$ …Ét.ŠAÿ„Àt<ÿtþȈAÿ‹Æ^‹L$$d‰ ƒÄ0ÂIQè¤ ƒÄ‹L$(‹Æ^d‰ ƒÄ0ÂV‹ñ‹F…ÀtHÿŠ@ÿ„Àt <ÿtþȈë Qè\ ƒÄÇFÇFÇF ^ÃQSU‹l$V‹ñ3ÀŠL$W‹|$‰D$ˆM‰E‰E‰E 9~sè;‹F‹L$ ‹Ø+ß;Ës‹Ù;î…±‹E‹5dß;Ãsè‹ÍèÝ‹E+Ã;Æs‹ð…öv1‹U+ÆP 1PQèkÖ‹]ƒÄ +Þ‹ÍjSèi„ÀtS‹Íè=‹Í‹ß蔋E;Çs‹Ø…ۆƋM+ÃPRQè#Ö‹uƒÄ +ó‹ÍjVè!„À„œV‹Íèñ_‹Å^][Y …ÛvL;ØuH‹F…Àu¸`€xÿþs6j‹Íèt‹F…Àu¸`‰E‹N‰M‹V ‰U ŠHÿþÁ_ˆHÿ‹Å^][Y jS‹Íè­„Àt,‹F…Àu¸`‹Ë48‹}‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ_‹Å^][Y SUV‹t$W‹|$‹é9wsè ‹G‹L$‹Ø+Þ;Ës‹Ù;ï…µ‹E‹=dÞ;Ãsè• ‹Íèd‹E+Ã;Çs‹ø…ÿv6‹M+ÇËP9RQèóÔ‹uƒÄ +÷‹ÍjVèñ„Àt ‹E‰uÆ‹t$‹Í‹þè‹E;Æs‹ø…ÿ†L‹M+ÇP9RQè¥Ô‹uƒÄ +÷‹ÍjV裄À„"V‹Íès_‹Å^][ 3Ò;Úvq;Øum‹G;Âu¸`€xÿþs[‹E;ÂtHÿŠ@ÿ„Àt <ÿtþȈë Qè ƒÄ3Ò‰U‰U‰U ‹G;Âu¸`‰E‹O‰M‹W ‰U ŠHÿþÁ_ˆHÿ‹Å^][ ‹Íè,;ÃsèN ‹M…Ét%ŠAÿ„Àt<ÿt…ÛuAþÈSˆAÿ‹Íèp_‹Å^][ …Ûuj‹ÍèZ_‹Å^][ ‹E ƒøw;Ãsj‹Íè<S‹ÍèÔ‹G…Àu¸`‹}‹Ëð‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ _‹Å^][ ŠD$V„À‹ñt$‹F…ÀtHÿŠ@ÿ„Àt <ÿtþȈë Qè„ ƒÄÇFÇFÇF ^‹D$‰A‹IÆÂSVW‹|$ƒÿý‹ñvè8 ‹F3Û;Ãt*ŠHÿ:Ët#€ùÿt;û…ÚþÉ_ˆHÿ‰^‰^‰^ ^2À[ŠL$;ûuV:ËtA;Ãt,HÿŠ@ÿ:Ãt<ÿtþÈ_ˆ‰^‰^‰^ ^2À[ÂQèÁƒÄ‰^‰^‰^ _^2À[Â;Ãt‰^ˆ_^2À[Â:Ët]‹N ƒùw;Ïs^;Ãt4HÿŠ@ÿ:Ãt!<ÿtþÈWˆ‹Î‰^‰^‰^ èU_^°[ÂQèWƒÄW‹Î‰^‰^‰^ è3_^°[Â9~ sW‹Îè_^°[¸ýÿÿÿÃU‹ìjÿh`âd¡Pd‰%ƒì ‹ESV‹ðƒÎW‹Ùƒþý‰eð‰]è‰uìv‰Eì‹ðFÇEü…À}3ÀPè¤ÔƒÄ‰Eë'‹E‰EìƒÀ…À}3ÀPè‡Ô‰EƒÄ¸zË]è‹uì‹C…Àv";Æv‹Æ‹s‹È‹E‹ÑÁéxó¥‹Êƒáó¤‹uì‹C‹{…ÀtHÿŠ@ÿ„Àt <ÿtþȈë QèCƒÄ‹EÇC@;þ‰CÆ@ÿ‰s w‹÷‹K‰s_Æ1‹Mô^d‰ [‹å]ÂSU‹é3ÒVW‹M;Ê„±ŠAÿ„À„¦<ÿ„žþÈ‹ñˆAÿ‹þƒÉÿ3À‰U‰U‰U ò®÷ÑI‹Ùƒûývè½3Ò‹M;Êt!ŠAÿ„Àt<ÿt;Úu9þÈRˆAÿ‹ÍèÝüÿÿ_^][Ã;Úuj‹ÍèËüÿÿ_^][ËE ƒøw;Ãsj‹Íè±üÿÿS‹ÍèIþÿÿ‹}‹Ë‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ _^][Ãjÿhxâd¡Pd‰%ƒì‹D$(‹dSVŠW3ÛRˆL$SPL$‰\$‰\$ ‰\$$‰\$(è7úÿÿ‹t$8ƒÉÿ‹þ3Àò®‹T$ƒÈÿ÷ÑI+‹ù‰\$(;ÇwèÊ;ûUv<‹L$S,9L$Uèhüÿÿ„Àt&‹T$‹D$‹Ï<‹ÑÁéó¥‹Êƒáó¤‹D$‰l$ˆ(‹t$4ŠL$D$ˆ‰^‰^‰^ ‹d‹ÎRSPè§ùÿÿ‹D$];Ãt/HÿŠ@ÿ:Ãt<ÿtþÈ_ˆ‹Æ^[‹L$d‰ ƒÄ ÃQè"ƒÄ‹L$ ‹Æ_^[d‰ ƒÄ Ê ì&°„Èu Ȉ ì&éh°ùèGÒYÃSV‹ñ3ÛÇ8‹F;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Q裃ĉ^‰^ ‰^$‹F ;Ãt'HÿŠ@ÿ:Ãt<ÿtþȈ‰^ ‰^‰^^[ÃQèlƒÄ‰^ ‰^‰^^[ÃQ‹A VW3ÿ;lj|$„׊AqS‹\$Uˆ‰{‰{‰{ ‹F‹ d‹è;Ís‹é;ÞuQU‹ËèÇWW‹Ë辋Ã][_^YÂ;ïvL;èuH‹F;Çu¸`€xÿþs6j‹Ëè!úÿÿ‹F;Çu¸`‰C‹N‰K‹V ‰S ŠHÿþÁ]ˆHÿ‹Ã[_^YÂjU‹ËèZúÿÿ„Àt'‹v;÷u¾`‹{‹Í‹ÁUÁéó¥‹Èƒáó¤‹Ëèúÿÿ‹Ã][_^Y‹t$ƒÁhÀQVè"ýÿÿƒÄ ‹Æ_^YÂSU‹éV‹L$W‹E;ÁsèT‹u3Û;ótRŠFÿ„ÀtK<ÿtGþÈ‹þˆFÿƒÉÿ3À‰]‰]‰] ò®÷ÑIj‹Ù‹ÍSè°ùÿÿ„Àt‹}‹Ë‹ÑSÁéó¥‹Êƒáó¤‹Íèqùÿÿ3Û‹E‹T$‹|$+Â;Çs‹ø;û†‚‹M‹T$Ê+ÇP9PQèNÌ‹uƒÄ +÷ƒþývè—‹M;Ët%ŠAÿ„Àt<ÿt;óu2þÈSˆAÿ‹Íè¹øÿÿ_‹Å^][Â;óu;Ët&_‰]‹Å^]Æ[Â9u sV‹Íè,úÿÿ‹M‰uÆ_‹Å^][‹A(‹Q,ËA0ÃV‹ñè(ýÿÿöD$t VèëƒÄ‹Æ^¸ËD$ìèƒøSVW‹Ùt_^ƒÈÿ[Ä苼$ø…ÿ~&ÿè‹÷|¾è‹L$ VQ‹ËÿP;ÆuÆ+ø…ÿÚ_^3À[ÄèÂd¡jÿh±âPd‰%S‹\$UVWjrSè Ï‹l$(ƒÄƒÎÿ…À‹D$(t ;Æu UèoƒÄ@ƒø8‡ã3ÉŠˆ !ÿ$ !j@èáÍ3ÿƒÄ;Çt1ŠT$(ŠL$(ˆP‰x ‰x‰xˆH‰x‰x ‰x$‰p(‰x0‰p,Çhëx3ÀëtjxèœÍƒÄ‰D$(3ÿ;lj|$tV‹ÈèëOh¸èx̓ĉD$(3ÿÇD$;Çt.‹Èèç1ë'j@èS̓ĉD$(3ÿÇD$;Çt ‹ÈèBïÿÿë3À‰t$‹ðSU‹Î‹ÿ„Àu";÷t ‹j‹ÎÿP3À‹L$d‰ _^][ƒÄ ËL$‹Æ_^]d‰ [ƒÄ à R s › á ‹D$ƒìdVh¤ÀPèîÏ‹ðƒÄ…öuƒÈÿ^ƒÄdÃW¹3À|$ó«VjdL$jQèxÎVèõÍŠD$ƒÄ<_uŠD$<‹uu¸^ƒÄdÃ<íu€|$«un€|$îug€|$Ûu`¸^ƒÄdËèƒÄƒýÿu3íjh€VèœÌ‹øƒÄ ƒÿÿ„ûjUWèÁ*ƒÄ ëh€hƒVèpÌƒÄ ‹øSWèþ–ƒÄ…À„Æ‹|$jrS‰G8èÄǃąÀ„ÔŒ$ÇD$4èU»Ç„$ÈJ‰\$jL$@jQL$@Ç„$Øè4jL$@‰œ$Ðèò‹T$4‹BÇD4 ‹„$ŒÇ„$Ì…Àu+j!VèbƒÄ…ÀtSPL$Dèƒ!L$<èª"L$<…Éu‹T$4jj‹BL<è^‹T$4‹B‹L8öÁtTŒ$ÇD4 ‰L$L$<Ç„$Ìè ‹T$4Œ$Ç„$Ìÿÿÿÿ‹BÇD4PJèñ2Àé·öD8u‹JSSD$$‹L dUP‹ÿR L$4èƒø…¥L$4è=‹…‘L$4èðƒÎÿ;ÆtL$4‰G<èÝ‹Ø;Þu1‰´$ÌŒ$èd Œ$Ç„$ÈJèþ2Àé#öÃâ‰_@…ëL$4è‘L$4‹ðè†ÁàL$4 ðèxÁàL$4 ðèjÁà ð}3öL$4‰wD‰w0èRL$4‰GHèFöÉGLt+L$4è5‹ðþ'}‹ÎN…É~L$4èþ'|èöÄŠT$jL$ ˆT$ è×íÿÿL$4Æ„$Ìèæƒøÿt…ÀtPjL$$èÑL$4èȃøÿuâ¡dL$PjQOTèŽëÿÿ‹dORjPè|ëÿÿjL$ Æ„$ÐèiíÿÿöÄΊD$jL$ ˆD$ èMíÿÿL$4Æ„$Ìè\‹Øƒûÿt`…Ût\‹ d‹T$$+ʃùwèÖö‹T$$jL$ zWèxíÿÿ„Àt‹D$$‹L$ ¾ÓÁŠòWL$ ˆè9íÿÿL$4è‹|$‹Øƒûÿu ‹dD$RjPOdè¿êÿÿ‹D$ Æ„$Ì…ÀtHÿŠ@ÿ„Àt <ÿtþȈë QèEöƒÄ‹D$4‹HöD 8u‹Ñjjjü‹LhT$(R‹ÿP L$4è…L$4‹ðèzÁàL$4 ðèlÁàL$4 ðè^‹L$4Áà ð‹D$‰p(Ç@,‹Q„$‰D$ÇD4 D$<Ç„$̉D$ÇD$<ØŠ„$„Æ„$Ì„Àt L$<èꋌ$€…Étj舌$ˆèL$<Æ„$ÌèË‹L$4Ç„$Ìÿÿÿÿ‹QÇD4PJëŒ$‰´$Ìè<Œ$Ç„$ÈJèØú°‹Œ$Ä_^][d‰ ÄÀÂÇ„$ÌÿÿÿÿéˆüÿÿVq\‹Îèå‹Îèî^ËD$‹T$P‹A8RPè½”ƒÄ ‹D$‹T$P‹A8RPè}—ƒÄ ‹D$‹I8P‹D$™RPQè;™ƒÄÂV‹ñ‹F8…ÀtP蜃ÄÇF8^Ãjÿhˆãd¡Pd‰%ƒì$‹A V…ÀÇD$t<‹t$8ŠAWyj‹ÎˆèRêÿÿ‹ dQjW‹ÎèAèÿÿ‹Æ_^‹L$$d‰ ƒÄ0‹I …Éu¹`T$QRèEêƒÄ‹D$ÇD$0ƒøvc‹ dƒÀýQT$PRL$èXæÿÿ‹@…Àu¸`Sh¨ÀPè jƒÄL$…Àj”Ãè½éÿÿ„Û[t‹D$‹t$8ƒÀýL$PjVèæÿÿë‹t$8L$hÀQVè íÿÿƒÄ ‹L$ …Ét.ŠAÿ„Àt<ÿtþȈAÿ‹Æ^‹L$$d‰ ƒÄ0ÂIQèóƒÄ‹L$(‹Æ^d‰ ƒÄ0ÂÇÈJé˜ø‹T$…Òt‹A ‹Q(…Òu ‹T$RPèö‹Aø‹PÇD øPJÃU‹ìjÿh ãd¡Pd‰%ƒì SVW‹ñ‰eð3Ûj‰uì‰]è‰^軄ÀuƒÏÿ醋‰]ü‹H‹L1(‹Q‹;Ãt!‹Q,‹:;ÃsO‰:‹I‹P‰3ÉŠ‹ùë‹ÿR‹øƒÿÿu ÇEèë1ÿFë,‹Eì‹‹IÈ‹A‹Q( …Òu jPè4õ¸7/Ëuì‹}è‹]èÇEüÿÿÿÿ‹‹JÎ…Ût‹A‹Q( Ã…Òu jPèýô‹Mô‹Ç_^d‰ [‹å]ÃQVWÇJ‹y4…ÿt9L$è/ù‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷è§ù…öt‹j‹Îÿ_^YÃÈÿƒÈÿÃV‹ñ‹ÿPƒøÿu À^ËF,3Ò‹I‰‹v‹H‰Š‹Â^ÃQSUVW‹|$3À…ÿ‹Ù‰D$~z‹l$‹C‹0…ötG‹K,‹…À~>;ø}‹Ç‹È‹ý‹ÑèÁéó¥‹Êƒáó¤‹L$‹|$È+ø‰L$‹K,‰|$‹1+ð‰1‹Kë‹‹ËÿPƒøÿt‹L$ˆEEAO‰L$‰|$…ÿŽ‹D$_^][YÂQSUV‹t$3ÀW…ö‹Ù‰D$~‹l$‹C ‹8…ÿtI‹K0‹…À~@;ð}‹Æ‹È‹õ‹ÑèÁéó¥‹Êƒáó¤‹L$‹|$È+ø‰L$‹K0‰|$‹1+ð‰1‹K ‹÷ë!‹3ÉŠMQ‹ËÿPƒøÿt‹L$EAN‰L$‰t$…ö‰‹D$_^][YÂV‹t$jÿ‹Îèâ ‹Æ^ÂV‹t$jÿ‹Îè ‹Æ^ ‹Á‹ …Étè…Àt‹j‹ÈÿÃQVW‹ùL$èÚö‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷èR÷‹Æ_^YÃjÿhÎãd¡Pd‰%ƒì ‹A¤W‰L$‹PÇD ¤ y¬ÇD$‰|$ ÇØŠGHÆD$„Àt‹GP…ÀtPè#½ƒÄ…Àu jP‹Ïè¶UV‹wD…ötj‹ÎèÄäÿÿVènîƒÄ‹oLÆD$ …ít9L$ èö‹E…Àv ƒøÿsH‰E‹uL$ ÷Þö÷Ö#õè†ö…öt‹j‹ÎÿÇJ‹O4^ÆD$…É]tèÝþÿÿ…Àt‹j‹Èÿ‹Gø‹HÇD9øPJ‹L$_d‰ ƒÄÃjÿhóãd¡Pd‰%ƒìSVW‹ù‰|$ÇØŠGH3Û:ÃÇD$t5‹GP;Ãt.Pè'¼ƒÄ…Àu!‹Ïˆ_H躉_P¡è&‰G@‹ è&‰O<‰_8‹wD;ót6‹F;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë QèKíƒÄV‰^‰^‰^ è9íƒÄU‹oL;ëˆ\$ t9L$èÙô‹E;Ãv ƒøÿsH‰E‹uL$÷Þö÷Ö#õèQõ;ót‹j‹ÎÿÇJ‹4;ûÇD$ ÿÿÿÿ]t9L$ èŠô‹G;Ãv ƒøÿsH‰G‹wL$ ÷Þö÷Ö#÷èõ;ót‹j‹Îÿ‹L$_^[d‰ ƒÄÃì S‹\$UVƒûÿW‹ñu _^]3À[ƒÄ ‹F ‹…Òt'‹F0‹<;×sI_‰‹v ‹H‰ˆ^‹Ã][ƒÄ ‹FP…À„m‹N8…Éu ¾ÓPRé÷‹~D‹-d‹Ïˆ\$èåÿÿ‹G;Ås‹è…ív4‹O+ÅP)PQ襵‹_ƒÄ +Ý‹ÏjSè£âÿÿ„Àt ‹O‰_Æ ‹\$ ‹~D‹d+WƒúwèÆë‹ojƒÅ‹ÏUèkâÿÿ„Àt‹O‹W3Àʉ‰A‹W‰oˆ*‹~D‹Ïè%‹G…Àu3íë‹oè‹~D‹Ïè ‹T$‹N8RUT$W‹RT$$RT$'RV@RÿPƒèt7Ht(ƒèuo¾D$‹vPVPèfÀƒÄƒøÿtX_^‹Ã][ƒÄ ‹D$L$;Át@‹nD‹Íè ‹E‹nD‹|$‹Í+øè‹VP‹mRWjUèA»ƒÄ;Çu _^‹Ã][ƒÄ Â_^]ƒÈÿ[ƒÄ ÂQSU‹éVW‹E‹…Àt<‹M 9s5‹t$ƒþÿt 3ÒŠPÿ;Öu'‹E,_‹A‰‹m‹Æ‹]K@÷ØÀ‰]#Æ^][Y‹t$‹EP…À„¢ƒþÿ„™‹M8…Éu P‹Æ%ÿPèß¿ƒÄƒøÿt|‹Æ_^][Y‹uD‹~…ÿvh‹F…ÀtŠ@ÿ„Àt<ÿt ‹ÏjQ‹Îè½àÿÿ‹F…ÀtÆ@ÿÿ‹v‹]P÷…ÿvN3ÒSŠRè‚¿ƒÄƒøÿtOué…ÿt#ƒÿs¾+÷Sè0¿ƒÄNuô_^]ƒÈÿ[Y‹uD‹d‹~…ÿ‰|$t+ŠGÿ„Àt$<ÿt j‹ÎèÐßÿÿƒÉÿ3Àò®‹D$÷ÑIQP‹Îèi‹F;Ãs‹Ø…Ûv0‹N+ÃPRQèü²‹~ƒÄ +û‹ÎjWèúßÿÿ„Àt ‹F‰~Æ‹M<‹D$_‰M@^][YÂV‹ñ‹F‹…Àt‹N,‹Ð;Âs3É^Š‹ÁÃW‹>‹ÎÿWP‹ÎÿW_^Ãì SUV‹ñW‹F‹…Àt'‹N,‹<;ÇsJ_‰‹v3Ò‹H‰Š^]‹Â[ƒÄ ËFP…Àu _^]ƒÈÿ[ƒÄ ËN8…ÉuPèÿ½ƒÄƒøÿtà_^]%ÿ[ƒÄ ËF@‹~D‰F<‹d‹Ïè]áÿÿ‹G;Ãs‹Ø…Ûv0‹O+ÃPRQèð±‹oƒÄ +ë‹ÏjUèîÞÿÿ„Àt ‹G‰oÆ(‹NPQ莽‹ØƒÄƒûÿ„Á‹~D‹d+Wƒúwèþç‹ojE‹ÏUè¥Þÿÿ„Àt‹O‹W¾ÃÊŠàˆ‹G‰oÆ(‹N<‹~D‰N@‹ÏèX‹G…Àu3Ûë‹_Ø‹~D‹Ïè>D$‹N8P‹D$‹PD$PD$$PSF@WPÿRƒètmHtƒè…Èþÿÿ‹NDƒys"‹VPRèͼ‹ØƒÄƒûÿ…?ÿÿÿ_^]ƒÈÿ[ƒÄ ËvD‹F…ÀtŠ@ÿ„Àt<ÿt ‹FjP‹ÎèÛÝÿÿ‹F…ÀtÆ@ÿÿ‹NŠˆT$‹D$_^]%ÿ[ƒÄ ÃìV‹ñ‹FP…ÀtQ‹L$‹T$QRPèp¸ƒÄ …Àu:‹NPD$PQèý¼ƒÄ…Àu%‹D$‹v@‹T$‹L$‰P‰pljH ^ƒÄ‹t$jÿ‹ÎèÅ‹Æ^ƒÄÂƒì ‹D$‹T$‰D$V+ÀW‹ù‹L$(‹ð‹GP‰|$…À‰L$„)T$ RPè–¼ƒÄ…À……öt‹GPjVPè··ƒÄ …À…ø‹WPL$ QRè@¼ƒÄ…À…ßS‹_D…ÛU„ª‹D$4‰G@‹s‹-d…ötUŠFÿ„ÀtN<ÿtJj‹ËèÜÿÿ‹þƒÉÿ3Àjò®÷ÑI‹ù‹ËW‰|$,èeÜÿÿ„Àt‹Ï‹{‹ÑÁéó¥‹Ê‹ÂƒáPó¤‹Ëè$Üÿÿ‹|$‹C;Ås‹è…ív4‹K+ÅP)RQ诋sƒÄ +õ‹ËjVèÜÿÿ„Àt ‹C‰sÆ0‹|$‹D$ ‹@‹L$‹T$]‰x[‰H_ljP ^ƒÄ  ‹t$jÿ‹ÎèJ‹Æ_^ƒÄ  V‹ñ‹FP…Àt‹L$ ‹T$QjRPè]»ƒÄ…Àu‹Æ^Â3À^‹AP…ÀtPè뻃ąÀ}ƒÈÿÃ3ÀÃV‹ñèÈñÿÿöD$t Vè›äƒÄ‹Æ^ÂVqø‹N‹PÇD øPJè—ñÿÿöD$t VèjäƒÄ‹Æ^ÂV‹ñèÈòÿÿöD$t VèKäƒÄ‹Æ^ÂVq¤W~\‹ÏèAõÿÿ‹ÏèJñÿÿöD$ t VèäƒÄ‹Æ_^ÂV‹ñè(öÿÿöD$t VèûãƒÄ‹Æ^ÂV‹ñ‹F…ÀtHÿŠ@ÿ„Àt <ÿtþȈë QèÌãƒÄŠD$ÇF¨ÇFÇF t Vè¦ãƒÄ‹Æ^¡dSUV‹ñW‹|$+F;Çwè€ã3Û;û†—‹N‹ïéƒýývèeã‹N;Ët&ŠAÿ:Ãt<ÿt;ëu5þÈ_ˆAÿ‰^‰^‰^ ‹Æ^][Â;ëu;ËtQS‹Îè½Ùÿÿ‹Æ_^][Â9n sU‹Îè÷Úÿÿ¾D$‹VŠØ‹Ï‹~Šûú‹Ã‹ÑÁàf‹ÃÁéó«‹Êƒáóª‹F‰nÆ(‹Æ_^][‹D$V‹ñ‰‹ °H‰N‹´HL$‰V èTê¡ä&L$‰Fèßê‹Æ^‹ÁÇ@$ÇIÃjÿhäd¡Pd‰%ƒì‹D$ SVW3Û‹ù;É|$‰\$ tlj_,ÇGÈJÇD$ ‰\$‹‰_‹H‹D$$Ç9PJ‹‹r‰D>(÷‹Î‰^,ÆF0 è|è9^(u‹FS ‹Î Pè9å8\$(t‹Îè è‹L$‹Ç_^[d‰ ƒÄ V‹ñè{çöD$t Vè«áƒÄ‹Æ^ÂU‹ìjÿhKäd¡Pd‰%ƒìS‹ÙVW‹‰eð‰]ì‹H‹DË…À…‹q,…öt2‹3ÿ‹BÆö@u‹@(‹È‹ÿR,ƒøÿu¿‹jW‹HÎè^îÿÿŠE„À…“‹‹H‹L öÁ„‹HUäRËè#‹ðMèÇEüèªè¹Ø!ÆEüètjP‹Îèdé…À‰EuS‹Îè¬é„À„X¡!…Àu8jè™­ƒÄ‰E…ÀÆEütjjj‹ÈèYë3ÀPÆEüèkƒÄ£!‰EMèÆEüèÈè‹MäÇEüÿÿÿÿ…Étè1ñÿÿ…Àt‹j‹Èÿ‹ÇEü‹H‹L(‹Q‹…Àt‹Q,‹Ð;Âs3ÉŠ‹Áë‹ÿRƒøÿ„„‹M%ÿ‹QöBHts‹‹H‹t(‹V‹…Àt‹N,‹<;ÇsJ‰‹F‹Q‰3ÀŠë‹‹ÎÿPƒøÿu À륋Îè¢ëœ‹Eì‹‹IÈ‹A‹Q( …Òu jPèõâ¸vAË]ìÇEüÿÿÿÿ‹‹H‹DË…Àu0°‹Môd‰ _^[‹å]ÂhäÀMØè_UØhxpRè긋A‹Q( …Òu jPèâ‹Mô_^2Àd‰ [‹å]‹A‹…Àt‹Q,‹Ð;Âs3ÉŠ‹ÁËÿbD$V‹ñPè·Ç@J‹Æ^ÂÇ@J鸃ì QL$è3D$hxpPèM¸V‹ñèÈÿÿÿöD$t Vè›ÞƒÄ‹Æ^‹D$V‹ñPèj·Ç@J‹Æ^ÂQV‹ñL$èæƒ>u ¡È!@£È!‰‹6L$èšæ‹Æ^YÃjÿhxäd¡Pd‰%ƒìX‹D$pSV‹ñ‰t$ ‰F3ÛL$‰\$hÇJè¼åhüÀL$$ÆD$lèÍîL$xÆD$hè›åL$Q蘋VƒÄ‰ ‹H‰J‹H‰J‹@ ‰B ¡Ì!;Ãu‹NhD‰ Ì!諃ĉ^L$xèæåL$ ÆD$hèï9^t‹VRèI·ƒÄ‰^‹D$p;Ãu ¡Ì!‰Fë‹L$t‰Fáÿ‰NL$ˆ\$hè•å‹L$`‹Æ^[d‰ ƒÄd ŠD$V‹ñ¨Ç€It Vè ݃ċÆ^¡Ì!PèȶYËD$ƒÁ%ÿQPè5ƒÄÂS‹\$ V‹t$ ;ót Wy¾WPè ƒÄˆF;óuì‹Æ_^[‹Æ^[‹D$ƒÁ%ÿQPèäƒÄÂS‹\$ V‹t$ ;ót Wy¾WP軃ĈF;óuì‹Æ_^[‹Æ^[ÂV‹ñèöD$t Vè܃ċÆ^ÂV‹ñ‹FÇJ…Àt ‹FPèʵƒÄÇ€I^ÃQV‹q W‹|$L$ÇD$‰7è{ã‹Fƒøÿs@‰FL$èä‹Ç_^YÂjÿh®äd¡Pd‰%ƒìSUV‹ñW‰t$(è”äL$‰F4è%ã‹=Ä!L$èã‹Gƒøÿs@‰GL$èãL$è”ãF~‰F F‰FF‰F F$‰F,F(ÇJ‰~‰F0Ç‹F jjjÇ‹N0ÇD$@Ç‹Îè©ÇD$4nLèôãL$‰Eè…â‹Ä!L$èvâ‹Cƒøÿs@‰CL$èýâL$èôâÇØÆFH‹M3Û;ËÆD$4tèSëÿÿ;Ãt‹j‹Èÿ;ët>è‰ãL$$‰Eèâ‹-Ä!L$ è â‹Eƒøÿs@‰EL$ è’âL$$è‰âFS‰F F‰FF‰F F$‰F,F(S‹Î‰^D‰~‰F0èèSSS‹Î辋|$<;ûtŠFH„ÀuGOPWQPWQ‹Îèl‰~P¡è&‰F@‹ è&‰N<‹L$,‰^8‹Æ_^][d‰ ƒÄ(ÂV‹ñ‹FP…À„ŠP訃ąÀu}ˆFHFNV‰F ‰N‰V FN$V(‰F‰N,‰V0Ç‹F Ç‹N0Ç‹V Ç‹FÇ‹N,ÇÇFP‹è&‰V@¡è&‰F<ÇF8‹Æ^Ã3À^ÃS‹\$ Uƒûý‹évèùØ‹M3Ò;Êt$ŠAÿ„Àt<ÿt;Úu>þȈAÿ‰U‰U‰U ‹Å][Â;Úuj‹ÍèÏÿÿ‹Å][‹E ƒøw;Ãsj‹ÍèèÎÿÿS‹Íè€Ðÿÿ‹ËV‹t$‹ÁW‹}Áéó¥‹È‹Åƒáó¤‹M_‰]^Æ ][ÂV‹ñW‹F…Àt]Š@ÿ„ÀtV<ÿtR‹~ƒÿývèHØ‹N…ÉtŠAÿ„Àt<ÿt…ÿu'þȈAÿ‰~‰~‰~ ë…ÿu…ÉtW‹Îè§Îÿÿë 9~ sW‹ÎèèÏÿÿ‹v…ötÆFÿÿ_^øËD$V‹ñƒø”Á…ÀˆNHu/‹NLW~L…Étè|èÿÿ…Àt‹j‹Èÿ…ÿt‹Ïè¥ÇFD_FNV‰F ‰N‰V FN$V(‰F‰N,‰V0Ç‹F Ç‹N0Ç‹V Ç‹FÇ‹N,‹D$…ÀÇtŠNH„ÉuH‰F‰N ‰NH‰F ‰N,‰N0‰FP‹è&‰V@¡è&‰F<ÇF8^ƒìVW‹ùèÿßL$ ‰è‘Þ‹5Ä!L$è‚Þ‹Fƒøÿs@‰FL$è ßL$ èß‹Ç_^ƒÄÃjÿhãäd¡Pd‰%ƒì$SUVD$W‹éP‰l$(èd‹øL$ÇD$<èÞL$ÆD$<è Þ‹5Ð!…öu‹5È!F‰5È!‰5Ð!L$èÞjV‹Ïè­Þ‹ð…öuQ‹ÏèöÞ„À„‰‹5!…öu8jè⢃ĉD$ …ÀÆD$<t V‹Èèõë3ÀPÆD$@è6ƒÄ£!‹ðL$ÆD$<èÞ‹|$‰u8…ÿÇD$<ÿÿÿÿt9L$èZÝ‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷èÒÝ…öt‹j‹Îÿ‹E8ƒÅLPQ‹Ì‰d$(Uè.L$(QèTƒÄ ‹Ø‹}‹;øÇD$<tGL$èíÜ‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷èeÝ3ÿ;÷t‹j‹Îÿ‹ ‰Mè™ë3ÿ‹L$ ÇD$<ÿÿÿÿ;Ïtè°åÿÿ;Çt‹j‹Èÿ‹t$$‹N8‹ÿP„Àt‰~89~Du$jèš¡ƒÄ;ÇtŠL$‰xˆ‰x‰x ë3À‰FD‹L$4_^]d‰ [ƒÄ0ÃhäÀL$,èwõÿÿT$(hxpRè®QV‹ñL$è Ü‹Fƒøÿs@‰FL$è’Ü^YËD$V‹ñ‹‰èÀÿÿÿ‹Æ^ÂQV‹q4W‹|$L$ÇD$‰7è«Û‹Fƒøÿs@‰FL$è2Ü‹Ç_^YÂQA‰QQ‰Q Q$‰A ‰Q,AQ(‰A‰Q0Ç‹A Ç‹Q0Ç‹A Ç‹QÇ‹A,ÇËD$‹T$‰A ‹D$‰Q‹T$‰A‹D$ ‰Q ‹T$‰A,‰Q0‹A ‹T$‰‹Q‹D$‰‹T$ +ЋA,‰ ‹Q‹D$‰‹Q ‰‹T$+ЋA0‰Âjÿhåd¡Pd‰%ƒì UVWÇD$¿L$‰|$ èƒÚL$ ÆD$ èuÚ‹5Ð!…öu‹5È!F‰5È!‰5Ð!L$ èëÚ‹D$0jVPL$8èCÞ‹l$(‹0L$0‰uè,Ú‹Fƒøÿs@‰FL$0è³Ú‰|$L$ÆD$ è¡Ú‹|$,ÆD$ …ÿt9L$0èïÙ‹G…Àv ƒøÿsH‰G‹wL$0÷Þö÷Ö#÷ègÚ…öt‹j‹Îÿ‹L$_‹Å^]d‰ ƒÄÃjÿh8åd¡Pd‰%ƒìD‹D$TV‹ñ‰t$‰FhüÀL$ ÇD$TLjIèŠâèBþ‰FL$‰V è/ã‹L$H‹Æ^d‰ ƒÄP°øËD$‹L$‹T$‰‹D$‰¸Â‹D$ ‹L$+Á‹L$;Ès‹ÁÂjÿhXåd¡Pd‰%QVL$è¸Ø‹t$L$ÇD$‰5!èØ‹Fƒøÿs@‰FL$è$ÙhðPè7žƒÄL$ÇD$ÿÿÿÿèÙ‹L$‹Æ^d‰ ƒÄÃjÿhxåd¡Pd‰%QVL$è8Ø‹t$L$ÇD$‰5!èØ‹Fƒøÿs@‰FL$è¤ØhQè·ƒÄL$ÇD$ÿÿÿÿè†Ø‹L$‹Æ^d‰ ƒÄÃjÿh˜åd¡Pd‰%ƒìVWL$ èµ×‹=!L$ÇD$èž×‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷èØ…öt‹j‹ÎÿL$ Ç!ÇD$ÿÿÿÿèï׋L$_^d‰ ƒÄÃjÿh¸åd¡Pd‰%ƒìVWL$ è׋=!L$ÇD$èþÖ‹G…Àv ƒøÿsH‰G‹wL$÷Þö÷Ö#÷èv×…öt‹j‹ÎÿL$ Ç!ÇD$ÿÿÿÿèO׋L$_^d‰ ƒÄàì&S³„Ãu âì&è â&„Ãu ââ&è[Ãh°ùèœYÃh°ùèœYÃjÿhØåd¡Pd‰%ƒìŠD$V‹ñWŠL$ 3ÿˆF‰~ ‰~‰~ƒÈÿˆN‰~‰~ ‰~$‰F(‰t$ Ç8‰~0‰F,j‰|$蛋L$ƒÄ‰†ˆdž„‰¾‰¾Œ‰~8Ç$‹Æ_^d‰ ƒÄÃV‹ñèöD$t VèÛ̓ċÆ^ÂSV‹ñ3Û‹F8Ç$;Ãt PèCœƒÄ‹†ˆPè¨ÍÇ8‹FƒÄ;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qè~̓ĉ^‰^ ‰^$‹F ;Ãt'HÿŠ@ÿ:Ãt<ÿtþȈ‰^ ‰^‰^^[ÃQèG̓ĉ^ ‰^‰^^[ÃQSUV‹éW‹|$ƒÉÿ3Àò®÷ÑI]‹ùƒÿý‰|$vèÍ‹K3ö;ÎtŠAÿ„Àt<ÿt;þu4þȈAÿ‰s‰s‰s ëS;þu j‹Ëè#ÃÿÿëD‹C ƒøw;Çsj‹Ëè ÃÿÿW‹Ëè¤Äÿÿ‹t$‹Ï‹{‹ÁÁéó¥‹È‹D$ƒáó¤‹K‰C3öÆ‹T$jwRèQšƒÄ…À…â‹D$h¤ÀP踜P½@hjW‰E8‰µ¬‰µ°èM›‰…¬‰…°f‹ƒÄ<…–€ü…¾…B‹Èƒáƒù‰M<yÁè$¹•ÁÁˆ…´‰ ¹@3À}@Æ…€Ç…¨ Ç…¤ÿÇ…˜ÿÿÿÿ‰µ”Ç…œ󫈄(@@=|ñ_^]°[YÂ_^]2À[YÂQSUVW3ÿ‹ñ‰|$辄À…¨‹l$…펜‹†‹ŽŒ+Á‹Ž„I…Áu ‹Î躄Àtx‹†‹–Œ+‹–„J#Â;Å|‹Å‹L$…À~2‹ø‹–ˆ‹žŒAŠˆQÿ‹–Œ‹ž„BK#ÓO‰–ŒuÔ‹|$‹T$øЋΉ|$+è‰T$è„À„\ÿÿÿ‹Ç_^][Y‹‹‘Œ+‹‘„J…Âu Š€„Àt°Ã2ÀÃìSUVW‹ñ‹†œ‹Ž°™ƒâ–@Áø+È„0@QPR‰Ž°èõ“‹†°ƒÄ ƒø@džœs/‹N8”0@QhjRè™‹Ž°ƒÄȉ†¬‰Ž°‹†¬…À~‹Ž°‹Á™÷¾¨+ÊÁá‰L$닆°‹–¨Áà+Â@‰D$‹¾œ‹D$;ÇŽÛ‹† ‹Ž¤;Á‹Ç‹®¨™ƒâ‹ÏƒáÁø‹œ0@¸Óû‹ÍïÓà‰®œH#Ø‹†˜ƒøÿ…‹†„‹Ž‹®Œ+ÍPÿ#Ê+Áƒø©‹†„ÑàPè–‹ŽŒ‹–ƒÄ;Ê‹øt3‹–ˆ‹ŽŒ@Š ˆPÿ‹ŽŒ‹–„AJ#Ê‹–;Ê‰ŽŒuÍ+ÇdžŒ‰†‹†ˆPèÄÈ‹†„‹Ž‹®ŒƒÄÑà+͉†„Pÿ‰¾ˆ#Ê+ÁƒøŽWÿÿÿ‹†ˆ‹Žˆ‹–„‹†J@#Љ–‰ž˜‰ž”é•þÿÿûuІ´„À…‹Ž ‰\$;Ù†@JuŠŽ”Hˆ‹ž˜ûrŠ”@H3Ɉf‹L^@‹Ùûså3ÒHŠ”3@‹þŠÊ‰–”ˆ‹–‹ŽŒ+ø‹è‹†„+ÑÇ@Hÿ#Ñ+Â;Ǩ‹–„ÑâRè‹”‹ŽŒ‹–ƒÄ;Ê‹Øt3‹–Œ‹Žˆ@Š ˆPÿ‹ŽŒ‹–„AJ#Ê‹–;Ê‰ŽŒuÍ+ÃdžŒ‰†‹†ˆPè@Ç‹†„‹Ž‹–ŒƒÄÑà+ʉ†„Pÿ‰žˆ#Ê+Á;ÇŽXÿÿÿ…ÿ~,‹†‹ŽˆŠUEˆ‹†„‹ŽHA#ÁO‰†uÔ‹N<‹† ºÓâ;Â},f‹Ž˜f‰LF@‹– І”ˆ„@‹† @‰† ‹L$‰Ž˜éÉüÿÿ‹¾¨‹žœ ýDÿ™÷ùG‰†¨+ÊTÿ‹N<;Á‰–œu¸Óà‰†¤éÎûÿÿº‹ÈÓâJ‰–¤é¹ûÿÿ¹@3À~@ó«‹Ž¨‹†œÁádž dž¨ |ÿdž¤ÿ‹Ç™÷ù+ú‰¾œéjûÿÿ_^]2À[ƒÄˆ¬…ÀƆ€_^]°[ƒÄÃV‹ñ‹F8…ÀtPè,”ƒÄÇF8^Ãjÿhøåd¡Pd‰%ƒì$‹A V…ÀÇD$t<‹t$8ŠAWyj‹Îˆ袻ÿÿ‹ dQjW‹Î葹ÿÿ‹Æ_^‹L$$d‰ ƒÄ0‹I …Éu¹`T$QRè•»ƒÄ‹D$ÇD$0ƒøvc‹ dƒÀþQT$PRL$訷ÿÿ‹@…Àu¸`ShÁPèð;ƒÄL$…Àj”Ãè »ÿÿ„Û[t‹D$‹t$8ƒÀþL$PjVè`·ÿÿë‹t$8L$hÀQVèZ¾ÿÿƒÄ ‹L$ …Ét.ŠAÿ„Àt<ÿtþȈAÿ‹Æ^‹L$$d‰ ƒÄ0ÂIQèTăċL$(‹Æ^d‰ ƒÄ0Š ì&°„Èu Ȉ ì&éh°ùèw‘YÃÈÿ¸ËL$3À‹ƒÁ…Òt ‹@ƒÁ…ÒuöÃìSU‹l$VWUèÏÿÿÿ‹ðƒÄ3Ò…ö~‹Ý‹î‹;ƒÉÿ3ÀƒÃò®÷ÑIMT uê‹l$D²Pè8žƒÄ‰D$…Àtf3ÉT°…ö~U‹Ø+è‰t$‰t$‹<+ƒÉÿ3ÀƒÃò®÷Ñ+ù‹Á‹÷‹úÁéó¥‹È3Àƒáó¤‹úƒÉÿ‰Süò®‹D$÷ÑIH‰D$T u¿‹D$‹L$Lj_^][ƒÄÃìV‹t$W3ÿ‰|$‰|$‰|$‰|$ ƒ=xë~3ÀjŠPèÆžƒÄë‹lé3ÉŠŠJƒà;ÇtFëÏŠS„ÀU„C½3ÛUèWƒÄ‰D$…À„o‹øƒ=xë~3ÀjŠPèkžƒÄë‹lé3ÉŠŠJƒà…Àt ‹D$…À„€Š„Àtz<"u‹L$3À…É”À‰D$FëªMû;Ù|#ÅT$URèüƒÄ…À„ô‹D$<Š€ùr€ùŸv €ùàr€ùüwŠF<@r<~v<€r <üwˆGFCŠˆGFCéFÿÿÿÆ‹|$D$$½RP藃ąÀth‹L$$‹T$G‰|$‰T¹üƒ=xë~3ÀjŠP考Äë‹lé3ÉŠŠJƒà…ÀtFëÏ€>…½þÿÿ‹t$T$$ µQRè/ƒÄ…Àu‹D$P蛃Äë‹L$$DZ‹T$$RèdýÿÿƒÄ‰D$‹D$$]…À[t,‹|$ 3ö…ÿ~‹D$‹ °QèÏšƒÄF;÷|ë‹T$R轚ƒÄ‹D$_^ƒÄÃì$D$SVW‹|$4PWèr¨ƒÄ…Àt _^3À[ƒÄ$Ët$ h¤ÀWèí‹ØƒÄ…Ûu_^[ƒÄ$ÃNQè?›‹øƒÄ…ÿuSèƒÄ3À_^[ƒÄ$ÃUSVjWèfS‹èèᎃÄ;î]tW蚃Ä3À_^[ƒÄ$ÃÆ>‹Ç_^[ƒÄ$ËD$V‹t$P‹QèyœƒÄ…Àt‰^Ãì‹D$SVW3ÛP‰\$‰\$‰\$‰\$3ÿèÜüÿÿ‹ðƒÄ;ó‰t$ u _^3À[ƒÄËU;Ëî„ä‹E€8@…¤@PèÖþÿÿ‹ØƒÄ…Û„û‹L$D$RPècÿÿÿƒÄ…À„Ú‹t$SF‰t$èiüÿÿ‹ðƒÄ…ö„º‹L$‹T$S‰t‘ü虋ƒÄ…Àt/½L$PQèÿÿÿƒÄ…À„‚‹‹D$ƒÆ‰¸Gƒ>uÑ‹t$$ƒÅë' ½T$QRè×þÿÿƒÄ…ÀtR‹L$‹EƒÅ‰¹G‹E3Û;Ã…ÿÿÿ½D$RPè£þÿÿƒÄ…Àt‹L$‰¹‹T$RèëúÿÿƒÄ‰D$ë‹t$$Vèk˜‹D$ƒÄ…À]t PèY˜ƒÄ‹D$…Àt,‹|$3ö…ÿ~‹D$‹ °Qè7˜ƒÄF;÷|ë‹T$Rè%˜ƒÄ‹D$_^[ƒÄËÁ3Ɉ‰H‰H ÃéÛ‹D$V‹ñVjh@c‰Fè£ƒÄ ‰F ‹F…ÀuW‹=jÿ׋F…Àtõ‹F_^‹F^Âƒì‹ 0!VW‹|$(Whàc‹GPjgQÿì‹ðjVÿðVÿô‰w‹=øjjT$jRÿ×…ÀtCS‹üU‹-…öt D$PVÿÓ…ÀuL$QÿÕT$RÿjjD$jPÿ×…ÀuÍ][jÿ_^ƒÄÃV‹t$WjëVÿЋø‹D$=wIt/‹ÈƒétƒéuBVÿÔ_¸^ÂjÿØ_¸^‹D$PjëVÿÜ_¸^Â=tK;(!uQS‹\$‹ QhéVÿà‹SjRhêVÿäŠ[„Àt jÿè_¸^‹D$%ÿÿƒèt_3À^Â…ÿtÆ_¸^ÂQV‹ñ‹F …ÀtTWjjj‹FPÿÌ‹V ‹=L$QRÿ×…Àt%S‹|$ ujÿÓ‹N D$ PQÿ×…Àuã[3À‰F‰F _^YÊ ì&°„Èu Ȉ ì&éh°ùè'‰YÃjÿhCæd¡Pd‰%ì,SV3öWŒ$Œ‰t$,ÇD$0èØ»‰\$,VD$»à‰‹Œ$B‰K‰k‹T$¹2‰S ‹D$‰C‹D$ÇCT$ó¥‹L$ R‰‹¨PEìè7ƒøÿu”‹|$‹t$Wèœ6Vÿ(]_‹Œ$P3À‰1^[Ä8ÂQ‹D$S‹ÈUá€V€ù€W½0˜t½T$$ÇD$RP‹D$ jPèVþÿÿ‹L$$Qÿ<‹ð€>t@‹\$ ¾àSWÿՃąÀtІ¬ƬǬ„Àußë‹|$(¹kó¥ÇD$‹T$$Rÿ8‹D$$Pÿ4_^‹D$][YÂìÜSUV‹´$ø‹Æƒà„À…°‹¬$ìL$ QVjUè®ýÿÿ‹T$ Rÿ<€8t‹Œ$ð9H„ŽŠ¬¬„Òuè‹\$ ‹L$ Qÿ8‹T$ Rÿ4‹D$…À…F‹Æ%…Œ‹Œ$ôD$PUQ”$$h°ÁRÿȃĄ$Œ$hèPQjè,0^][ÄÜ‹XW¸àƒÉÿ3ÀT$ò®÷Ñ+ùÇD$‹Á‹÷‹úÁéó¥‹Èƒá󤋴$ü_éEÿÿÿ=…¢T$„$RUh€ÁPÇD$ ÿȃÄKQjBÿ0‹ð…öu^]¸[ÄÜÂVÿ,…ÀuVÿ$^]¸[ÄÜÂT$RjjSP„$,Pjè/Vÿ(3À‹Œ$ô‰1^][ÄÜÂ^]ƒÈÿ[ÄÜŠ ì&°„Èu Ȉ ì&éh°ùè§{YÃQŠD$‹ÑŠL$S3ÛˆB‰Z ‰Z‰ZˆJD‰ZH‰ZL‰ZP‰Z‰Z ‰š¬‰š¨‰š¤‰š ‰šœ‰Z@‰Z<‰Z8‰Z4‰Z0‰Z(‰Z‰Z$ÇB,¶¡ôÁ‰BT‹ øÁUVW‰JX¿ìÁƒÉÿ3Àj\ò®÷Ñ+ù‹Á‹÷‹ýÁéó¥‹È‹Âƒáó¤_^‰š´‰š°‰š¸ˆš¼‰šÀ‰šÄ]ÇL[YÃV‹ñèöD$t Vè;­ƒÄ‹Æ^Âjÿhkæd¡Pd‰%QSV‹ñ‰t$ÇL3Û‰\$èá‹FH;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qèଃĉ^H‰^L‰^P‹F ;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Q賬ƒÄ‹L$ ‰^ ‰^‰^^[d‰ ƒÄÃSV‹ñ3Û‹F@;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qèi¬ƒÄ‰^@‰^D‰^H‹F;Ãt'HÿŠ@ÿ:Ãt<ÿtþȈ‰^‰^‰^ ^[ÃQè2¬ƒÄ‰^‰^‰^ ^[Ãjÿh‹æd¡Pd‰%ì ‹„$Ujÿh¤ÀPèªÿÿ‹èƒÄ …í•D$‰l$ …íÇ„$uƒÈÿ]‹Œ$ d‰ ÄËUSVW‹ÍÿRL$‹Ø‹EhQ‹ÍÿP=‰D$‚3ö3À3ÒŠTò@=|ð3À¾Œ°º +Ñò@ƒøréj„$´jPèÀŒƒÄ ;ðu8ƒû‡òÿ$w»éá»é×»éÍ»éËD$ƒønrV¹¿$Ât$3Òfó§t¹¿Ât$3Òfó§u,ƒû‡‡ÿ$ w» ëy»$ër»%ëk»'ëdƒøDr_¹¿Ât$3Àó§t¹¿Ât$3Òó§u7L$^¸Âf‹f;u&ƒûw!ÿ$@w»0ë»4ë »5ë»7ŠD$Ç„$$ÿÿÿÿ„Àt ‹Ej‹ÍÿP‹Œ$_‹Ã^[]d‰ ÄËÿÛuÆvÆvÆvåuïuÆvùuFvÆvÆvÆvMvTvÆv[v¬vÆvÆvÆv³vºvÆvÁvS‹\$UVW‹|$‹ñjwW‰ž°èdw…À•ÀjwWˆ†¼èQw‹l$$ƒÄ…Àu%ƒûÿu UèKýÿÿƒÄ;Ɇ°t…Àu _^]2À[ ‹Ž°QWUèã§ÿÿƒÄ ‰†´…À_^][•À ìV‹ñІ¼„ÀtN‹–´…ÒtD‹†À…Àu:‹†°ƒøtƒøt ƒøtƒøu W¹3À|$ó«‹L$hQ‹ÊÿP_‹Ž´…Ét ‹ÿR‹Ž´…Ét‹jÿPdž´‹†Ä…ÀtPè…¨ƒÄdžİ^ÄÃjÿh|çd¡Pd‰%ìÀŠD$SUV‹é3ÛWSL$4‰l$0ˆD$4èwžÿÿŠL$SˆL$pL$p‰œ$Üè^žÿÿ¡øÁ¿ìÁ‰„$€ƒÉÿ3À‹ôÁò®÷Ñ+ù‰T$|”$„‹Á‹÷‹úÁ鉜$Ô‰œ$Љœ$̉œ$ȉœ$ĉ\$h‰\$d‰\$`‰\$\‰\$X‰\$P‰\$@‰\$D‰\$H‰\$LÇD$T¶ó¥‹Èƒá󤋅°Ç„$؃ø„8 ƒø„/ ƒø„& ƒø„ ƒø „ý ƒø$„ô ƒø%„ë ƒø'„â ƒø0„ºƒø4„±ƒø5„¨ƒø7„Ÿ9¸t(jL$pÇ„$Üÿÿÿÿè1ÿÿjL$4è&ÿÿ2Àé‹´D$P‹ÿR‹ dÆ„$ØQSPL$<èõšÿÿjL$Æ„$Üèâœÿÿ‹´‹ÿR ‹­´‰D$@‰T$D‹Í‹EÿP$‰D$`ÇD$Péz9¸u‹´„$ØjP‹ÿR‹´„$ˆj(÷‹Î‰^,ÆF0 è7ˆ9^(u‹FS ‹Î Pèô„8\$(t‹ÎèLJ‹L$‹Ç_^[d‰ ƒÄÂVW‹ñè‚®„ÀuS‹~‹‹H9ŠL9 öÁt?ŠH3ööÁu‹@(‹È‹ÿR,ƒøÿu¾‹‹HÏ…öt‹A‹Q( Æ…Òu jPèe„_^ÃSV‹ñW‹|$9~s胋F‹T$+Ç;Âs‹Ð‹\$‹Ê;Ór‹Ë‹F…Àu3öë48‹|$3Àó¦tÀƒØÿ…Àu;Ós _^ƒÈÿ[Â3À;Ó•À_^[ ì&S³„Ãu âì&è â&„Ãu ââ&è[Ãh°ùèÇMYÃh°ùè·MYËD$ƒèt)Hu5‹D$£0!è6 hÌÃÿÄ£(!¸ Ç0!è ¸ ¡0!jjPÿH‹ 0!PQÿDPÿ@‹È‹A0ƒÁ(Á耀ÁàfAÃ3ÀÃ3À¡,!ËD$£,!¸Âf¡$!øÂ‹D$‹L$ ‹T$jP‹D$ QRP赃ăì0ŠD$8jL$ˆD$èJuÿÿT$D$ ‹L$8QhÜÃRPè±xÿÿƒÄ L$PQè£xÿÿ‹dƒÄ L$RjPè sÿÿ‹D$…ÀtHÿŠ@ÿ„Àt <ÿtþȈë Qè›~ƒÄ‹D$$ÇD$…ÀÇD$ÇD$tHÿŠ@ÿ„Àt <ÿtþȈë Qè^~ƒÄ‹D$…Àu¸`‹L$L‹T$@VQ‹L$DR‹T$@QPRèËð‹D$\ƒÄ…ÀtÇ‹D$L…ÀtfÇ‹L$…Ét#ŠAÿ„Àt<ÿtþȈAÿ‹Æ^ƒÄ0ÂIQèë}ƒÄ‹Æ^ƒÄ0ƒì0ŠD$8jL$ˆD$è tÿÿT$D$ ‹L$8QhäÃRPèqwÿÿƒÄ L$PQècwÿÿ‹dƒÄ L$RjPèÍqÿÿ‹D$…ÀtHÿŠ@ÿ„Àt <ÿtþȈë Qè[}ƒÄ‹D$$ÇD$…ÀÇD$ÇD$tHÿŠ@ÿ„Àt <ÿtþȈë Qè}ƒÄ‹D$…Àu¸`‹L$@‹T$°T°j°€°–°¬°°ذ    Š ì&°„Èu Ȉ ì&éh°ùèç<YÃU‹ìjÿhíèd¡Pd‰%ììŠESVW3Û‰eðSÿÿÿˆ…ÿÿÿè…eÿÿŠMSˆÿÿÿSÿÿÿ‰]üè¼@‰…ÿÿÿ‰ ÿÿÿ‹u‹}jjVÿ$ÿÿÿRWÆEüè,œSh !M¸ÆEüè>‰]´ÆË]ÍÆEÎÆEψ]ÐÆEщ]Ô‰]؉]܉]à‰]ä‹M ‹U…ÿÿÿÇEüPVWQRÆEüè÷ƒÄ‰E é …$ÿÿÿ,ÿÿÿ÷ØÀh8Å#ÁPèÿA3ÛƒÄ;Ãu3Òë‹‹RЋJ ‹uì€åùh4ŀ͉J ‹VR‹ÈèL5PèÆA‹ø‹FƒÄ;Ãu¸`PWè®Ah0ÅWè£A‹U…$ÿÿÿƒÄ,ÿÿÿ÷ØÀh,Å#Á‹M R‹Uh ÅQhÅRhÅPèhAƒÄ‹Èè7PèXAƒÄPèOAƒÄPèFAƒÄ‹Èèü6Pè6A‹FÿÿÿQ‰E èäƒÄ ¸…³Ëu‹}3Û‹•Pÿÿÿ‹;Ãu3Àë‹@ÿÿÿ+;óvˆ8‹M;Ët‰jM¸ÇEüèšcÿÿM€ÆEüèf›M€ÇE€ÈJèòr‹…ÿÿÿÆEü‹ð‹;ȉMt*USRMèí=‹MPQÿÿÿèÛ?9uuÜ‹…ÿÿÿPèêlƒÄÿÿÿ‰ÿÿÿ‰ ÿÿÿjÇEüÿÿÿÿècÿÿ‹Mô‹E _^d‰ [‹å]ËD$H…ÉtƒÀ$ë3Àh¤ÈhlÈh8ÈhÈh¸Çh|ÇhDÇhÇh¼ÆhxÆhXÆh,ÆhÆhÔÅh¨Åh˜ÅhHÅPèÓ?ƒÄPèÊ?ƒÄPèÁ?ƒÄPè¸?ƒÄPè¯?ƒÄPè¦?ƒÄPè?ƒÄPè”?ƒÄPè‹?ƒÄPè‚?ƒÄPèy?ƒÄPèp?ƒÄPèg?ƒÄPè^?ƒÄPèU?ƒÄPèL?ƒÄPèC?ƒÄÃjÿhéd¡Pd‰%ƒìVW‹ù‰|$‹‡´3ö;ÆÇD$tHÿŠ@ÿ„Àt <ÿtþȈë QèRkƒÄ‰·´‰·¸‰·¼wxSU‹ÎèY™‹ÎÇÈJèçp‹_oÆD$ ‹3;ót‹Æ‹6PD$P‹Íèâ=;óuë‹MQèõj3öƒÄ‰u‰u‹G];Æ[tHÿŠ@ÿ„Àt <ÿtþȈë QèÇjƒÄ‹L$‰w‰w‰w _^d‰ ƒÄÃjÿhýéd¡Pd‰%ìüŠD$SUVW3ÿWWL$DˆD$Dèœ<‰D$@‰|$D‹Œ$ ‰¼$QèPªÿÿ‹ØƒÄ;ßuWŠT$WL$LˆT$Lè…`ÿÿ¿ìɃÉÿ3ÀÆ„$ò®÷ÑIQhìÉL$Pè‘ÿÿD$HhtPÇD$`€Æ„$è‰C‹3‹ë;÷tvŠL$jˆŒ$Œ$è`ÿÿ‹þƒÉÿ3Àò®÷ÑIQVŒ$”èµÿÿ‹D$@”$ŒRL$PQL$HÆ„$ èb;jŒ$Æ„$èÌ_ÿÿ‹uƒÅ…öuŠSè?CŠT$ƒÄL$|ÆD$jˆ”$€èž_ÿÿ‹D$@‹¬$,Æ„$ÆD$‹;ȉL$„ß‹|$_‹Ëèºÿÿ‹D$@‹s;8„ÿ€>-uŠF„Àt ŠD$„À„ç‹s…öu¾`€>tyj\VèL‹Ð‹þƒÉÿ3ÀƒÄò®÷ÑID1ÿ;ÐuX‹þƒÉÿ3Àjò®÷ÑI‹ÙŒ$€Sèd_ÿÿ„À„‹¼$€‹Ë‹ÑSÁéó¥‹Êƒáó¤Œ$€è_ÿÿ‹T$‹‰D$é‹E…Àu¡d‹ÍPjSè¢\ÿÿ‹T$‹‰D$éêŠ jˆŒ$Œ$è|^ÿÿ‹dŒ$ŒRjSèf\ÿÿŠ„$ŒjŒ$°Æ„$ ˆ„$°èB^ÿÿ‹ d”$ŒQjRŒ$¸è%\ÿÿŠD$|jŒ$ÀÆ„$ ˆ„$Àè^ÿÿ‹ dT$|QjRŒ$Èèê[ÿÿ‹}u‹ÎÆ„$‹GPWè 9‰G‹H‰Œ$¬ƒÀQPè·>‹~ƒÄG‰~jŒ$ÀÆ„$è—]ÿÿjŒ$°Æ„$ è]ÿÿjŒ$Æ„$èk]ÿÿ‹T$‹‰D$é³€>-…ÈŠFF<-…¼ŠF~„À„ª‹Ë肎ÿÿ‹C‹ d+øQ”$ WR‹Ëè†YÿÿŠ„$œjL$ Æ„$ˆD$ èø\ÿÿ‹ d”$œQjRL$(èÞZÿÿŠD$jL$0Æ„$ˆD$0èÃ\ÿÿjL$jQŒ$¨Æ„$ ÆD$=èa7‹ð¡d;ð„V”$jRŒ$¨èëXÿÿ‹ dÆ„$QjPL$(è`ZÿÿjŒ$Æ„$èJ\ÿÿ‹dFRD$LVPŒ$¨è Xÿÿ‹ dÆ„$QjPL$8èZÿÿjL$LÆ„$è\ÿÿ¿ÜɃÉÿ3À‹T$$ò®÷ÑIQhÜÉRPL$,èŽäÿÿ…ÀuZ¿ !ƒÉÿò®‹D$4÷ÑIQh !PjL$<ègäÿÿ…Àu °ˆ…ÄéÌ‹D$0…Àu¸`PèV_ƒÄ…À•Àˆ…Ä馿ÌɃÉÿ3Àò®÷ÑIQ‹L$(hÌÉQPL$,è äÿÿ…ÀuY¿ !ƒÉÿò®‹T$4÷ÑIQh !RPL$<èæãÿÿ…Àu °ˆ…ÅéK‹D$0…Àu¸`PèÕ^ƒÄ…À•Àˆ…Åé%¿¼ÉƒÉÿ3Àò®‹D$$÷ÑIQh¼ÉPjL$,èŠãÿÿ…ÀuY¿ !ƒÉÿò®÷ÑIQ‹L$8h !QPL$<èdãÿÿ…Àu °ˆ…ÆéÉ‹D$0…Àu¸`PèS^ƒÄ…À•Àˆ…Æé£¿¬ÉƒÉÿ3À‹T$$ò®÷ÑIQh¬ÉRPL$,è ãÿÿ…ÀuZ¿ !ƒÉÿò®‹D$4÷ÑIQh !PjL$<èââÿÿ…Àu °ˆ…ÇéG‹D$0…Àu¸`PèÑ]ƒÄ…À•Àˆ…Çé!¿¤ÉƒÉÿ3Àò®÷ÑIQ‹L$(h¤ÉQPL$,è‡âÿÿ…À„–¿œÉƒÉÿ3À‹T$$ò®÷ÑIQhœÉRPL$,è[âÿÿ…Àtn¿”ɃÉÿ3Àò®‹D$$÷ÑIQh”ÉPjL$,è2âÿÿ…À… ¿ !ƒÉÿÇ…Ìò®÷ÑIQ‹L$8h !QPL$<èþáÿÿ…Àu¸ëc‹D$0…ÀuHëA¿ !ƒÉÿ3ÀÇ…Ìò®‹T$4÷ÑIQh !RPL$<è»áÿÿ…Àu¸ ë ‹D$0…Àu¸`Pè°\ƒÄ…À•À%ÿ‰…ЋD$jÆ„$‹‰L$L$0è½XÿÿjL$ Æ„$èªXÿÿjŒ$ Æ„$è”Xÿÿéæ‹|$‹ËèÔ‰ÿÿ‹K…Éu3Àë‹CÁ;ð„½¾ƒÀÓƒøM‡3ÒŠàÆÿ$•œÆÆD$xFë»ÆD$cFë³ÆD$lFë«ÆD$xÆ…ÈF뜋?‹D$@;ø„ ¡dOPjQ‹ÍèVÿÿFéuÿÿÿ‹?‹D$@;ø„K‹dGRjPŒ$ˆèÙUÿÿFéHÿÿÿDž̾NQè§ZƒÄ…À„¾VFƒê0‰•ÐFéÿÿÿDž̾FPètZƒÄ…Àt¾NFƒé0‰ÐFéæþÿÿÇ…Ð FéÖþÿÿDž̾VRè5ZƒÄ…Àt/¾FFƒè0‰…ÐFé§þÿÿ‹…ÌÆ…É…ÀulÇ…ÌÇ…ÐFé|þÿÿÆ…ÅFéoþÿÿ‹?w‹Îè>ˆÿÿ‹F…Àu 3öNFéSþÿÿ‹vðNFéGþÿÿ¾NQè°YƒÄ…Àt FFé/þÿÿÆD$Fé$þÿÿ‹‰T$‹D$‹L$@;Á…!÷ÿÿ‹E…À…¦ŠL$jˆL$LL$Lè{Vÿÿ¿tɃÉÿ3Àjò®÷ÑIÆ„$‹ÙL$LSèÆVÿÿ„Àt%‹|$L‹Ë‹Ñ¾tÉÁéó¥‹Êƒáó¤‹D$L‰\$PÆL$HhtQÇD$`€Æ„$èW9ŠL$jˆŒ$ÐŒ$ÐèõUÿÿ¿TɃÉÿ3ÀÆ„$ ò®÷ÑIQhTÉŒ$Ôè|†ÿÿ”$ÌhtRÇ„$䀯„$èð8ŠD$jŒ$䈄$äèŽUÿÿ¿4ɃÉÿ3ÀÆ„$ ò®÷ÑIQh4ÉŒ$èè†ÿÿŒ$àhtQÇ„$ø€Æ„$è‰8ŠT$jL$`ˆT$`è-Uÿÿ¿ ɃÉÿ3ÀÆ„$ ò®÷ÑIQh ÉL$dè·…ÿÿD$\htPÇD$t€Æ„$è18‹E…À…ÑŠD$j‹Ëè•Mÿÿ‹Uì‹B…Àu¸`‰C‹J‰K‹J ‰K ŠHÿþÁˆHÿ‹Mì¸ÓÈ‹Q‰SÃjW‹ËèÆMÿÿ„Àt2‹Uì‹r…öu¾`‹C‹Ï‹ø‹ÁÁéó¥‹Èƒáó¤‹M‹CÁ‰KÆ‹Mì¸ÓÈ‹Q‰SÃd¡jÿhžêPd‰%ìD ¹ 3ÀSUW‹¬$` ¼$è3Ûó«f«‹E;Ãu¸`hP„$øPèˆ:Œ$ôQSUèɃČ$ è¨ÿÿ‹E‰œ$X ;Ãu¸`jÿh¤ÀPŒ$,ès¬ÿÿ%ÿ‰D$TuRT$L$@Rèú¿ÊƒÉÿ3ÀÆ„$X ò®÷ÑIQhÊL$Hèä|ÿÿD$@htPÇD$X€ˆœ$` è_/L$VQL$`è§T$Œ$˜RÆ„$` 莡ôÁ‹ øÁ‰„$¨‰Œ$¬¿ìÁƒÉÿ3À”$°ò®÷Ñ+ù‰œ$‹Á‹÷‹ú‰œ$üÁ鉜$ø‰œ$ô‰œ$ð‰œ$”‰œ$‰œ$Œ‰œ$ˆ‰œ$„‰\$|‰\$l‰\$p‰\$t‰\$xÇ„$€¶ó¥‹Èƒá󤯄$\ L$\QŒ$(è~¬ÿÿ:ÄtŠT$\SL$ˆT$èKÿÿ¡dL$\PSQL$ èÿHÿÿŠT$SL$(Æ„$` ˆT$(èåJÿÿ‹EÆ„$\ ‹0;ð„}‹D$¹`;Ãt‹È‹F ;Ãu¸`QPè®QƒÄ„Àu‹6‹E;ðuÎéFŠD$SL$8ˆD$8è‡Jÿÿ‹ dT$QSRL$@èqHÿÿŠ…ÅÆ„$\ :ÃuN‹D$8;Ãu¸`P„$PèäMƒÄ‹ dÆ„$\ QSPL$@è'HÿÿjŒ$Æ„$` èJÿÿ8ÄuN‹D$8;Ãu¸`”$PRèJƒÄ‹ dÆ„$\ QSPL$@èÑGÿÿjŒ$Æ„$` è»Iÿÿ‹L$8;Ëu¹`‹F;Ãu¸`QT$HPRè6KƒÄ ‹ dÆ„$\ QSPL$0èyGÿÿjL$HÆ„$` èfIÿÿjL$8Æ„$` èSIÿÿ9\$,uŒ$$è‘Åÿÿë‹D$(;Ãu¸`”$$PRUèãƒÄ ‹D$(;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qè®RƒÄ‹L$‰\$(;ˉ\$,‰\$0Æ„$\ tŠAÿ:Ãt <ÿtþȈAÿë IQèvRƒÄ‰\$‰\$‰\$ ésýÿÿ¹ 3À¼$ ó«f«„$ PjUè°‹„$¨ƒÄ ;Ã^tHÿŠ@ÿ:Ãt <ÿtþȈë QèRƒÄ‹D$\‰œ$˜;Éœ$œ‰œ$ tHÿŠ@ÿ:Ãt <ÿtþȈë QèÝQƒÄŒ$ ‰\$\‰\$`‰\$dÇ„$X ÿÿÿÿ臤ÿÿ‹Œ$P _][d‰ ÄP Ãì‹D$ S‹ÌU‹€¬3íV‹t$ W‹|$ ;ʼnl$‰l$t‹ (!VWQPÿÓ‹è¡8!…Àt‹(!VWRPÿÓ‰D$¡8!‹ ÿÿ¡dL$HPSVèÑ<ÿÿ‹vÆ„$€;óu¾`‹G;Ãu¸`VŒ$¤PQèB@ƒÄ ‹„$¤Æ„$€;Ãu¸`T$ÿÿ‹ dQSVL$8è<ÿÿ‹d‹G RPD$$L$4PÆ„$Œ èc:ÿÿ‹Œ$ˆÆ„$€ 8™ÄuN‹D$ ;Ãu¸`”$lPRèñ=ƒÄ‹ dÆ„$€ QSPL$(è¤;ÿÿjŒ$pÆ„$„ èŽ=ÿÿŠT$SŒ$¼ˆ”$¼èv=ÿÿD$Œ$ôPÆ„$„ èý ‹ ôÁ¿ìÁ‰Œ$ƒÉÿ3À‹øÁò®÷Ñ+ù‰”$”$ ‹Á‹÷‹úÁ鉜$\‰œ$X‰œ$T‰œ$P‰œ$L‰œ$ð‰œ$쉜$艜$䉜$à‰œ$؉œ$ȉœ$̉œ$Љœ$ÔÇ„$ܶó¥‹Èƒáó¤‹D$0Æ„$€;Ãu¸`L$|QPèí-ƒÄƒøÿ„¾‹Œ$‚¿„$†‹Ñ‰„$à‹„$˜âÿÿ‰”$܉„$è¿”$ˆ‹„$œ‰”$ä‹”$”‰„$X‹„$‰”$T™áð‰„$Èù@‰”$Ìu Ç„$ð5‹D$ ;Ãu¸`PèG‹D$4ƒÄ;Ãu¸`L$XQPè&-ƒÄƒøÿ„œ‹D$^öÄ@„‹t$ ;óu¾`j\Vèè(j/V‹øèÞ(ƒÄ;Çvj/ëj\VèË(‹Ð‹þƒÉÿ3ÀƒÄò®÷ÑID1ÿ;ÐtD‹ d‹T$$+ʃùwèE‹T$$SL$ rVè£;ÿÿ„Àt‹D$ ‹L$$ÁÆ/‹T$ ‰t$$ˆ2¡dL$PSQŒ$Äèÿ8ÿÿ”$¸Œ$|Rèë·ÿÿ‹D$0;Ãu¸`‹Œ$ˆP„$€PQèØ‹|$$ƒÄ G‰|$jŒ$øÆ„$„ è¦:ÿÿjŒ$¼è˜:ÿÿjL$ Æ„$„ è…:ÿÿjL$0Æ„$„èr:ÿÿ‹m‹D$@‹|$;è…%üÿÿ‹Æ„$€;È‹ð‰L$t0”$°SRL$èÉ‹Œ$´PQL$Dèõ9t$uÔ‹D$@PèÅCƒÄŒ$ ‰\$@‰\$DjÆ„$„èô9ÿÿ‹D$Lˆœ$€;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qè{CƒÄ‹”$ˆ‹‰\$L‰\$P‹J‰\$T;Á‰D$…ªúÿÿ‹ò¹ 3À¼$Dó«f«„$DPjVè ñÿÿ‹D$$ƒÄ ;Ã…OŠL$SˆL$\L$\è_9ÿÿ¿lʃÉÿ3Àjò®÷ÑIÆ„$„‹éL$\Uèª9ÿÿ„Àt$‹|$\‹Í‹Ñ¾lÊÁéó¥‹Êƒáó¤‹D$\‰l$`ˆ(L$XhtQÇD$p €ˆœ$ˆè=ŠD$SL$0ˆD$0èâ8ÿÿL$,hXÊ”$pQRÆ„$ŒèC<ÿÿŒ$¬T$(QPRÆ„$˜èxhTÊPD$xÆ„$ Pè<ÿÿƒÄ$‹@Æ„$€;þ`t‹ðL$QŒ$€è ‹þƒÉÿ3ÀÆ„$€ ò®÷ÑIQVŒ$„èôhÿÿT$|htRÇ„$” €Æ„$ˆèkŒ$|Ç„$€ÿÿÿÿè‹”ÿÿ‹Œ$x_^][d‰ ÄtÃjÿd¡h3ìP¸Œd‰%èQ(ŠD$SUV‹´$¬3ÛWSL$<ˆD$<è²7ÿÿ‹”$´ƒÉÿ‹ú3Àò®÷ÑIQRL$@èDhÿÿ¹ 3À|$hT$(ó«‹NRf«‰L$l‹Î‰œ$¨‰\$pèç‹@;Ãu¸`hPD$xPè%ƒÄ L$(jè=7ÿÿ‹D$<;Ãu¸`hŒ$xPQèí$‹L$t‹F ‹V<ƒÄ ;ˉ„$x‰”$|‰œ$€t€3Ò€€Áà÷ñf‰„$„ëf‰œ$„‹F8Pè¬Íÿÿ‹N8f‰„$ŠQèûÍÿÿf‰„$‹F,”$’jRPè Îÿÿ‹–°Œ$¦jQRèzÎÿÿ‹¬$Ì„$ˆPSUè”îÿÿƒÄ,;ÃtVŠL$SˆL$L$è[6ÿÿ¿8ʃÉÿ3ÀÆ„$¤ò®÷ÑIQh8ÊL$èåfÿÿT$htRÇD$, €ˆœ$¬è`‹F‹N ÁujL$<Ç„$¨ÿÿÿÿè÷5ÿÿé‘L$HèÙ·ÿÿjVL$PÆ„$¬èå·ÿÿˆ\$-‰\$0‹D$<Æ„$¤;Ãu¸`h¤ÀP讃Ä;ÉD$(”À:ÈD$,tWŠD$SL$ˆD$è‡5ÿÿ¿¼ÃƒÉÿ3ÀÆ„$¤ò®÷ÑIQh¼ÃL$èfÿÿL$htQÇD$,€Æ„$¬è‹3ÿ‹T$(„$œRhjPèà ‹ðƒÄþ‰t$0•Á;óˆL$,Ž8”$œVRL$PèG·ÿÿ;Ã~ø;ðu"9¬t¥D$h‰|$lPjUèôìÿÿƒÄ ;Ãu닊L$SˆL$L$è¹4ÿÿ¿¤ÃƒÉÿ3Àjò®÷ÑIÆ„$¨‹éL$Uè5ÿÿ„Àt#‹|$‹Í‹Ñ¾¤ÃÁéó¥‹ÊUƒáó¤L$è½4ÿÿD$htPÇD$,€Æ„$¬è—ŠL$SˆL$L$è<4ÿÿ¿8ʃÉÿ3Àjò®÷ÑIÆ„$¨‹éL$Uè‡4ÿÿ„Àt#‹|$‹Í‹Ñ¾8ÊÁéó¥‹ÊUƒáó¤L$è@4ÿÿD$htPÇD$, €Æ„$¬èL$HèØ¶ÿÿ:Ãu}ŠL$SˆL$L$è²3ÿÿ¿¤ÃƒÉÿ3Àjò®÷ÑIÆ„$¨‹éL$Uèý3ÿÿ„Àt#‹|$‹Í‹Ñ¾¤ÃÁéó¥‹ÊUƒáó¤L$è¶3ÿÿD$htPÇD$,€Æ„$¬è9¬„•L$h‰|$lQjUèJëÿÿƒÄ ;Ãt}ŠT$SL$ˆT$è3ÿÿ¿8ʃÉÿ3Àjò®÷ÑIÆ„$¨‹éL$Uè\3ÿÿ„Àt#‹|$‹Í‹Á¾8ÊÁéó¥‹ÈUƒáó¤L$è3ÿÿL$htQÇD$, €Æ„$¬èï‹D$(;Ãt PèÔ ƒÄL$Hˆœ$¤è…´ÿÿ‹L$<;ËtŠAÿ:Ãt <ÿtþȈAÿë IQè<ƒÄ‹Œ$œ_^]°[d‰ ĘÃjÿhlìd¡Pd‰%ìˆSUVWŒ$Ðè•ÿÿ‹¬$¨3Û‰œ$ ‹E;Ãu¸`jÿh¤ÀPŒ$Üèå‘ÿÿ:Ãu}ŠD$SL$ˆD$èÏ1ÿÿ¿ÊƒÉÿ3Àjò®÷ÑIÆ„$¤‹éL$Uè2ÿÿ„Àt$‹|$‹Í‹Ñ¾ÊÁéó¥‹Êƒáó¤‹D$‰l$ˆ(L$htQÇD$,€ˆœ$¨è­ŠT$SL$,ˆT$,èR1ÿÿŠD$SL$hÆ„$¤ˆD$hè81ÿÿ‹ ôÁ¿ìÁ‰L$tƒÉÿ3À‹øÁò®÷Ñ+ù‰T$xT$|‹Á‹÷‹úÁ鉜$̉œ$ȉœ$ĉœ$À‰œ$¼‰\$`‰\$\‰\$X‰\$T‰\$P‰\$H‰\$8‰\$<‰\$@‰\$DÇD$L¶ó¥‹Èƒáó¤}Æ„$ ;ûtE$ë3Àh0Åh¤Êh Êh”ÊPè» ƒÄPè² ƒÄPè© ƒÄPè  ƒÄL$(QŒ$Ô蜑ÿÿ:ÃtSŒ$Ð茬ÿÿ:ÃtC;ûtu$ë3ö‹D$,;Ãu¸`PVèY ‹T$@ƒÄh0ÅRh ÊVèA ƒÄ‹Èè7ë‹D$h;ÃtHÿŠ@ÿ:Ãt <ÿtþȈë Qèƒ9ƒÄ‹D$,‰\$h;É\$l‰\$ptHÿŠ@ÿ:Ãt <ÿtþȈë QèR9ƒÄŒ$Љ\$,‰\$0‰\$4Ç„$ ÿÿÿÿèü‹ÿÿ‹Œ$˜_^][d‰ Ä”ËÁ‹L$Š3Ɉ‰H‰H‰H ÂU‹ìjÿh£ìd¡Pd‰%ƒì4SVW‹ñ3ÿ‰eð‰uì‰}èè ˆEÔ‰uØ„À‰}ü„D‹EàP‹IÎè¿\ÿÿ‹ØMäÆEüèI@¹à!ÆEüèZÿÿjP‹ËèA‹ø…ÿuN‹ËèLA„À„‹‹=X!…ÿu5jè8ƒÄ‰EÜ…ÀÆEüt W‹Èè]ë3ÀPÆEüè/(ƒÄ£X!‹øMäÆEüèm@‹MàÆEü…ÉtèÙHÿÿ…Àt‹j‹Èÿ‹ÆEü‹A‹D0 %…ö‰EÜu3Òë‹QÖ‹I‹1ŠL10‹@(ˆMÜ‹MQ‹MÜQÆEÌR‹UÌPEÌRP‹ÏÿSŠEÌ„Àt2ÇEèë)‹Eì‹‹IÈ‹A‹Q( …Òu jPèÓ:¸˜éËuì‹}èÇEü‹‹IÎ…ÿt‹A‹Q( Ç…Òu jPèŸ:ÇEüÿÿÿÿèYd„ÀuL‹‹BÆö@ t?ŠH3ÿöÁu‹@(‹È‹ÿR,ƒøÿu¿‹‹HÎ…ÿt‹A‹Q( Ç…Òu jPèC:‹Mô‹Æ_^d‰ [‹å]ÂUMÀRÇEäÀèpEÀhxpPÇEÀ@JèJU‹ìjÿhÓìd¡Pd‰%ƒì4SVW‹ñ3ÿ‰eð‰uì‰}èèàˆEÔ‰uØ„À‰}ü„7‹EàP‹IÎèZÿÿ‹ØMäÆEüè >¹à!ÆEüèÓWÿÿjP‹ËèÃ>‹ø…ÿuN‹Ëè ?„À„‚‹=X!…ÿu5jèøƒÄ‰EÜ…ÀÆEüt W‹Èèë3ÀPÆEüèï%ƒÄ£X!‹øMäÆEüè->‹MàÆEü…Étè™Fÿÿ…Àt‹j‹Èÿ…öÆEüu3Éë‹‹H΋‹]S‹BŠT00ƈUÜ‹]Ü‹‹@(SQÆEÌP‹EÌMÌPQ‹ÏÿRŠEÌ„Àt3ÇEèë*‹Eì‹‹J‹T(È‹A …Òu jPè 8¸ËëËuì‹}èÇEü‹‹JÎ…ÿt‹A‹Q( Ç…Òu jPèl8ÇEüÿÿÿÿè&b„ÀuP‹‹H1ŠL1 öÁt?ŠH3ÿöÁu‹@(‹È‹ÿR,ƒøÿu¿‹‹HÎ…ÿt‹A‹Q( Ç…Òu jPè 8‹Mô‹Æ_^d‰ [‹å]ÂEMÀPÇEäÀè9 MÀhxpQÇEÀ@JèU‹ìjÿhíd¡Pd‰%ƒì4SVW‹ñ3ÿ‰eð‰uì‰}èè ˆEÔ‰uØ„À‰}ü„7‹EàP‹IÎè?Xÿÿ‹ØMäÆEüèÉ;¹à!ÆEüè“UÿÿjP‹Ëèƒ<‹ø…ÿuN‹ËèÌ<„À„‚‹=X!…ÿu5j踃ĉEÜ…ÀÆEüt W‹ÈèÝ ë3ÀPÆEüè¯#ƒÄ£X!‹øMäÆEüèí;‹MàÆEü…ÉtèYDÿÿ…Àt‹j‹Èÿ…öÆEüu3Éë‹‹H΋‹]S‹BŠT00ƈUÜ‹]Ü‹‹@(SQÆEÌP‹EÌMÌPQ‹ÏÿRŠEÌ„Àt3ÇEèë*‹Eì‹‹J‹T(È‹A …Òu jPè`6¸ îËuì‹}èÇEü‹‹JÎ…ÿt‹A‹Q( Ç…Òu jPè,6ÇEüÿÿÿÿèæ_„ÀuP‹‹H1ŠL1 öÁt?ŠH3ÿöÁu‹@(‹È‹ÿR,ƒøÿu¿‹‹HÎ…ÿt‹A‹Q( Ç…Òu jPèÌ5‹Mô‹Æ_^d‰ [‹å]ÂEMÀPÇEäÀèù MÀhxpQÇEÀ@JèÓ Q‹‰´V‹t$ ÇD$Vè‹Æ^YÂQŠASU‹l$VqW3ÿˆE‰}‰}‰} ‹F‹ d‹Ø‰|$;Ës‹Ù;îua;ß‹ñvèé3‹Íè¸*ÿÿ‹E+Ã;Æs‹ð;÷v/‹M+ÆÙP3RSèGû‹]ƒÄ +Þ‹ÍWSèF(ÿÿ„ÀtS‹Íè(ÿÿ‹Íès*ÿÿ_‹Å^][YÂ;ßvL;ØuH‹F;Çu¸`€xÿþs6j‹Íè–'ÿÿ‹F;Çu¸`‰E‹N‰M‹V ‰U ŠHÿþÁ_ˆHÿ‹Å^][YÂjS‹ÍèÏ'ÿÿ„Àt)‹v;÷u¾`‹}‹Ë‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ _‹Å^][YÂjÿhíd¡Pd‰%QŠD$SUV‹é3öW‰l$ˆE‰u‰u‰u ‹|$$ƒÉÿ3À‰t$ò®÷ÑI‹Ùƒûývè‹0‹M;Ît%ŠAÿ„Àt<ÿt;Þu:þÈVˆAÿ‹Íè­&ÿÿ‹L$(‰MëT;Þu j‹Íè—&ÿÿë>‹E ƒøw;Ãsj‹Íè€&ÿÿS‹Íè(ÿÿ‹t$$‹}‹Ë‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ‹T$(‰U‹L$_‹Å^][d‰ ƒÄÂS‹ÙUW‹k‹};ýt1V‹÷‹?‹F‹‰‹‹FN‰BèõÕÿÿVè¯/‹KƒÄI;ý‰KuÑ^‹KQè—/ƒÄ3À‰C‰C_][ÃS‹ÙUW‹k‹};ýt3V‹÷‹?j‹F‹‰‹‹FN‰Bè£%ÿÿVèM/‹KƒÄI;ý‰KuÏ^‹KQè5/ƒÄ3À‰C‰C_][Ë‹‰‹D$‰ÂVq\‹Îè-]‹Îè<ÿÿ^ÃQ‹D$ SUV‹t$W…ö‰L$u;Av`‹i;ÅsT+è;õwN‹Yº+ÖêØ‹|$U¾PSè\+ƒÄ …Àt*‹Î‹ð3Òó¦t‹t$ +Øl+ÿXëÑ‹L$_^]‹Q[+ÂY ¡d_^][Y j(è>û‹L$ƒÄ…Éu‹È‰‹L$…Ét‰H‰@ÂSUVW‹|$‹Ùj‹oèûƒÄ‹ð…ÿ‹Çu‹Æ‰‹Å…íu‹Æ‹L$‰F‰w‹FVQR‰0蜋CƒÄ@‰C‹D$_‰0^][ jè®ú‹L$ƒÄ…Éu‹È‰‹L$…Ét‰H‰@ÂS‹ÙVW‹‹H‹L…ÉuK‹p,…ötD‹3ÿ‹BÆö@u‹@(‹È‹ÿR,ƒøÿu¿‹‹HÎ…ÿt‹A‹Q( Ç…Òu jPè•0‹ 3À_^‹Q‹L[…É”ÀÃSV‹t$W‹ù‹F‹‹‰‹‹FN‰Bè>ÓÿÿVèø,‹GƒÄH‰G‹D$_^‰[ÂUV‹t$W‹ù‹F‹‹.‰‹‹F‰B‹F …ÀtHÿŠ@ÿ„Àt <ÿtþȈë Qè¥,ƒÄVÇF ÇFÇFè‡,‹GƒÄH‰G‹D$_^‰(]ÂU‹ìjÿh8íd¡Pd‰%ƒìSVW‹} ƒÉÿ3À3Ò‰eðò®‹}‰Uè÷Ñ‹I‹ñ‹H‰uà‹D9;Â~ ;Æv+ƉEìë‰Uì‹Ïèsþÿÿ‹ßˆE؉]Ü„ÀÇEüu ºév‹ÆEü‹B‹D8 %Àƒø@tt‹Eì…Àv_‹‹QŠL:0ˆMä‹L:(:‹Q ‹…Àt(‹Q0‹2;ÃsN‰2‹I ‹P‰ŠM䈋Eä%ÿë‹Eä‹%ÿPÿRƒøÿuH‹Eè ‰Eè‹Eè…À…¢‹uà‹V‹Q‹L:(‹U R‹ÿP;Æt#‹ÇEè‹BÇD8Çé¬ÿMìéRÿÿÿ‹Eì…Àv^‹‹HŠT909ˆU ‹H(‹A ‹…Àt(‹Q0‹2;ÃsN‰2‹I ‹P‰ŠM ˆ‹E %ÿë‹E ‹%ÿPÿRƒøÿu‹Eè ‰Eè‹‹BÇD8Çë.ÿMìë…‹E‹‹IÈ‹A‹Q( …Òu jPèë-¸€öË}‹]Ü‹UèÇEü‹‹HÏ…Òt‹A ‹Q(…Òu jPè´-ÇEüÿÿÿÿènW„ÀuP‹ ‹QŠL öÁt?ŠH3ööÁu‹@(‹È‹ÿR,ƒøÿu¾‹‹HË…öt‹A‹Q( Æ…Òu jPèT-‹Mô‹Ç_^d‰ [‹å]ÃjÿhXíd¡Pd‰%ƒì‹D$(‹dSVŠW3ÛRˆL$SPL$‰\$‰\$ ‰\$$‰\$(èçÿÿ‹t$8ƒÏÿ‰\$(‹Fƒøÿs‹ø‹T$ƒÈÿ+Â;Çwè{);ûUvH‹L$S,9L$Uè ÿÿ„Àt2‹v;óu¾`‹T$‹D$‹Ï<‹ÑÁéó¥‹Êƒáó¤‹D$‰l$ˆ(‹t$4ŠL$D$ˆ‰^‰^‰^ ‹d‹ÎRSPèLÿÿ‹D$];Ãt/HÿŠ@ÿ:Ãt<ÿtþÈ_ˆ‹Æ^[‹L$d‰ ƒÄ ÃQèÇ(ƒÄ‹L$ ‹Æ_^[d‰ ƒÄ Ãjÿh‰íd¡Pd‰%QSUV‹t$ W‰t$3í;õ‰l$„‹|$(Љnˆ‰n‰n ‹ dQUW‹Îè¯ÿÿŠWƒÇ^ÆD$ˆ‰k‰k‰k ‹G‹ d‹è;Ís‹é;ßu'QU‹Ëèè$ÿÿjj‹ËèÝ$ÿÿ_^][‹L$d‰ ƒÄÃ3ö;îvU;èuQ‹G;Æu¸`€xÿþs?‰s‰s‰s ‹G;Æu¸`‰C‹O‰K‹W ‰S ŠHÿ_þÁ^]ˆHÿ[‹L$d‰ ƒÄÃjU‹Ëèeÿÿ„Àt)‹;þ¾`t‹÷‹{‹Í‹ÁUÁéó¥‹Èƒáó¤‹Ëèÿÿ‹L$_^][d‰ ƒÄÃÃjÿh±íd¡Pd‰%QSU‹l$VW‰l$3ÿ;ï‰|$„ ‹t$(Љ}ˆE‰}‰} ‹N¡d‹Ù;Ãs‹Ø;îuj;ß‹ðvè)‹Íèèÿÿ‹E+Ã;Æs‹ð;÷v/‹M+ÆÙP3RSèwð‹]ƒÄ +Þ‹ÍWSèvÿÿ„ÀtS‹ÍèJÿÿ‹Íè£ÿÿ_^][‹L$d‰ ƒÄÃ;ßvU;ÙuQ‹F;Çu¸`€xÿþs?j‹Íè½ÿÿ‹F;Çu¸`‰E‹N‰M‹V ‰U ŠHÿ_þÁ^]ˆHÿ[‹L$d‰ ƒÄÃjS‹Íèíÿÿ„Àt)‹v;÷u¾`‹}‹Ë‹ÁÁéó¥‹Èƒáó¤‹M‰]Æ‹L$_^][d‰ ƒÄÃjÿhÈíd¡Pd‰%ƒìD‹D$TV‹ñ‰t$‰FhüÀL$ ÇD$TÇÄIèz6L$è*7‹L$H‹Æ^d‰ ƒÄPÂjÿhîd¡Pd‰%ƒì(U‹l$HVD$ WP‹ÍèuIÿÿ‹øL$ ÇD$<èú,¹Ü!ÆD$<èÃFÿÿjP‹Ïè³-‹ð…öuQ‹Ïèü-„À„I‹5\!…öu8jèèñƒÄ‰D$…ÀÆD$<t V‹Èèëë3ÀPÆD$@è\ƒÄ£\!‹ðL$ ÆD$<è-‹L$ÇD$<ÿÿÿÿ…Étè5ÿÿ…Àt‹j‹ÈÿŠD$XSjL$,ˆD$,èßÿÿ‹E »öÄ@‰\$@uZŠ\$\‹ d‹T$0„Û•Ã+ʃÃ0ƒùwèg$‹T$0jL$,rVè ÿÿ„À„ˆ‹L$0‹T$,¾ÃÑŠàVL$,ˆèÆÿÿëkŠD$\„Àt0T$‹ÎRèp‹ dÆD$@QjPL$4èHÿÿˆ\$@jL$ë.T$‹ÎRè ‹ dÆD$@QjPL$4èÿÿˆ\$@jL$è ÿÿ‹E‹\$0…À~ ;Ãv+Ëøë3ÿ‹U ‹l$XâÀƒú@t1‹D$L‹L$P…ÿ‰D$‰L$vUL$èòOuó‹\$0‹L$‹D$3ÿë‹D$P‹L$L‹t$,…öu¾`…Û‰L$L‰D$PvŠL$LRè²FKuð‹D$T‹L$L‹t$P‰L$…ÿÇ@[v…öt U‹ÎèfƒøÿuÆD$Ouç‹|$D‹T$jL$(‰‰wè1ÿÿ‹L$4‹Ç_^]d‰ ƒÄ4ÂhäÀL$è½CÿÿD$hxpPèGü‹A V‹0…öt*‹A0W‹<2;÷_sJ^‰‹A ‹Q‰‹D$ˆ%ÿ‹T$‹âÿRÿP^ƒìHV‹t$\ÆD$%L$‹F ¨ t ÆD$+L$¨tÆ#A‹ÐÆlâAúu°oëút°dë öÐ$ Ààˆ‹D$dÆAL$PT$QRè2‹L$l‹T$dPD$P‹D$hQV‹t$lRPVè`ƒÄ(‹Æ^ƒÄHƒìHV‹t$\ÆD$%L$‹F ¨ t ÆD$+L$¨tÆ#A‹ÐÆlâAúu°oëút°uë öÐ$ Ààˆ‹D$dÆAL$PT$QRè’‹L$l‹T$dPD$P‹D$hQV‹t$lRPVèÀƒÄ(‹Æ^ƒÄHƒìTS‹\$hVW‹s…ö ‹C öÄ u¾ƒþ$¿$‹þ‹K ÆD$ %öÁ D$ t ÆD$ +D$öÁtÆ#@Æ.@á0Æ*@ù u±fëù•ÁIƒáþƒÁgˆ‹L$xÆ@‹D$|PQT$WD$ RPèË‹”$ˆ+÷P‹„$„L$,V‹´$€Q‹Œ$ˆRSPQVèêƒÄ4‹Æ_^[ƒÄTƒìTS‹\$hVW‹s…ö ‹C öÄ u¾ƒþ$¿$‹þ‹K ÆD$ %öÁ D$ t ÆD$ +D$öÁtÆ#@Æ.@á0Æ*@ÆL@ù u±fëù•ÁIƒáþƒÁgˆ‹L$xÆ@‹D$|PQT$WD$ RPèç‹”$ˆ+÷P‹„$„L$,V‹´$€Q‹Œ$ˆRSPQVèƒÄ4‹Æ_^[ƒÄT‹D$ƒìTL$SVWPh°ÊQ舋T$|‹ØƒÄ ‹B…À~ ;Ã~+ËÈë3É‹R ‰L$xâÀUƒú@tp‹D$l‹t$p…ɉD$vT‹ù…ötF‹N ‹…Òt&‹F0‹,;ÕsI‰‹F ‹Q‰‹D$xˆ%ÿë‹L$x‹áÿQ‹ÎÿPƒøÿuÆD$Ou®‹D$3ɉL$|ë‹t$p‹D$l…Û|$ ‰D$vi‰\$…ötL‹V Šˆ\$l‹…Àt&‹N0‹,;ÅsJ‰‹F ‹Q‰‹D$lˆ%ÿë‹L$l‹áÿQ‹ÎÿPƒøÿuÆD$‹D$GH‰D$uŸ‹L$|‹T$t‹D$…ÉÇB‰D$l]vT‹ù…ötF‹N ‹…Òt&‹F0‹;ÓsI‰‹F ‹Q‰‹D$tˆ%ÿë‹L$t‹áÿQ‹ÎÿPƒøÿuÆD$hOu®‹D$d‹T$h_‰‰p^[ƒÄTÂV‹ñèöD$t Vè{ƒÄ‹Æ^ÂÇ€IÃd¡‹T$jÿh;îPd‰%‹Bƒì …ÀSUVW~‹L$X‹\$\4;Æv+Á+Ëð‰t$ë‹\$\ÇD$‹t$‹B %Àƒø@„Ç=t>‹D$D‹L$H…ö‰D$‰L$ v‹T$PL$RèTNuï‹t$‹|$ ‹l$TÇD$鎋l$T…ÛvCŠE<+t<-u8‹L$D‹T$HˆD$\‰L$‹D$\L$P‰T$$è‹L$‹T$ EK‰L$D‰T$H‰\$\‹D$D‹L$H…ö‰D$‰L$ v‹T$PL$RèËNuï‹t$‹|$ ÇD$ë ‹l$T‹|$H‹t$DSèÉ‹¾QUèÈ‹ØƒÄ …Û„=‹L$LT$Rè@ÿÿ‰D$TL$ÇD$8è #¹Ü!ÆD$8èi=ÿÿ‹L$TjPèW$…À‰D$DuU‹L$Tèœ$„À„¨¡\!…Àu7jè‰èƒÄ‰D$T…ÀÆD$8t j‹Èè‹ë3ÀPÆD$<èü ƒÄ£\!‰D$DL$ÆD$8è¶#‹L$ÇD$8ÿÿÿÿ…Étè,ÿÿ…Àt‹j‹Èÿ+݉l$TC‰t$$‰|$(Cÿ…Àv‹ð‹D$TŠQL$(虋L$TAN‰L$Tuä‹L$D‹ÿR‹L$(ˆD$T‹T$T‹D$$‰L$HRL$H‰D$Hèb‹D$\‹t$D‹|$Hë+ÉD$\‹L$\QjeUèqƒÄ …À„Ç+ʼnl$T@‰t$D‹Ø‰|$HCÿ…Àv‹ð‹T$TL$DŠPè ‹L$TAN‰L$Tuä‹D$X‹L$D‹T$H‰L$$…À‰T$(v‹ðj0L$(èÛNuò‹D$LÇD$XŠH ¸¸ÊöÁu¸´Ê‹L$$Š‹T$(‰L$DPL$H‰T$Lèž‹D$\‹t$D‹|$Hë+Ãë!häÀL$(èþ:ÿÿD$$hxpPèˆó‹D$\…À‰t$D‰|$Hv‹ðŠMQL$HèPENuï‹D$H‹T$D‰D$‹D$X…À‰T$v‹ðj0L$è'Nuò‹L$L‹T$‹D$P‹t$@ÇA‹L$R‹T$PQRVè;‹L$DƒÄ‹Æd‰ _^][ƒÄ,Ãd¡‹L$jÿhsîPd‰%Šƒì,<+SUVW»t#<-t<0uŠA‰n‰n€‰n‹W,j€€›Áã QRÿW$‰F‹O,ˆjPQÿW$‰F‹W,jhRÿW$‹NƒÄ$;͉F„…‹V;Õto;Åtk¸ƒÃí‰F‰F‹D$‰®l‰†p‹D$‰†h‹D$ ‰®d‰^H‰F0‰V$‰N(‰n,‰N V‰w ‰o‰o ‰o‰oèíV觃Ä3À_^][Â;Ít Q‹O,QÿW(ƒÄ‹F;Åt ‹W,PRÿW(ƒÄ‹F;Åt P‹G,PÿW(ƒÄ‹O,VQÿW(ƒÄ¸ýÿÿÿ_^][Â_^]¸þÿÿÿ[¸ËD$¯D$ PèýɃÄËD$…ÀtPèõÈYËT$W3À¹@zX‰BD‰BL‰BPÇ‚`ÿÿÿÿó«‹‚l_@‰‚lËD$Ç@4Ç@8ËL$V…ÉWu _¸þÿÿÿ^‹q …öu _¸þÿÿÿ^‹>;ùt _¸þÿÿÿ^‹FHƒøw>‹T$ÿ$…¼3…Òt6ƒúu‹AÇF‰F ëƒúuÅ‹AÇF‰F ‹FHƒøvÆ_3À^ÂQèƒÄöØÀ_ƒà^ƒÀþƒút_ƒÈÿ^‹V ‹G;Ðt_ƒÈÿ^ÂQèà‹F ƒÄ…Àw(V调ĄÀt‹FP‹NL;Á|ÇF_¸^Â_¸^ƒút_ƒÈÿ^‹V ‹G;Ðt_ƒÈÿ^ÂQèƒÄ„Àu_ƒÈÿ^‹F …Àw(VèCƒÄ„Àt‹FP‹NL;Á|ÇF_¸^Â_¸^ÂIx3™2ë2L3‹D$x4s ‹H8…É~2ÀðÃQ‹D$SUV‹p 2ÛWˆ\$½¿9nugVèŠL$ƒÄ È‹FLˆL$‹NP;ÈŒ­ƒ~u‹F …ÀuVè‹ÿÿÿƒÄ„À…Vèšýÿÿ‹FƒÄƒø‰~u‹F …Àu Vè_ÿÿÿƒÄ„Àug9~uVè½ Ø‹FƒÄ;Çt&‹F …ÀuVèdƒ~”ÂRVè¦ƒÄ ‰néWÿÿÿ‹FD‹NH;Á|jV艃ĉné:ÿÿÿ‹‹A…À…-ÿÿÿ„ÛuŠD$„Àu_^]3À[YÃ_‹Å^][YÃV‹t$~4s VèƒÄVèýÿÿƒÄ^ËD$SVW‹x8ŠH4…ÿˆL$~,‹t$æÿ‹`‹ÚÁë3ÞÁâ‹$Ï3ÚO‰˜`uÞ‹P4³ˆ\X‹P8‹òN„™NtuNtXˆ\T‹P$‹pDˆ 2‹pDF‰pD‹Ö‹p$ˆ ‹PD‹p$B‰PDˆ ‹XD‹p$C‹Ó‰XDˆ ‹xDŠP8‹p$G€ê‹Ï‰xD_ˆ‹HDA^‰HD[ËP$‹pDˆ 2‹pDF‰pD‹Ö‹p$ˆ ë ‹P$‹pDˆ 2‹PD‹p$B_‰PDˆ ‹HDA^‰HD[ËP$‹pD_ˆ 2‹HDA^‰HD[ÃQSUV‹t$WÆD$‹F»ƒø…Ù‹FD‹NH;Á®‹‹H…É„¡‹3Òˆ\$Š‹N4‹ú;ùtV9^8uM‹†`ŠÑˆT$‹Ø‹l$Áëåÿ3ÝÁà‹$Ï3؉ž`»ˆ\1X‹F$‹NDˆ‹FD@‰~4‰FDë+;ùu‹F8=ÿt@‰F8ëùs Vè/þÿÿƒÄ‰~4‰^8‹‹(E‰(‹‹xO‰x‹‹PB‰P‹‹H…É…/ÿÿÿÿ@ é'ÿÿÿ‹VD‹FH;ÐÕ‹‹H…ɄȋN …É„½‹3Ɉ\$Š‹ù‹N4;ùtV9^8uM‹†`ŠÑˆT$‹Ø‹l$Áëåÿ3ÝÁà‹$Ï3؉ž`»ˆ\1X‹F$‹NDˆ‹FD@‰~4‰FDë+;ùu‹F8=ÿt@‰F8ëùs VèKýÿÿƒÄ‰~4‰^8‹‹(E‰(‹‹xO‰x‹‹PB‰P‹‹H…Éuÿ@ ÿN éÿÿÿŠD$_^][YËL$SVW2À‹‹r…ötG‹qP‹yL;÷}=‹y,‹R°Š7ˆ‹yP‹G‰yP‹rN‰r‹‹ZC‰Z‹‹zG‰z‹‹r…öuµÿBë°_^[ÃV‹t$…öWu _¸þÿÿÿ^‹~ …ÿu _¸þÿÿÿ^Â97t _¸þÿÿÿ^‹G…Àt P‹F,PÿV(ƒÄ‹G…Àt ‹N,PQÿV(ƒÄ‹…ÿt ‹V,WRÿV(ƒÄ‹F ‹N,PQÿV(ƒÄÇF 3À_^ÂSUVWè‡øÿÿ…Àu _^]¸÷ÿÿÿ[ ‹t$3ÿ;÷„§‹\$;ßt ƒû…–‹l$;ƒý9~$uÇF$À19~(uÇF(à1‹F,jhtúPÿV$ƒÄ ;Çu _^]¸ýÿÿÿ[ ‰0‰F Ç@ ‰x ‰x‰¸d ‰~‰~ ‰~‰~‰¸T ‰¸P ‰¸L ‰x,_‰h0^ˆX(]3À[ _^]¸þÿÿÿ[ V‹t$ W‹|$ 3Àº Ñù;<Ž|‹Áë‹Ñ‹Ê+ȃùuç_^ËD$V…ÀWu _¸þÿÿÿ^‹p …öu _¸þÿÿÿ^Â9t _¸þÿÿÿ^¿‹Fƒø„Ö;Ç…¬ŠF(V„Àtè7ëè ‹†@ú‹Ž@ƒÄ@;È…´‹F …À…©‹†` ‹N0÷Ѓù‰†` |‹ŽX PQhœÍhøìè ëƒÄ9~0|hTÊhøìè ëƒÄ‹Ž` ‹†X ;ÈuH‹†d ÇF‹ÐÀÁê Ð3щ–d ƒ~ Œ6ÿÿÿVèØ;ƒÄƒøt#9~u[éÿÿÿ_ƒÈÿ^Â_¸üÿÿÿ^Â_3À^ƒ~0| ‹Žd ‹–\ QRhhÍhøìèzêƒÄ‹†d ‹¾\ +Ç÷ØÀ$øƒÀ_^‹D$ƒìŠHSUV„ÉW„Á‹‹Q…Ò„Å‹P …Òt\‹IŠP3Ûˆ‹ˆ` ŠX‹Ñ‹h Áê3ÓÁá‹•$Ï3Ñ‹M‰` ‰h ‹YC‰Y‹‹yO‰y‹‹qF‰q‹‹Q…Òu•ÿA니@ú‹°@Y;ó„KŠH<‹¨L ‹P8Ç@ ˆH‹L•‰H8ŠÑÁé‰H8‹H…Éu ‹H‹<@ÓAù‰x‰HuÇ@‹xOƒÿ‰x”Á2ÑF;óˆT$0‰°@„ ÿÿÿ‹L$0‹P<áÿ;Êt‰H<éòþÿÿ‹P8Ç@ ‹L•‰H8ŠÑÁé…ÿ‰H8u ‹H‹<@ÓAù‰x‰HuÇ@‹xOƒÿ‰x”Á2ÑF;óˆT$0‰°@„“þÿÿ‹L$0‹P<áÿ;Êt‰H<ézþÿÿ‹P8Ç@ ‹L•‰H8ŠÑÁé…ÿ‰H8u ‹H‹<@ÓAù‰x‰HuÇ@‹xOƒÿ‰x”Á2ÑF;óˆT$0‰°@„þÿÿ‹L$0‹P<áÿ;Êt‰H<éþÿÿ‹P8‹L•ŠÑ‰H8ˆT$03ÒÁé;ú‰H8u‹H‹<@ÓAù‰x‰Hu‰P‹H‹|$0IFƒù‰H”Ããÿçÿ3ß‹x8ƒÃ‰°@‰X ‹|½3Û‰x8ŠX8‰X<‹ßÁë;ʉX8u‹H‹<@ÓAù‰x‰Hu‰P‹X3ÒK‹Ë‰Xƒù‹H<”Â3ÊF‰H<‰°@é?ýÿÿ‹ŠH‹@‹¸` ‹k‹[‹p ‰\$‰\$(‹˜@úˆL$‹ˆL ‰T$‹P…ötWІ„Àt)jjjD$VPè ÷ÿÿ‹D$ …ÀtjjjVjèóöÿÿë L$ VQèvúÿÿÿ¸ìtÿØìt Wè|›ƒÄ_^‹D$3ɉˆ\‰ˆXÃV‹t$W‹~D…ÿ~c‹–d‹Ž`‹ÂÒÁè÷Ñ Â‹–l3Áƒú‰Ž`‰†d~ÇFLU‹®hƒý]|WPQRhðÍhøìèLуÄVè“GƒÄ‹F‹NDÁ‰F,‹†lƒøu1VèTÿÿÿjBVèLjZVèDjhVè<ŠŽp€Á0QVè,ƒÄ$‹FD…À~ej1VèjAVèjYVè j&VèjSVèújYVèò‹–`RVè•jjVèû‹FƒÄDPjVèìVèæVèðƒÄŠD$„ÀtpjVè­jrVè¥jEVèj8Vè•jPVèhVè‚‹ŽdQVè%‹†hƒÄ8ƒø|‹–dRhÌÍhøìè!ÐƒÄ VèƒÄ_^ËD$‹ˆ\…É~EVW¹øÿÿÿ‹X‹p,‹xLÁêˆ>‹PL‹°\‹¸XBñ‰PL‹ÖÁç…Ò‰¸X‰°\Ä_^ËD$VWƒ¸\|B¹øÿÿÿ‹X‹p,‹xLÁêˆ>‹PL‹°\‹¸XBñ‰PL‹ÖÁçƒú‰¸X‰°\}Ë\‹t$‹|$¹ +ÊÖ+Ή\Ó狈X Ï_‰ˆX^ÃS‹\$ ‹ÃV‹t$ ÁèPjVèXÿÿÿ3ÉŠL$QjVèIÿÿÿ3ÒŠ×RjVè<ÿÿÿãÿSjVè-ÿÿÿƒÄ0^[ËD$‹L$%ÿPjQè ÿÿÿƒÄ ÃìSUV‹´$$WV‹F$‹N(‹^ ‰D$$‰L$踋FTƒÄ@‰D$x H¾x3Àó«‹NT3ÿ3Ò3À…ɉT$~ ˆD$@;Á|÷‹FD3í…ÀŽE‰\$‹L$‹ IyÈ‹\$ 3ÀŠŠœ0XŠD$$:Ãu B‰T$é©…Ò~\‹L$J yöÂtfÇ‹†|GƒÁ@‰†|ëfÇ‹†xGƒÁ@‰†xƒú|Bþ™+ÂÑø‰D$‹Ðë¸ÇD$‹T$ŠL$%ŠD$$ˆD$%:ÙD$%t@ŠÑŠˆ:Ùuõ‹T$‹\$ˆL$$L$$+ÁGHf‰L{þ‹Œ†|A‰Œ†|‹\$‹FDEƒÃ;è‰\$Œÿÿÿ…Ò~P‹D$J xöÂtfÇ‹†|GƒÁ@‰†|ëfÇ‹†xGƒÁ@‰†xƒú|Bþ™+ÂÑø‰D$‹Ð븋L$‹D$f‰y‹Œ†xAG‰Œ†x‰¾t_^][ÄËD$3ÉÇ@TŠTX„ÒtŠPTˆ”X‹PTB‰PTAù|ÞÃìLSUV‹t$\W‹†h‹^(ƒø|!‹FT‹Žt‹VDPQRhäÎhøìèĩċVT†$“ƒÂ‹ø‰T$‰|$`ÇD$0…Ò~‹Ê¸‹éÁéó«‹Íƒáóª‹|$`‹D$0ÇH‰|$`‰D$0u΋†t3ÿ;Ç h¹ è°ÕÿÿƒÄ‹ŽtùÈ}¸ë,ùX}¸ëù°}¸ë3Àù` ÀƒÀ;ljD$‰D$ ‰L$(‰|$`Ž+‘‰|$$‹ÈÁáÈN‰T$‹D$(‹L$`™÷|$ 3íyÿ‰l$…À~#‹L$”¾xI;ù} jƒÂG;è|ñ‹L$`‰l$;ù~5‹D$ ‹T$;Ât)ƒøt$‹T$$â€yJƒÊþBƒúu‹”¾x+êO‰l$ƒ¾h|;ÛD$‹D$`‹L$ ƒìÜ `Ú¶tÝ$UWPQh¨ÎhøìèÝÊ‹Œ$€ƒÄ ‹T$3À…Ò‹T$~;Á| ;ÇÆëÆ@;D$|ç‹D$ ‹L$$êH‰T$‹T$(AG+Õ‰D$ …À‰L$$‰|$`‰T$(ìþÿÿÇD$0‹l$…í~7‹Í3À|$D‰l$`‹l$–`±ó«…í~‹Í3À‹úó«‹D$`ÂH‰D$`uãë‹l$ƒ|$uj…í~f½Ülÿÿ†$“¾”É+î3Ò3ÉŠŠÁâ Ñ3ɉWüŠˆ3҃NJÁâ Ñ3ɉWðŠˆ3ÒŠ Áâ Ñ‹L$@‰Wô(;Ñ|­3í‰l$‰l$ ‹Žt‹T$;é’E1;Á‰D$$‰D$|Aÿ‰D$…Ò~‹Ê3À|$4Ñéó«Éfó«‹D$ƒú…’ ‹È+ÍAƒù2…„ f‹ kf‹|káÿÿçÿÿ‰|$`Ç™ ‘™ ÁâÁç‹27‹|$`ÁáÁç1þ‹Š”É‹’˜É”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k"çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k$çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k&çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k(çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k*çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k,çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k.çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k0çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k2çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k4çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k6çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k8çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k:çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k<çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k>çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k@çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kBçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kDçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kFçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kHçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kJçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kLçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kNçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kPçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kRçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kTçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kVçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kXçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|kZçÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k\çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k^çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜Éf‹|k`çÿÿ‰|$`Ç™ Áç7‹|$`Áçþ”É—˜É‹|$$f‹<{çÿÿ‰|$`Ç™ Áç7‹|$`Áçþf‰D$4Áè”É—˜Éf‰D$6f‰L$8f‰T$<ÁéÁêf‰L$:f‰T$>ëe;èek‰D$`‹D$+Å@‰D$(ë‹T$‹L$`…Òf‹ ~,‹|$áÿÿD$4Œ1$“f¶fÁƒÀOuí‹D$(‹T$`ƒÂH‰T$`‰D$(u³‹T$ƒÈÿ3ÿ…ÒÇD$(ÿÉš;~3L$4‰L$`‹T$`3Éf‹ ‹T$(;Ê}‰L$(‹Ç‹T$`GƒÂ‰T$`‹T$;ú|Õ‹L$(‹|$ ù‹L„DA‰|$ ‰L„D‹L$ˆ„1€Aƒú‰L$…­‹T$+ÕBƒú2…H,‹ÁÁàÁ3Éf‹ kÑàÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹Tk Ð –‹–B‰3Éf‹Lk È‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹LkÈ‹Ž ŽB‰3Òf‹TkÐ –‹–B‰3Éf‹Lk È‹Ž ŽB‰3Òf‹Tk"Ð –‹–B‰3Éf‹Lk$È‹Ž ŽB‰3Òf‹Tk&Ð –‹–B‰3Éf‹Lk(È‹Ž ŽB‰3Òf‹Tk*Ð –‹–B‰3Éf‹Lk,È‹Ž ŽB‰3Òf‹Tk.Ð –‹–B‰3Éf‹Lk0È‹Ž ŽB‰3Òf‹Tk2Ð –‹–B‰3Éf‹Lk4È‹Ž ŽB‰3Òf‹Tk6Ð –‹–B‰3Éf‹Lk8È‹Ž ŽB‰3Òf‹Tk:Ð –‹–B‰3Éf‹Lk<È‹Ž ŽB‰3Òf‹Tk>Ð –‹–B‰3Éf‹Lk@È‹Ž ŽB‰3Òf‹TkBÐ –‹–B‰3Éf‹LkDÈ‹Ž ŽB‰3Òf‹TkFÐ –‹–B‰3Éf‹LkHÈ‹Ž ŽB‰3Òf‹TkJÐ –‹–B‰3Éf‹LkLÈ‹Ž ŽB‰3Òf‹TkNÐ –‹–B‰3Éf‹LkPÈ‹Ž ŽB‰3Òf‹TkRÐ –‹–B‰3Éf‹LkTÈ‹Ž ŽB‰3Òf‹TkVÐ –‹–B‰3Éf‹LkXÈ‹Ž ŽB‰3Òf‹TkZÐ –‹B‰3Éf‹Lk\È‹Ž ŽB‰3Òf‹Tk^Ћ<– –G3Ò‰93Éf‹Lk`È‹,Ž ŽE‰)‹L$$f‹KЋ ––‹T$A‰jéšñÿÿ;l$,H,k‹ÁÁàÁ‹L$+ÍÑàA3ÿf‹:ƒÂø‹,¾<¾EI‰/uê‹T$jé\ñÿÿƒ¾h|c‹D$ ™ƒâÂÁøP‹D$4@Ph|Îhøìè㺋l$ ƒÄ…í~|$D‹QhxÎhøìèºƒÄ ƒÇMuåh0Åhøì誺‹T$ƒÄ…Ò~8®$“¾`±‰T$`‹T$jRWUè¡K‹D$pƒÄÇÅH‰D$`uØ‹D$0@ƒø‰D$0Œäïÿÿ‹L$ƒù|hº èòÃÿÿ‹L$ƒÄ‹l$ý€}ýRF~h» èÍÃÿÿ‹l$ ‹L$ƒÄ3À…É~ ˆD(@;Á|÷3ÿ…í~DŠD$(ŠŒ>€ÇD$0ˆL$`:È‹L$0tAŠÐŠD (ˆT (8D$`u7ÒLG;ýˆD$(|Ä‹L$…Éޝ†0™‰L$(‰D$0†$“‰D$`‹D$3ÿ3ɽ …À~B‹T$`3ÀŠ ;Ç~‹ø;Å}‹è‹D$A;È|æƒÿ~ h¼ è ÃÿÿƒÄƒý} h½ èùÂÿÿƒÄ‹L$‹T$`‹D$0QWURPè`M‹T$t‹L$D‹D$<ƒÄÂÁH‰T$`‰L$0‰D$(…iÿÿÿnX3ɋկD 43À€<tÆD 4@ƒø|ïAƒÂƒù|ß‹NL3ÿ‰L$ ŠD<4„ÀtjëjjVè éÿÿƒÄ Gƒÿ|á3À‰D$`ŠL4„Ét#3ÿ€èÿÿ‹T$l‹D$(ƒÄ G×;Ð|Æ‹|$ƒ¾h|‹FL‹L$ +ÁPhLÎhøìè¶·ƒÄ ‹NL…ÿ‰L$ Ž¥†$“‰|$(‰D$`3ÒŠ‹úWjVè×çÿÿ‹D$ ƒÄ …À~a‹l$`‰D$03ÉŠM;ù}jjVè±çÿÿ3ÒƒÄ ŠUG;ú|é3ÀŠE;ø~jjVè‘çÿÿ3ÉƒÄ ŠMO;ùéjjVèzçÿÿ‹D$<ƒÄ EH‰D$0u§‹D$`‹L$(I‰D$`‰L$(…iÿÿÿƒ¾h|‹VL‹l$ +ÕRh8ÎhøìèݶƒÄ ‹FL3ɉD$ 3톀‰L$‰l$`‰D$0‹†t;è}1;ø‰|$$‰|$|xÿ‰|$‹D$3ÒŠ”1€;Ð| h¾ è.ÀÿÿƒÄƒ|$…Á‹Ç+Å@ƒø2…³‹L$3ÀŠ„1€ˆ’ƒÀ&‹ÑÁâÑ‹ÈÁá%ÿÿ‹L…ŠQRVè^âÿÿ‹D$x3Òf‹DC@%ÿÿ‹L…ŠQRVè?âÿÿ‹„$„3Òf‹DCB%ÿÿ‹L…ŠQRVèâÿÿ‹„$3Òf‹DCD%ÿÿ‹L…ŠQRVèûáÿÿ‹„$œ3Òf‹DCF%ÿÿ‹L…ŠQRVèÙáÿÿ‹„$¨ƒÄH3Òf‹DCH%ÿÿ‹L…ŠQRVè´áÿÿ‹D$l3Òf‹DCJ%ÿÿ‹L…ŠQRVè•áÿÿ‹D$xf‹DCL%ÿÿ3Ò‹L…QŠRVèváÿÿ‹„$„3Òf‹DCN%ÿÿ‹L…ŠQRVèTáÿÿ‹„$3Òf‹DCP%ÿÿ‹L…ŠQRVè2áÿÿ‹„$œ3Òf‹DCR%ÿÿ‹L…ŠQRVèáÿÿ‹„$¨ƒÄH3Òf‹DCT%ÿÿ‹L…ŠQRVèëàÿÿ‹D$l3Òf‹DCV%ÿÿ‹L…ŠQRVèÌàÿÿ‹D$x3Òf‹DCX%ÿÿ‹L…ŠQRVè­àÿÿ‹„$„3Òf‹DCZ%ÿÿ‹L…ŠQRVè‹àÿÿ‹„$f‹DC\%ÿÿ3Ò‹L…QŠRVèiàÿÿ‹„$œ3Òf‹DC^%ÿÿ‹L…ŠQRVèGàÿÿ‹„$¨ƒÄH3Òf‹DC`%ÿÿ‹L…ŠQRVè"àÿÿ‹D$03Òf‹C%ÿÿ‹L…ŠQRVèàÿÿƒÄë];ï]‹D$‹”$$‹È½ƒáÓå‹ÈÁù…,Žt‹ø‹ ‹l$+ÍyË‹¬$(@ƒÂ;É||É3íƒÏÿG¿‹È‹ÐƒáÁúÓç…<–t…Ét@¿‹È‹ÐƒáÁúÓç…<–uå‹È¿Áù‹Ž‹ÈƒáÓç…út@ƒúÿuƒÀ ‹ÐÁúƒ<–ÿtò‹ÈºƒáÓâ‹ÈÁù…Žt@º‹ÈƒáÓâ‹ÈÁù…Žu鋼$0Xÿ;ß/‹È¿ƒá‹ÐÓçÁú…<–u…Ét@¿‹È‹ÐƒáÓçÁú…<–tå‹È¿Áù‹Ž‹ÈƒáÓç…úu?…ÒuƒÀ ‹ÐÁúƒ<–tò‹ÈºƒáÓâ‹ÈÁù…Žu@º‹ÈƒáÓâ‹ÈÁù…Žtéxÿ‹„$0;øŽ;ûŽÀþÿÿ‹„$(‹Œ$$‹×W+ÓSPQl*‰l$(è1ƒÄƒÉÿ;ß‹Ãþÿÿ‹”$$š‰\$‹‹œ$(‹“;Ët ‹È½ÁùŽ‹ÈƒáÓå‹ Í‹l$‰ ‹Ë‹\$@ƒÃ;lj\$~Àé:þÿÿ‹¼$0ƒ¼$4|UhüÛhøìè­„ƒÄ ‹T$;ljD$…í…Œýÿÿ‹¼$0‹„$4]ƒø|hØÛhøìèp„ƒÄ3À…ÿ~[‹”$ ‹÷‹¼„Œ„…ÿu ‹yƒÁ@…ÿtõ‹œ„‹ ‹¼$$KƒÂN‰œ„ˆ9uÂ=| híè¿ÿÿƒÄ_^[ÄÃìH‹„$T‹Œ$XSU‹¬$TVW3ö‰„$ȉL$8ÇD$\$<¼$Ìë‹\$ ‹|$$ƒ|$d| hìèVÿÿƒÄ‹L$ƒëƒï‰\$ ‹‰|$$‹?‹Ó+×Iƒú ‰L$‰|$,‰\$4}‹„$`SWPUèwƒÄéW‹Æ3ÒÁà+Æ@ €D޹%ÿ‰D$(÷ñ…Òu‹T½‹„$`‹ ‰L$ë"ƒúu ;Ñú‹D•ë‹D‹Œ$`‹‰T$‰|$‰\$‹D$t…D½;ûÁ‹‹Œ$`‹l$‹ ‘+Íu‹‹¬$\‰‹L$‰AƒÆG‰L$ƒÀëÅ…É ‹¬$\GƒÀë´‹¬$\‹T$t•D;ûf‹‹Œ$`‹l$‹ ‘+Íu‹‹¬$\‰‹L$‰IƒîK‰L$ƒèëÉ…É| ‹¬$\Kƒè븋¬$\;û‹T‹D½‰T½‰DGKé+ÿÿÿ‹T$‹D$;ÂŒ ‹t$,‹Ç+Â+Ö;ЉD$0|‹Ð…Ò~2‹ÏDµ+ʉT$L‹ƒÀ‰T$‹‰Pü‹T$‰‹T$ƒÁJ‰T$uÞ‹T$4‹D$‹Ê+Ã+L$;È|‹È…É~-‹Â|½+Á‰L$D…‹0‹‰7‰‹L$ƒÇƒÀI‰L$uç‹t$,‹L$0‹D$+Ø‹Â|1ÿ\‹Ï+Ã+Î;È~.‹D$ ‹L$$‹t$ƒÁ‰8ƒÀF‰‰FƒÁƒÀ‰t$‰L$$‰D$ ë,‹D$$‹L$ ‹T$ƒÁ‰ƒÀB‰9‰0BƒÀƒÁ‰T$‰D$$‰L$ ‹t$(‹D$…À=ýÿÿ_^][ÄHËD$ SUV‹t$W;Æ„½‹l$‹T$‹Î+ȃù~W~ü;ø|P º‰L$‹‰D$ ‹\…G;ƃÁ‹;\•v ‰QðƒÀƒÁ;Æ~ë‹T$‹L$ O‰L‚ð‹L$‹D$ƒé;ø‰L$}·~ÿ;ø|N º‰L$‹‰D$ ‹\…G;ƃÁ‹;\•v ‰Qü@ƒÁ;Æ~í‹L$‹T$ O‰Tü‹L$‹D$ƒé;ø‰L$}¹_^][ËD$ì, ƒø|h¤ÜhøìèòƒÄSUV‹´$H W¹†3Ò‰ƒèIuø‹„$P ‹¬$D 3ÉHŠmƒø‰D$ |m‹¼$H |Gü3Ûf‰WŠ<(ƒèÁù ˃C‰Ž3Ûf‰W Š|(Áù Ë‹ŽC‰Ž3Ûf‰WŠ|(Áù Ë‹ŽC‰Ž3Ûf‰WŠ|(Áù Ë‹ŽCƒø‰Ž}ž;Â|&‹¼$H ƒê‰t$‰T$‹Ê‹×‰l$0‹1+ÕƒúŒAƒþ8 /«Ñù‰D$`‹‹‹Œ$ÖŠ R‹»ÖŠ ÎR‹ŠPè ƒÄ %ÿ‰D$(‰l$4‰l$‰|$ ‹L$4‹D$‹ƒ‰T$9|$ä‹‹¬$‰L$\Î3ÒŠ)‹Ê‹T$(+Êu-‹L$‹ƒÁ‰‹T$\‰Qü‹T$4B‰L$‰T$4‹T$BƒÀ‰T$ë«…É‹T$BƒÀ‰T$뙋D$ ƒ»‰L$9|$s‹3Û 2Š)‹Ë‹\$(+Ëu(‹L$‹ƒé‰‹œ$‰Q‹T$ JO‰T$ ‰L$ƒèë¾…É| ‹œ$Oƒèë­‹D$‹œ$;Ç‹»‹ ƒ‰ƒ@‰ »‰D$Oéÿÿÿ‹l$4‹D$ ;Å}4‹D$‹l$$‹|$,F‰0‹t$¹EùñÁ‰l$$‰|$,‰t$‰D$éæ‹L$‹D$0‹Ñ+Õ+è;ê‰T$|‹ê…í~*‹D$`+͉l$( ‹‹‹(‰‹T$(‰)ƒÀƒÁJ‰T$(uç‹T$‹L$‹D$ +Ç‹)‹Í+L$ ;È|‹È…É~$‹T$+é“\«‹é‹‹‰‰ ƒÀƒÃMuï‹T$‹D$‹\$0‹l$ ‰\$8‹+ýTÿ‹l$0D‹Úz+݉|$@xÿ‰|$X~‰|$L‹ù+ø‰T$P;߉t$D‰t$H}‹L$‰D$8‹Å‰t$D‹9‹Ê‹Öë‹|$P‹T$H‹\$X‹l$@+Ý‹é+è;ë}‹Ð‹D$@‰T$@‹Ñ‹L$X‰T$X‹T$L‰t$L‹ï‹Ù+l$8+Ø;ë}‹l$8‹Ø‹Å‹ï‹ù‹Í‹ê‹Öë‹\$8‹l$D‹t$,‰‹\$ƒÆ‰;‹|$ƒÃ‰‹D$X‰/‹l$$ƒÇ‰ ‹L$LE‰‹T$@ƒÆƒÃƒÇE‰‰‰EƒÆƒÃƒÇ‰\$‹œ$‰l$$‰t$,‰|$ë8‹”$4‹„$$‹Œ$ R‹”$ VWUPQRSè,‹„$TƒÄ ƒ8| ‹D$$…À&üÿÿ_^][ÄËD$ƒìSUV‹t$8+ÆW@ƒøŒÅ‹ @Û3Ò;È}¹@Û‹qƒÁB;ð|õJ‰T$ˆž‹l$H‹\$D‹t$,•@Û‰T$ ‹‹D$<‰T$ <•‰L$‰L$‰D$D;L$@:‹0‰L$H‰T$,U ‹T$:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ÊL8ŠT>@F:Ñt _^À]÷Ø[ËL$$ŠT8Š\>@FƒÁ:Ú‰L$…f‹L$ ,q Af‹f‹]f;Ú…LŠT8Š\>@ƒÁFƒÅ:Ú…4f‹f‹]f;Ú…$ŠT8Š\>@ƒÁFƒÅ:Ú… f‹f‹]f;Ú…üŠT8Š\>@ƒÁFƒÅ:Ú…äf‹f‹]f;Ú…ÔŠT8Š\>@ƒÁFƒÅ:Ú…¼f‹f‹]f;Ú…¬ŠT8Š\>@ƒÁFƒÅ:Ú…”f‹f‹]f;Ú…„ŠT8Š\>@ƒÁFƒÅ:Úupf‹f‹]f;ÚudŠT8Š\>@ƒÁFƒÅ:ÚuPf‹f‹]f;ÚuD‹T$$@ƒÁFƒÅ;Âr+Â+Ë;òr+òÒ+ê‹T$‹\$(ƒêÿ ‰T$…Ò|Š8Š>:Ú„¤þÿÿ_^À]÷Ø[Ã_^]2À[ÊD$ŠL$:ÁvŠÐŠÁŠÊŠT$ :Êv:ÂwŠÂÊÁø<è¶P‹Œ$HSUV…ÉW~)‹”$T´$0+ò‹ù‹…Àu¸Áà‰ƒÂOué½3ö;͋ىt$‰´$,Ç„$< þÿÿÿŒúƒÈÿ¼$@ T$‰t$ó«ë‹T$‹|$F‹ÎƒÂ‹¼<0‰T$Ñù‰*‹Æ‹TŒ;¼”,}‰T„‹ÁÑù‹TŒ;¼”,|ë‹L$‰l„‹„$XEƒÁ;è‰L$~¤þ| hÑè£wÿÿƒÄƒþŽcl´‹D$ N‰D$‹E‰D$ ƒí¹‰D$ ;Æ;}‹T„ ‹|„‹””,;”¼,}@‹|$‹T„‹¼¼,;¼”,|‰TŒ‹È뾋D$N‰DŒ‹L$ ‹E‰L$‰D$ ƒí¹‰D$ ;Æ;}‹T„ ‹|„‹””,;”¼,}@‹|$‹T„‹¼¼,;¼”,|‰TŒ‹È뾋D$‹|$‰DŒ‹D$C‹Œ„,‰œ„< ‹„¼,‰œ¼< ‹Ñ‹øâÿçÿ;ú~‹×$€áÁB ÂF‹ÎƒÅÑù‰]‰„œ,‹|ŒÇ„œ< ÿÿÿÿ‹Ö;„¼,}‰|”‹ÑÑù‹|Œ;„¼,|ëƒþ‰\”¡þÿÿ‹Œ$Xû|hÒèvÿÿ‹Œ$\ƒÄ¾2Û;Î|s¼$@ ‹3Ò…À| ‹„„< B…À}ô‹„$PˆTÿ‹„$\;Ð~³FƒÇ;ñ~Ì„Ût4ƒùŽpýÿÿ´$0I‹ƒÆÁø™+ÂÑø@Áà‰FüIu鋌$XéEýÿÿ_^][Ä<ËD$UV‹t$3í;ð5‹T$SW‹|$$3À…ÿ~‹L$3ÛŠ;Þu‰)E@ƒÁ;Ç|ì‹D$ ÑåF;ð~×_[^]ËD$S‹\$ U‹l$ V3öW;Å‹ø.3À…Û~#‹L$ ±‹\$ 3ÒŠ;×u‰FƒÁ‹\$,@;Ã|äG;ý~Ò‹T$¹3À‹ú…Ûó«~‹t$ 3ÉŠ 0‹|ŠLŠG@;É9|çB¹‹pü‹Þ‰ƒÀIuñ‹\$¹3À‹ûó«‹L$$3ö;Í.Š‹û‹\$$‹Í+Ë+úA‹X+ƒÀó^ÿ‰\üÑæIuê‹\$‹L$$A;Í +éŠT‹üE‹ ‹ƒÂƒÀL +ËM‰Hüuê_^][Ãì\‹D$dSUV‹t$lW3ÛƒÏÿL$;ó‰|$‰\$‰D$‰L$t„o;Ägh€è @‹èƒÄ;ë„PSS‰]h‰]pS‰] ‰]$‰](‰]D‰]‰]H‰] ‰]‰]‰]@‰]8‰]<‰]l‰]t‰}xèÆ;‰EL‹þƒÉÿ3À‰]P‰]Xò®÷ÑQè¨?‹ÐƒÄ;Ó‰UT„â‹þƒÉÿ3Àò®÷Ñ+ù‹Á‹÷‹ú²rÁéó¥‹Èƒáó¤ˆ]\‹L$8uˆU\ŠƒÄ$;ó‰EH‰E u;Ãu>UèDƒÄ_^]3À[ƒÄ\Ãh@è™>j8hàÜjñU‰ED‰EèX ƒÄ…ÀuÇ9]DtÂÇE@è%m‰‹D$xL$;ÃQ} ‹T$tRèè3ëPèžkƒÄ;ÉE@t‹€}\wu:‹l‹ hj SSSSSSjRQhÈÜPèLhƒÄ0ÇE` ‰]d‹Å_^][ƒÄ\ÃUèo‹U@RèÂi‹MƒÄ+Á‰E`_‰]d‹Å^][ƒÄ\ÃìV‹t$…ö}3À^ƒÄÃVD$hèÜPè?H‹L$,VT$QRèMýÿÿƒÄ^ƒÄÃSV‹t$ W‹~ƒÿse…ÿt ‹‹NDŠˆè$lº@‹ÏÇ‹F@ÓúP‹FDÇRjPè—1ƒÄ…Àu‹N@öA tÇF8ÿÿÿÿ‹VЉV‹Â‹VDƒø‰s‰FX_^[Ë‹h3ÉŠ;Ê…‹ l3ÒŠP;Ñ…õ‹NƒÀƒÁþV‰N‰èñV‹øèéƒÄƒÿ‹Ø…ÀöÃà…·¿VèǃÄOuôöÃt2Vè¶V‹øè®ÁàøƒÄ‹ÇO…ÀtV虃ăøÿt‹ÏO…ÉuëöÃtVèƒÄ…Àtƒøÿt VèmƒÄ…ÀuîöÃtVè[ƒÄ…Àtƒøÿt VèIƒÄ…ÀuîöÃt¿Vè2ƒÄOuô‹V<_÷ÚÒƒâý‰V8^[ÃÇF8ýÿÿÿ_^[ÃÇFX_^[ÃV‹t$‹F<…ÀtƒÈÿ^ËF…ÀuFèˆjÇ‹F@‹NDPh@jQè0ƒÄ‰F…Àu‹V@ÇF<ƒÈÿöB t‰F8^ËFD‰‹F3ÉH‰F‹Š@‰‹Á^ÃV‹t$W3ÿ…öu_¸þÿÿÿ^ËFP…Àt Pèb:ƒÄ‹F…ÀtŠF\*ƒÄ _^Ã_ƒÈÿ^ÃV‹t$WVèT÷ÿÿV‹øèL÷ÿÿÁàVøèA÷ÿÿÁàVøè6÷ÿÿƒÄƒøÿuÇF8ýÿÿÿÁàÇ_^ÃV‹t$…öu¸þÿÿÿ^À~\wu,jVèüÿÿƒÄ…Àu‹FL‹N@PQè‹Vh‹F@RPèƒÄVèH÷ÿÿƒÄ^ÃSV‹t$W‹|$»‹ÆW%ÿPè-ƒÄÁîKué_^[ËL$3Ò;Êt@‹A;Ât9‰P‰Q‰Q‰QÇA0ˆ(‰‰P‰P ‰P ‰P$‰P0‰P4‰Hd‰HH‰HD3ÀøþÿÿÿËD$ VW3ÿ;Ç„½ŠŠ àÜ:Á…­ƒ|$8…¢‹t$ ;÷u_¸þÿÿÿ^ËF ‰~;Çu ÇF àú‰~(9~$uÇF$û‹N(h¨jQÿV ƒÄ ;Çu_¸üÿÿÿ^ËL$‰F;Ï}‰x÷Ùë‹ÑÁúBƒù0‰P}ƒáƒù|ƒùV‰H‰x,èÿþÿÿƒÄ_^ÃP‹F(PÿV$ƒÄ‰~¸þÿÿÿ_^Ã_¸úÿÿÿ^ËD$ƒìD…ÀSUVW„g‹p…ö‰t$8„X‹H …É„Mƒ8u ‹H…É…=ƒ> uÇ ‹H ‹P‹8‹@‹^0‹n4‰L$(‹ƒù‰T$ ‰|$‰D$‰\$‰D$@‰T$,ÇD$4‡òë‹T$ ÿ$hß‹N…Éu Ç éȃýs(…À„3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý‰\$‰|$rØ‹F¨tMû‹uEjjjèb,‰FÆD$0ÆD$1‹‹ND$0jPQèE,3ۃĉF‹D$‰\$3íÇéG¨ÇF„²‹Ã‹Ó%ÿ¹ÁàÁêÂ3Ò÷ñ…Ò…‹Óƒâ€út‹D$XÇ@”Þ‹D$Çéò‹FƒíÁë‹Ë‰\$ƒáƒÁ;Èv‹T$X‹D$ÇB€ÞÇé¿jjjè8‹L$d‰F÷Óã‰A0‹D$€Ï Áë‰3ÛƒÄ ‰\$3í醋T$X‹D$ÇBhÞÇélƒýs*…À„¹3ÉHЉD$‹Ñ‹ÍÓâƒÅÚGƒý‰\$‰|$rÖ€û‰^t‹L$XÇA”ÞéöÇàt‹T$XÇBLÞé öÇt%ˆ\$$D$$Áëˆ\$%‹NjPQèÑ*‰F‹D$ƒÄ 3Û3íÇëƒý s …À„'3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý rà‹NöÅt7‹Ã‹Ëˆ\$$T$$ÁèÁéÁëˆD$%ˆL$&ˆ\$'‹FjRPèa*‰F‹D$ƒÄ 3Û3íÇëƒýs&…À„·3ÉHЉD$‹Ñ‹ÍÓâƒÅÚGƒý‰|$rÚ‹NöÅt%ˆ\$$D$$Áëˆ\$%‹NjPQèý)‰F‹D$ƒÄ 3Û3í‰\$Ç‹NöÅtaƒýs$…À„I3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý‰|$rÜ‹N‰^8öÅt%ˆ\$$D$$Áëˆ\$%‹NjPQèŽ)‰F‹D$ƒÄ 3Û3í‰\$Ç‹VöÆtV‹N8;ȉL$v‹È‰L$…Ét6öÆt‹T$‹FRWPèE)‹L$(‰F‹D$ƒÄ ‹V8+Áù+щD$‰|$‰V8‹N8…É…‘Ç‹NöÅtW…À„{3É3ÒŠ9A…Ò‰T$0t;ÈrîöF ‰L$t‹VQWRèÙ(‹L$(‹T$<‰F‹D$ƒÄ +Áù…Ò‰D$‰|$…,Ç‹NöÅtY…À„3É3ÒŠ9A…Ò‰T$0t;ÈrîöF ‰L$t‹Á‹NPWQèr(‹T$<‹L$(‰F‹D$ƒÄ +Áù…Ò‰D$‰|$…ÅÇ‹NöÅtRƒýs(…À„ª3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý‰\$‰|$rØ‹Náÿÿ;Ùt‹T$XÇB8Þé 3Û3í‰\$jjjèá'‹L$d‰FƒÄ ‰A0‹D$Ç éä ƒý s(…À„13Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý ‰\$‰|$r؋ˋÓáÿâÿÁáÊ3ÒŠt$ÁáÊ‹T$XÁëË3Û‰N‰J03íÇ ë‹T$X‹N …É„… jjjèÃ3‹L$d‰FƒÄ ‰A0‹D$Ç ƒ|$\„š ‹N…Ét‹ÍǃáÓë+é‰\$é! ƒýs$…À„n 3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý‰|$r܋˃áÑë‰N‹ËƒáMƒùwdÿ$ÜßÁëÇ ‰\$ƒíéÇ Vè‹D$ƒÄÁëlj\$ƒíé¥ Áëlj\$ƒíé ‹T$XÇB$ÞÇÁë‰\$ƒíép ‹ÍƒáÓë+éƒý ‰\$s*…À„° 3ÉHЉD$‹Ñ‹ÍÓâƒÅÚGƒý ‰\$‰|$rÖ‹Ó‹Ë÷ÒáÿÿÁê;Êt‹L$XÇAÞé 3Û‰N8‰\$3íÇ‹N8…ɉL$„C;Èv‹È‰L$‹T$ ;Êv‹Ê‰L$…É„+ ‹D$‹|$(‹Ñ‹ðÁéó¥‹Êƒáó¤‹L$‹t$‹|$ Á+ñ‰D$‹D$8‰t$‹t$(+ù‹P8ñ+щ|$ ‹|$‰t$(‹t$8‰P8‹D$ét ƒýs&…À„Á 3ÉHЉD$‹Ñ‹ÍÓâƒÅÚGƒý‰|$rڋ˃íƒáÁëÁ‹ÓÁë‰NX‹ËƒáƒâƒÁB‰NT‹NXÁëù‰V\‰\$w ‹ÊƒùwÇF`Ç‹N`‹VT;Êspë‹T$XÇBàÝéÖ ‹D$ƒýs$…À„% 3Ò‹ÍŠHÓâƒÅ‰D$ÚGƒý‰|$rÜ‹N`3ҊÃíf‹MðƒàÁëf‰DVh‹V`‹NTB‹Â‰V`;Á‰\$r¢‹N`¸;Ès!‹N`3Òf‹MðfÇDVh‹V`B‹Ê‰V`;ÈrßNd†(‰FD–è‰FLRPÇQFhjPjèÕ+ƒÄ‰D$4…Àt‹L$X‹D$ÇAÄÝÇéÿ ‹D$ÇF`Ç‹V\‹NXÊ‹V`;щL$<ƒˆ‹NLºÓâJÿ‹VD‰L$0#Ë‹ ЉL$D‹L$E‹Ñâÿ;ÕvA…À„ü 3ÉHЉD$‹Ñ‹ÍÓâ‹NDƒÅÚ‹T$0#ÓG‰|$‹ ‘‰L$D‹L$E‹Ñâÿ;Õw¿‹T$FfƒúsXáÿ;é‰L$s)…À„£ 3ÉHЉD$‹Ñ‹ÍÓâ‹L$ƒÅÚG;é‰|$r×f‹T$F+éÓë‹N`f‰TNh‹N`A‰\$‰N`éuváÿ‰L$Q;ês,…À„F 3ÉHЉD$‹Ñ‹ÍÓâ‹L$ƒÅÚQG;ê‰|$rÔ‹V`+éÓë…Ò‰\$„H3Éf‹LVf‰L$0‹ËƒáƒÁÁë‰L$‰\$ƒíéÎfƒúuaáÿ‰L$Q;ês,…À„Ê3ÉHЉD$‹Ñ‹ÍÓâ‹L$ƒÅÚQG;ê‰|$rÔÓëÇD$0‹ÓƒâƒÂÁë‰T$‰\$ºýÿÿÿë_áÿ‰L$Q;ês,…À„i3ÉHЉD$‹Ñ‹ÍÓâ‹L$ƒÅÚQG;ê‰|$rÔÓëÇD$0‹ÓƒâƒÂ Áë‰T$‰\$ºùÿÿÿ+Ñ‹L$ê‹V`Ñ‹L$<;ÑwT‹L$‹ÑI…Òt#A‰L$‹L$0‹V`f‰LVh‹V`B‰V`‹T$J‰T$uæ‹N\‹VXÊ‹V`;щL$<‚˜ýÿÿë‹L$XÇA¨Ýë ‹T$XÇB¨Ýǃ>„FNd†(‰FD–è‰FLRPÇ ‹FXQNhPQjèÈ(ƒÄ‰D$4…Àt‹T$X‹D$ÇBŒÝÇéò‹FdNd‰FH–èFPR‹VXPQ‹N\ÇDVhQPjèu(ƒÄ‰D$4…Àt‹L$X‹D$ÇAtÝÇ韋D$ǃørg‹L$ ùr[‹D$X‹T$(‰H‹L$,‰P ‹T$Q‰8‰PP‰^0‰n4è}#‹D$`‹^0‹n4ƒÄ‹P ‹H‹8‰T$(‹P‰L$ ‰|$‰T$‰\$‹Âé)‹NLºÓâJÿ‹VD‰L$0#Ë‹ЉT$D‹L$Eáÿ;Ív=…À„P3Ò‹ÍŠHÓâ‹NDƒÅ‰D$Ú‹T$0#ÓG‰|$‹‘‰T$D‹L$Eáÿ;ÍwÄÒ„ÔöÂð…Ë‹L$E‰T$Láÿ‰L$ŠÊ‹T$ʺÓâ‹L$J#ÓÓê‹L$FáÿÿÑ‹ND‹‘‹L$M‰T$D‹T$EáÿâÿщL$0;Õve…À„¤3ÉHЉD$‹Ñ‹ÍÓâŠL$LƒÅÚ‹T$0ʺÓâ‹L$0G‰|$J#ÓÓê‹L$NáÿÿÑ‹ND‹‘‹L$0‰T$D‹T$EâÿÑ;Õw›‹T$DÓë+é‹L$Eáÿ‰L$+éÓë‹L$Fáÿÿ„Ò‰\$‰N8u Çé³ö t Ç é£öÂ@t‹T$XÇBXÝ鈃âljV@‹N@…ÉtE;és(…À„É3ÉHЉD$‹Ñ‹ÍÓâ‹N@ƒÅÚG;é‰|$rغÓâ‹N8J#ÓʉN8‹N@Óë+éÇ‹NPºÓâJÿ‹VH‰L$<#Ë‹ЉT$D‹L$Eáÿ;Ív=…À„W3Ò‹ÍŠHÓâ‹NHƒÅ‰D$Ú‹T$<#ÓG‰|$‹‘‰T$D‹L$Eáÿ;ÍwÃöÂð…Ë‹L$E‰T$Láÿ‰L$ŠÊ‹T$ʺÓâ‹L$J#ÓÓê‹L$FáÿÿÑ‹NH‹‘‹L$M‰T$D‹T$EáÿâÿщL$0;Õve…À„³3ÉHЉD$‹Ñ‹ÍÓâŠL$LƒÅÚ‹T$0ʺÓâ‹L$0G‰|$J#ÓÓê‹L$NáÿÿÑ‹NH‹‘‹L$0‰T$D‹T$EâÿÑ;Õw›‹T$DÓë+é‹L$EáÿÓë+é‰L$öÂ@‰\$t‹L$XÇA@ÝéËL$FÇáÿÿƒâ‰N<‰V@‹N@…ÉtG;és&…À„÷3Ò‹ÍŠHÓâ‹N@ƒÅ‰D$ÚG;é‰|$rÚºÓâ‹N}4‹D$,‹Q;Ât)‹T$,‹D$XRP蔃ąÀtÇ_^]¸üÿÿÿ[ƒÄDË|$X‹l$@‹\$,‹W‹O‹G+ê‹W+ÙÅÓ‰G‰W‹N‹FË…À‰Nt5…Ût1‹FS…Àt‹O ‹V+ËQRèÚë‹G ‹N+ÃPQèI%‰FƒÄ ‰G0‹V‹÷ÚÒ3Àƒâ@ƒù ‹N4•ÀH%€ÐÑ…í‰W,u…Ûtƒ|$\u‹D$4…À…°þÿÿ_^]¸ûÿÿÿ[ƒÄDËD$4_^][ƒÄDÃ˃ÌÍ…ÍëÍZξÎ#ÏŠÏ ÐsФЯÐÑïÑ{Ò÷ÒÔZ×mÙ¿Ù?۹ۂܬܖÝ7ÞAÞ™ÞÑ(ÑJÑ_Ñ‹D$Ç@DpÇ@L Ç@HpÇ@PÃSU‹l$ V3ö‹]9s,u'‹K¸Óà‹M(jPQÿU ƒÄ ;ƉC,u ^]¸[Ã9s u‹KºÓâ‰s(‰s$‰S ‹D$‹u‹K +Æ;ÁWr*‹u ‹{,+ñ‹ÁÁéó¥‹Èƒá3Àó¤‹K _^ÇC(‰K$][Ã+K(;ȉL$v‹È‰L$‹{,‹S(‹u ú‹Ñ+ðÁéó¥‹Êƒáó¤‹L$+Át(‹u ‹{,‹È+ð‹ÑÁéó¥‹Êƒáó¤‰C(‹C _^‰C$]3À[Ë{(‹C ù‹×‰{(;ÐuÇC(‹S$;ÐsщS$_^]3À[ÃV‹t$…öt8‹F…Àt1‹N$…Ét*‹@,…Àt P‹F(PÿуÄ‹N‹V(QRÿV$ƒÄÇF3À^øþÿÿÿ^ËD$S3ÒUV;ÂW½„ŠŠ È:Á…ðƒ|$08…å‹|$;úu _^]¸þÿÿÿ[ËG ‰W;Âu ÇG àú‰W(9W$uÇG$û‹L$ƒùÿu ÇD$‹L$‹\$ ;Ú}3í÷Ûë ƒû~½ƒë‹D$$ƒø|ƒø ˜ƒ|$u‘ƒû|Œƒû‡;Ê|ƒƒù zÿÿÿ‹D$(;ÂŒnÿÿÿƒøeÿÿÿƒûu» ‹O(h¸jQÿW ‹ðƒÄ …öu _^]¸üÿÿÿ[Éw‰n‰^(‹Ë‹\$$½ÓåK¸Óà‰NHƒÁ‰>‰n$Uÿj‰FDH‰FL¸«ªªª‰V,÷áÑê‰VP‹G(UPÿW ‹N$‰F0‹W(jQRÿW ‰F8‹FD‹O(jPQÿW ‰F‹P‹pB‰P_ˆ ‹HA^‰HËD$V‹p‹H‹V;Ñv‹Ñ…ÒtX‹v‹ÊS‹ÙW‹x Áéó¥‹Ëƒáó¤‹x ‹Hú‰x ‹qò‰q‹X‹x‹HÚ+ú‰X‰x‹q_+ò[‰q‹@‹H…Éu‹H‰H^ÃV‹t$…öW„”‹F…À„‰‹xƒÿ*t ƒÿqtÿšut‹@…Àt P‹F(PÿV$ƒÄ‹N‹A<…Àt ‹V(PRÿV$ƒÄ‹F‹@8…Àt ‹N(PQÿV$ƒÄ‹V‹B0…Àt P‹F(PÿV$ƒÄ‹N‹V(QRÿV$ƒÄ3ÀƒÿqÇF•ÀH_$ý^Ã_¸þÿÿÿ^ËT$SV3ö‹B$‹JDÑà‰B4‹Bf‰D$‹„$˜ÆD$@ÆD$‹‹L$_‰ ‹ƒÂ‰‰ ‹ƒÁ‰Ç^]3À[ƒÄxûD$Jfƒ8u CƒÀƒûvñ;Ës‰\$‹Ë¾T$J‹Æ3ÿöf‹:+÷x*@ƒÂƒøvì3Ò;ò~&9”$Œt‹D$H‹õ%ÿÿ+ðƒþt _^]ƒÈÿ[ƒÄxÃf‰T$j3Àf‹tJftjƒÀƒøf‰tjr鋼$ ;êv<‹´$f‹f…Àt%%ÿÿ3íf‹lDh3Àf‰of‹‹¬$”fÿDDhDDhBƒÆ;ÕrË‹„$Œºÿÿÿÿƒèt?HtÇD$4¨=ÇD$0è=‰T$,ë6¸(=ÇD$,-‰D$4¸h=-‰D$0ë‰|$0‰|$4ÇD$,‹„$˜3í‰l$‰T$<‹‰D$¸Óà‰D$8‰D$(Hÿ‰L$@‹Œ$Œƒùu =ƒl‰|$$‹T$‹L$$‹t$,ŠÃf‹ *ˆD$‹Á%ÿÿ;Æ} ÆD$f‰L$ë(~‹L$0Š AˆL$‹L$4f‹Af‰D$ë ÆD$`fÇD$‹Ë¸+Ê‹T$8Óà‹L$‹ýÓï‹L$4…ú ¹‹|$+Ð+Î…Ò‰9uöKÿ¸Óà…ÅtÑè…Åuú3ö;Æt Pÿ#ÕЋêë3í‹T$$ƒÂfÿL\Hf9t\H‰T$$u;\$ „ë‹Ê‹”$3À3Ûf‹f‹B;\$†ÿÿÿ‹t$@‹D$<#õ;ð‰t$D„ùþÿÿ‹T$…Òu ‹D$‰D$‹Ð‹L$‹D$8‹|$ ¸‰L$‹Ë+ÊÑÓà;×s"tTH3ÿf‹>+Ç…À~‹|$ ABƒÆÑà;×ræ‹t$D‹T$(¸Óà‰D$8Ћ„$Œ‰T$(ƒøu ‹Â=ƒÛ‹Ö‹´$˜‰T$<‹ˆ ‹ŠD$ˆD‘‹‹L$+ÈÁùf‰LéBþÿÿ‹T$ŠÃ*Â;îÆD$@ˆD$f‰t$ta;Öt)‹L$@‹D$<#Í;Èt‹”$˜‹\$‰t$ˆ\$‹‹Ö‰D$‹|$‹Å‹ÊÓè‹L$‰ ‡Kÿ¸Óà…ÅtÑè…Åuú;Æt Hÿ#ÍÈ‹éuŸ‹T$(‹„$˜_^ •‹Ñ]‰‹”$‹D$[‰3ÀƒÄxÃ_^]¸[ƒÄxÃV‹t$ W‹|$ ‹ÏáÿÿÁï…öu_¸^ÃS‹\$…Û†õUû°‹Ãr¸°+؃øŒ§‹èÁí‹Õ÷ÚÁâÂ3ÒŠƒÆÊ3ÒŠVñùÊ3ÒŠVòùÊ3ÒŠVóùÊ3ÒŠVôùÊ3ÒŠVõùÊ3ÒŠVöùÊ3ÒŠV÷ùÊ3ÒŠVøùÊ3ÒŠVùùÊ3ÒŠVúùÊ3ÒŠVûùÊ3ÒŠVüùÊ3ÒŠVýùÊ3ÒŠVþùÊ3ÒŠVÿùÊùM…gÿÿÿ…Àt 3ÒŠÊFùHuô‹Á3Ò¹ñÿ÷ñ‹Ç¿ñÿ‹Ê3Ò÷÷…Û‹ú‡ ÿÿÿ]‹Ç[Áà_ Á^Ãèk‹D$PˆŒ€ ‰ˆ ˆt ‰ˆ( 3ÉÇ€ 0߉ Ç€$ HßÇ€0 `ßf‰ˆ°‰ˆ´Ç€¬èYÃËT$V¹3ö‚Œf‰0ƒÀIu÷‚€ ¹f‰0ƒÀIu÷‚t ¹f‰0ƒÀIu÷‰²¤‰² ‰²¨‰²˜fÇ‚Œ^ËD$‹ˆ´ƒù ~b‹T$SV‹òÓæ‹HWf °°‹pŠ˜°ˆ1‹p‹x3ÉŠˆ±F‰pˆ 7‹H‹°´A‰Hf¹f+Î_fÓêƒÆó‰°´^[f‰°ë‹T$Óâf °ƒÁ‰ˆ´‹L$ ‹T$jQRPègƒÄÃSV‹t$ W¸‹Ž´ƒù ~]‹VÓà‹Nf †°І°ˆ‹N‹VA‰N‹Á3ÉŠŽ±ˆ ‹F@f¹‰F‹†´f+ȺfÓêƒÀ󉆴f‰–°ëÓàf †°ƒÁ‰Ž´‹Ž´3Òf‹vC¸+Â;È¡tC~^%ÿÿ‹øÓç‹Nf ¾°‹~Šž°ˆ9‹~‹^3ÉŠŽ±G‰~ˆ ;‹N‹¾´A‰Nf¹f+ÏTðfÓ艖´f‰†°ëÓàf †°Ê‰Ž´Vè6‹Ž´‹–¬+уă ƒú ƒù ¸~]‹VÓà‹Nf †°І°ˆ‹N‹VA‰N‹Á3ÉŠŽ±ˆ ‹F@f¹‰F‹†´f+ȺfÓêƒÀ󉆴f‰–°ëÓàf †°ƒÁ‰Ž´‹Ž´3Òf‹vC¸+Â;È¡tC~^%ÿÿ‹øÓç‹Nf ¾°‹~Šž°ˆ9‹~‹^3ÉŠŽ±G‰~ˆ ;‹N‹¾´A‰Nf¹f+ÏTðfÓ艖´f‰†°ëÓàf †°Ê‰Ž´Vè ƒÄdž¬_^[ÃSU‹l$V‹t$3ÀW‹N|…É~R‹ƒx,u Vè-ƒÄŽ QVè½– RVè°Vèz‹– ‹Ž¤ƒÂ ƒÁ ÁêÁéƒÄ;ÊwëM‹Ñ};úw‹\$…Ût‹|$ WUSVèxüÿÿƒÄéE;Ê‹Ž´…‹|$ ƒù G~Z‹ÐÓâ‹Nf –°‹VŠž°ˆ‹V‹^B‰V‹Ê3ÒŠ–±ˆ‹N‹–´A‰Nf¹f+ÊfÓèƒÂó‰–´f‰†°ëÓàf †°ƒÁ‰Ž´hôCht?VèêƒÄ é§‹|$ ƒù W~Z‹Ú‹nÓãf ž°‹^ŠŽ°ˆ +‹^‹nC‰^‹Ë3ÛŠž±ˆ)‹N‹ž´A‰Nf¹f+ËfÓêƒÃ󉞴f‰–°ëÓâf –°ƒÁ‰Ž´‹Ž @P‹† @APQVèb–€ †ŒRPVè>ƒÄVèµúÿÿƒÄ…ÿt V蘃Ä_^][Ãì‹D$SUV‹t$W‹8‹@ƒÍÿ‹‹H 3À‰L$;ȉl$‰†HdžL=~>‹×fƒ:t$‹ŽH‰D$A‹è‰ŽH‰„ŽT Æ„0PëfÇB‹L$@ƒÂ;Á|Ä‹ŽHƒù}]ƒý}E‹Åë3ÀA‰ŽH‰„ŽT fLJƄP‹– J…Û‰– t3Éf‹Lƒ‹†¤+Á‰†¤‹ŽHƒù|§‰l$‹T$ ‰j‹†H™+‹ØÑûƒû|SWVè?ƒÄ Kƒû}ï‹D$‰D$‡‰D$‹†H‹žX jW‹Œ†T HV‰ŽX ‰†Hèþ‹–L‹®X ƒÄ J‹Â‰–L‰œ†T ‹ŽLI‹Á‰ŽL‰¬†T f‹¯fŸ‹D$f‰Š„PŠŒ.P:Ár%ÿëáÿ‹Á‹L$þÀjWˆ„P‹D$$f‰L¯f‰LŸ‰ŽX AƒÀV‰L$ ‰D$(èc‹†HƒÄ ƒø*ÿÿÿ‹–L‹ŽX J‰–L‹Â‹T$ RV‰Œ†T è ‹D$Æ4 VPWè(ƒÄ_^][ƒÄËD$SUV‹t$‹HW‹¬°T 6;ʉl$‹|$}4‹´ˆX ‹¬ˆT f‹·f‹¯f;ÓruŠ”PŠœ(P:ÓwA‹l$‹´ˆT f‹¯f‹·f;Ór/uŠ”(PŠœP:Óv+‹T$‰L$ÑቴT ‹H;Ê~‡‹L$_^‰¬ˆT ][ËT$_^‰¬T ][ɬ°T _^][Ãì‹D$$SUV‹‹H‹@‰L$W3ö‹‹H‹h‰T$‹P‰L$$‰T$ ‹T$0¹3Àº4 ‰t$ó«‹‚L‰l$(‹Œ‚T f‰t‹‹²LFþ=©„²T ‰D$0¸=+Æð‰D$‰t$4‹L$03À3ÿ‹ f‹D‹f‹|ƒ‹Ç@;Å~ ‹|$‹ÅG‰|$‹|$f‰D‹;Ï`‹t$ fÿ„B4 3ÿ;Î| ‹ù+þ‹t$$‹<¾f‹4‹Çæÿÿ¯Æ‚ ‹D$…Àt"‹l$3Àf‹D‹Š¤Ç‹l$(¯ÆÈ‰Š¤‹t$4‹L$0‹D$ƒÁH‰L$0‰D$…Sÿÿÿ‹|$…ÿ„ÔEÿfƒ¼B4 ŒB4 u ƒéHfƒ9töfÿŒB4 fƒ„B6 fÿŒj4 ƒï…ÿÁ…í‹ý„‹¬j4 ‰l$3Àf‹E…À‰D$0tb¬²T ‹t$4‹MüNƒí‰t$4‹t$;Ήl$(8t‹3Àf‹;Çt"‹ï+è3Àf‹‹¯è‹‚ Å‹l$(‰‚ f‰>‹D$0H‰D$0…Àu©‹t$4‹l$Oƒí…ÿ‰l$u€_^][ƒÄËT$ ƒì 3ÀL$Vt$+ÖW¾f‹< ƒÁføÑç‹ÇNf‰Aþuë‹D$0…À|6‹t$,x3Éf‹N…Étf‹TLQ‹Â%ÿÿBPf‰TLè/ƒÄf‰ƒÆOuÑ_^ƒÄ ÃV‹t$‹† ŽŒPQVèW‹– †€ RPVèCŽ( QVèöùÿÿƒÄ ¸3ÒŠ`?fƒ¼–v uHƒø}ç‹– L@щ– ^ÃQ‹D$ S3ÉVf‹HW3ÿÇD$ ÿÿÿÿ…ɺ¾u ºŠ¾‹\$…ÛfÇD˜ÿÿŒŸCU‰\$‹\$h‹Á3Éf‹MG;ú};Átn;þ} f¼ƒt ë0…Àt;D$tfÿ„ƒt fÿƒ´ ëƒÿ  fÿƒ¸ ëfÿƒ¼ 3ÿ‰D$…Éu ºŠ¾ë;Áu º¾ë º¾‹D$ƒÅH‰D$…oÿÿÿ]_^[YÃSU‹D$V‹t$W‹Ž´ƒù ~]ÿþÿÿ‹ÐÓâ‹Nf –°‹VŠž°ˆ‹N‹~3ÒŠ–±A‰Nˆ9‹–´‹nf¹f+ÊEfÓèƒÂõ‰n‰–´f‰†°ëÿþÿÿÓàf †°ƒÁ‰Ž´‹Ž´ƒù ~_‹T$Bÿ‹ÐÓâ‹Nf –°‹VŠž°ˆ‹N‹~3ÒŠ–±A‰Nˆ9‹–´‹nf¹f+ÊEfÓèƒÂõ‰n‰–´f‰†°ë‹D$HÓàf †°ƒÁ‰Ž´‹Ž´‹l$ ƒù Eü~Z‹ÐÓâ‹Nf –°‹VŠž°ˆ‹V‹~B‰V‹Ê3ÒŠ–±ˆ9‹N‹–´A‰Nf¹f+ÊfÓèƒÂô‰–´f‰†°ëÓàf †°ƒÁ‰Ž´3ÿ…펣‹Ž´ƒù ~l3Ò3ÀŠ—`?f‹„–v ‹ÐÓâ‹Nf –°‹VŠž°ˆ‹V‹^B‰V‹Ê3ÒŠ–±ˆ‹N‹–´A‰Nf¹f+ÊfÓèƒÂó‰–´f‰†°ë#3ÀЇ`?f‹”†v fÓâf –°ƒÁ‰Ž´G;ýŒ]ÿÿÿ‹D$ŽŒHPQVè&‹T$(†€ JRPVèƒÄ_^][Ãì‹D$S3Û3Òf‹XV…ÛWÇD$ ÿÿÿÿ¹¾u ¹Š¾‹|$ …ÿŒ0ƒÀG‰D$ ‹D$U‰|$‹|$$‹ë3ÛBf‹;щ\$‰T$ };ë„ä;Ö¬‹ˆ´3öf‹´¨v ¿+þ;Ï~g3Òf‹”¨t ‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´‹T$ ëf‹¼¨t fÓçf ¸°Ήˆ´J‰T$ …Yÿÿÿéü…í„Á;l$„¡‹ˆ´3öf‹´¨v ¿+þ;Ï~g3Òf‹”¨t ‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´‹T$ ëf‹¼¨t fÓçf ¸°Ήˆ´J‰T$ ‹ˆ´3öf‹°¶ ¿+þ;Ï~f3Òf‹´ ‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´‹T$ ëf‹¸´ fÓçf ¸°Ήˆ´‹ˆ´ƒù~^ƒÂý‹òÓæ‹Hf °°‹pŠ˜°ˆ1‹p‹x3ÉŠˆ±F‰pˆ >‹H‹°´A‰Hf¹f+ÎfÓêƒÆò‰°´f‰°éGƒÂýÓâf °ƒÁé-ƒú ‹ˆ´3öf‹°º ¿+þ;Ï~f3Òf‹¸ ‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´‹T$ ëf‹¸¸ fÓçf ¸°Ήˆ´‹ˆ´ƒù ~^ƒÂý‹òÓæ‹Hf °°‹pŠ˜°ˆ1‹p‹x3ÉŠˆ±F‰pˆ >‹H‹°´A‰Hf¹f+ÎfÓêƒÆó‰°´f‰°é(ƒÂýÓâf °ƒÁ鋈´3öf‹°¾ ¿+þ;Ï~f3Òf‹¼ ‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´‹T$ ëf‹¸¼ fÓçf ¸°Ήˆ´‹ˆ´ƒù ~[ƒÂõ‹òÓæ‹Hf °°‹pŠ˜°ˆ1‹p‹x3ÉŠˆ±F‰pˆ >‹H‹°´A‰Hf¹f+ÎfÓêƒÆ÷‰°´f‰°ëƒÂõÓâf °ƒÁ‰ˆ´‹\$3Ò…Û‰l$u ¹Š¾ë;ëu ¹¾ë ¹¾‹l$$‹|$ƒÅO‰l$$‰|$…âúÿÿ]_^[ƒÄËD$ƒì3É‹˜SU‹l$VW…Ò„p‹œ3ÿ3Ûf‹…ö„†‹ lG»+Ñ‹ˆ´+Þ;Ë~[‹Ú‹hÓãf ˜°‹XŠˆ°ˆ +‹XC3ÉŠˆ±‰X‹ë‹Xˆ +‹H‹˜´A‰Hf¹f+ËfÓêf‰°T3ð‰´ëÓâf °Ήˆ´Oÿs 3ÛŠŸlDë ‹ÏÁé3ÛŠ™lE‹l$$‹ˆ´3öºf‹t‰\$+Ö;Ê~j3Òf‹T‹h‹ÚÓãf ˜°‹XŠˆ°ˆ +‹XC3ÉŠˆ±‰X‹ë‹Xˆ +‹H‹˜´A‰Hf¹f+Ë‹l$ fÓêf‰°T3ð‹\$‰´ëf‹T‹l$ fÓâf °Ήˆ´‹œ>…Ò„„‹ àG¾+ù‹ˆ´+ò;Î~Y‹÷Óæ‹Hf °°‹pŠ˜°ˆ1‹p‹X3ÉŠˆ±F‰pˆ ‹H‹°´A‰Hf¹f+ÎTðfÓf‰¸°ëÓçf ¸°ʉˆ´‹L$‹˜;Ê‚üÿÿ‹ˆ´3öf‹µº+Ö;Ê~b3Òf‹•‹úÓç‹Hf ¸°‹xŠ˜°ˆ9‹x‹X3ÉŠˆ±G‰xˆ ‹H‹¸´A‰Hf¹f+ÏfÓêf‰°T7ð‰´ëf‹•fÓâf °Ήˆ´3É_f‹^]‰ˆ¬[ƒÄÃS‹\$VW3ÿ3ÒƒŒ¹3öf‹0ƒÀÖIuóUƒ¨¹y¾€3íf‹(ƒÀýIuóþ]}¸Œ³Œ+Æ3öf‹1ƒÁÖHuó‹ Áï;ú_À^@[‰A,ËT$‹L$V3À‹ñƒæ ÆÑéÑàJ…ÒðÑè^ËD$S‹ˆ´ƒùu@‹H‹PŠ˜°Vˆ‹P‹pB‰P‹Ê3ÒŠ±ˆ‹HA^‰H3Éf‰ˆ°‰ˆ´[Ãù|4‹H‹PŠ˜°ˆ‹P3ÉBŠˆ±‰Pf‰ˆ°‹ˆ´ƒÁø‰ˆ´[ËD$SV‹´ƒú~?‹H‹PŠ˜°ˆ‹P‹pB‰P‹Ê3ÒŠ±ˆ‹HA^‰H3Éf‰ˆ°‰ˆ´[Ã3É;Ñ~‹P‹pŠ˜°ˆ2‹PB‰P^f‰ˆ°‰ˆ´[ÃV‹t$WVètÿÿÿ‹D$ƒÄ…À‹D$dž¬tI‹N‹Vˆ‹V‹~B‰V‹Ê3ÒŠÔˆ9‹N‹~ŠÐAöÒ‰Nˆ9‹~‹È÷Ñ3ÒGŠÕ‹N‰~ˆ‹NA‰N‹ÐH…ÒtH‹D$S‹V‹~Šˆ:‹^C@I‰^uê[_^Ãÿt$èÊÙYø„ðè÷ ƒì0ŠEóVjMàˆEàè'öýÿ¾hHVè\ YPVMàèÁ&þÿƒeüEàPMÄèEÄhÈ€PÇEÄ\Hè5Ù^¸˜ðè QQSVEðW‹ñP‰uìÇEð !è!Ø‹]ƒeü~ jŠ‹Ïˆè°õýÿÿ5d‹ÏjSè óýÿ‹MôÇ|H‹Æ_^[d‰ ÉÂU‹ìƒìQMäègEäh8Pè³Ø¸¬ðè QV‹ñ‰uðÇ|HƒeüjN èEõýÿƒMüÿ‹ÎèØ‹Mô^d‰ ÉÃV‹ñè»ÿÿÿöD$tVèÈþÿÿY‹Æ^¸ÀðèÃQS‹]VW‹ñS‰uðèŒ×ŠC ƒeüƒÃ ~ j‹ÏˆèÝôýÿÿ5d‹ÏjSèÍòýÿ‹MôÇ|H‹Æ_^[d‰ ɸÔðèfQV‹ñ‰uðÇ|HƒeüjN èôýÿƒMüÿ‹Îèe׋Mô^d‰ ÉÃU‹ìƒìQMäè*EähÈ€Pè£×V‹ñèžÿÿÿöD$tVèõýÿÿY‹Æ^ÂV‹ñÿt$è!ÿÿÿÇ\H‹Æ^¸èðèØƒì0ŠEóVjMàˆEàèôýÿ¾˜HVè=YPVMàè¢$þÿƒeüEàPMÄè÷ýÿÿEÄhðPÇEÄŒHè×^¸üðè~QV‹ñ‰uðÇ|HƒeüjN è§óýÿƒMüÿ‹Îè}Ö‹Mô^d‰ ÉÃU‹ìƒìQMäè*EähðPè»ÖV‹ñèžÿÿÿöD$tVè ýÿÿY‹Æ^ÂV‹ñÿt$è9þÿÿÇŒH‹Æ^Âöì&u€ ì&èöí&u€ í&é h°ùè+ÊYÃhd$èÊYÃøñè­ƒì,‹ESƒà‰A‹I#Èto3Û8] tSSèÖöÁVt¾ìHëöÁ¾ØHu¾ÈHŠESMäˆEäè¤òýÿVèÞYPVMäèC#þÿEäMÈP‰]üè%EÈh ‚PÇEȼHè¸Õ^‹Mô[d‰ ɸ$ñèQQSVEðW‹ñP‰uìÇEð !è•Ô‹]ƒeü~ jŠ‹Ïˆè$òýÿÿ5d‹ÏjSèðýÿ‹MôÇI‹Æ_^[d‰ É‹A…Àu¸`ÃU‹ìƒìQMäègEähƒPèÕ¸8ñèƒQV‹ñ‰uðÇIƒeüjN è¬ñýÿƒMüÿ‹Îè‚Ô‹Mô^d‰ ÉÃV‹ñè»ÿÿÿöD$tVè/ûÿÿY‹Æ^¸Lñè*QS‹]VW‹ñS‰uðèóÓŠC ƒeüƒÃ ~ j‹ÏˆèDñýÿÿ5d‹ÏjSè4ïýÿ‹MôÇI‹Æ_^[d‰ ɸ`ñèÍQV‹ñ‰uðÇIƒeüjN èöðýÿƒMüÿ‹ÎèÌÓ‹Mô^d‰ ÉÃU‹ìƒìQMäè*Eäh ‚Pè ÔV‹ñèžÿÿÿöD$tVè\úÿÿY‹Æ^ÂV‹ñÿt$è!ÿÿÿǼH‹Æ^¸wñè?QV‹ñ‰uðÇI‹F$ƒeü…Àvþˆ!‹F$€¸!‹Îè½N èª þÿ‹Mô^d‰ ÉÃVW‹ù‹w…ötÿvWÿt$ÿV‹6ƒÄ ëê_^ÂU‹ìQV‹ñMüètƒ~$s‹F$‹ …l!…Ét ;Ît @ƒø‰F$rå‹F$Mü‰4…l!‹v$þ†!èÔ^ÉÃV‹ñW3ÿN ;Ïtè{"þÿWW‹Î‰~ÇF ÇF‰~‰~‰~èüÿÿ_^ÃVW‹ñjèMÿÿÿ‹F…Àt‹8Pè+ùÿÿ…ÿY‹Çuñ‹Fƒf…Àt‹8Pèùÿÿ…ÿY‹Çuñƒf_^áIV‹t$ ƒd$ ûƒæ3Ò…ÀWt¹I;D$t ‹AƒÁB…Àuï‹ÂÁàƒ¸It3ÿ°Dàÿt$èÉ‹øY…ÿYt…ötjjWè>ÊƒÄ …Àt Wè ÇY3À_^ËÇëùöì&u€ ì&èöí&u€ í&é h°ùèÇÅYÃhd$è»ÅYá¸!SVWj‹ñ_;Çuh !ëZ…À» !u5jh¸!ÿ°…ÀuSÿPhF)èvÅY‰=¸!ë%;Çu‰=¸!ƒ=¸!u jÿëí9=¸!uSÿX‹Æ_^[Ãjh¸!ÿ°ƒøu h !ÿTÃ=¸!u h !ÿ\ÃèéÃh)èóÄYù¼!é&þÿU‹ìQV‹ñMüèÿÿÿ‹‹M;H s‹P‹4Šë3ö…öu €} t€xt¡Ä!;H s‹@‹4ˆë3öMüè{ÿÿÿ‹Æ^ÉÂU‹ìQSV‹ñMüèÈþÿÿ‹‹ À!;Át2Û8Xt 9 Ä!u³Müè?ÿÿÿŠÃ^[Éø–ñèçQQVMðèˆþÿÿƒeüƒ=Ä!…ƒj(èÃY‹È‰Mì…ÉÆEüt jèÒë3À€eüWhõ*£Ä!èüáÄ!¾üÀVÇ@?¡Ä!xèüÿYYPV‹Ïèaþÿ‹ Ä!‰ À!èð!þÿ¸¼!_…Àt ¡À!£¼!‹5Ä!ƒMüÿMðè~þÿÿ‹Mô‹Æ^d‰ Éø¨ñèQMðèÀýÿÿ‹ Ä!ƒeü…ÉtèÅþÿ…Àt‹j‹ÈÿƒMüÿMðè1þÿÿ‹Môd‰ Éø¼ñèÓÿQSV‹ñW‰uðÇFÇ€IŠM3ÀˆNŠM ~‰F‰F ‰FˆP‹Ï‰EüèÝëýÿ»|ÁSèÿYPS‹Ïèxþÿ‹MôÇxI‹Æ_^[d‰ ÉÂV‹ñèöD$tVèJõÿÿY‹Æ^¸ãñèEÿQQV‹ñW‰uìÇxIMðÇEüèÓüÿÿ‹~ ÆEü…ÿv‹FO‹ ¸…ÉtñèÐþÿ…Àtè‹j‹ÈÿëÞÿvè½ÎYÆEüMðè1ýÿÿ€eüjNèëýÿ‹MôÇ€I_^d‰ ÉÃöì&u€ ì&èöí&u€ í&é h°ùèøÁYÃhd$èìÁYÃU‹ìQŠA0ƒeüVq0W‹}j‹Ïˆè«êýÿÿ5d‹ÏjVè›èýÿ‹Ç_^ɸúñèEþQV‹ñ‹ƒyv+èøþÿj(èÁY‹È‰Mðƒeü…Ét ÿ6èë3ÀƒMüÿ‰ÿu ‹ÿuèƒ}tSW‹>»|ÁSƒÇèmýYPS‹ÏèÓþÿ_[‹Mô‹Æ^d‰ É ¸8òèÂýƒìSVWMìè`ûÿÿ‹E ‹}3Ûƒà‰]ü‰Eðtc9]u=jènÀ‹ðY‰u;ót‰^ÿu‹ÎÆEüÇJèë3ö¹Ø!ˆ]üèçþÿPVë¹Ø!èÙþÿPjSÿuènƒÄ P‹Ïè[‹E ƒà‰EtO9]u)jèÀ;ÃYt ‰XÇäI‹ðë3ö¹Ô!èþÿPVë¹Ô!èþÿPjSÿuèÜƒÄ P‹Ïè9]„·9]u)j訿;ÃYt ‰XÇÄI‹ðë3ö¹à!è5þÿPVë¹à!è'þÿPjSÿuè`ƒÄ P‹Ïè©9]tc9]u=jèT¿‹ðY‰u;ót‰^ÿu‹ÎÆEüǨIègë3ö¹Ü!ˆ]üèÍþÿPVë¹Ü!è¿þÿPjSÿuèÔƒÄ P‹ÏèA9]ðtZ9]u4jè쾋ðY;ót‰^LjI苉F‰V ë3ö¹Ð!ènþÿPVë¹Ð!è`þÿPjSÿuè9ƒÄ P‹Ïèâÿu‹u WVÿuèF‡ÿuWVÿuè'‹M wƒÄ EÜPèýÿÿÿ5dOÆEüSPèÆåýÿjM܈]üè¹çýÿƒMüÿMìè±ùÿÿ‹Mô‹Ç_^[d‰ ÉÃU‹ìƒìS‹ÙVWMüèñøÿÿEìPèï{‹ð¥¥¥¥ƒ=Ì!Yu‹ChD£Ì!è|¾ƒcYMüèRùÿÿ_^[ɸoòèùúƒìHSV‹ñW‰uìÇFÇ€I‹}3À‰F^‹O P‰N ‹O‰NŠOˆNŠOˆ ‹Ë‰Eüèøæýÿÿ5dG‹ËjPèåäýÿMðÆEüÇxIè;øÿÿ;=À!ÆEüu-hüÀM¬èFjVj?PÆEüè›üÿÿƒÄM¬ÆEüèáëTMèú÷ÿÿ‹F ÆEü…Àv5ÁàPèêÊ…ÀY‰FuèÑ$‹^ …Ûv‹GK‹ ˜‹F…ɉ ˜tëè¤þÿëäMÆEüèJøÿÿMðÆEüè>øÿÿ‹Mô‹Æ_^[d‰ ɸ„òèÙùQSV‹ñWMðèw÷ÿÿ‹] ƒeü9^ wA{ƒÿ sj _‹ÇÁàPÿvèÌY‰E …ÀYuè<$‹E ‰F9~ s‹F ‹Nƒ$ÿF ëì‹Mè þÿ‹F‹ûÁç‹ 8…Étè&þÿ…Àt‹j‹Èÿ‹F‹MƒMüÿ‰ 8Mðè‰÷ÿÿ‹Mô_^[d‰ ɸ¹òè&ùQQŠE SV‹ñ3ÛWS‰uìˆèSåýÿŠE NS‰]üˆèBåýÿŠE ~ S‹ÏÆEüˆè.åýÿŠE N0SÆEüˆèåýÿSSÆEüèÝüP‰EðèHøƒÄ ‹ÏPÿuðèªþÿ9]tÿuSè¸üY;ÃY‹øu¿|ÁWèøYPWN0è~þÿ‹Mô‹Æ_^[d‰ ɸâòèmøQV‹ñ‰uð‹F(ÇEü…Àv‹F$…Àu¸`PjèTüYYjN0è|äýÿjN ÆEüènäýÿ€eüjNè`äýÿƒMüÿj‹ÎèSäýÿ‹Mô^d‰ Éøóèø÷ƒì<ƒMðÿSVW‹}j[‹G öÄ@„ÖE‹ÏPèåþÿ3öSVP‰uüèiƒMüÿƒÄ M‹øèWþýÿŠEVM؈EØèèãýÿVSMØèð EÈ‹ÏP‰]üèÀØþÿÿ5dMØÆEüVPèLóþÿSMȈ]üè°ãýÿVSMØèÆ þÿEÈ‹ÏPè«Øþÿÿ5dMØÆEüVPèóþÿSMȈ]üè{ãýÿ‹EÜ;Æu¸`PEjPE PèHƒMüÿƒÄM؉EðSèLãýÿëhèjö3ö‹Ï‰0EìPèþÿ‹ PEWPE PE¸PÇEüèaPEèPE¸PèKЃMüÿƒÄ Mì‹øèZýýÿE¸9Eètèö90u;ûw‰}ðEM Pè„À‹E t 9uð}ƒë‹M$•Àˆ‹E‹M _^‰‹M‰H‹Mô[d‰ É ¸(óèNöƒì$SVWè¬õƒ ‹uE‹ÎPèFþÿ‹v PEƒeüVPE PEÐP褃MüÿƒÄM‹ðè«üýÿ€}Ð-}Ñt}ÐEðVPWètÏƒÄ ‹ðEM Pè‹] „Àtƒ 9}ðt"è4õƒ8uþÿÿw€}Ð-u÷Þ‹E$f‰0ëƒ ‹E‹M _^‰‹M‰H‹Mô[d‰ É ¸<óè‚õƒì$SVWèàôƒ ‹uE‹ÎPèzþÿ‹v PEƒeüVPE PEÐPèØƒMüÿƒÄM‹ðèßûýÿ€}Ð-}Ñt}ÐEðVPWè¨ÎƒÄ ‹ðEM PèC‹] „Àtƒ 9}ðtèhôƒ8uƒþÿw€}Ð-u÷Þ‹E$‰0ëƒ ‹E‹M _^‰‹M‰H‹Mô[d‰ É ¸Póèºôƒì$SVèôƒ ‹uE‹ÎPè³þÿ‹v PEƒeüVPE PEÐPèPEðPEÐPèß˃MüÿƒÄ M‹Øè ûýÿEM P芋u „ÀtƒEÐ9Eðtè¬óƒ8u‹E$‰ëƒ‹E‹M ^[‰‹M‰H‹Môd‰ É ¸dóè ôƒì$SVèkóƒ ‹uE‹ÎPèþÿ‹v PEƒeüVPE PEÐPècPEðPEÐPèM̓MüÿƒÄ M‹Øè\úýÿEM PèÜ‹u „ÀtƒEÐ9Eðtèþòƒ8u‹E$‰ëƒ‹E‹M ^[‰‹M‰H‹Môd‰ É ¸xóè^óƒìTVè¾òƒ ‹MEPèZ þÿPEƒeüPE PE PèQPEðPE P蹬Ù]ìƒMüÿƒÄMè´ùýÿEM Pè4‹u „ÀtƒE 9EðtèVòƒ8u ÙEì‹E$Ù냋E‹M ^‰‹M‰H‹Môd‰ É ¸Œóè´òƒìXVèòƒ ‹MEPè° þÿPEƒeüPE PEœPè§PEðPEœPèÓ«Ý]èƒMüÿƒÄMè ùýÿEM P芋u „ÀtƒEœ9Eðtè¬ñƒ8u ÝEè‹E$Ý냋E‹M ^‰‹M‰H‹Môd‰ É ¸ óè òƒìXVèjñƒ ‹MEPè þÿPEƒeüPE PEœPèýPEðPEœPèe«Ý]èƒMüÿƒÄMè`øýÿEM Pèà‹u „ÀtƒEœ9Eðtèñƒ8u ÝEè‹E$Ý냋E‹M ^‰‹M‰H‹Môd‰ É ¸´óè`ñƒì,SV‹u 3ÛW‰]ð}èè³ð‹M‰E PèP þÿPEhPE ‰]üPEÈPè®PEìPEÈPè˜ÊƒMüÿƒÄ M ‰è§÷ýÿEM Pè'„ÀtƒEÈ9EìtEèLð9u<ÿEðƒÇƒ}ð}3EM Pè÷ „Àu 8]uM è§€}:u M èDéTÿÿÿƒö_^[u‹E$‹M艋E‹M ‰‹M‰H‹Môd‰ É ¸Ðóèjðƒì,SVWjjÿuèý ƒÄ ‹ðEÈ‹ÎPèÒþÿ‹ƒeü‹ÎÿP‹u ‹}ÿu‹ÎˆEó‰}ìèW „Àu88Fu‹Îè€~+uÆ+ë€~u‹Îèð€~-uÆ-G‹Î‰}ì臋Ej [%j=_u ÇEë=u‰}ë ÷ØÀ#ÉEÿu€e€e‹ÎèÖ „Àux8Fu‹Î臀~0uf‹ÎÆEè!ÿu‹Îè« „Àu@8Fu‹Îè\€~xt€~u‹ÎèI€~Xuƒ}t9}u€e‹Î‰}èÕëƒ}u ÇEƒ}t9]t3Àƒ}•ÀH$òƒÀ‰Eèë‰]èŠE3ÿWM؈EØè;Ûýÿ€}MØ•ÀPjè;‹Eÿu‹ÎÆEüXè „À…&€~u‹Îè­‹MìŠFÿu舾ÀPh$JèGáƒÄ …Àte€}u‹Eì€80t 9]ìsÿEìÆE9}àÆErƒ}ÜtMØèÿ þÿ‹EÜÇë¸`€8to9}àrƒ}ÜtMØèÛ þÿ‹EÜÇë¸`þëL9}àrƒ}ÜtMØè¸ þÿ‹EÜÇë¸`€8tA€}ót;€~u‹ÎèñŠEó8Fu&jjMØèPþÿG‹Îè€ÿu‹Îè „À„ ÿÿÿ…ÿt+9}àrƒ}ÜtMØèO þÿ‹EÜÇë¸`€8~Gë€e‹uÌ»`…öu‹ó€}„€…ÿvg€>tbOt"9}àrƒ}ÜtMØè þÿ‹EÜÇë‹ÃŠ:u%…ÿu'9}àr9}ÜtMØèÛ þÿ‹EÜÇë‹ÃŠ:}€eë €~F~‹ðO€}u•€}t€}‹Eìu Æ0@ë‹E€ jMØè?ÙýÿjMÈè5Ùýÿ‹Mô‹E_^[d‰ ÉÃU‹ìƒì SVWjjÿuèo‹]‹u ‹}ƒÄ ‹Î‰EôSèã „Àu;8Fu‹Î蔀~+u‹}Æ+ë€~u‹Îèy€~-u‹}Æ-‹ÎGè€eS‹Îè˜ „Àu4€~u‹ÎèH€~0u‹ÎÆEèâS‹Îèn „ÀtÖ€}tÆ0GƒeøƒeüS‹ÎèP „Àu<8Fu‹ÎèÿuŠFˆPèèY„ÀYtƒ}ø$}GÿEøëÿEü‹ÎÆEè~ë¸S‹Îè „Àu,8Fu‹Î蹋Mô‹ÿP8FuèOß‹‹ÎŠˆGèDƒ}øu;S‹ÎèÊ„Àu"8Fu‹Îè{€~0uÿMü‹ÎÆEèëÒƒ}ü}Æ0GÿEüS‹Îè„Àu78Fu‹Îè@ÿuŠFˆPè'Y„ÀYtƒ}ø$}GÿEø‹ÎÆEèÂë½€}„S‹ÎèB„À…8Fu‹Îèï€~et€~u‹ÎèÜ€~E…ÚÆe‹ÎGèrÿu€e‹Î3Ûèö„Àu58Fu‹Îè§€~+uÆ+ë€~u‹Îè€~-u Æ-‹ÎGè)ÿu‹Î賄Àu6€~u‹Îèc€~0u‹ÎÆEèýÿu‹Î臄ÀtÔ€}tÆ0Gÿu‹Îèo„Àu48Fu‹Îè ÿuŠFˆPèY„ÀYtƒû}GC‹ÎÆEè¥ë¾€}u‹}€'‹Eü_^[ÉÃV‹ñè„Ý‹jŠ ˆN ‹HŠ ˆN ÿpèÙjhÈʉFèÊjhÀʉF軃ĉF^ÂVW‹|$ ‹ñ;=duè”ßÿÿjW‹Îè?Öýÿ„Àt¾D$WPÿvè ô‹FƒÄ ‰~€$8‹Æ_^ÂV‹ñ‹…Étèƒøÿt€f^Ã&ÆF^ËA‹…Àt‹Q,‹Ð;Âs è ¶Ã‹ÿPËA,ÿ‹I‹P‰ÃV‹ñ‹…ÉtèÕÿýÿƒøÿtˆFëƒ&ŠFÆF^ËA0ÿ‹I ‹P‰øîóèÑèƒìSVMðèpæÿÿ3Û¹Ø!‰]üè9þÿ‹MjPè(çÿÿ‹ð;óuM8]td‹Mèkçÿÿ„ÀtX‹5!;óu2jè[«Y‹È‰M;ËÆEüt SSSè þÿë3ÀPˆ]üè3 þÿY£!‹ðƒMüÿMðè“æÿÿ‹Mô‹Æ^[d‰ ÉÃEMäPÇEäÀèÆ¶EähxpPÇEä@Jè ·¸ôè èƒìPVMðè©åÿÿƒeü¹Ô!èsÿýÿ‹MjPèbæÿÿ‹ð…öud8Etz‹Mè¥æÿÿ„Àtn¡ä!…ÀuHjè–ª‹ðY‰u…öt%ƒfhüÀM¤ÆEüÇäIèhîÿÿM¤èïÿÿë3ö€eüVèñY£ä!‹ðƒMüÿMðè¶åÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀèêµEähxpPÇEä@Jè͏6ôè-çƒìPVMðèÍäÿÿƒeü¹à!è—þýÿ‹MjPè†åÿÿ‹ð…öud8Etz‹MèÉåÿÿ„Àtn¡X!…ÀuHj躩‹ðY‰u…öt%ƒfhüÀM¤ÆEüÇÄIèŒíÿÿM¤è=îÿÿë3ö€eüVèšÌþÿY£X!‹ðƒMüÿMðèÚäÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀèµEähxpPÇEä@Jè赸RôèQæƒìVMðèñãÿÿƒeü¹Ü!è»ýýÿ‹MjPèªäÿÿ‹ð…öuL8Etb‹Mèíäÿÿ„ÀtV‹5\!…öu1jèݨY‹È‰M…ÉÆEütVèäÇþÿë3À€eüPèVÌþÿY£\!‹ðƒMüÿMðèäÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀèJ´EähxpPÇEä@Jè$µ¸nôèåƒìVMðè-ãÿÿƒeü¹Ð!è÷üýÿ‹MjPèæãÿÿ‹ð…öuL8Etb‹Mè)äÿÿ„ÀtV‹5!…öu1jè¨Y‹È‰M…ÉÆEütVè0 þÿë3À€eüPèr þÿY£!‹ðƒMüÿMðèRãÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀ膳EähxpPÇEä@Jè`´¸€ôèÉäƒìS‹]VWŠ „ÉtŠÁ‹Ó:ÁuÿEŠBB„ÀuñŠE3öVM؈EØèÚÐýÿVMØÿuèàúÿÿ‰uüÇEèþÿÿÿÇEì€eó3ö3ÿ9u†2Š„ÀtŠ :Át ŠDG„Àuó9uàrƒ}ÜtMØèÓþÿ‹EÜÆë¸`€8t)9uàrƒ}ÜtMØè¯þÿ‹EÜÆë¸`¾øéœ}ìŠ:t`„Àt\‹]ÿu ‹Ëè„Àu8Cu‹ËèËúÿÿ‹EŠ:CuÆEóë]‹]ìƒûrj[9uàrƒ}ÜtMØè?þÿ‹EÜÆë¸`ˆë/j[9]ìs‹]ì9uàrƒ}ÜtMØèþÿ‹EÜÆë¸`ˆ‰uè‹]F;u‚÷þÿÿ€}ót#ÿu ‹Mè~„Àu‹MÿEìèÛùÿÿƒMèÿé½þÿÿjMØèpÏýÿ‹Mô‹Eè_^[d‰ ÉÃjjÿt$è2úÿÿ¶L$‹@ƒÄ ŠHÁè$ÃVW‹|$ Wèqâ‹ðFVè½¥YY…ö‹Èv ŠˆAGNu÷_^ÃV‹ñW€~uè²ùÿÿ‹|$ €u‹Ïè¡ùÿÿ‹6…öu97t …öt ƒ?tjXë3À_^¸”ôè‡âQVMðè)àÿÿ‹uƒeü‹Î‰5è!èýþÿhÙHèÄ¥ƒMüÿYMðèšàÿÿ‹Mô‹Æ^d‰ Éø¨ôè9âQMðèÜßÿÿ‹ è!ƒeüèåèýÿ…Àt‹j‹Èÿƒ%è!ƒMüÿMðèJàÿÿ‹Môd‰ ÉÃöì&u€ ì&èöí&u€ í&é h°ùè'¥YÃhd$è¥YÃU‹ì‹E S3Û;Ãu¡$ë‹;Ãu‹EƒøA|ZƒøZUƒÀ ëPV¾h*WVÿ¸9d*‹=´tVÿ×jèãìYj[ÿu ÿuèY‰E…ÛYt jè%íYëVÿ׋E_^[]ÃU‹ìQQ‹E …Àu¡$‰Eü¡$ë‹‹@‰Müƒ}üSV‰EøWu‹EƒøAŒ¨ƒøZŸƒÀ é—‹]¾j;Þ_}%9=xë~ WSèµ²YYë ¡léŠX#Ç…Àu‹Ãëc‹lé‹ÃÁø¶ÈöDJ€t€e jˆEˆ] Xë €e ˆ]‹ÇWM ÿuøjQPEPVÿuüègìƒÄ …Àt°;Çu¶E ë ¶E ¶M Áà Á_^[ÉÃU‹ìƒìSV¾h*WVÿ¸ƒ=d*‹´tVÿÓjè ëYÇEüëƒeü¡$¿‰Eì¡$W‰Eð覰…ÀY‰EôtWÿ5léPèàƒÄ ÇEøë ¡léƒeø‰Eôƒ}üt jèžëYëVÿÓ‹Euì‹ø¥¥¥¥_^[ÉÃU‹ì‹E S3Û;Ãu¡$ë‹;Ãu‹Eƒøa|ZƒøzUƒè ëPV¾h*WVÿ¸9d*‹=´tVÿ×jèÔêYj[ÿu ÿuèY‰E…ÛYt jèëYëVÿ׋E_^[]ÃU‹ìQ‹E S…ÀVu ‹5$¡$ë‹0‹@…ö‰Eüu‹EƒøaŒ«ƒøz¢ƒè éš‹]û}(ƒ=xë~ jSè±°YYë ¡léŠXƒà…Àu‹Ãëg‹lé‹ÃÁø¶ÈöDJ€t€e ˆEˆ] jë €e ˆ]jXM jÿuüjQPEPhVè_êƒÄ …Àt­ƒøu¶E ë ¶E ¶M Áà Á^[ÉÃU‹ìSV¾h*WVÿ¸‹=´3Û9d*tVÿ×jèšéYj[ÿujÿu ÿuèƒÄ‰E…Ût jèÖéYëVÿ׋E_^[]ÃU‹ì‹E…Àu ‹ $¡$ë‹‹@…Éuf‹E f=ÿw9‹MjˆX]ÃMƒeQjÿ5xëM ÿujQh Pÿ¼…Àtƒ}tèçÜÇ*ƒÈÿ]ÃSUV¾h*WVÿ¸‹=´3À9d*tVÿ×jèÊèYjX‹$‹-$…Àt jèéYëVÿ×_‹Õ^‹Ã][ÃU‹ìf}ÿÿtjjÿuE Pè¿þÿÿƒÄƒøu¾E ]ÃÈÿ]Ã2ÀÃV‹ñèEöD$tVèÍÒÿÿY‹Æ^¸ìôèÈÜQQSVW3Û9]‹ñj‰uì‰]ð_tF\ÇäJÇFÜJ‰}ð‰X$ÇÈJ‰]üF SP‹Îè ‰}ü‹};ûtöEt WèôÛ‹ØYßë‹ß~ ‰}O4è]ûýÿ‹ÏÆEüÇJèlþýÿjSÿu‹ÏÆEüÇXJÿu èÏ‹‹Mô_‹@Ç0ØJ‹Æ^[d‰ ÉÂVq¤W~\‹Ïè‹Ïè ßýÿöD$ tVèàÑÿÿY‹Æ_^¸õèÚÛQ‹A¤V‰Mð‹@ÇD¤ØJƒeüq°‹ÎèƒMüÿ‹Îè«‹Mô^d‰ Éøõè—ÛQV‹ñ‰uðÇXJƒeüèÒN4ÇJèâýÿ‹Mô^d‰ ÉÃU‹ìQS‹]VƒûÿW‹ñu3ÀéJ‹F ‹…Àt‹N0‹ È;Ás‹ÎèHòÿÿˆ¶Ãé%‹NDöÁ„öÁ … ‹Nƒ9u3Ûë ‹N0‹V ‹+Ø‹NH‹ÃF@…ɉEüPtÿÑë輋øY…ÿ„Ñ…Û~‹F Sÿ0WèìÚƒÄ ë ¸9F@~‰F@öFDt‹FL…Àt ‹N ÿ1ÿÐë ‹F ÿ0èŠÐÿÿYƒND…Ûu&‹F‹Mü‰~<‰8‹F ‰8‹F0‰‹F ‰8‹F‰8‹F,!ëO‹F ‹Ï‹ß+N<‹‹F ‹N+Ú‹‹N +Âlj‹Ï+È‹F0Mü‰‹F ‹V ‹‹F‹+‰:‹Vlj+È‹F,A‰‹Îè&ñÿÿŠMˆ¶ÁëƒÈÿ_^[É‹A‹…Àt:‹Q ;v3‹T$ƒúÿt :PÿtöADu‹A,ÿ‹Aÿƒúÿu3Àë‹A‹ˆ¶ÂëƒÈÿ‹QVW‹…Àt:‹y,‹ð7;Æs¶ë-‹q ‹6…öt!;ðw9A‹}$„Àtƒ9]äuƒé·ŠE#SM̈EÌèÚ¨ýÿ‹EäÆEü9EØs SPMÌè4©ýÿ3ö9]äv?9uär9]àtMÜèM,‹Eàp븼Lf‹Pè2ßÿÿYˆE ÿu MÌjè¤ÎýÿF9uäwÆ‹uÐ;óu¾`è’»‰ESPVè³uÝ]ìƒÄ 9utèu»9u ÝEì‹E(ÝëƒjM̈]üè2¨ýÿ‹u‹E ƒMüÿj‰‹EM܉Fèm,‹Mô‹Æ_^[d‰ ÉÂ$¸4÷èµ»ƒìVEÿu ÿuPE PEäPè”E3öPM ‰uüè=„À‹E$tƒ9uìuƒëÿ5ÀL‹M(EäVPèŠ(‹u‹E ƒMüÿj‰‹EMä‰Fèá+‹Mô‹Æ^d‰ ÉÂ$¸H÷è+»ƒìDÝE ÜàLS3ÛVW‰Mèˆ]ìßàžs ÝE ÙàÝ] ÆEì‰]ðÝØLÜ] ßàžw}ðˆsÝE Ü ÐLƒEð Ý] ë׊ESM؈EØèc+ÝE QQE°‰]üÝ$hÄLPèõ•‹øƒÄ3ö;û~¾D5°PèvYPjMØè $F;÷|äj0è÷uYPMØÿuðèò#ŠE؃ì‹ô‰e$S‹Îˆèú*ÿ5ÀLEØ‹ÎSPèu'ÿuì‹MèE ÿuÿuÿuÿuÿu Pè׋u‹ƒMüÿj‰‹@M؉Fè¯*‹Mô‹Æ_^d‰ [É ¸d÷è÷¹ƒì$SV‰MèEì‹MWPèöÓýÿ3ÛjSP‰]üèº-ƒMüÿƒÄ Mì‹ðègÀýÿ‹E ‹x;ûu¿¼L€eðj-èuf9YuGÆEðGf‹‹Pj‹Î‰] ÿR„Àt‹ßÿE ‹C‹ÎCf‹PjÿR„Àuê3ÛŠESMЈEÐèû)ÿu MÐWèZ'9] j_‰}üuj0è¸tYPWMÐèµ"ŠEЃì‹ô‰e S‹Îˆè½)ÿ5ÀLEЋÎSPè8&ÿuð‹MèEàÿuÿuÿuÿuÿu Pèš‹u‹ƒMüÿW‰‹@MЉFès)‹Mô‹Æ_^d‰ [ÉÂf‹AÃU‹ìQŠE ƒeüV‹uW‹yj‹Îˆèæ¤ýÿWè ¸YPW‹Îè†Õýÿ‹Æ_^ÉÂU‹ìQŠE ƒeüV‹uW‹yj‹Îˆè)Wè¬ÆYPW‹Îèb&‹Æ_^ÉÂU‹ìQŠE ƒeüV‹uW‹yj‹ÎˆèÑ(WèvÆYPW‹Îè,&‹Æ_^ÉÂjXÃU‹ìQSVWj:è‚s‹}$‰Eü3ÛGPjESPE Pèý"‹u ƒÄ u:8]uM è¤$f‹Ef;Eüu#M è;$GPj;ESPE PèÀ"ƒÄ ëƒ9u78]uM èc$f‹Eüf9Eu M èú#Wj;ESPE Pè‚"ƒÄ 냋E‹M _^‰‹M‰H[É U‹ìQQS‹]$V‹u WSV‹ùÿuMø‹ÿuÿuÿuÿu Q‹ÏÿP‹ƒ>‰M ‹@‰Eu>„ÀuM èÙ#j è}rf9EYu$M èl#C PjEjPE Pèð!ƒÄ 냃>…€€}uM è#j,è1rf9EYudM è #EM Pè8„ÀuL8EuM èZ#j èþqf9EYu1M èí"SVÿu‹Møÿuÿuÿuÿu Q‹ÏÿP‹‰M ‹@‰EëƒEM Pè¼7„Àtƒ‹E‹M _^‰‹M‰H[É U‹ìÿqEjPE Pè´4ƒÄ…À}‹E ƒë‹M$Ñø‰A‹E‹M ‰‹M‰H] U‹ìÿq EjPE Pèv4ƒÄ…À}‹E ƒë‹M$Ñø‰A‹E‹M ‰‹M‰H] U‹ìQEüPhóEjPE Pèš ‹M ƒÄ ‹¨uºl9Uü|)Uüë }ü‡~ ‰öu ‹E$‹Mü‰H‹E‹M ‰‹M‰HÉ V‹ñèöD$tVè"«ÿÿY‹Æ^ÂV‹ñƒ~Ç€Lt ÿvèׄYÇ€I^ÃV‹ñèöD$tVèæªÿÿY‹Æ^ÂV‹ñÿvÇLKè¡„YÇ€I^ÃV‹ñèöD$tVè°ªÿÿY‹Æ^ÂV‹ñÿvÇL蘪ÿÿÿvèªÿÿÿv航ÿÿƒÄ Ç€I^ÃV‹ñèöD$tVèhªÿÿY‹Æ^ÂV‹ñÿvÇðKèPªÿÿÿv èHªÿÿYÇ€IY^ÃV‹ñè£öD$tVè)ªÿÿY‹Æ^ÂV‹ñèöD$tVè ªÿÿY‹Æ^ÂV‹ñÿvÇXKèõ©ÿÿÿv èí©ÿÿYÇ€IY^ÃV‹ñÿvÇìLèÒ©ÿÿÿvèÊ©ÿÿÿvè©ÿÿÿv躩ÿÿƒÄÇ€I^ÃV‹ñèÄÿÿÿöD$tVèš©ÿÿY‹Æ^Âé«ÿÿÿU‹ìV‹ñ‹MEP苉Nƒ ÿuè?ƒY^]ÂU‹ìQƒeüè–‹M‰‹ÁÉÂV‹ñ‹N…Étÿt$èf=ÿÿuÆ‹Æ^‹A ‹…Àt‹Q0‹P;Âsè‚‹L$f‰‹Áë ‹ÿt$ÿP¸€÷èý²ƒì,SVWj0èfnjjÿu‹øèD)ƒÄ‹ðEÈ‹ÎPè㋃eü‹ÎÿP‹u ‹]ÿu‹Î‰Eè‰]ðè,4„ÀuH8Fu‹Îèlj+ènf9FYuÆ+ë€~u‹ÎèLj-èðmf9FYuÆ-C‹Î‰]ðèÙ‹Ej%[=u ÇEë=u‰]ë ÷ØÀƒà ‰Eÿu€e€e‹Îè3„À…ˆ8Fu‹ÎèÙf9~uv‹ÎÆEèqÿu‹Îèn3„ÀuP8Fu‹Îè®jxèRmf9FYt€~u‹Îè“jXè7mf9FYuƒ}t9]u€e‹Î‰]èëƒ}u ÇEƒ}tƒ} t3Àƒ}•ÀH$òƒÀ‰EìëÇEì ŠE3ÿWM؈EØèžýÿ€}MØ•ÀPjèžÇÿÿ‹Eÿu‹ÎÆEüXè¯2„À…0€~u‹Îèêf‹FPèöÓÿÿ‹Mðÿu숾ÀPh$J裣ƒÄ…Àte€}u‹Eð€80t 9]ðsÿEðÆE9}àÆErƒ}ÜtMØè[Îýÿ‹EÜÇë¸`€8tr9}àrƒ}ÜtMØè7Îýÿ‹EÜÇë¸`þëO9}àrƒ}ÜtMØèÎýÿ‹EÜÇë¸`€8tDfƒ}èt=€~u‹Îè&f‹Eèf9Fu&jjMØè©ÂýÿG‹Îè±ÿu‹Îè®1„À„ÿþÿÿ…ÿt+9}àrƒ}ÜtMØè¨Íýÿ‹EÜÇë¸`€8~Gë€e‹uÌ»`…öu‹ó€}„€…ÿvg€>tbOt"9}àrƒ}ÜtMØèYÍýÿ‹EÜÇë‹ÃŠ:u%…ÿu'9}àr9}ÜtMØè4Íýÿ‹EÜÇë‹ÃŠ:}€eë €~F~‹ðO€}u•€}t€}‹Eðu Æ0@ë‹E€ jMØè˜›ýÿjMÈ莛ýÿ‹Mô‹E_^[d‰ ÉÃU‹ìƒìSVWj0èžjjjÿu‰Eôè{%‹]‹u ‹}ƒÄ‹Î‰EðSè}0„ÀuK8Fu‹Îè½j+èajf9FYu‹}Æ+ë!€~u‹Îèšj-è>jf9FYu‹}Æ-‹ÎGè'€eS‹Îè"0„Àu8€~u‹Îèaf‹Eôf9Fu‹ÎÆEèõS‹Îèô/„ÀtÒ€}tÆ0GƒeøƒeüS‹ÎèÖ/„ÀuD8Fu‹Îèf‹FPè"ÑÿÿÿuˆPèËÿÿƒÄ „Àtƒ}ø$}GÿEøëÿEü‹ÎÆEè‰ë°S‹Îè†/„Àu-8Fu‹ÎèÆ‹Mð‹ÿPf9Fuè¡‹‹ÎŠˆGèNƒ}øu?S‹ÎèG/„Àu&8Fu‹Îè‡f‹Eôf9FuÿMü‹ÎÆEèë΃}ü}Æ0GÿEüS‹Îè/„Àu?8Fu‹ÎèHf‹FPèTÐÿÿÿuˆPèNÊÿÿƒÄ „Àtƒ}ø$}GÿEø‹ÎÆEèÀëµ€}„ES‹Îè³.„À…/8Fu‹Îèïjeè“hf9FYt€~u‹ÎèÔjEèxhf9FY…öÆe‹ÎGè`ÿu€e‹Î3ÛèW.„ÀuE8Fu‹Îè—j+è;hf9FYuÆ+ë€~u‹Îèwj-èhf9FYu Æ-‹ÎGèÿu‹Îè.„Àu:€~u‹ÎèCf‹Eôf9Fu‹ÎÆEè×ÿu‹ÎèÔ-„ÀtЀ}tÆ0Gÿu‹Îè¼-„Àu<8Fu‹Îèüf‹FPèÏÿÿÿuˆPèÉÿÿƒÄ „Àtƒû}GC‹ÎÆEèwë¶€}u‹}€'‹Eü_^[ÉËD$‹T$ ö Æ%HtÆ+AöÂtÆ#AÆ.ASŠ\$ Æ*A„ÛtˆAâ0[ú u²fëú•ÂJƒâþƒÂgˆ€aø”÷è…«ƒì ‹USV3ö‹BW;Æ~‹M ‹}$9;Ãv +Á+ljEðë‰uð‹B %Àƒø@„Ÿ=t)‹E ‹}ð‰Eä‹E;þ‰EèvÿuMäèÊ÷ÿÿOuò‹}ä‹]èëj9u$v>‹EŠ<+t<-u1‹M ¾À‰Mä‹MP‰MèèhfYPMäèŽ÷ÿÿ‹EäÿEÿM$‰E ‹Eè‰E‹E ‹}ð‰Eä‹E;þ‰EèvÿuMäè^÷ÿÿOuò‹}ä‹]è‰uðë‹]‹} ÿu$è5ž‹¾Pÿuè2‹ðƒÄ …ö„‰‹MEìPè‰ÄýÿƒeüjjPèÉ ƒMüÿƒÄ Mì‰Eèèù°ýÿ‹M‰}Ü+ñ‰MF‰]àFÿ…Àv‹ø‹E¾Pè§eYPMÜèÍöÿÿÿEOuä‹Mè‹ÿP‹MÜP‰M ‹Mà‰MM èªöÿÿu‹} ‹])u$ÿu$jeÿuèœƒÄ …À„¡‹M‰}Ü+Á‰M@‰]à‹ðFÿ…Àv‹ø‹E¾Pè0eYPMÜèVöÿÿÿEOuäj0èe‹] ‹ø‹EÜY‰E ‹Eà…Û‰Ev WM è*öÿÿKuô‹Eƒe ö@ ¸¸Êu¸´Ê‹M ¾‰MÜ‹MP‰MàèËdYPMÜèñõÿÿu‹}Ü‹]à)u$‹u‰} ‹}$‰]…ÿv¾PèœdYPM èÂõÿÿFOuéj0è‡d‹} ‹ð‹E Y‰EÜ‹E…ÿ‰Eàv VMÜè˜õÿÿOuô‹E‹uðƒ`‹E܉EÔ‹Eà…ö‰EØvÿuMÔèpõÿÿNuò‹E‹MÔ_^‰‹M؉H‹Mô[d‰ ÉËD$S‹\$öà Æ%HtÆ+AöÃtÆ#A‹ÓÆlâAúu³oëútŠ\$ ë öÓ€ã€Ë À㈀a[ø°÷èF¨ƒì(‹MŠ<+t"<-t<0uŠA‹^‹Î舄ۉ½|ÿÿÿ‰]€u |ÿÿÿèÇÿu‚M°jèm ë‹‹MÜ‹ÿP‰EœŠE3ÿMàWˆEàèýÿWjMàè¹ÿÿÿu‹ÎÆEüè3$„À… »`€~u‹Îèi‹MØf‹FPj‹ÿR„Àt]€~u‹ÎèIf‹FM°Pjèí 9}èrƒ}ätMàèð¿ýÿ‹EäÇë‹Ã€8te9}èrƒ}ätMàèÏ¿ýÿ‹EäÇë‹ÃþëE9}èrƒ}ätMà诿ýÿ‹EäÇë‹Ã€8t=€~u‹ÎèËf‹Eœf9Fu&jjMàèN´ýÿG‹ÎèVÿu‹ÎèS#„À„%ÿÿÿ…ÿt(9}èrƒ}ätMàèM¿ýÿ‹EäÇë‹Ã€8~GëÆE‹pÿÿÿ…Ûu»`€}uw…ÿvm€;thOt%9}èrƒ}ätMàè¿ýÿ‹EäÇë¸`Š :u(…ÿu*9}èr9}ätMàèܾýÿ‹EäÇë¸`Š :}ÆEë €{C~‹ØO€}t€}tjMàèRýÿéÜjMàÆEü è?ýÿÿu‹Îèl"„À…8Fu‹Îè¨ ‹MÜ‹ÿPf9Fuu‹Îè< ÿu‹Îè9"„Àu`‹}À‹]Ø€~u‹Îèr f‹F‹Pj‹ËÿR„Àt>9} }€~u‹ÎèN f‹FM°Pjèò ÿE ‹ÎèÞ ÿu‹ÎèÛ!„Àt¨ë‹}Àƒ}¸uÆEë9} }+} j0è²[YPjM°è® OuêjlÿÿÿÆEüè`Œýÿ‹}Üé¦ÿu‹Îè…!„À…Ž…<ÿÿÿ‹ÏPè̃xÆEüv[…ÿÿÿ‹ÏP贋؃{ÆEüt ‹Ë诋[뻼L€~u‹Îè} f‹jf;FÿÿÿÆEü”Ãè2„Ût³ë2Ûj<ÿÿÿÆEüè„Ût;‹Îèå …\ÿÿÿ‹ÏPè;ÿ5ÀLMÄÆEü jPèv ÆEüj\ÿÿÿéÄ…,ÿÿÿ‹ÏPèƒxÆEü v[…Lÿÿÿ‹ÏPè‹Øƒ{ÆEü t ‹Ëèê‹[뻼L€~u‹Îè¸ f‹jf;FLÿÿÿÆEü ”Ãèm„Ût³ë2Ûj,ÿÿÿÆEüèR„Ût?‹Îè … ÿÿÿ‹ÏPèÿ5ÀLMÄÆEü jPè± ÆEóÆEüj ÿÿÿèƒ}Ì…üÿ5ÀLMÄjèÔ éçE ‹ÏPèòH‹EÆEüö@ uIƒ}Ôu9]Ìt/ÿu‹Î裄Àu!8Fu‹Îèã ‹E¤;Ãu¸¼Lf‹Nf;tÿ5ÀLM Sèn M èÒ ‹]¤ÿu‹ÎèZ„Àu>M è¹ ‹E¤‹U¨‹È÷ÙPÉ#È;Ùt!€~u‹Îè| f‹Ff;u C‹ÎCè ë´M è{ ‹E¤‹U¨‹È÷ÙPÉ#È;ÙtÆEjM ÆEüè ÿEÔ€}„Kùÿÿ3Û€}u}9]̆†MÄè. ‹]Èÿu‹Îè¶„Àu>CMÄCè ‹EÈ‹UÌ‹È÷ÙPÉ#È;Ùt€~u‹ÎèÖ f‹Ff;u ‹Îèo ë´MÄè× ‹EÈ‹UÌ‹È÷ÙPÉ#È;Ùtÿ5ÀLM°jèF ë€}ótj-è3XYPjjM°èO ‹uŠE°j‹Îˆè9 ÿ5ÀLE°‹ÎjPè³ j_‰}ˆWM°ÆEüè €eüWMÄè ‹Mô‹Æ_^[d‰ ɸ²øèNœìSVW3ö€}‰uüt*‹MEÐPèB¶ýÿjVPÆEüèV‹ØƒÄ €eü‰]ðMÐë(‹MEÐPè¶ýÿjVPÆEüè]‹ØƒÄ €eü‰]ðMÐ臢ýÿ‹‹ËÿP‹ø…dÿÿÿP‹Ë‰}èZF;},ÆEüs_‹…hÿÿÿ¿`;Æu‹Ç€8~I‹‹ËÿP9µhÿÿÿ‹Øt‹½hÿÿÿ‹u,+uŠ<t&„À~"¾À;Æs+ðSjVM$è €G~Ø‹øëÔŠE3ÿWMÀˆEÀèë ‹uð€} ÆEü‹t8M Q‹ÎÿP$‹‹Î‰EÔEàPè ÿ5ÀLMÀÆEüWPè<ÆEüjMàë6M Q‹ÎÿP ‹‹Î‰EÔEàPèÈ ÿ5ÀLMÀÆEüWPèÆEüjMàèi ŠEWtÿÿÿˆ…tÿÿÿèT ‹EÆEü‹@ ¨t0Eà‹ÎPèHEÿ5ÀLtÿÿÿÆEüWPè±jMàÆEüè 2Û3Ò3Éë3ÿŠD Ô< t<<$t0<+t'ƒMüÿYMðèŸyÿÿ‹Mô‹Æ^d‰ Éø˜ûè>{QVMðèàxÿÿ‹uƒeü‹Î‰5€"è´œýÿh$´è{>ƒMüÿYMðèQyÿÿ‹Mô‹Æ^d‰ Éø¬ûèðzQVMðè’xÿÿ‹uƒeü‹Î‰5„"èfœýÿhq´è->ƒMüÿYMðèyÿÿ‹Mô‹Æ^d‰ ÉøÀûè¢zQVMðèDxÿÿ‹uƒeü‹Î‰5ˆ"èœýÿh¾´èß=ƒMüÿYMðèµxÿÿ‹Mô‹Æ^d‰ ÉøÔûèTzQVMðèöwÿÿ‹uƒeü‹Î‰5Œ"èÊ›ýÿh µè‘=ƒMüÿYMðègxÿÿ‹Mô‹Æ^d‰ ÉøèûèzQVMðè¨wÿÿ‹uƒeü‹Î‰5"è|›ýÿhXµèC=ƒMüÿYMðèxÿÿ‹Mô‹Æ^d‰ Éøüûè¸yQVMðèZwÿÿ‹uƒeü‹Î‰5”"è.›ýÿh¥µèõ<ƒMüÿYMðèËwÿÿ‹Mô‹Æ^d‰ ÉøüèjyQVMðè wÿÿ‹uƒeü‹Î‰5˜"èàšýÿhòµè§<ƒMüÿYMðè}wÿÿ‹Mô‹Æ^d‰ Éø$üèyQVMðè¾vÿÿ‹uƒeü‹Î‰5œ"è’šýÿh?¶èY<ƒMüÿYMðè/wÿÿ‹Mô‹Æ^d‰ Éø@üèÎxƒìD‹EV‹ñ‰uð‰FŠE ƒeühüÀM°ˆF(ÇìLèrÿÿP‹ÎÆEüèœéÿÿ€eüM°è€ÿÿ‹Mô‹Æ^d‰ ɸTüèoxQMðèvÿÿ‹ l"ƒeüèýÿ…Àt‹j‹Èÿƒ%l"ƒMüÿMðè€vÿÿ‹Môd‰ Éøhüè"xQMðèÅuÿÿ‹ p"ƒeüèÎ~ýÿ…Àt‹j‹Èÿƒ%p"ƒMüÿMðè3vÿÿ‹Môd‰ Éø|üèÕwQMðèxuÿÿ‹ t"ƒeüè~ýÿ…Àt‹j‹Èÿƒ%t"ƒMüÿMðèæuÿÿ‹Môd‰ ÉøüèˆwQMðè+uÿÿ‹ x"ƒeüè4~ýÿ…Àt‹j‹Èÿƒ%x"ƒMüÿMðè™uÿÿ‹Môd‰ Éø¤üè;wQMðèÞtÿÿ‹ |"ƒeüèç}ýÿ…Àt‹j‹Èÿƒ%|"ƒMüÿMðèLuÿÿ‹Môd‰ Éø¸üèîvQMðè‘tÿÿ‹ €"ƒeüèš}ýÿ…Àt‹j‹Èÿƒ%€"ƒMüÿMðèÿtÿÿ‹Môd‰ ÉøÌüè¡vQMðèDtÿÿ‹ „"ƒeüèM}ýÿ…Àt‹j‹Èÿƒ%„"ƒMüÿMðè²tÿÿ‹Môd‰ ÉøàüèTvQMðè÷sÿÿ‹ ˆ"ƒeüè}ýÿ…Àt‹j‹Èÿƒ%ˆ"ƒMüÿMðèetÿÿ‹Môd‰ ÉøôüèvQMðèªsÿÿ‹ Œ"ƒeüè³|ýÿ…Àt‹j‹Èÿƒ%Œ"ƒMüÿMðètÿÿ‹Môd‰ ÉøýèºuQMðè]sÿÿ‹ "ƒeüèf|ýÿ…Àt‹j‹Èÿƒ%"ƒMüÿMðèËsÿÿ‹Môd‰ ÉøýèmuQMðèsÿÿ‹ ”"ƒeüè|ýÿ…Àt‹j‹Èÿƒ%”"ƒMüÿMðè~sÿÿ‹Môd‰ Éø0ýè uQMðèÃrÿÿ‹ ˜"ƒeüèÌ{ýÿ…Àt‹j‹Èÿƒ%˜"ƒMüÿMðè1sÿÿ‹Môd‰ ÉøDýèÓtQMðèvrÿÿ‹ œ"ƒeüè{ýÿ…Àt‹j‹Èÿƒ%œ"ƒMüÿMðèärÿÿ‹Môd‰ ÉÃöí&u€ í&éhd$èÖ7Yø­ýèetQQSVMðèrÿÿ3ÛöE ‰]üt[9]u4jè7‹ðY;ót‰^ÇOèÙ-‰F‰V ë3ö¹¼"è‹ýÿPVë¹¼"è‹ýÿPjSÿuè ƒÄ P‹MèzÿÿöE td9]u=jèº6‹ðY‰uì;ót‰^ÿu‹ÎÆEüÇOèà ë3ö¹°"ˆ]üè3‹ýÿPVë¹°"è%‹ýÿPjSÿuèj ƒÄ P‹Mè¦yÿÿW‹} ƒçtP9]u)jèM6;ÃYt ‰XÇôN‹ðë3ö¹¸"èÚŠýÿPV빸"èÌŠýÿPjSÿuèÕ ƒÄ P‹MèMyÿÿ;ûtP9]u)jèù5;ÃYt ‰XÇäN‹ðë3ö¹ "膊ýÿPVë¹ "èxŠýÿPjSÿuè]!ƒÄ P‹Mèùxÿÿ‹} ƒçtc9]u-uˆ] F‹Eì¶‹@Š HÁé„Ët¶L7GëîŠEjMÔˆEÔèMXýÿWVMÔèóˆýÿ…ÿ‰]üu j0SMÔèQ~ýÿŠEÔƒì‹ô‰eìj‹ÎˆèXýÿÿ5dEÔ‹ÎjPèVýÿÿu ‹MäEèÿuÿuÿuÿuÿu Pèc‹u‹ƒMüÿS‰‹@MÔ‰FèÐWýÿ‹Mô‹Æ_^d‰ [ÉŠA ÊA ÃU‹ìQŠE ƒeüV‹uW‹yj‹Îˆè—WýÿWèÑjYPW‹Îè7ˆýÿ‹Æ_^ÉÂU‹ìQŠE ƒeüV‹uW‹yj‹ÎˆèaWýÿWè›jYPW‹Îèˆýÿ‹Æ_^ÉÂU‹ìQŠE ƒeüV‹uW‹yj‹Îˆè+WýÿWèejYPW‹Îèˇýÿ‹Æ_^É‹AËD$‹I ‰Â‹D$‹I$‰ÂU‹ìSVW‹}$3ÛGPjESPE Pèo‹u ƒÄ u68]uM ènÿÿ€}:u#M è ÿÿGPj;ESPE Pè6ƒÄ ëƒ9u38]uM è1ÿÿ€}:u M è΀ÿÿWj;ESPE PèüƒÄ 냋E‹M _^‰‹M‰H[] U‹ìQQS‹]$V‹u WSV‹ùÿuMø‹ÿuÿuÿuÿu Q‹ÏÿP‹ƒ>‰M ‹@‰Eu6„ÀuM è«€ÿÿ€} u$M èH€ÿÿC PjEjPE PèrƒÄ 냃>up€}uM èk€ÿÿ€},u\M è€ÿÿEM Pè†ÿÿ„ÀuD8EuM è@€ÿÿ€} u1M èÝÿÿSVÿu‹Møÿuÿuÿuÿu Q‹ÏÿP‹‰M ‹@‰EëƒEM Pè9†ÿÿ„Àtƒ‹E‹M _^‰‹M‰H[É U‹ìÿqEjPE Pè„ÿÿƒÄ…À}‹E ƒë‹M$Ñø‰A‹E‹M ‰‹M‰H] U‹ìÿq EjPE PèǃÿÿƒÄ…À}‹E ƒë‹M$Ñø‰A‹E‹M ‰‹M‰H] U‹ìQEüPhóEjPE Pè0‹M ƒÄ ‹¨uºl9Uü|)Uüë }ü‡~ ‰öu ‹E$‹Mü‰H‹E‹M ‰‹M‰HÉ ¸LþèhƒìSVW¾´L}ìŠE¥¤‹Ù3ÿWM܈EÜè"TýÿŠE ‰}ü„ÀuŠEˆEîë ˆEîŠEˆEïj^WVMÜèzýÿ‹Eä‹{M܉Eè9…ýÿWEìÿuPÿuÿuàè™L‹øƒÄ…ÿwöjëÄMÜè…ýÿ‹uàOtŠFFˆEÿuM è×Hþÿëé‹u‹E ƒMüÿj‰‹EM܉Fè‰Sýÿ‹Mô‹Æ_^[d‰ ÉÂÇ€IÃV‹ñèöD$tVè ]ÿÿY‹Æ^ÂV‹ñÿvÇOèò\ÿÿÿv èê\ÿÿYÇ€IY^ÃV‹ñèÙöD$tVèË\ÿÿY‹Æ^ÂV‹ñèöD$tVè¯\ÿÿY‹Æ^ÂV‹ñÿvÇlNè—\ÿÿÿv è\ÿÿYÇ€IY^ÃV‹ñèöD$tVèp\ÿÿY‹Æ^ÂV‹ñÿvÇ`Nè+6YÇ€I^ÃV‹ñÿvÇ,Oè>\ÿÿÿvè6\ÿÿÿvè.\ÿÿÿvè&\ÿÿƒÄÇ€I^ÃV‹ñèÄÿÿÿöD$tVè\ÿÿY‹Æ^Âé«ÿÿÿ‹Q‹D$;Âwÿ5dPè£Xýÿë +ÂjPèGxýÿÂVj‹ñhMèØ‚ÿÿjhM‰FèÉ‚ÿÿƒÄ‰F ^¸Ýþè®eìèSVW3ÿ€}‰}¼t)‹ME¸Pè¢ýÿjWP‰}üè¢‹ØƒÄ ƒMüÿ‰]ØM¸ë)‹ME¸PèyýÿjYQWP‰Müè¨‹ØƒÄ ƒMüÿ‰]ØM¸èçkýÿ‹MEPèKýÿjWPÇEüèL|ÿÿƒÄ M‰EÐè½kýÿ€eŠE€eóWMÀˆEÀèFQýÿŠEWM”ÇEüˆE”è0Qýÿ‹M¼Q‹ËÆEüÿP$‹‹u ‰Eˆ‰}Ôë3ÿ‹MÔƒùƒŠD ˆ<$„•<+„È‹^‹Îè€zÿÿ„Û‰½|ÿÿÿ‰]€u |ÿÿÿè½zÿÿÿuM”jè#výÿ늋MØ‹ÿPˆEŠE3ÿMàWˆEàèåOýÿWjMàèìyÿÿÿu‹ÎÆEü 踀ÿÿ„À…»`€~u‹Îè_zÿÿ‹MжF‹IŠAÁè¨ta€~u‹Îè>zÿÿŠFM”ˆEŒÿuŒjèžuýÿ9}èrƒ}ätMà軀ýÿ‹EäÇë‹Ã€8tc9}èrƒ}ätMà蚀ýÿ‹EäÇë‹ÃþëC9}èrƒ}ätMàèz€ýÿ‹EäÇë‹Ã€8t;€~u‹Îè¼yÿÿŠE8Fu&jjMàèuýÿG‹ÎèKyÿÿÿu‹ÎèÕÿÿ„À„"ÿÿÿ…ÿt(9}èrƒ}ätMàè€ýÿ‹EäÇë‹Ã€8~GëÆE‹pÿÿÿ…Ûu»`€}uw…ÿvm€;thOt%9}èrƒ}ätMàèÑýÿ‹EäÇë¸`Š :u(…ÿu*9}èr9}ätMàè©ýÿ‹EäÇë¸`Š :}ÆEë €{C~‹ØO€}t€}tjMàèNýÿé×jMàÆEü è Nýÿÿu‹Îèî~ÿÿ„À…‘8Fu‹Îè›xÿÿ‹MØ‹ÿP8Fux‹Îè2xÿÿÿu‹Îè¼~ÿÿ„Àuc‹}´€~u‹Îèixÿÿ‹MжF‹IŠAÁè¨tB9}Ü}#€~u‹ÎèCxÿÿŠFM”ˆE¼ÿu¼jè£sýÿÿEÜ‹ÎèÑwÿÿÿu‹Îè[~ÿÿ„Àt¢ë‹}´ƒ}œuÆEë9}Ü}+}Üj0jM”èfsýÿOuñjlÿÿÿÆEüè2Mýÿ‹]Øé¥ÿu‹Îè ~ÿÿ„À…”…<ÿÿÿ‹ËPèžÑÿÿƒxÆEüvZ…ÿÿÿ‹ËPè†Ñÿÿ‹øƒÆEüt ‹Ïè/~ýÿ‹ë¿`€~u‹ÎèuwÿÿŠj:Fÿÿÿ”Eè²Lýÿ€}tÆEë€ej<ÿÿÿÆEüè‘Lýÿ€}t;‹ÎèÜvÿÿ…\ÿÿÿ‹ËPè Ñÿÿÿ5dMÀÆEüjPèaJýÿÆEüj\ÿÿÿéÇ…,ÿÿÿ‹ËPè½ ƒxÆEü vZ…Lÿÿÿ‹ËPè¥ ‹øƒÆEü t ‹Ïèg}ýÿ‹ë¿`€~u‹Îè­vÿÿŠj:FLÿÿÿ”EèêKýÿ€}tÆEë€ej,ÿÿÿÆEüèÉKýÿ€}t?‹Îèvÿÿ… ÿÿÿ‹ËPè) ÿ5dMÀÆEü jPè™IýÿÆEóÆEüj ÿÿÿè„Kýÿƒ}È…õÿ5dMÀjèÚQýÿéàE¤‹ËPè¾ ‹EÆEüö@ uGƒ}Ôu9}Èt-ÿu‹Îè$|ÿÿ„Àu8Fu‹ÎèÕuÿÿ‹E¨;Çu¸`ŠN:tÿ5dM¤WèvQýÿM¤èN|ýÿ‹}¨ÿu‹ÎèÝ{ÿÿ„Àu:M¤è5|ýÿ‹E¨‹U¬‹ÈÐ÷ÙÉ#Ê;ùt€~u‹ÎèquÿÿŠF:u ‹ÎGè uÿÿë¸M¤èû{ýÿ‹E¨‹U¬‹ÈÐ÷ÙÉ#Ê;ùtÆEjM¤ÆEüè…JýÿÿEÔ€}„dùÿÿ3ÿ€}uz9}Ȇ„MÀè¯{ýÿ‹}Äÿu‹Îè>{ÿÿ„Àu:MÀGè•{ýÿ‹EÄ‹UÈ‹ÈÂ÷ÙÉ#È;ùt€~u‹ÎèÑtÿÿŠF:u ‹Îèntÿÿë¸MÀè\{ýÿ‹EÄ‹UÈ‹ÈÂ÷ÙÉ#È;ùt3ÿÿ5dM”WèWPýÿë3ÿ€}ót j-jWM”èž‹uŠE”W‹ÎˆèÀIýÿÿ5dE”‹ÎWPè®GýÿjM”è¤IýÿjMÀèšIýÿ‹Mô‹Æ_^[d‰ ɸ6ÿè9]ì˜SVW3ö€}‰uüt*‹MEØPè-wýÿjVPÆEüè, ‹ØƒÄ €eü‰]ÔMØë(‹MEØPèwýÿjVPÆEüè3 ‹ØƒÄ €eü‰]ÔMØèrcýÿ‹‹ËÿP‹ø…\ÿÿÿP‹Ë‰}èE;},ÆEüsb‹…`ÿÿÿ¿`;Æu‹Ç€8~L‹‹ËÿP9µ`ÿÿÿˆEðt‹½`ÿÿÿ‹u,+uŠ<t(„À~$¾À;Æsÿuð+ðM$jVèh€G~Ö‹øëÒŠE3öVM¼ˆE¼è|Hýÿ€} ‹ÆEüt4M Q‹ËÿP$‹‹Ë‰EðEàPèÒÿ5dM¼ÆEüVPèCFýÿjMàë2M Q‹ËÿP ‹‹Ë‰EðEàPè·Ìÿÿÿ5dM¼ÆEüVPèFýÿjMàèHýÿŠEVpÿÿÿˆ…pÿÿÿèðGýÿ‹EÆEü‹@ ¨t0Eà‹ËPè;ÿ5dpÿÿÿÆEüVPèÀEýÿjMàÆEüè²Gýÿ2Û3Ò3ÉŠD ð< t<<$t0<+t'M¼èÒuýÿ‹MÀFÿ…Àq‹M ‰Mè‹M‰Mìv‹øŠMèPèŒ9þÿFOuñ‹Mè‹Uì‰M ‰U‹E‹u ‰Mè‰Uìƒ`…övÿuMèè]9þÿNuò‹u‹Eèjpÿÿÿ‰‹Eì_‰FWè DýÿWM¼èDýÿW\ÿÿÿèøCýÿWM$èïCýÿ‹Mô‹Æ_^[d‰ ÉÂ,¸HÿèŽWQ‹E V‹ñ‰uð‰FŠEÿuƒeüˆF(Ç,Oè?‹Mô‹Æ^d‰ É V‹ñ‹L$jèÊÁÿÿPèKtÿÿY‰FY‹L$jèúÁÿÿPè5tÿÿY‰F Y^ÂU‹ìƒì SV‹uWÿu ‹Î}àèRÿÿ‹ð…öuL8Etb‹MèRÿÿ„ÀtV‹5À"…öu1jèqY‹È‰M…ÉÆEütVèûë3À€eüPèyY£À"‹ðƒMüÿMðèªQÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀèÞ!EähxpPÇEä@Jè¸"¸‚ÿè!SƒìVMðèÁPÿÿƒeü¹°"è‹jýÿ‹MjPèzQÿÿ‹ð…öuL8Etb‹Mè½Qÿÿ„ÀtV‹5Ä"…öu1jè­Y‹È‰M…ÉÆEütVè‹ë3À€eüPèY£Ä"‹ðƒMüÿMðèæPÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀè!EähxpPÇEä@Jèô!¸¦ÿè]RƒìPVMðèýOÿÿƒeü¹¸"èÇiýÿ‹MjPè¶Pÿÿ‹ð…öud8Etz‹MèùPÿÿ„Àtn¡È"…ÀuHjèê‹ðY‰u…öt%ƒfhüÀM¤ÆEüÇôNè¼XÿÿM¤èmYÿÿë3ö€eüVèuY£È"‹ðƒMüÿMðè Pÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀè> EähxpPÇEä@Jè!¸ÊÿèQƒìPVMðè!Oÿÿƒeü¹ "èëhýÿ‹MjPèÚOÿÿ‹ð…öud8Etz‹MèPÿÿ„Àtn¡Ì"…ÀuHjè‹ðY‰u…öt%ƒfhüÀM¤ÆEüÇäNèàWÿÿM¤è‘Xÿÿë3ö€eüVèçY£Ì"‹ðƒMüÿMðè.Oÿÿ‹Mô‹Æ^d‰ ÉÃEMäPÇEäÀèbEähxpPÇEä@Jè< ¸æÿè¥PƒìSVMðèDNÿÿ3Û¹´"‰]üè hýÿ‹MjPèüNÿÿ‹ð;óuT8]tk‹Mè?Oÿÿ„Àt_‹5Ð";óu9j,è/‹ðY‰u;óÆEütSS‹Îè²Ç¸Në3öVˆ]üègY£Ð"‹ðƒMüÿMðè`Nÿÿ‹Mô‹Æ^[d‰ ÉÃEMäPÇEäÀè“EähxpPÇEä@Jèm¸èÖOƒìVMðèvMÿÿƒeü¹¤"è@gýÿ‹MjPè/Nÿÿ‹ð…öuW8Etm‹MèrNÿÿ„Àta‹5Ô"…öuƒÄ ß‹}üëK;Mr.ƒ}‹Át 3Ò÷u‹Á+ÂPSÿvèGYƒÄ …Àt6ƒøÿt7)EØëVèRXƒøÿYt(ˆ‹FCÿM‰Eƒ}…vÿÿÿ‹E_^[ÉÃN ëƒN ‹Ç3Ò+E÷u ëåVèœ\‹ð…öu^ÃWVÿt$ÿt$ÿt$è[V‹øèñ5ƒÄ‹Ç_^Ãj@ÿt$ ÿt$ èÀÿÿÿƒÄ ÃU‹ìVÿuèx5ÿuÿuÿu ÿuèÿu‹ðè¯5ƒÄ‹Æ^]ÃU‹ìQSVW‹} ¯}‹E‰}ü…ÿ‰E‹ßu3ÀéÍ‹uf÷F t‹F‰EëÇE‹N át)‹F…Àt";Ø‹ûr‹øWÿuÿ6è:9)~>ƒÄ +ß}ëF;]rF…Ét Vèq…ÀYuyƒ}t ‹Ã3Ò÷u‹û+úë‹ûWÿuÿvèh]ƒÄ ƒøÿtGE+Ø;Çr>‹}üë)‹EV¾Pè-\YƒøÿYt.ÿE‹FK‰E…ÀÇE…Û…Pÿÿÿ‹E_^[ÉÃN ‹Eüë‹Ç+Ã3Ò÷u ëçU‹ìVÿuè?4ÿuÿu ÿuèÿu‹ðèy4ƒÄ‹Æ^]ÃV‹t$W‹F ¨ƒto‹|$…ÿt ƒÿtƒÿu]$ïƒÿ‰F u Vè¶4D$Y3ÿV耋F Y¨€t$ü‰F ë¨t¨t öÄuÇFWÿt$ÿvè]^ƒÄ 3Ƀøÿ•ÁI‹Áëè+7ǃÈÿ_^Ãÿt$ j@ÿt$ÿt$èƒÄÃU‹ìƒì‹M S3ÛVöÁ€WÇEä ‰]èt ‰]ìÆEÿë €eÿÇE츀…ÈuöÅ@u9($t€Mÿ€j‹Á^#Æ+ÃtHtH…¤ÇEôÀëÇEô@ëÇEô€‹Eƒøt&ƒø tƒø0t ƒø@ut‰uðëÇEðë ÇEðë‰]ðº¸#Ê¿;È1t*;Ët&;ÏtùtMùu+ÇEøëLÇEøëC‰uøë>ùt/ùt;Êt#èÿ5Çèý5‰ƒÈÿé¬ÇEøëÇEø‹E ¾€…Çt‹ H#÷Ñ#MöÁ€uj^¨@t ΀MööÄt ÷¨ tÎë ¨tÎè€]‹ØƒÏÿ;ßuè}5Çè{5ƒ ‹Çé*jVÿuøEäPÿuðÿuôÿuÿ‹ð;÷uÿÌPèÊ4Y‹÷éîVÿÈ…Àu Vÿ ëØƒøu€Mÿ@ë ƒøu€MÿVSè^‹ÃYÁøYŠMÿ<…`)‹Ã€ÉƒàˆM 4À‹Áæ€e HˆL0uxöÁ€tsöE tmjjÿSèE\ƒÄ ƒøÿ‰Eðuè¼48ƒtKSè]RYƒÎÿëX€eEjPSè“TƒÄ …Àu€}uÿuðSèO_YƒøÿYtÇjjSèê[ƒÄ ƒøÿtµ€} uöE t ‹€L0 D0‹óSèõ^Y‹Æ_^[ÉÃV‹t$ WVè 0ÿNYx‹ŠD$ ¶øˆÿëVÿt$è#XY‹øYVèÉ0Y‹Ç_^ÃV‹t$WVèe0ÿNYx ‹¶8@‰ë VèŸRY‹øVè˜0Y‹Ç_^ÃVÿt$ è60ÿt$ÿt$èÿt$‹ðèp0ƒÄ‹Æ^ÃS‹\$ƒûÿVtA‹t$‹F ¨u¨€t2¨u.ƒ~uVè…aY‹;Fu ƒ~u@‰öF @tÿ‹8t@‰ƒÈÿ^[Ãÿ‹ˆ‹F ÿF$ï ‰F ‹Ã%ÿëáÿt$è|aY‹L$‰‰Q‹ƒÈÿ#Q;Ðt3ÀËD$jÿpÿ0ÿt$ècƒÄÃU‹ìQƒeüS‹]W‹}ƒûtƒÿrÿÿÿÿw …Ût ƒû@tƒÈÿë{V‹uVƒçþè2/VèÉVèKQff ó‹N ƒÄ öÃtƒÉj‰N F_ë,‹E …ÀuWèÎ…ÀYu ÿŒ#ƒMüÿëfN ë€Í‰N ƒf‰~‰F‰Vè/‹EüY^_[ÉÃV‹t$…öu Vè³Y^ÃWVè§.VèV‹øèë.ƒÄ ‹Ç_^ÃV‹t$Vè#…ÀYtƒÈÿ^ÃöF @tÿvèÂb÷ØY^ÀÃ3À^ÃSV‹t$ 3ÛW‹F ‹Èƒá€ùu7f©t1‹F‹>+ø…ÿ~&WPÿvèìVƒÄ ;Çu‹F ¨€t$ý‰F ëƒN ƒËÿ‹Fƒf‰_‹Ã^[ÃjèYÃSVWj3Û3ÿè•=3öY95€:~t¡l*‹°…Àt_ö@ ƒtYPVèû-¡l*YY‹°‹H öÁƒt0ƒ|$uPèÿÿÿƒøÿYtCëƒ|$uöÁtPèÿÿÿƒøÿYu ø¡l*ÿ4°Vèý-YYF;5€:|Œjèp=ƒ|$Y‹Ãt‹Ç_^[ÃV‹ñè›öD$tVè]'ÿÿY‹Æ^ÂVW‹|$ ‹ñÇlOÿ7èÑ0@PèôÿÿY‰F…ÀYt ÿ7PèùaYYÇF‹Æ_^ÂVW‹|$ ‹ñÇlO‹G…À‰Ft%ÿwè‰0@Pè×óÿÿY‰F…ÀYtÿwPè°aYYë‹G‰F‹Æ_^ƒyÇlOt ÿqè»&ÿÿYËA…Àu¸tOÃV‹ñjÇŒOè)<‹vY…ötVèaYjèt<Y^ÃV‹ñèÏÿÿÿöD$tVèn&ÿÿY‹Æ^ÂU‹ìƒì ‹EVWjY¾O}àó¥‰Eø‹E ‰EüEôPÿuðÿuäÿuàÿÐ_^ÉÂU‹ìjÿh°OhÌqd¡Pd‰%ƒìSVW‹u…ö„¬¡H)ƒøu;j è{;YƒeüVèÉdY‰Eä…Àt VPèådYYƒMüÿèƒ}äëQj èª;YÃøuSj è;;YÇEüEàPEØPVèÙqƒÄ ‰EÜ…ÀtPÿuàÿuØèrƒÄ ƒMüÿè ƒ}Üuÿuë j èR;YÃVjÿ5D)ÿÔ‹Mðd‰ _^[ÉÃÿ54$ÿt$èYYÃ|$àw"ÿt$è…ÀYu9D$tÿt$è¢v…ÀYuÞ3ÀÃU‹ìjÿhÈOhÌqd¡Pd‰%ƒì SVW¡H)ƒøuC‹u;5@)‡“j èP:YƒeüVèòfY‰EäƒMüÿè ‹Eä…Àtmé†j è†:YÃøuZ‹E…Àtpƒæðëj^‰u;5,w.j èú9YÇEü‹ÆÁèPè7qY‰EäƒMüÿè ‹Eä…Àu-Vë‹uj è':YËE…ÀujXƒÀ$ðPjÿ5D)ÿØ‹Mðd‰ _^[ÉÃU‹ìQ‹EHùw ‹ lé·AëR‹ÈV‹5léÁù¶ÑöDV€^t€eþˆMüˆEýjë €eýˆEüjXM jjjQPEüPjèVuƒÄ…ÀuÉ÷E #E ÉÃU‹ìjÿhàOhÌqd¡Pd‰%ƒì(SVW‹]3ÿ;ßuÿu èþÿÿYéæ‹u ;÷u Sè!ýÿÿYéÑ¡H)ƒø…9‰}܃þà‡ñj è´8Y‰}üSèbY‰EØ;Ç„¤;5@)wLVSPèðiƒÄ …Àt‰]Üë8Vè)eY‰EÜ;Çt*‹CüH‰Eà;Ær‹ÆPSÿuÜè-Sè°a‰EØSPèÑaƒÄ9}ÜuK;÷uj^‰u ƒÆƒæð‰u VWÿ5D)ÿ؉EÜ;Çt#‹CüH‰Eà;Ær‹ÆPSÿuÜè©,SÿuØèaƒÄƒMüÿèZ9}Øu";÷uj^ƒÆƒæð‰u VSWÿ5D)ÿ܉EÜ‹EÜ;Ç…½9=4$„±Vè´sY…À…Ýþÿÿ雋u ‹]3ÿj èñ7YÃø…Gƒþàw;÷vƒÆƒæðëj^‰u ‰}܃þà‡ój è[7YÇEüEÔPEÈPSèùmƒÄ ‹ø‰}Ð…ÿ„ª;5,s\‹ÞÁëSWÿuÔÿuÈè—qƒÄ…Àt‹E‰EÜë8SèVnY‰EÜ…Àt*¶Áà‰EÌ;Ær‹ÆPÿuÿuÜè†+WÿuÔÿuÈèâmƒÄ‹]ƒ}ÜuSVjÿ5D)ÿ؉EÜ…Àt=¶Áà‰EÌ;Ær‹ÆPSÿuÜè?+WÿuÔÿuÈè›mƒÄëVSjÿ5D)ÿ܉E܃Müÿè&‹EÜ;Çuf9=4$t^VèarY…À…ãþÿÿëK‹u ‹]j è£6Y3ÿÃ3Àƒþàw;÷uj^ƒÆƒæðVSWÿ5D)ÿÜ;Çu9=4$t VèrY…ÀuÆ3À‹Mðd‰ _^[ÉÃVWjtj3ÿèQs‹ðY…öYtFVè¹D‹D$YVjVh!ÿt$ ‰FH‹D$(W‰FLÿ䋸…ÿ‰~t WÿàƒøÿuÿÌ‹øVèØùÿÿ…ÿYtWèü(YƒÈÿë‹Ç_^ÃU‹ìjÿhøOhÌqd¡Pd‰%ƒì SVW‰eè‹uVÿ5Ðòÿè…Àujè<#Y¡\ì…ÀtÿЃeüÿvLÿVHYè6ƒMüÿ3À‹Mðd‰ _^[É‹Eì‹‹ ‰MäPQèŸsYYËeèÿuäè[#¡`ì…ÀtÿÐVèÌC‹ð…öujèÌ"Y‹FƒøÿtPÿ VèDYjÿì^ÃÌÌÌÌÌÌÌÌÌÌÌÌÌ‹T$‹L$÷Âu<‹:u. Àt&:au% ätÁè:Au Àt:auƒÁƒÂ äuÒ‹ÿ3ÀÃÀÑà@Ëÿ÷ÂtŠB:uéA Àtà÷Ât¨f‹ƒÂ:uÒ ÀtÊ:auÉ ätÁƒÁëŒjÿt$ÿt$ÿt$èƒÄÃU‹ìƒì SƒeøVW‹}Šw‰uüƒ=xë~¶ÃjPè?úÿÿYYë‹ lé¶ÃŠAƒà…ÀtŠFëЀû-‰uüuƒMë€û+uŠF‰uü‹E…ÀŒ‰ƒø„€ƒø$wj…ÀYu$€û0t ÇE ë2Šƒàt }ø€w …Àu,9uøv'è3&öEÇ"tƒMøÿë‹E$öØÀ÷ØƉEø…Ût‹Eü‰öEt‹Eø÷؉Eø‹Eøë ‹E …Àt‰83À_^[ÉÃjÿt$ÿt$ÿt$èèýÿÿƒÄÃU‹ìV3ö95 'uÿu ÿuèðYYëRWjèÁ1Y‹MŠ¶Â¶øö‡!(tŠQA„Òt¶úÁà Ç9E uqÿë …öë9E u‹ñA„ÒuÅjèÜ1Y‹Æ_^]ÃÌÌÌÌÌÌÌ‹L$ W…ÉtzVS‹Ù‹t$÷Æ‹|$uÁéuoë!ŠFˆGIt%„Àt)÷Æuë‹ÙÁéuQƒãt ŠFˆG„Àt/Kuó‹D$[^_Ã÷ÇtˆGI„Š÷Çuî‹ÙÁéulˆGKuú[^‹D$_ɃÇIt¯ºÿþþ~‹Ѓðÿ3‹ƒÆ©tÞ„Òt,„öt÷Âÿt ÷ÂÿuƉëâÿÿ‰ëâÿ‰ë3Ò‰ƒÇ3ÀIt 3À‰ƒÇIuøƒãu…‹D$[^_ÃU‹ìƒì ‹EÇEìIP‰Eè‰EàèV$‰EäEPEàÿu PèuƒÄÉÃU‹ìƒì ‹EV‰Eè‰EàEÇEìBPEàÿu ÇEäÿÿÿPè €ƒÄ ÿMä‹ðx‹Eà€ ë EàPjèíGYY‹Æ^ÉÃÌÌÌÌÌÌÌÌÌÌÌÌU‹ìW‹}3ÀƒÉÿò®A÷ÙOŠE ýò®G8t3Àë‹Çü_ÉÃÌÌÌÌÌÌÌÌÌWVS3ÿ‹D$ À}G‹T$÷Ø÷ڃ؉D$‰T$‹D$ À}G‹T$÷Ø÷ڃ؉D$‰T$ Àu‹L$‹D$3Ò÷ñ‹Ø‹D$÷ñ‹ÓëA‹Ø‹L$‹T$‹D$ÑëÑÙÑêÑØ Ûuô÷ñ‹ð÷d$‹È‹D$÷æÑr;T$wr;D$vN3Ò‹ÆOu÷Ú÷؃Ú[^_ÂÌÌÌÌÌÌ‹D$‹L$ È‹L$ u ‹D$÷áÂS÷á‹Ø‹D$÷d$Ø‹D$÷áÓ[ÂÌÌÌÌÌÌÌÌÌÌÌÌQ=L$ré-…=sì+ȋą‹á‹‹@PËD$V‹t$ %ÿW‹Î€~:uNŠ€ú\t€ú/u€yt ¨u „Ò¿€u¿@@öЃàj. VÁà øèVüÿÿ‹ðY…öYtGhPVè3†Y…ÀYt3hPVè"†Y…ÀYt"h PVè†Y…ÀYthPVè†Y…ÀYuƒÏ@‹ÇÁèƒà8 ø‹ÇÁèƒà Ç_^ÃU‹ììdSV‹uWh(PVèIY…ÀYu3Û€~:u3Š:Ãt8^uè†!j^‰0è…!‰0ƒÈÿéj¾ÀPèʈYƒè`ëè|ˆ‰Eà… þÿÿPVÿƒÏÿ‰Eì;Ç…«h$PVèÙY…ÀY„€h…œýÿÿVP葇‹ðƒÄ ;óteVè$!ƒøYt Vèú…ÀYtNVÿüƒøvBWSSSjjh¼Ç… þÿÿ‰¼þÿÿ‰ÀþÿÿˆÌþÿÿèu†‹u ƒÄ‰F‰F‰F éNè¥ j^‰0è¤ ‰0éŠEäP…´þÿÿPÿø…À„[EðPEäPÿô…À„E·EüWP·EúP·EøP·EöP·EòP·EðPèø…‹u ƒÄ9¬þÿÿ‰Fu9°þÿÿtVEäP…¬þÿÿPÿø…À„ïEðPEäPÿô…À„Ù·EüWP·EúP·EøP·EöP·EòP·EðP茅ƒÄ9¤þÿÿ‰Fu 9¨þÿÿu‹FëREäP…¤þÿÿPÿø…À„EðPEäPÿô…Àto·EüWP·EúP·EøP·EöP·EòP·EðPè"…ƒÄÿuì‰F ÿðÿuÿµ þÿÿèØüÿÿf‰F‹…Àþÿÿ‰F‹EàHY‰‰FYfÇFf‰^f‰^ f‰^ 3ÀëÿÌPè¡Yÿuìÿð‹Ç_^[ÉÃV‹t$VèƒøYr[Š<\t#u Çœ:FÿuEüPEPŠÿuPè8ƒÄFƒ}üwŒƒ}øt jè&YëWÿÓƒ}ü_^[v‹E€ ‹E +EüÉÃ3ÀÉÃU‹ì¾ESVƒøZWÏ„ƒøMÈ„¨ƒè%„‹ƒètnHtSƒèt1H…¥¡œ:j £ :‹E Y‹@™÷ù…ÒuQZÿuÿujRéÍÿu¡œ:£ :‹E ÿujÿpé°ÿu‹E ‹Mÿu‹@ÿthé>ÿu‹E ‹Mÿu‹@ÿté&‹E‹Æ%ÿ‹Eÿéÿu¡œ:£ :‹E ÿujÿpëRƒèS„ÓHH„‹HHtiHtGH…ᡜ:ÿu£ :‹E ÿu‹Hj‹Ájd™^÷þjd‹ð‹Á™YƒÆ÷ùködòVèÕƒÄé¡‹Eƒ%œ:Pÿuÿuÿu ÿ°¨é¡œ:£ :‹E ‹H…Éuj^ëqÿ로:£ :‹E ‹p‹H;Î}3ÿë‹Áj™_÷ÿj‹ø‹Á™Y÷ù;Ö|GÿuÿujWévÿÿÿÿu¡œ:£ :‹E ÿujÿ0éZÿÿÿƒøm„ñƒèa„ÑH„²HtHHt(ƒè…Ú¡œ:ÿu£ :‹E ÿu‹@j@Pé ÿÿÿÿu¡œ:£ :‹E ÿujÿp éðþÿÿƒ=œ:t‹]‹u‹}ƒ%œ:SVWÿu ÿ³¤ë‹]‹u‹}SVWÿu ÿ³ èAƒÄƒ>„Q‹SVWÿu Æ ÿÿÿ³¨éÓÿu‹E ‹Mÿu‹@ÿt8éÿu‹E ‹Mÿu‹@ÿ4顜:ÿu£ :‹E ÿu‹@jé)ÿÿÿƒèp„ºƒè„”HtOHt)H…Ìè!~‹M ÿu3À9A ÿu•Àÿ4…P颡œ:ÿu£ :‹E ÿu‹@jjd™Y÷ùéýÿÿƒ=œ:t$‹Eƒ%œ:Pÿuÿuÿu ÿ°¤èCƒÄëZ‹EPÿuÿuÿu ÿ° ëáÿu¡œ:£ :‹E ÿujÿpézýÿÿ‹E ÿuƒx ÿu‹Eÿ°˜ëÿ°œèƒÄ _^[]ËL$ VWƒ9t‹D$‹t$ Š„Òt ‹8ˆÿFÿ uï_^ÃU‹ìQ3ÀW9 :‰EütÿuÿuÿuèOƒÄ ëG‹}‹M ;s;IV‹uA…Àt%S‹Ej ™[÷û‹€Â0ˆ‹E™÷ûÿEüIƒùÿ‰EuÝ[‹Eü)^ë‰_ÉÃU‹ìSV‹uW‹} ‹ƒ>v‹Ej ™[÷û‹E€Â0ˆA™÷ûÿ…À‰EÝ‹‰IŠŠˆIˆ@;Árò_^[]ÃU‹ìQS‹]VW€;„ ‹}‹u3É9„‰  :ŠˆE C‰Eü‰E‹EŠU AÿEŠ:ÂtðÿM‰M¾Âƒødl„1ƒø'„ÒƒøA„“ƒøHtsƒøMt=ƒøa„€‹ lé¶ÂöDA€t ‹‹]üˆÿÿ‹Š ˆÿCÿ€;…fÿÿÿ_^[ÉÃItIt"It IuÀÆEBéíÆEbéäÇ :ÆEméÑItIt ë“Ç :ÆEHé¶hTQSè6Y…ÀYuƒÃëhPQSè Y…ÀYuƒÃ‰]ÆEpé€öÁtJÙŠ„À„_ÿÿÿƒ?„Vÿÿÿ<'t+‹lé¶ÈöDJ€tƒ?v ‹ˆÿCÿ‹Š ˆÿCÿë¾Cé!ÿÿÿÙéÿÿÿItIt&ItI…äþÿÿÆEAéÆEaéÇ :ÆEdéõƒèh„Ӄ脯ƒè„‹Ht)ƒè…˜þÿÿ‹ÁHHtHH…ŠþÿÿÆEYé·ÆEy鮋E ƒx ‹E‹€˜ë‹€œ…É~9ƒ?v4Š‹lé¶ÑöDS€tƒ?v ‹ˆ ÿ@ÿ‹Šˆÿ@ÿÿMƒ}Ç‹]é?þÿÿItItéþÿÿÇ :ÆESë4ItItéóýÿÿÇ :ÆEMëItItéØýÿÿÇ :ÆEIÿuWVÿu ÿuèhøÿÿƒÄë”U‹ìV‹uƒ>}3Àéèy‹=€ô~X= ü}Q+ĉEEPè €ƒ=ÈY‹ð„ÙVè |…ÀY„Ê¡Ì)EEPèÜ‹ðYÇF éªVèÇ‹ðVèÕ{Y…À‹Yt+Ì+ÄWj<‰EY™‹ù÷ÿ…Ò‰}щ)M‹E‹ù™÷ÿF‰E™÷ÿ_…Ò‰V} ƒÂ<‰V)M‹Ej™÷ùYF‰E™÷ù…Ò‰V}щV)M‹Ej™Y÷ù‹È…ɉM~‹FjÁY™÷ù‰V‹EF ‹EF‹Æ^]Ã}ù‹FjDY™÷ù‰V‹EF ‹F …ÀÖƒÀÿN‰F ÇFlÇF ëÃ=xë~hÿt$èÕâÿÿYYËD$‹ léf‹A%Ã=xë~jÿt$èªâÿÿYYËD$‹ léŠAƒàÃ=xë~jÿt$è‚âÿÿYYËD$‹ léŠAƒàÃSUVW‹|$ƒ=xë~¶jPèRâÿÿYYë¶‹ léŠAƒà…ÀtGëÒ¶7Gƒþ-‹îtƒþ+u¶7G3Ûƒ=xë~ jVèâÿÿYYë ¡léŠpƒà…Àt ›\Fж7Gëσý-‹Ãu÷Ø_^][Ãÿt$èlÿÿÿYÃÿt$ÿƒøÿtöD$€t$þë Pÿt$ÿ…ÀuÿÌPè­YƒÈÿÃ3ÀÃVh€ÿt$ èê×ÿÿ‹ðY…öY}ƒÈÿ^ÃWÿt$VèV‹øè¡,ƒÄ ‹Ç_^ÃU‹ìƒì0VW‹} …ÿuEüPè‹EüY‰Eø}øGPèëüÿÿ…ÀY„ñf‹H‹5fÁlf‰MÐf‹HfAf‰MÒf‹H f‰MÖf‹Hf‰MØf‹Hf‰MÚf‹fƒeÞf‰EÜEðPEÐPÿÖ…À„žEèPEðPÿ…À„ˆWèsüÿÿ…ÀYt}f‹HfÁlf‰MÐf‹HfAf‰MÒf‹H f‰MÖf‹Hf‰MØf‹Hf‰MÚf‹fƒeÞf‰EÜEðPEÐPÿÖ…Àt4EàPEðPÿ…Àt"EèPEàPjÿuèß7YPÿ …Àt3Àëè· ÇƒÈÿ_^ÉÃU‹ììÌEðPÿ EàPÿf‹Eêf;"#u;f‹Eèf; #u.f‹Eæf;#u!f‹Eâf;#uf‹Eàf;#u¡#ëE…4ÿÿÿPÿƒøÿtƒøufƒ}Ît ƒ}ÜtjXë3ÀëƒÈÿVWuà¿#¥¥¥¥_£#^P·EüP·EúP·EøP·EöP·EòP·EðPè“r‹MƒÄ…Ét‰ÉÃÌÌÌÌÌÌÌÌÌ‹D$ S…ÀtJ‹T$3ÛŠ\$ ÷ÂtŠ B2ËtlHt.÷ÂuîƒèrW‹ûÁãß‹ûÁãßë_ƒÀt Š B2Ët>Huö[Ãèré‹ 3Ë¿ÿþþ~ùƒñÿ3σÂátà‹Jü2Ët#2ëtÁé2Ët 2ëtëÈ_Bÿ[ÃBþ_[ÃBý_[ÃBü_[Ãèèë{£,#è‘{ÛâÃø3žÇ„Ýš£€ÇˆC›ÇŒƒšÇ+›£”á ìÃÌÌÌÌÌU‹ìV3ÀPPPPPPPP‹U IŠ ÀtB«$ëó‹uƒÉÿAŠ ÀtF£$sò‹ÁƒÄ ^ÉÃjÿt$ÿ$…ÀuÿÌë3À…Àt Pèð YƒÈÿÃ3ÀÃS3Û9 'uÿt$ ÿt$ ènYY[ÃVjèO‹t$Y8tUW‹|$8‹Çt/жÑö‚!(t:uŠH:Nt8XHt ‹Áë:t@8uÑ8u¶ö€!(tF8tF8u±_jèKŠYöØÀ#Æ^[ËD$j¶ö€!(X•À@ÃS3Û9$u‹D$ƒøA|YƒøZTƒÀ [ÃV¾h*WVÿ¸9d*‹=´tVÿ×jè„Yj[ÿt$è…ÛY‰D$t jèÈYëVÿ׋D$_^[ÃU‹ìQƒ=$SVWu‹EƒøAŒªƒøZ¡ƒÀ 陋]¿j;ß^}%95xë~ VSèwÜÿÿYYë ¡léŠX#Æ…Àu‹Ãëe‹lé‹ÃÁø¶ÈöDJ€t€e jˆEˆ] Xë €e ˆ]‹ÆVjMüjQPEPWÿ5$è'ƒÄ …Àt®;Æu¶Eüë ¶Eý¶MüÁà Á_^[ÉÃU‹ìì@V…ÀþÿÿWPÿuÿ‹øƒÿÿuBÿÌj^;Ærƒøv'ƒøtƒøtè3 ǃÈÿë{è# Ç ëîè ‰0ëå‹…Àþÿÿ‹u -€÷ØÀ#…Àþÿÿ‰…ÄþÿÿPè+‰F…ÌþÿÿPè‰F…ÔþÿÿPè ‰F ‹…àþÿÿ‰F…ìþÿÿƒÆPVè :ƒÄ‹Ç_^ÉÃU‹ìì@…ÀþÿÿVPÿuÿ(…ÀuBÿÌj^;Ærƒøv'ƒøtƒøtèjǃÈÿë{èZÇ ëîèM‰0ëå‹…Àþÿÿ‹u -€÷ØÀ#…Àþÿÿ‰…ÄþÿÿPèb‰F…ÌþÿÿPèS‰F…ÔþÿÿPèD‰F ‹…àþÿÿ‰F…ìþÿÿƒÆPVèD9ƒÄ3À^ÉÃÿt$ÿð…ÀuèÎǃÈÿÃ3ÀÃU‹ìƒì‹Eƒ8uƒxtKMøQPÿø…Àt3É;Áu,9 4#~½ÿ 4#9 „#uèBèY4èx!è;ë ƒøuQèþ!YjX U‹ìS‹]V‹u W‹}…öu ƒ=4#ë&ƒþtƒþu"¡˜:…Àt WVSÿÐ…Àt WVSèçþÿÿ…Àu3ÀëNWVSè|ýÿƒþ‰E u …Àu7WPSèÃþÿÿ…ötƒþu&WVSè²þÿÿ…Àu!E ƒ} t¡˜:…ÀtWVSÿЉE ‹E _^[] ¡@#ƒøt …Àuƒ=D#uèh~ÿt$è˜~hÿÿ°ìYYáXì…ÀtÿÐhlÀhXÀèûhTÀhÀèìƒÄÃjjÿt$ è$ƒÄ Ãjjÿt$ èƒÄ ÃjjjèƒÄ ÃWèŸj_9=ˆ#uÿt$ÿ<Pÿ8ƒ|$ S‹\$‰=„#ˆ€#u<¡:…Àt"‹ Œ:Vqü;ðr‹…ÀtÿЃî;5:sí^hxÀhpÀèCYYh„Àh|Àè2YY…Û[tè_Ãÿt$‰=ˆ#ÿ4_Ãj èÂYÃj èYÃV‹t$;t$ s ‹…ÀtÿЃÆëí^ÃSV‹t$ WVèëVè›~‹øD$ Pÿt$ Vèy`VW‹ØèVèƒÄ ‹Ã_^[á€:Vj…À^u¸ë;Æ}‹Æ£€:jPè¥MY£l*…ÀYu!jV‰5€:èŒMY£l*…ÀYujèþÿÿY3ɸ¸ì‹l*‰ƒÀ ƒÁ=8ï|ê3ɺÈì‹ñ‹ÁÁþƒà‹4µ`)À‹†ƒøÿt…Àuƒ ÿƒÂ Aú(í|Ñ^ÃèÒÿÿ€=€#tén~ËD$¹¸ì;Ár=ïw+ÁÁøƒÀPèƒYÃÀ PÿXËD$ƒø} ƒÀPèdYËD$ƒÀ PÿXËD$¹¸ì;Ár=ïw+ÁÁøƒÀPè’YÃÀ Pÿ\ËD$ƒø} ƒÀPèsYËD$ƒÀ Pÿ\ÃV‹t$WVèPÿÿÿVèV‹øè”ÿÿÿƒÄ ‹Ç_^ÃU‹ìƒì SVW‹}3Û‹w9_‰uô}‰_jSVè¿)ƒÄ ;ÉEü|_‹O f÷Áu+Gé‹‹W‹Ø+ÚöÁ‰]øt,‹Þ‹ÎÁûƒá‹`) ÉöD‹€t)‹Ê;Ès#€9 uÿEøAëñöÁ€uè?ǃÈÿéÆƒ}üu‹Eøé¸öG „¦‹O…Éu!Møé—+ÂÁ‰E‹ÆÁø…`)‹Æƒà4À‹ÁæöD€tjjjÿuôèô(ƒÄ ;Eüu‹G‹MÈ;Ás €8 uÿE@ëñöG ë4jÿuüÿuôèÂ(¸ƒÄ 9Ew ‹O öÁtöÅt‹G‰E‹öDtÿE‹E)Eü‹Eø‹MüÁ_^[ÉÃU‹ì‹ES;`*VƒÙ‹ÈƒàÁùjÀ‹ `)[„\„ºè{$‹ð…ö„«‹M Š;„°ÇE »¼ñë‹EüPWÿ3èÝƒÄ …Àu ÿ3èúÿÿ9EüYtÿE ƒÃ ûìñ~ÒFhœQVèîÿÿ‹øY…ÿYu€>;u[ƒ} /W…xÿÿÿVPèÎÔÿÿ€¤=xÿÿÿ…xÿÿÿPÿu èùƒÄ…ÀtÿEþ€?t.G€?t(h QWèn‹ðY…öY…:ÿÿÿ3ÛjèNY3ö驃}…3öéSS…xÿÿÿSPWèm‹ðƒÄ;ótw¾´ñ‹þ;þt/ÿ7…xÿÿÿPèÑÿÿY…ÀYt…xÿÿÿPSèdY…ÀYu!EüëÿEƒÇ Cÿðñ~Á3ÿ9}ütèYÿ5´ñ‹ðè¢ÉÿÿY‰=´ñë9}éjÿÿÿè6‹ðjèžYÿ d*‹Æ_ë3À^[ÉÃU‹ìì¤SVW‹}EèWPEðP…\ÿÿÿPÿu 譃ąÀ„È…\ÿÿÿPèðøÿÿ@PèÊÿÿY‰E …ÀY„¨4½$Áæj‹†´ñ‰E‹‰EìE`&‰EøPEàPèHùÿÿ¡$‰Eü…\ÿÿÿPÿu èÑ)‰†´ñj·Eð‰EðPÿuøèùÿÿ‹EèƒÄ ƒÿu£$ƒÿu£$ÿ–¸ñ…Àt#‹Eÿu ‰†´ñè…Èÿÿ‹EìY‰‹Eü£$3Àë} ðt ÿuèbÈÿÿY‹†´ñ_^[Éá´ñSUVWj…À]uhQè%ÉÿÿY£´ñ€ ÿ5Àñ¿¤QWÿ5¼ñjÿ5´ñè¾ÀñƒÄ‹ÞhœQÿ5´ñè)ÿv ƒÆ ÿ3è ÏÿÿƒÄ…Àt3íÿ6‹ÞWÿvüjÿ5´ñèJƒÄþðñ|º_^…í][u¡´ñÃÿ5´ñè«Çÿÿƒ%´ñ¡ÌñYÃU‹ììˆSV‹u3Ò;òW„€>Cu28Vu-‹E ‹M P;ÊÆCt f‰f‰Qf‰Q‹M;Ê„ʉéÿ(ñVWè^ÎÿÿY…ÀYtt»¤ðVSèLÎÿÿY…ÀYtb…xÿÿÿVPè¼Y…ÀYu…xÿÿÿP…xÿÿÿh#PèC~ƒÄ …Àu3Àëi·”#£˜#…xÿÿÿPWèF€>YYtVëWSèÆ'YYƒ}tjh#ÿuè÷ÿÿƒÄ ƒ}tjh˜#ÿuè÷öÿÿƒÄ Wÿu è‹'Y‹ÇY_^[ÉÃW‹|$ …ÿ~Vt$ÿvƒÆÿt$èu'YOYuì^_ÃU‹ìSVW‹}hˆjWè‹u ƒÄ Š„Àt<.u€~FtÇ€PWè!'YY3À邃e h¨QVèééÿÿY…ÀYtjƒ} Š0<0uƒø@}Y€û.tTPVÿuë4ƒ} uƒø@}B€û_t=P‹EVƒÀ@ëƒ} u-„Ût€û,u$P‹EV€PèýÏÿÿƒÄ €û,t†„Ût‚ÿE wë…ƒÈÿ_^[]ÃV‹t$ Vÿt$ è‚&€~@F@YYtPh¬Qjÿt$èäþÿÿƒÄ€¾€†€^tPhàÊjÿt$èÀþÿÿƒÄÃÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹T$ ‹L$…ÒtG3ÀŠD$W‹ùƒúr-÷Ùƒát+шGIuú‹ÈÁàÁ‹ÈÁàÁ‹ÊƒâÁétó«…ÒtˆGJuú‹D$_ËD$ÃV‹5Pÿ5DòÿÖÿ54òÿÖÿ5$òÿÖÿ5òÿÖ^ÃVW‹=T¾ò‹…Àt+þDòt#þ4òtþ$òtþòt Pÿ×ÿ6èuÄÿÿYƒÆþÀò|Äÿ5$òÿ×ÿ54òÿ×ÿ5Dòÿ×ÿ5òÿ×_^ÃU‹ì‹EVƒ<…ò4…òu>WjèÅÿÿ‹øY…ÿujèÓíÿÿYjèÊÿÿÿƒ>YWu ÿP‰>ëèúÃÿÿYjè Y_ÿ6ÿX^]ÃU‹ì‹Eÿ4…òÿ\]ÃU‹ìjÿh¸QhÌqd¡Pd‰%ƒìSVW‰eè3ÿ9= $uFWWj[Sh´Q¾VWÿD…Àt‰ $ë"WWSh°QVWÿ@…À„"Ç $9}~ÿuÿuèžYY‰E¡ $ƒøuÿuÿuÿuÿuÿu ÿuÿ@éÞƒø…Ó9} u¡$‰E WWÿuÿu‹E$÷ØÀƒà@Pÿu ÿÀ‹Ø‰]ä;ß„œ‰}üƒÀ$üèËÏÿÿ‰eè‹Ä‰E܃MüÿëjXËeè3ÿ‰}܃Müÿ‹]ä9}ÜtfSÿuÜÿuÿujÿu ÿÀ…ÀtMWWSÿuÜÿu ÿuÿD‹ð‰uØ;÷t2öE t@9}„²;uÿuÿuSÿuÜÿu ÿuÿD…À…3ÀeÈ‹Mðd‰ _^[ÉÃÇEü6ƒÀ$üèÏÿÿ‰eè‹Ü‰]àƒMüÿëjXËeè3ÿ3ÛƒMüÿ‹uØ;ßt´VSÿuäÿuÜÿu ÿuÿD…Àtœ9}WWuWWëÿuÿuVSh ÿu ÿ¼‹ð;÷„qÿÿÿ‹Æélÿÿÿ‹T$‹D$…ÒVJÿt €8t@‹ñI…öuó€8^u+D$ËÂËL$fƒ9At f‹@@f…Òuö+ÁÑøHÃU‹ìƒì VW‹}‹÷ƒ=xë~¶jPèfÃÿÿYYë¶‹ léŠAƒà…ÀtFëÒjjVèÜðÿÿYPEàVPè‹M ƒÄ…Ét‹PÖ‰‹f÷Â@t …ÉÙît5‰9ë1öÂt €>-ݨuÙàÝ]øèwðÿÿÝEøÇ"ë öÆtÙîëäÝ@_^ÉÃU‹ìjÿhÐQhÌqd¡Pd‰%ƒì0SVW‰eè3Û9$$j_u@W¸´QPWPSSÿP…Àt‰=$$ë#W¸°QPWPSSÿL…À„Ç$$‹u;ó~Vÿuè‹þÿÿYY‹ð‰u9]~ÿuÿuètþÿÿYY‰E¡$$ƒøuÿuÿuVÿuÿu ÿuÿLé§;Ç…9] u¡$‰E ;ót 9]…˜;uujXéx9}~‹Çél;÷AEÄPÿu ÿH…À„Q;ó~,ƒ}Är"EÊ8]ÊtŠP:Ót‹MŠ :r:Êv­@@8uæjë¥9]~1ƒ}Är¥EÊ8]ÊtŠP:Ót–‹MŠ :r:ʆxÿÿÿ@@8uâézÿÿÿSSVÿuj ÿu ÿÀ‰Eä;Äω]üÀƒÀ$üèÌÿÿ‰eè‹Ä‰E܃MüÿëjXËeè3Û‰]܃Müÿ‹uj_9]Ü„“ÿuäÿuÜVÿuWÿu ‹5ÀÿÖ…ÀtySSÿuÿuj ÿu ÿÖ‹ð‰uà;óta‰}ü6ƒÀ$üèŸËÿÿ‰eè‹ü‰}؃MüÿëjXËeè3Û3ÿƒMüÿ‹uà;ût-VWÿuÿujÿu ÿÀ…ÀtVWÿuäÿuÜÿu ÿuÿPë3Àe´‹Mðd‰ _^[ÉÃU‹ìV‹uW¿ “9>tè= ‹Eö@ftƒ~toƒ}uijÿVÿuÿu èƒÄëVƒ~ tP8csmàu,9xv'‹H‹I…Ét¶U$Rÿu ÿuVÿuÿuÿu PÿÑƒÄ ëÿu ÿuÿu$Vÿuÿuÿu Pè ƒÄ jX_^]ÃU‹ìƒì‹E €eì‹@ƒøÿ‰Eð|‹M;A|è“ SV‹u»csmàW¿ “9…Kƒ~ub9~u]ƒ~uWèýƒxl„&èî‹plèæ‹@pjV‰EÆEìè’}Y…ÀYuè1 9…ùƒ~u9~u ƒ~uè 9…Ûƒ~…Ñ9~…È‹}ðEèPEüPWÿu ÿuè/«ÿÿƒÄ‹Ø‹Eü;E胋9;|;{w‹C‰E‹C …À‰Eô~d‹F‹@ x‹…À‰Eø~ÿvÿ7ÿuè=ƒÄ …ÀuÿMøƒÇ9EøáÿMôƒEƒ}ôÂë$ÿuìÿu$ÿu Sÿ7ÿuÿuÿuÿuÿu Vè ƒÄ,‹}ðÿEüƒÃéiÿÿÿ€}t jVèqYY_^[ÉÀ}u ÿu$ÿu ÿuðÿuÿuÿuÿu Vè ƒÄ ëÕé¤U‹ìQQVW葃xht!ÿu$ÿu ÿuÿuÿuÿu ÿuèü¨ÿÿƒÄ…Àus‹}EøPEüPWÿu ÿuè ªÿÿƒÄ‹ð‹Eü;EøsO;>|C;~>‹F ‹NÁàÁ‹Hô…Ét€yu&jƒÀðÿu$ÿu VjPÿuÿuÿuÿu ÿuè ƒÄ,ÿEüƒÆë©_^ÉÃVW‹|$ ‹G…ÀtJ€xPtA‹t$‹N;ÁtƒÁQRè7ÂÿÿY…ÀYu"ötöt‹D$‹¨töt ¨t öu3ÀëjX_^ÃU‹ìjÿhèQhÌqd¡Pd‰%ƒì SVW‰eè‹]‹s‰uä‹};utUƒþÿ~;w|踃eü‹G‹Dð…Àt hSPèdƒMüÿëÿuìè/YËeèƒMüÿ‹}‹]‹uä‹G‹4ð‰uä릉s‹Mðd‰ _^[ÉËD$‹8csmàt3ÀÃééU‹ìƒ} S‹]VW‹} tÿu SWÿu衃ă},ÿuuWëÿu,è9¦ÿÿ‹u$ÿ6ÿuÿuWèÿÿÿ‹Fhÿu(@‰Gÿs ÿuÿuWÿuèƒÄ,…ÀtWPè·¥ÿÿ_^[]ÃU‹ìjÿhøQhÌqd¡Pd‰%ƒìSVW‰eè‹]‰]ÔƒeÜ‹u ‹Fü‰EØè)‹@l‰Eäè‹@p‰Eàè‹}‰xlè‹M‰HpƒeüÇEüÿu ÿuSÿuVèù¥ÿÿƒÄ‰EÔƒeüƒMüÿè:‹EÔ‹Mðd‰ _^[ÉÃÿuìènYËeèƒeÔjÿEðPè¨ÿÿYY3ÀëÏ‹u ‹}‹E؉Füè‹Mä‰Hlè„‹Mà‰Hp?csmàu)ƒu# “uƒ}Üuƒ}Ôtè3¨ÿÿPWèñYYËD$‹8csmàuƒxux “u ƒxujXÃ3ÀÃU‹ìjÿhRhÌqd¡Pd‰%ƒì SVW‰eè‹M‹A…À„u€x„k‹A…À„`‹U | ƒeüötD‹ujÿvèzxYY…À„0jWè„xYY…À„‹F‰‹MƒÁQPè—YY‰é‹uötR‹]jÿsè.xYY…À„äjWè8xYY…À„ÒÿvÿsWèw§ÿÿƒÄ ƒ~…¾‹…À„´ƒÆVë—ƒ~‹]jÿsu:èÖwYY…À„ŒjWèàwYY…Àt~ÿvƒÆVÿsèúYYPWè§ÿÿƒÄ ëfèœwYY…ÀtVjWèªwYY…ÀtHÿvè¸wY…Àt;ötjFPÿsè³YYPÿvWè$£ÿÿëFPÿsè™YYPÿvWè£ÿÿëèåƒMüÿ‹Mðd‰ _^[ÉÃjXËeèéeU‹ìjÿh RhÌqd¡Pd‰%QQSVW‰eè‹E…Àt‹H‹I…ÉtƒeüQÿp蚢ÿÿƒMüÿ‹Mðd‰ _^[ÉÃ3À8E •ÀËeèéþ‹L$V‹t$‹‹QÆ…Ò| ‹42‹I‹ ÊÁ^ÃÌÌÌU‹ìƒìSQ‹E ƒÀ ‰Eü‹EUÿu‹M‹mü讥ÿÿVWÿÐ_^‹Ý]‹MU‹ëùu¹Q茥ÿÿ]Y[É VèöðÿÿÿTƒøÿ£Ðòt:jtjèÝ.‹ðY…öYt)Vÿ5Ðòÿè…ÀtVè4Yÿ`ƒNÿj‰X^Ã3À^ÃèÌðÿÿ¡ÐòƒøÿtPÿXƒ ÐòÿËD$Ç@P0Ç@ÃVWÿÌÿ5Ðò‹øÿ`‹ð…öu?jtjèR.‹ðY…öYt&Vÿ5Ðòÿè…ÀtVè©ÿÿÿYÿ`ƒNÿ‰ëjè³ÞÿÿYWÿ\‹Æ_^áÐòƒøÿ„‘V‹t$…öu Pÿ`‹ð…ötl‹F$…ÀtP躴ÿÿY‹F(…ÀtP謴ÿÿY‹F0…ÀtPèž´ÿÿY‹F8…ÀtPè´ÿÿY‹F@…ÀtPè‚´ÿÿY‹FD…ÀtPèt´ÿÿY‹FP=0tPèc´ÿÿYVè\´ÿÿYjÿ5Ðòÿè^ÃU‹ìjÿh0RhÌqd¡Pd‰%QQSVW‰eè3ö‰uüèÊþÿÿ9p`tÇEüè¹þÿÿÿP`‰uüë jXËeèƒeüƒMüÿèé¦tU‹ìjÿhHRhÌqd¡Pd‰%QQSVW‰eèƒeü¡Ôò…ÀtÇEüÿÐëjXËeèƒeüƒMüÿèéIÿÿÿU‹ìjÿh`RhÌqd¡Pd‰%ƒìSVW¡H)ƒøuFj èïÿÿYƒeü‹uVèeY‰Eä…Àt ‹vüƒî ‰uàë‹uàƒMüÿè ƒ}äëU‹uàj è>ïÿÿYÃøuFj èÏîÿÿYÇEüEÜPEÔPÿuèk%ƒÄ ‰EØ…Àt ¶0Áæ‰uàë‹uàƒMüÿè-ƒ}Øuÿujÿ5D)ÿd‹ð‹Æ‹Mðd‰ _^[ÉËuàj èÃîÿÿYÃV‹t$;5`*s8‹Î‹ÆÁùƒà‹ `)ÀöDtWVèn Vè(V‹øè¿ ƒÄ ‹Ç_^ÃèþáÿÿÇ èüáÿÿƒ ƒÈÿ^ÃV‹t$WVèò ƒøÿYt<ƒþtƒþujèÛ j‹øèÒ Y;ÇYtVèÆ YPÿ …Àu ÿÌ‹øë3ÿVè) ‹ÆƒæÁøY‹…`) ö€dˆ…ÿt WèáÿÿYƒÈÿë3À_^ÃV‹t$‹F ¨ƒt¨tÿvè®±ÿÿff ÷û3ÀY‰‰F‰F^ÃV‹t$‹F ¨ƒ„Ǩ@…¿¨t ‰F é± f© ‰F u VèYë‹F‰ÿvÿvÿvèƒÄ ‰F…Àtoƒøÿtj‹V ö‚u7‹NWƒùÿt‹ùÁÿƒá‹<½`) É<ë¿ØòŠO_€á‚€ù‚u€Î ‰V ~u‹N öÁt öÅuÇF‹H‰F¶A‰^Ã÷ØÀƒàƒÀ F ƒfƒÈÿ^ÃV‹t$;5`*s@‹Î‹ÆÁùƒà‹ `)ÀöDt%WVè‡ ÿt$ÿt$Vè(V‹øèÐ ƒÄ‹Ç_^ÃèàÿÿÇ è àÿÿƒ ƒÈÿ^ÃU‹ìƒì ƒeøƒ}S‹] VW‹Ó„¶‹E‹ÈƒàÁù4À‹`)<`)ÁæÆŠHöÁ…‰öÁHtŠ@< tÿMˆ‹SÇEøÆD0 EôjP‹ÿuRÿ40ÿ …Àu9ÿÌj^;ÆuèfßÿÿÇ èdßÿÿ‰0ëƒøm„$PèÕÞÿÿYƒÈÿé‹‹UôUøL0ŠD0¨€„ø…Òt €; u ë$ûˆ‹E ‹Mø‰EÈ;Á‰MøƒË‹EŠ<„®< t ˆCÿEé‘I9Ms‹E@€8 uƒEë^Æ C‰EësEôjPÿEEÿjP‹ÿ40ÿ …Àu ÿÌ…ÀuGƒ}ôtA‹öD0HtŠEÿ< tÆ ‹CˆD1ë);] u €}ÿ uÆ ëjjÿÿuèâƒÄ €}ÿ tÆ C‹Mø9M‚Gÿÿÿë‹t0Ѝ@u ˆ+] ‰]ø‹Eøë3À_^[ÉÃU‹ìQQSV‹5@&W‹} 3Û‰]ø‰]üŠ+øH‰‹NI…ÿ‰N~WPSè~ƒÄ ‰E ë6ƒûÿt‹Ë‹ÃÁùƒà‹ `)Àë¸Øòö@ t jjSè3ƒÄ ‹FŠMˆëjE_WPSè(ƒÄ ‰E 9} _tƒN ë‹E%ÿë ‰F ƒÈÿ^[]ÃV‹t$;5`*s@‹Î‹ÆÁùƒà‹ `)ÀöDt%WVèùÿt$ÿt$Vè(V‹øèBƒÄ‹Ç_^ÃèÚÿÿÇ èÚÿÿƒ ƒÈÿ^ÃU‹ììSVW3ÿ9}‰}ø‰}ðu3Àéf‹EÁø…`)‹Eƒà4À‹ÁæöD0 tjWÿuè£ƒÄ ‹Æö@€„Á‹E 9}‰Eü‰}†ê…ìûÿÿ‹Mü+M ;Ms)‹MüÿEüŠ €ù uÿEðÆ @ˆ@‹È•ìûÿÿ+Êù|Ì‹ø…ìûÿÿ+øEôjP…ìûÿÿWP‹ÿ40ÿ…ÀtC‹EôEø;Ç| ‹Eü+E ;ErŠ3ÿ‹Eø;Ç…9}tbj^9uuLèiÙÿÿÇ ègÙÿÿ‰0ëAÿ̉EëÇMôWQÿuÿu ÿ0ÿ…Àt ‹Eô‰}‰Eøë§ÿ̉Eëœÿuè§ØÿÿYƒÈÿë,‹öD0@t ‹E €8„ªþÿÿèúØÿÿÇèøØÿÿ‰8ëÒ+Eð_^[ÉÃV‹t$;5`*s@‹Î‹ÆÁùƒà‹ `)ÀöDt%WVè ÿt$ÿt$Vè(V‹øèRƒÄ‹Ç_^Ãè‘ØÿÿÇ èØÿÿƒ ƒÈÿ^ÃV‹t$WVè…ƒøÿYu ègØÿÿÇ ë-ÿt$jÿt$Pÿh‹øƒÿÿuÿÌë3À…Àt PèÀ×ÿÿYƒÈÿë‹ÎƒæÁù‹Æ‹ `)À€dýD‹Ç_^ÃQQSUVWjƒÏÿèäÿÿ3ÛY‰\$‰\$½`)‹u…ö„™†€;ðstöFuDƒ~u#jèÛãÿÿƒ~Yu F PÿPÿFjè!äÿÿY^ SÿXöFtSÿ\‹\$‹EƒÆ$€륃ÿ‹Æ+Ej$Y™÷ù‹ø|$ƒÿÿum‹\$ƒD$ ƒÅCý`*‰\$Œ^ÿÿÿëN¾€V胨ÿÿ…ÀYt>ƒ`* `)€‰;Âs€`ƒÿƒ`Æ@ ‹ƒÀ$ÖëäÁã‹ûWèOYjèkãÿÿY‹Ç_^][YYËL$V; `*WsU‹ÁÁø<…`)‹Áƒà4À‹Áæƒ<0ÿu6ƒ=D#S‹\$uƒétItIuSjôëSjõëSjöÿl‹‰03À[ëè€ÖÿÿÇ è~Öÿÿƒ ƒÈÿ_^ËL$V; `*WsX‹ÁÁø<…`)‹Áƒà4À‹ÁæÆö@t7ƒ8ÿt2ƒ=D#u3À+ÈtItIuPjôëPjõëPjöÿl‹ƒ 0ÿ3ÀëèÖÿÿÇ èÿÕÿÿƒ ƒÈÿ_^ËD$;`*s‹ÈƒàÁùÀ‹ `)öDt‹Ãè½ÕÿÿÇ è»Õÿÿƒ ƒÈÿËD$S‹ÈƒàÁùVW‹4`)`)<ÀÁç÷ƒ~u#jè‘áÿÿƒ~Yu F PÿPÿFjè×áÿÿY‹D8 PÿX_^[ËD$‹ÈƒàÁùÀ‹ `)D Pÿ\ÃU‹ì¸èx²ÿÿSV3öjVÿuèüÿÿƒËÿƒÄ ;ÉEü„òjVÿuètüÿÿƒÄ ;ÄÜW‹} +ø…ÿ~u»…üïÿÿSVPèõßÿÿh€ÿuèpfƒÄ‰E ;û‹Ã}‹ÇP…üïÿÿPÿuè1úÿÿƒÄ ƒøÿt+ø…ÿ~ëØè“Ôÿÿƒ8u è€ÔÿÿÇ ƒÎÿÿu ÿuèfYYëH}Fjÿu ÿuèÛûÿÿÿuèdþÿÿƒÄPÿp‹ð÷Þö÷ÞN;óuè5ÔÿÿÇ ÿÌ‹øè+Ôÿÿ‰8jÿuüÿuè•ûÿÿƒÄ ‹Æ_ë‹Ã^[ÉÃU‹ìƒìHSVWh€è9¥ÿÿ‹ðY…öujèýÍÿÿY‰5`)Ç`* †€;ðs€fƒÿƒfÆF ¡`)ƒÆ$€ëÞE¸Pÿ|fƒ}ê„Ñ‹Eì…À„Æ‹8X;‰Eü¸;ø|‹ø9=`*}V¾d)h€襤ÿÿ…ÀYt<ƒ`* ‰ˆ€;Ás€`ƒÿƒ`Æ@ ‹ƒÀ$Á€ëàƒÆ9=`*|·ë‹=`*3ö…ÿ~L‹Eü‹ƒùÿt8Ѝt2¨u QÿÈ…Àt#‹Î‹ÆÁùƒà‹ `)À‹Mü‹ ‰Š ˆHƒEüFC;÷|´3Û‹ `)Ûƒ<ÿ4uM…ÛÆFujöXë ‹ÃH÷ØÀƒÀõPÿx‹øƒÿÿtWÿÈ…Àt %ÿ‰>ƒøu€N@ëƒøu €Në€N€Cƒû|—ÿ5`*ÿt_^[ÉÃSVW¾`)‹…Àt7‹ø€;øs!_ ƒ{ütSÿT‹ƒÇ$€ƒÃ$;ørâÿ6èf¢ÿÿƒ&YƒÆþ`*|¸_^[ÃÿŒ#hè,£ÿÿY‹L$…À‰At ƒI ÇAëƒI A‰AÇA‹Aƒa‰ÃSV‹t$ WVèÎÿÿVèV‹ø‹ÚèYÎÿÿƒÄ ‹Ç‹Ó_^[ÃU‹ìƒìSVW‹}3À‹w9G‰uø}‰GjPPVèwc‹ÊƒÄ‹Ø‰Mô…ɉ]ð|m…Ûrif÷G u‹G™+ØʋËÑé5‹‹W‹È+ʉMü‹O öÁt,‹Þ‹ÎÁûƒá‹`) ÉöD‹€t+‹Ê;Ès%€9 uÿEüAëñöÁ€uèéÐÿÿǃÊÿ‹ÂéÛ‹]ð ]ôu ‹Eü3ÒéÉöG „´‹O…Éu!Müé¥+ÂÁ‰E‹ÆÁø…`)‹Æƒà4À‹ÁæöD€ttjjjÿuøèbƒÄ;Eðu";Uôu‹G‹MÈ;Ás €8 uÿE@ëñöG ë7jÿuôÿuðÿuøèSb¸ƒÄ9Ew ‹O öÁtöÅt‹G‰E‹öDtÿE‹E)Eðƒ]ô‹Eü3ÒEðUô_^[ÉÃU‹ìVÿuè`Ìÿÿÿuÿuÿu ÿuèÿu‹ðè—ÌÿÿƒÄ‹Æ^]ÃU‹ìV‹uW‹F ¨ƒtp‹}…ÿt ƒÿtƒÿu_$ïƒÿ‰F uVèþÿÿE YU3ÿVè›ÿÿ‹F Y¨€t$ü‰F ë¨t¨t öÄuÇFWÿuÿu ÿvèma#ƒÄƒøÿt3ÀëèFÏÿÿǃÈÿ_^]ÃS‹\$;`*VWsr‹ÃÁø<…`)‹Ãƒà4À‹ÁæöD0tRSèYùÿÿ‹YöD0t)SèùÿÿYPÿ€…Àu ÿÌ‹ðë3ö…ötèÜÎÿÿ‰0èÌÎÿÿÇ ƒÎÿSèqùÿÿY‹Æëè³ÎÿÿÇ ƒÈÿ_^[ÃÌW‹|$ëj¤$‹ÿ‹L$W÷ÁtŠA„Àt;÷Áuñ‹ºÿþþ~Ѓðÿ3ƒÁ©tè‹Aü„Àt#„ät©ÿt©ÿtëÍyÿë yþëyýëyü‹L$ ÷ÁtŠA„ÒtdˆG÷Áuî뉃Ǻÿþþ~‹Ѓðÿ3‹ƒÁ©tá„Òt4„öt'÷Âÿt÷Âÿtëlj‹D$_Ãf‰‹D$ÆG_Ãf‰‹D$_È‹D$_ÃV‹t$‹8csmàuƒxux “ué¥éÿÿ¡,$…ÀtPè…^…ÀYt Vÿ,$ë3À^ÂhÐ\ÿ„£,$Ãÿ5,$ÿ„ÃV‹t$jƒ&ÿˆf8MZu‹H<…Ét ÁŠHˆŠ@ˆF^ÃU‹ì¸,èrªÿÿ…hÿÿÿSPÇ…hÿÿÿ”ÿ…Àtƒ½xÿÿÿuƒ½lÿÿÿrjXé…ÔíÿÿhPhRÿŒ…À„Ð3ÛÔíÿÿ8ÔíÿÿtŠj,PèƒÿÿY;ÃYt0@‹È8t€9;uˆëA8uòj SPè¤ÿÿƒÄ ƒøtƒøtƒøtEüPè˜þÿÿ€}üYÀƒÀ[ÉÃ3Àj9D$h”ÀPÿ˜…À£D)t6è“þÿÿƒø£H)u høèÌYë ƒøuè …Àuÿ5D)ÿ”3ÀÃjXáH)VƒøWufS3Û98)U‹-Ô~@¡<)‹=œp h@hÿ6ÿ×h€jÿ6ÿ×ÿvjÿ5D)ÿÕƒÆC;8)|Îÿ5<)jÿ5D)ÿÕ][ë'ƒøu"¿ó‹÷‹F…Àth€jPÿœ‹6;÷uåÿ5D)ÿ”_^Ãh@jÿ5D)ÿØ…À£<)uËL$ƒ%4)ƒ%8)j£0)‰ @)Ç()Xá8) €¡<) ˆ;Ás‹T$+P úrƒÀëè3ÀÃU‹ìƒì‹MSV‹u ‹AW‹þƒÆü+y Áï‹ÏiÉŒD‰Mð‹IöÁ‰Mü…æ‹11‰Uô‹Vü‰Uø‹Uôö‰] u~ÁúJƒú?vj?Z‹K;KuLƒú s»€‹ÊÓëL÷Ó!\¸Dþ u(‹M!ë!JເÓëL÷Ó!œ¸Äþ u‹M!Y‹Mü‹] ë‹Mü‹S‹[Mô‰Z‹U ‰Mü‹Z‹R‰S‹ÑÁúJƒú?vj?Z‹]øƒã‰]ô…”+uø‹]øÁûj?‰u K^;Þv‹ÞMø‹Ñ‰MüÁúJ;Öv‹Ö;Útc‹M ‹q;qu@ƒû s¾€‹ËÓî÷Ö!t¸DþLu&‹M!1ëKྀÓî÷Ö!´¸ÄþLu‹M!q‹M ‹q‹I‰N‹M ‹q‹I‰N‹u ë‹]ƒ}ôu;Ú„‹Mð‹\Ñ щ^‰N‰q‹N‰q‹N;Nu`ŠLƒú ˆMþÁˆLs%€}u»€‹ÊÓë‹M »€‹ÊÓëD¸D ë)€}uJເÓë‹M YJ຀Óê„¸Ä ‹Eü‰‰D0ü‹Eðÿ…÷¡4)…À„Ü‹ ,)‹5œÁáH »€h@SQÿÖ‹ ,)¡4)º€Óê P¡4)‹ ,)‹@ƒ¤ˆÄ¡4)‹@þHC¡4)‹H€yCu ƒ`þ¡4)ƒxÿuiSjÿp ÿÖ¡4)ÿpjÿ5D)ÿÔ¡8)‹<)€Áà‹È¡4)+ÈLìQHQP談ÿÿ‹EƒÄ ÿ 8);4)vƒm¡<)£0)‹E‰=,)£4)_^[ÉÃU‹ìƒì¡8)‹<)SV€W<‚‹E‰}üHƒáð‰MðÁùIƒù }ƒÎÿÓîƒMøÿ‰uôëƒÁàƒÈÿ3öÓè‰uô‰Eø¡0)‹Ø;߉]s‹K‹;#Mø#þ Ïu ƒÃ;]ü‰]rç;]üuy‹Ú;؉]s‹K‹;#Mø#þ ÏuƒÃëæ;ØuY;]üsƒ{uƒÃ‰]ëí;]üu&‹Ú;؉]s ƒ{uƒÃëî;Øuè8‹Ø…Û‰]tSèÚY‹K‰‹Cƒ8ÿu3Àé‰0)‹C‹ƒúÿ‰Uüt‹ŒÄ‹|D#Mø#þ Ïu7‹Ä‹pD#Uø#uôƒeüHD Ö‹uôu‹‘„ÿEü#UøƒÁ‹þ#9 ×té‹Uü‹Ê3ÿiÉŒD‰Mô‹LD#Îu ‹ŒÄj #Mø_…É|ÑáGë÷‹Mô‹Tù‹ +Mð‹ñ‰MøÁþNƒþ?~j?^;÷„ ‹J;Juaƒÿ }+»€‹ÏÓë‹Mü|8÷Ó‰]ì#\ˆD‰\ˆDþu8‹]‹Mì! ë1OເÓë‹Mü|8ŒˆÄ÷Ó!þ‰]ìu ‹]‹Mì!Kë‹]‹J‹zƒ}ø‰y‹J‹z‰y„”‹Mô‹|ñ ñ‰z‰J‰Q‹J‰Q‹J;JudŠLƒþ ˆM })þÁ€} ˆLu ¿€‹ÎÓï ;¿€‹ÎÓï‹Mü |ˆDë/þÁ€} ˆLu Nà¿€Óï {‹Mü¼ˆÄNྀÓî 7‹Mø…Ét ‰ ‰Lüë‹Mø‹uðÑN‰ ‰L2ü‹uô‹…Éy‰>u;4)u‹Mü; ,)uƒ%4)‹Mü‰B_^[Éá8)‹ ()VW3ÿ;Áu0D‰PÁàPÿ5<)Wÿ5D)ÿÜ;Çtaƒ()£<)¡8)‹ <)hÄAj€ÿ5D)4ÿØ;ljFt*jh hWÿ ;ljF uÿvWÿ5D)ÿÔ3ÀëƒNÿ‰>‰~ÿ8)‹Fƒÿ‹Æ_^ÃU‹ìQ‹MSVW‹q‹A3Û…À|ÑàCë÷‹Ãj?iÀZ„0D‰Eü‰@‰@ƒÀJuô‹ûjÁçy hh€Wÿ …ÀuƒÈÿé“—p;úwt‹Æ4;ósCŠ„Ûu0jX^€;uCFë÷;òsN;Eüu‰që )u 9U ‚™‹}ü‹Ãë¶óÆ4;ur½q;÷s~;EsvŠ„Àu@j^X€;u%C@ë÷;]s +ò‰‰që ƒaq‰1ˆƒÀë6;Âs)E 9U r4‹óë®¶Àðë§;]s +‰‰Aë ƒaA‰ˆFkÉÁà+Áë3À_^[ÉÃU‹ìQ‹US‹] V¶ W‹}ƒeü‹Ã+GÁø ;M|Çv‹E+ȈÇGñë`se‹E4ƒø;ÆrU;Æs €8u@ëô;ÆuBŠEˆ‹;Ðw+;ðv'ƒø;ðs3À‰38u@€<tù‰Cë ƒcC‰+MÇEü‹Eü_^[ÉÃÌÌVC20XC00U‹ìƒìSVWUü‹] ‹E÷@…‚‰Eø‹E‰EüEø‰Cü‹s ‹{ƒþÿta vƒ|tEVUkÿT]^‹] Àt3x<‹{Sè™wÿÿƒÄkVSèÎwÿÿƒÄ vj‹DèQxÿÿ‹‰C ÿT‹{ v‹4롸ë¸ëUkjÿSèŽwÿÿƒÄ]¸]_^[‹å]ÃU‹L$‹)‹AP‹APèiwÿÿƒÄ]¡8$…Àtÿt$ÿÐ…ÀYtjXÃ3ÀÃU‹ìjÿh¨RhÌqd¡Pd‰%ƒìSVW‰eè¡<$3Û;Ãu>EäPj^Vh´QVÿ¬…Àt‹ÆëEäPVh°QVSÿ¨…À„ÎjX£<$ƒøu$‹E;Ãu¡$ÿuÿuÿu ÿuPÿ¨韃ø…”9]u¡$‰ESSÿuÿu ‹E ÷ØÀƒà@PÿuÿÀ‰Eà;Ãtc‰]ü<‹ÇƒÀ$üè=”ÿÿ‰eè‹ô‰uÜWSVèýÁÿÿƒÄ ë jXËeè3Û3öƒMüÿ;ót)ÿuàVÿuÿu jÿuÿÀ;ÃtÿuPVÿuÿ¬ë3ÀeÌ‹Mðd‰ _^[ÉÃU‹ìjÿh¸RhÌqd¡Pd‰%ƒìSVW‹u¯u ‰u ‰uäƒþàw3Û;óuj^ƒÆƒæð‰u ë3Û‰]àƒþà‡¨¡H)ƒøuA‹}ä;=@)w|j è"ÂÿÿY‰]üWèÅîÿÿY‰EàƒMüÿè9]àt^ÿuäëH3Û‹u j èVÂÿÿYÃøuA;5,w9j èßÁÿÿYÇEü‹ÆÁèPèùÿÿY‰EàƒMüÿèL9]àtVSÿuàèÃÀÿÿƒÄ 9]àu>Vjÿ5D)ÿ؉Eà9]àu'94$tVèŠýÿÿY…À…0ÿÿÿë3Û‹u j èÍÁÿÿYËEà‹Mðd‰ _^[ÉÃU‹ìQSVèAÐÿÿ‹ðÿvPÿuè&Y…ÀY„‹X…Û‰]„ƒûu ƒ`jXéùƒû„â‹NT‰Mü‹M ‰NT‹Hƒù…¼‹¨‹ ¬ÊW;Ñ}' RÁá‹~PƒÁ ƒd9ü‹=¨‹¬Bß;Ó|â‹]‹‹~X=ŽÀu ÇFXƒë^=Àu ÇFXëN=‘Àu ÇFX„ë>=“Àu ÇFX…ë.=Àu ÇFX‚ë=Àu ÇFX†ë=’ÀuÇFXŠÿvXjÿÓY‰~XY_ëƒ`QÿÓY‹Eü‰FTƒÈÿë ÿu ÿ°^[ÉËT$‹ ´V‹t$92W‹Ât%…Ù€eË€eè€eé€eò€eñ€eê3ÿ€eû‰]ä‰]à‰]ôÆEó‰]ж^Fƒ=xë~¶ÃjPè:€ÿÿYYë‹ lé¶ÃŠAƒà…Àt‹EôÿEà€DCЉEôëeƒûN>t^ƒû*t2ƒûFtTƒûIt ƒûLu7þEóëE€~6u,€~4Fu#ÿEЃe؃eÜ‹ðë'þEòë"ƒûhtƒûlt ƒûwtþEñëþEóþEûëþMóþMû€}ñ„Oÿÿÿ€}ò‰u u‹E‰E¼ƒÀ‰E‹@ü‰EÔ€eñ€}ûuŠÿMüƒ}ìÿu€>%uM‹E €xnuD‹ðŠ„À…Vöÿÿë0ÿuÿMüÿuìëÿMüWSè‹YYëÿMüWPè}ÿMüWSèsƒÄƒ}ìÿu‹EÌ…Àu 8EëuƒÈÿë‹EÌ_^[ÉÃ=xëV~‹t$jVèßvÿÿYYë‹t$¡léŠpƒà…Àuƒæßƒî‹Æ^ËT$ÿJx ‹ ¶A‰ ÃRèèÂÿÿYÃ|$ÿtÿt$ÿt$èkpÿÿYYÃV‹t$Wÿt$ÿè¾ÿÿÿ‹øWèÞ“ÿÿY…ÀYuç‹Ç_^ÃU‹ììHSVW‹} 3öŠG„Û‰uô‰uì‰} „ô‹Mð3Òë‹Mð‹uÐ3Ò9UìŒÜ€û |€ûx¾ÃŠ€°Rƒàë3À¾„ÆÐRÁøƒø‰EЇšÿ$…¾ƒMðÿ‰ỦU؉Uà‰Uä‰Uü‰UÜéx¾Ãƒè t;ƒèt-ƒètHHtƒè…YƒMüéPƒMüéGƒMüé>€Mü€é5ƒMüé,€û*u#EPèõ…ÀY‰EàƒMü÷؉Eàé‹Eà¾Ë€DAÐëé‰Uðéí€û*uEPè¶…ÀY‰EðÓƒMðÿéʉ¾ËDAЉEð鸀ûIt.€ûht €ûlt€ûw… €Mýé—ƒMü鎃Mü é…€?6u€4uGG€Mý€‰} él‰UЋ lé‰UܶÃöDA€tEìPÿu¾ÃPèŠƒÄ G‰} EìPÿu¾ÃPèfƒÄ é%¾Ãƒøgƒøe–ƒøXë„xƒèC„ŸHHtpHHtlƒè …éf÷Eü0u€Mý‹uðƒþÿu¾ÿÿÿEPèœf÷EüY‹È‰Mø„þ…Éu ‹ À‰MøÇEÜ‹Á‹ÖN…Ò„Ôfƒ8„Ê@@ëçÇÈà ƒMü@½¸ýÿÿ;ʉ}øÏÇEðéÑf÷Eü0u€Mýf÷EüEPt;è0P…¸ýÿÿPèé5ƒÄ ‰Eô…À}2ÇEØë)ƒèZt2ƒè tÅH„èéèØYˆ…¸ýÿÿÇEô…¸ýÿÿ‰EøéçEPè³…ÀYt3‹H…Ét,öEýt¿Ñè‰Mø‰EôÇEÜ鵃e܉Mø¿é£¡¼‰EøPéŽu €ûguÇEð‹EÿũÀ‰Eÿuð‹Hø‰M¸‹@ü‰E¼¾ÃP…¸ýÿÿPE¸Pÿ€‹uüƒÄæ€tƒ}ðu…¸ýÿÿPÿŒY€ûgu…öu…¸ýÿÿPÿ„Y€½¸ýÿÿ-u €Mý½¹ýÿÿ‰}øWèþŸÿÿYéüƒèi„у脞H„„HtQƒè„ýýÿÿHH„±ƒè…ÉÇEÔ'ë<+ÁÑøé´…Éu ‹ ¼‰Mø‹Á‹ÖN…Òt€8t@ëñ+ÁéÇEðÇEÔöEü€ÇEôt]ŠEÔÆEê0QÇEäˆEëëHöEü€ÇEôt;€Mýë5EPèöEü Yt f‹Mìf‰ë‹Mì‰ÇEØé#ƒMü@ÇEô öEý€t EPèíYëAöEü t!öEü@EPt èÈY¿À™ë%è¼Y·ÀëòöEü@EPtè§YëàèŸY3ÒöEü@t…Ò|…Às÷؃ҋð÷Ú€Mý‹úë‹ð‹úöEý€uƒçƒ}ð} ÇEðëƒeü÷‹Æ ÇuƒeäE·‰Eø‹EðÿMð…À‹Æ Çt;‹Eô™RPWV‰EÀ‰UÄèL4ÿuċ؃Ã0ÿuÀWVèÊ3ƒû9‹ð‹ú~]Ô‹EøÿMøˆëµE·+EøÿEøöEý‰Eôt‹Mø€90u…Àu ÿMø@‹MøÆ0‰Eôƒ}Ø…ô‹]üöÃ@t&öÇtÆEê-ëöÃtÆEê+ë öÃt ÆEê ÇEä‹uà+uä+uôöà uEìPÿuVj èƒÄEìPEêÿuÿuäPè2ƒÄöÃtöÃuEìPÿuVj0èåƒÄƒ}ÜtAƒ}ô~;‹Eô‹]øxÿf‹CPEÈPCè 2Y…ÀY~2MìQÿuPEÈPèØƒÄ‹ÇO…ÀuÐëEìPÿuÿuôÿuøèºƒÄöEütEìPÿuVj èqƒÄ‹} ŠG„Û‰} …ùÿÿ‹Eì_^[ÉÃ<ˆ‡-‡y‡°‡¸‡í‡€ˆU‹ì‹M ÿIx‹ŠEˆÿ¶Àë QÿuèšÀÿÿYYƒøÿ‹Euƒÿ]Ãÿ]ÃVW‹|$‹ÇO…À~!‹t$Vÿt$ÿt$è¬ÿÿÿƒÄ ƒ>ÿt‹ÇO…Àã_^ÃS‹\$ ‹ÃKVW…À~&‹|$‹t$¾WFÿt$PèuÿÿÿƒÄ ƒ?ÿt‹ÃK…Àâ_^[ËD$ƒ‹‹@üËD$ƒ‹‹Aø‹QüËD$ƒ‹f‹@üÃU‹ìƒì ƒ= 'SVWuÿu ÿuèl YYéljè˧ÿÿ‹u Y‹M»Fÿ‰EôAÿ‰Eøf¶¶ÐAÿEøö‚!(‰MtW€9u3ÿëkjEüÿ5ð&jPjÿuøSÿ5$)èê§ÿÿƒÄ ƒøuf¶}üëƒø…Êf¶}üf¶EýÁçøÿEÿEøë·ÀŠˆ!(€á€ùu f¶¸ 'ë‹øf¶¶ÈFÿEôö!(‰u tS€>u3öëajEüÿ5ð&jPjÿuôSÿ5$)è_§ÿÿƒÄ ƒøuf¶uüëƒøuCf¶uüf¶EýÁæðÿE ÿEôë·ðІ!($<uf¶¶ 'f;þuf…ÿt-‹u ‹Méßþÿÿjèì¦ÿÿY¸ÿÿÿëjèݦÿÿf;÷YÀƒàHë jèʦÿÿY3À_^[ÉÃU‹ìƒì$S‹]ëlƒûFŒ£ûŠ—VW‹} ‹4½àuöÃuƒÿ~Fèá‹ÃKÿiÀmÁù‹Ö‰uøщ]ð‹U @‹E‰Eä ÈkÉ<MkÉ< ÄOƒ} ‰}ì_^Œ€U|‰Mt ƒ} ÿu ƒ=ÈtEÜPè0Y‹M…Àt Ì‹ÁëƒÈÿ[ÉÃU‹ìS‹] …ÛW„„€;t‹}…ÿu%hè¨jÿÿ‹øY…ÿu èU™ÿÿÇ ëRÇEE PWÿuSÿ¤;Erƒ}uWè„iÿÿYè ™ÿÿÇ"ë…Àu9EuWègiÿÿYÿÌP艘ÿÿY3Àë‹Çë ÿuÿuèx/YY_[]ÃU‹ìì…üþÿÿVPh3öÿ …Àt€½ýþÿÿ:u¶…üþÿÿPèâäÿÿ‹ðYƒî@‹Æ^ÉÃU‹ìQS‹]ûÿvQ‹Ãˆ] ÁèˆE ¶Àö€!(tOjEüÿ5ð&jPE jPhÿ5$)èâ¤ÿÿƒÄ …Àt$¶Eü¶MýÁàÁ늃!($<u ¶ƒ 'ë‹Ã[ÉÃ=%u$j è,¤ÿÿƒ=%Yu èÿ%j èq¤ÿÿYÃU‹ìQQSVWj _3ÛW‰]øèø£ÿÿƒ hÿƒ Xÿ‰H$Ç$„Sèƒ/‹ðY;ó…ýWè(¤ÿÿÇ$P$ÿƒøÿ„%¡P$‹ ¤$kÀ„4¡ü$;ÃtPVènÿÿY…ÀY„ÿ5ü$èèfÿÿV蟖ÿÿ@PèÄgÿÿƒÄ ;ãü$„òVPèÁÇÿÿWèÙ¢ÿÿjVÿ5Pèýpÿÿ¡PƒÆƒÄ€`€>-uÇEøFVèC†ÿÿY³0‹Èiɉ ÄŠ<+t:Ã|<9Fëï€>:uNFVè†ÿÿkÀ:u#FVèê…ÿÿY‹ Äȉ ÄŠ:Ã|<9Fëóƒ}øt÷Ù‰ ľ…À£ÈtjVÿ5Tè>pÿÿ¡TƒÄ €`ë¡T€ ëWèî¡ÿÿY_^[ÉÃVj è¡ÿÿÿt$ èj ‹ðèΡÿÿƒÄ ‹Æ^ÃSVW3ÿ9=Èu3ÀéL‹t$j[‹F;Xu ;h„9=H$„Ì· ö$Qf9=è$· ô$Q· ò$Q· ð$Qu· ì$WQ· î$Q· ê$QPSë· î$QW· ê$WQPWSè·¢$ƒÄ,f9=”$P· $P·ž$P·œ$Pu(·˜$WP·š$P·–$PÿvSW迃Ä,ëB·š$PW·–$WPÿvWëÝWWWjWWSjPSSèWWWjWWjj ÿvSWè{ƒÄX‹\¡l‹N;Ð};ÊŒ¿þÿÿ;È·þÿÿ;Ê~;È}‹Ã_^[Ã;È|ö;Êò;È~;ÊŒ•þÿÿ‹FkÀ<FkÀ<iÀè;Êu3É;`Á‹ÁëÁ3É;pœÁëïU‹ìƒ} S‹]V…‰‹E‰]ƒe‹ðu Á拆¬ë Á拆à‹ÓHiÒmCÿWÁø‹ùjø„:%œÿÿ_™÷ÿ‹E_;UkÀ+ÂELùë kÀ+ÂEȃ}u8ƒ}u‹¶°ë‹¶ä;Î~ ƒéë‹EöÃu ‹ …¬ë‹ …àM ƒ}u+‹E$‰ \kÀ<E(‰XkÀ<E,iÀèE0£`ëU‹E$‰ lkÀ<E(kÀ<ÌE,iÀèE0£py \&I£pëº\&;Â|+ÂA£p‰ l‰h^[]ÃÌÌÌÌÌÌÌÌÌÌÌÌÌU‹ìWVS‹u ‹}$ƒxu;°ÿ‹ÿ Àt.ŠFŠ'G8Ätò,A<É€á ÁA†à,A<É€á ÁA8àtÒÀÿ¾Àëxðÿh*ƒ=d*jëðÿ h*jèøÿÿÇ$¸ÿ3Û Àt'ŠFŠG8ØtòPSè{‡ÿÿ‹ØƒÄèq‡ÿÿƒÄ8ÃtÚÀƒØÿ‹ØX Àu ðÿ h*ë jèžÿÿƒÄ‹Ã[^_ÉËD$SVW‹03Ûè¬ÿÿ…ö‹ø}3Àééƒ@uj$è¢bÿÿY‰G@…À¹%t‹O@‹Æ¿€†™÷ÿ‹ÐiÒ€àyøò…F¸€3á;ð|+ðB;ð|+ð¸…âB;ð|B+ðëj[‹Æ‰Q™¿€Q÷ÿ¿°‰AiÀ€®þÿð…Ûu¿ä‹QjX_9}@ƒÃëö‹QH‰Aj+‡‹D$¿€Q‰Q ‹™÷ÿ_j<ƒÀ™÷ÿ‹Æ¿‰Q™÷ÿ_‰AiÀðñÿÿð‹Æ™÷ÿ‰AkÀ<+ðƒa ‰1‹Á_^[Ãhhèá(YYÃU‹ìƒìݘSÝ]øÝSÝ]ðÝEðÜuøÜMøÜmðÝ]èÝEè܈SßàžvjXÉÃ3ÀÉÃh¼Sÿˆ…Àth SPÿœ…ÀtjÿÐÃé™ÿÿÿV‹t$¾PèD…ÿÿƒøeYt,Fƒ=xë~¾jPèZbÿÿYY뾋 léŠAƒà…ÀuÔŠ |늈FŠˆŠÁŠF„Éuó^ËD$Š|늄Ét :ÊtŠH@„ÉuôŠ@„Ét*Š„Ét €ùet€ùEt@ëí‹ÈH€80tú8uHŠ@A„ÒˆuöËD$ÝÜàLßàžrjXÃ3ÀÃU‹ìQQƒ}ÿutEøPèc,‹E YY‹Mø‰‹Mü‰HÉÃEPèu,‹E YY‹M‰ÉÃU‹ìƒì(EØVPEðP‹EQQÝÝ$èï,‹uEðP‹U FP3Àƒ}ð-”À3É…öŸÁÐÊQèP,EðjPÿuVÿu è ‹E ƒÄ0^ÉÃU‹ìS3Û8]V‹uW‹}t3À9] ŸÀP3Àƒ>-”ÀÇPèvYYƒ>-‹ÇuÆ-G9] ~ŠPHˆ‹ÁŠ |ëˆ3É8]hÈS”ÁÈM Q蔿ÿÿ9]YY‹ÈtÆE‹F A€80t<‹^Ky÷ÛÆ-Aƒûd|‹Ãjd™^÷þ‹Ã™÷þ‹ÚAƒû |‹Ãj ™^÷þ‹Ã™÷þ‹ÚY‹Ç_^[]ÃU‹ìƒì(EØVPEðP‹EQQÝÝ$èÌ+‹uEðP‹EôÆP3Àƒ}ð-”ÀE Pè6+EðjPVÿu è ‹E ƒÄ,^ÉÃU‹ìSV‹u‹]W‹FH€}t;E u3Ƀ>-”ÁÈË‹ÁÆ0€`ƒ>-‹ûuÆ-{‹F…ÀjWè?YÆ0YGëøƒ} ~DjWè' |ëYˆ‹vGY…ö}+€}t÷Þë÷Þ9u |‰u ÿu Wèùÿu j0Wè˜ÿÿƒÄ_‹Ã^[]ÃU‹ìƒì(SVEØWPEðP‹EQQÝÝ$èÎ*‹Eô‹]pÿ3Àƒ}ð-”ÀE ‹øEðPSWè5*‹EôƒÄH;ðœÁƒøü|&;Ã}"„Ét ŠG„Àuù GþEðjPSÿu èåþÿÿƒÄëEðjPÿuSÿu è·ýÿÿƒÄ_^[ÉÃU‹ìƒ}et2ƒ}Et,ƒ}fuÿuÿu ÿuèNþÿÿƒÄ ]Ãÿuÿuÿu ÿuè4ÿÿÿëÿuÿuÿu ÿuèýÿÿƒÄ]ÃW‹|$ …ÿtV‹t$ VèŒÿÿ@PV÷VèLÿÿƒÄ^_ÃÌÌÌÌÌÌÌU‹ìV3ÀPPPPPPPP‹U IŠ ÀtB«$ëó‹uŠ Àt F£$sóFÿƒÄ ^ÉÃS3Û9ˆ:VWuèÔÜÿÿ‹58#3ÿŠ:Ãt<=tGVè‹‹ÿÿYtëè½Pè£\ÿÿ‹ðY;ó‰5h#uj èa…ÿÿY‹=8#8t9UWèQ‹ÿÿ‹èYE€?=t"Uèn\ÿÿ;ÃY‰uj è2…ÿÿYWÿ6èk¼ÿÿYƒÆYý8uÉ]ÿ58#èW[ÿÿY‰8#‰_^Ç„:[ÃU‹ìQQS3Û9ˆ:VWuèÜÿÿ¾,%hVSÿL¡”:‰5x#‹þ8t‹øEøPEüPSSWèM‹Eø‹MüˆPèÎ[ÿÿ‹ðƒÄ;óujè„ÿÿYEøPEüP‹Eü†PVWè‹EüƒÄH‰5`#_^£\#[ÉÃU‹ì‹M‹ESVƒ!‹uW‹} Ç‹E…ÿt‰7ƒÇ‰} €8"uDŠP@€ú"t)„Òt%¶Òö‚!(t ÿ…ötŠˆF@ÿ…ötÕŠˆFëÎÿ…öt€&F€8"uF@ëCÿ…ötŠˆFŠ@¶Úöƒ!(t ÿ…ötŠˆF@€ú t „Òt €ú uÌ„ÒuHë…öt€fÿƒe€8„àŠ€ú t€ú u@ëñ€8„È…ÿt‰7ƒÇ‰} ‹UÿÇE3Û€8\u@Cë÷€8"u,öÃu%3ÿ9}t €x"Pu‹Âë‰}‹} 3Ò9U”‰UÑë‹ÓK…ÒtC…ötÆ\FÿKuóŠ„ÒtJƒ}u €ú t?€ú t:ƒ}t.…öt¶Úöƒ!(tˆF@ÿŠˆFë¶Òö‚!(t@ÿÿ@éXÿÿÿ…öt€&Fÿéÿÿÿ…ÿtƒ'‹E_^[ÿ]ÃQQ¡0&SU‹-ŒVW3Û3ö3ÿ;Ãu3ÿÕ‹ð;ót Ç0&ë(ÿ‹ø;û„êÇ0&éƒø…;óu ÿÕ‹ð;ó„Âf9‹Æt@@f9uù@@f9uò+Æ‹=¼ÑøSS@SSPVSS‰D$4ÿ׋è;ët2Uè;Yÿÿ;ÃY‰D$t#SSUPÿt$$VSSÿ×…Àuÿt$è/XÿÿY‰\$‹\$Vÿ”‹ÃëSƒøuL;ûu ÿ‹ø;ût<8‹Çt @8uû@8uö+Ç@‹èUèÔXÿÿ‹ðY;óu3öë UWVè5ˆÿÿƒÄ Wÿ˜‹Æë3À_^][YYá@#ƒøt …Àu*ƒ=D#u!hüè¡4&Y…ÀtÿÐhÿèYÃU‹ì줋U3ɸ ;t ƒÀA=0|ñV‹ñÁæ;– …¡@#ƒø„è…Àu ƒ=D#„×úü„ñ…\þÿÿhPjÿL…Àu…\þÿÿh¨VPèý·ÿÿYY…\þÿÿWP½\þÿÿ訆ÿÿ@Yƒø‰^fN jX_[^Ã3À^Ã|$Vt ‹t$ öF tVèBSÿÿ€f îƒfƒ&ƒfY^ÃSWj3Ûè-‘ÿÿYj_9=€:~]V¡l*‹÷Áæ‹…ÀtAö@ ƒt PèJÿÿƒøÿYtCƒÿ|)¡l*‹ƒÀ PÿT¡l*ÿ4èUÿÿ¡l*Yƒ$G;=€:|¥^jè‘ÿÿY‹Ã_[Ã=$VtZh¬jè Îÿÿ‹ðY…öYujX^ÃVèh…ÀYtVè«VèÃTÿÿYYëàÿ5D&‰5ëèÿ5D&è£TÿÿY‰5D&Yë)ÿ5D&Çë˜ëèfÿ5D&èyTÿÿƒ%D&YY3À^ÃU‹ìQQ·~&· €&V‹u…ö‰Eü‰MøuƒÈÿé"SNWQj1Pj[Sè€#‹øFPj2ÿuüSèo# øF Pj3ÿuüSè^# øFPj4ÿuüSèM#ƒÄ@ øFPj5ÿuüSè9# øFPj6ÿuüSè(#Vj7ÿuü øSè# øF Pj*ÿuüSè #ƒÄ@ øF$Pj+ÿuüSèõ" øF(Pj,ÿuüSèä" øF,Pj-ÿuüSèÓ" øF0Pj.ÿuüSèÂ"ƒÄ@ øF4Pj/ÿuüSè®" øFPj0ÿuüSè" øF8PjDÿuüSèŒ" øFÿuüSèH! ø†„Pj?ÿuüSè4! ø†ˆPj@ÿuüSè ! ø†ŒPjAÿuüSè !ƒÄ@ ø†PjBÿuüSèõ ø†”PjCÿuüSèá ø†˜Pj(ÿuüSèÍ ø†œPj)ÿuüSè¹ ƒÄ@ ø† PjÿuøSè¢ ø†¤Pj ÿuøSèŽ Æ¨ øVhÿuøSèw ƒÄ0 Ç_[^ÉÃV‹t$…ö„ÿvè QÿÿÿvèQÿÿÿv èùPÿÿÿvèñPÿÿÿvèéPÿÿÿvèáPÿÿÿ6èÚPÿÿÿv èÒPÿÿÿv$èÊPÿÿÿv(èÂPÿÿÿv,èºPÿÿÿv0è²Pÿÿÿv4èªPÿÿÿvè¢Pÿÿÿv8èšPÿÿÿv<è’PÿÿƒÄ@ÿv@è‡PÿÿÿvDèPÿÿÿvHèwPÿÿÿvLèoPÿÿÿvPègPÿÿÿvTè_PÿÿÿvXèWPÿÿÿv\èOPÿÿÿv`èGPÿÿÿvdè?Pÿÿÿvhè7Pÿÿÿvlè/Pÿÿÿvpè'PÿÿÿvtèPÿÿÿvxèPÿÿÿv|èPÿÿƒÄ@ÿ¶€èPÿÿÿ¶„èöOÿÿÿ¶ˆèëOÿÿÿ¶ŒèàOÿÿÿ¶èÕOÿÿÿ¶”èÊOÿÿÿ¶˜è¿Oÿÿÿ¶œè´Oÿÿÿ¶ è©Oÿÿÿ¶¤èžOÿÿÿ¶¨è“OÿÿƒÄ,^ÃS3Û9$UW·=z&„øVhH&jWj]Uè³hL&jWU‹ðè£hP&jWU ðè“ÿ5P& ðè~ƒÄ4;ó^t>ÿ5H&è$Oÿÿÿ5L&èOÿÿÿ5P&èOÿÿƒÄ ‰H&‰L&‰P&ƒÈÿé4¡ ì‹=hìt#PèÝNÿÿ¡ ìÿpèÐNÿÿ¡ ìÿpèÃNÿÿƒÄ ‹  ì¡H&‰¡ ì‹ L&‰H¡ ì‹ P&‰H¡ ì‹Š‰-€ë¢|ëé¿ÿ5H&èsNÿÿÿ5L&èhNÿÿÿ5P&è]Nÿÿj‰H&‰L&‰P&è-Oÿÿ‹  ìƒÄ‰¡ ì‹;Ä1ÿÿÿhàÊPè¯ÿÿjèOÿÿ‹  ìƒÄ ‰A¡ ì‹@;ÄÿÿÿjˆèÜNÿÿY‹  ì‰A¡ ì‹@;Äàþÿÿˆ¡ ì‹ŠÇ€ë¢|ë3À_][ËL$Š„ÀtV<0|<9 ,0ˆAŠ„Àuí^Ã<;uó‹ÁŠPpˆ‹Æ€8uñëáƒ= $Vtvj0jè”Æÿÿ‹ðY…öYujX^ÃV襅ÀYtVè¼VèKMÿÿYYëࡠ싉¡ ì‹@‰F¡ ì‹@‰Fÿ5T&‰5 ìè‚ÿ5T&è MÿÿY‰5T&YëG¡ ìÿ5T&‹‰ pì‹H‰ tì‹@£xìÇ ìpìè:ÿ5T&èÄLÿÿƒ%T&YY3À^ÃV‹t$W·=t&…öuƒÈÿéF SPjWjèÞ‹ØFPjWjèÎ ØFPjWjè¾ ØFPjWj讃Ä@ ØFPjWjè›ÿv Øè‰þÿÿF PjPWjèƒ ØF$PjQWjès ØF(PjWjècƒÄD ØF)PjWjèP ØF*PjTWjè@ ØF+PjUWjè0 ØF,PjVWjè ƒÄ@ ØF-PjWWjè  ØF.PjRWjèýƒÆ/ ØVjSWjèíƒÄ0 Ã[_^ÃV‹t$…ötC‹F =0#t9Pè|KÿÿÿvètKÿÿÿvèlKÿÿÿvèdKÿÿÿvè\Kÿÿÿv èTKÿÿÿv$èLKÿÿƒÄ^ÃU‹ìƒì$S3Û9$‰]ü‰]ø„ò9$VWu#·l&h$hPSèYƒÄ…À…®¾VèÝKÿÿ‹øV‰}ðèÒKÿÿh‰EôèÅKÿÿV‰Eüè¼KÿÿƒÄ;û‰Eø„t9]ô„k9]ü„b;ÄZ3À¾‹Müˆ@;Æ|õEÜPÿ5$ÿH…À„0ƒ}܇&·E܃ø£xë~,8]ât'EãŠ:Ót¶Hÿ¶Ò;Ê ‹UüˆA¶ëð@@8XÿuÜSGSSPVÿuüjèÂÿÿƒÄ…À„Ï‹Møf‰3Àf‰AA@;Æ|ö‹EôSSxWVÿuøjèƒÄ…À„ž‹Eôf‰ƒ=xë~68]ât1EãŠ:Ët(¶pÿ¶É;ñ‹MðLqfÇ€F¶AA;ò~ñ@@8XÿuÒ‹Eð‰=péƒÀ£lé¡X&;ÃtPèŠIÿÿY‹Eð£X&¡\&;ÃtPèrIÿÿY‹Eô£\&ÿuüèaIÿÿÿuøèYIÿÿY‹ÃY_^ëLÿuðèIIÿÿÿuôèAIÿÿYYj[ëÑÿ5X&¸vé£lé£péè Iÿÿÿ5\&èIÿÿY‰X&Y‰\&3À[ÉÃ3ÀÃÌÌÌÌÌÌÌÌÌÌÌÌU‹ìWVS‹Mã&‹Ù‹}‹÷3Àò®÷ÙË‹þ‹u ó¦ŠFÿ3É:GÿwtII÷Ñ‹Á[^_ÉÃS3Û9¤&VWuè…Àt ¡€£¤&ë Ǥ&¹‹t$;󄀉5”&8th”&j@h è*ƒÄ F@;ã˜&t8th˜&jhè衘&ƒÄ ‹ ”&‰œ&;Ët8t;Ãt 8tè5ëè¹ë;Ãt 8tè½ëès9œ&„®Æ€Vèu‹øY;û„—·ÇPÿ„…À„…jÿ5„&ÿˆ…Àts‹D$;Ãtf‹ „&f‰f‹  &f‰Hf‰x‹t$;ótEj@Vhÿ5„&ÿ¤&…Àt2F@j@Phÿ5 &ÿ¤&…ÀtÆ€j VWè˜ƒÄ jXë3À_^[ÃU‹ìSVW3Û9] jX|C…Àt?‹E Ù+‹ð‹EÑþÿ4ð<ð‹Eÿ0èXäÿÿY…ÀYu ‹MƒÇ‰9ë }N‰u ë^;] ~½_^[]Ãÿ5”&è˜vÿÿÿ5˜&ƒè÷ØÀ@£&è€vÿÿƒèY÷ØÀƒ%„&@ƒ=&Y£ˆ&t ÇŒ&ëÿ5”&èXY£Œ&jh„´ÿ|¡œ&öÄt öÄt¨uƒ%œ&ÃU‹ìƒìxSVWÿuèàY‹ðEˆjxP¡ˆ&÷ØÀf%ðPVÿ¤&…À„EˆPÿ5˜&èaãÿÿY»ðÿÿ…ÀY¿…¼EˆjxP¡&÷ØÀ#ÃÇPVÿ¤&…À„ÍEˆPÿ5”&èãÿÿY…ÀYuf œ&‰5 &‰5„&ëmöœ&ud¡Œ&…Àt:PEˆPÿ5”&èlƒÄ …Àu#ÿ5”&ƒ œ&‰5 &è-uÿÿ;Œ&Yu#ë¬öœ&uVèK…ÀYt ƒ œ&‰5 &‹ œ&¸#È;È„ÀEˆjxP¡&÷ØÀ#ÃÇPVÿ¤&…Àuƒ%œ&jXéŸEˆPÿ5”&è?âÿÿY…ÀYu1€ &3ÿ9=&uW9=Œ&tOÿ5”&è…tÿÿ;Œ&Yu;jë+3ÿ9=&uB¡Œ&;Çt9PEˆPÿ5”&èuƒÄ …Àu"WVèžY…ÀYt€ &9=„&u‰5„&¡œ&÷ÐÁèƒà_^[ÉÂÿ5”&è tÿÿƒèY÷ØÀ@£&t ÇŒ&ëÿ5”&èôY£Œ&jhÞ¶ÿ|öœ&uƒ%œ&ÃU‹ìƒìxVÿuèˆY‹ðEˆjxP¡&÷ØÀf%ðPVÿ¤&…Àu !œ&jXëwEˆPÿ5”&èáÿÿY…ÀYu 9&u:jë*ƒ=&u@¡Œ&…Àt7PEˆPÿ5”&è^ƒÄ …Àu PVè‡Y…ÀYtƒ œ&‰5 &‰5„&¡œ&÷ÐÁèƒà^ÉÂÿ5˜&èúrÿÿƒèY÷ØÀj@hÒ·£ˆ&ÿ|öœ&uƒ%œ&ÃU‹ìƒìxVÿuè”Y‹ðEˆjxP¡ˆ&÷ØÀf%ðPVÿ¤&…Àu !œ&jXë@EˆPÿ5˜&èàÿÿY…ÀYuV誅ÀYtƒ œ&‰5 &‰5„&¡œ&÷ÐÁèƒà^ÉÂf œ&ÿx£ &£„&ÃU‹ìQQV‹u…öt1€>t,hD]VèqIÿÿY…ÀYth@]Vè`IÿÿY…ÀYu(EøjPj ë EøjPhÿ5 &ÿ¤&…Àt uøVèÄaÿÿY^ÉøÔf‹L$f;t @@=è|íjXÃ3ÀÃU‹ìƒìxEˆjxP‹E%ÿj€ÌPÿ¤&…Àt5EˆPèQ9EYt*ƒ} t$Vÿ5”&èrÿ5”&‹ðèWqÿÿY;ðY^u3ÀÉÃjXÉÃU‹ìì”…lÿÿÿÇ…lÿÿÿ”Pÿ…Àtƒ½|ÿÿÿujXÉÃ3ÀÉÃU‹ìSVWj3ö_7‹]™+ÂÑø‹ÈkÉ,‹‰09Mt(9Msxÿëp;÷~ÔSÿuÿu ÿuÿ€_^[]‹M It[IItMƒét>ƒét/éötItIIuÆkÀ,TëSèhÿÿY‹ø‹…Àt/Pè hÿÿ;ÇYv‹€<8=uWSPè¦ƒÄ …ÀtƒÆëÓ‹D8ë3À_^[ÃU‹ìQV›Ù}üÿuüè:‹ð‹E ÷Ð#ð‹E#E ðVèµY‰E YÙm ‹Æ^ÉËD$%ÿÿ÷ÿPÿt$è¸ÿÿÿYYÃS‹\$3ÀUöÃWtjXöÃt öÃt öÃt öà t öÃt ·ËV‹Ñ¾ ¿#Ö½tútút;Öu Çë Åë€Ì#Ï^t ;Íu ë _]öÇ[t ÃS‹\$3ÀVöÃtjXöÃt öÃt öÃt öÃt ÷Ãt ‹Ëº#ʾtùt;Ît ;Êu €Ì ë€Ìë€Ì‹Ëát ùu Æë Â^÷Ã[t€ÌËD$Vj ™Y÷ùj‹ð‹D$™÷ùY‹D$+ʃÊÿÓâ÷Ò…°uFƒþ}°ƒ8uFƒÀƒþ|òjX^Ã3À^ËD$SVWj ‹\$™Y÷ù‹ð‹D$™÷ù<³WjYjX+ÊÓàPÿ7èZƒÄ Nx<³…ÀtWjÿ7èCƒÄ Nƒï…ö}ç_^[ÃU‹ìQQ‹E SVWxÿj Yƒeü_j ‹Ã^™÷ùj‹È‹Ã™÷þ‹E^j‰Møˆ‰E +òZ‹ÎÓâ…t!CSÿuèÿÿÿY…ÀYuWÿuèNÿÿÿY‰EüY‹E ƒÊÿ‹ÎÓâjY!‹Eø@;Á} ‹U+È<‚3Àó«‹Eü_^[ÉËD$‹L$Vj+ÈZ‹0‰4ƒÀJuõ^ÃW‹|$3À«««_ËD$3Ƀ8u AƒÀƒù|òjXÃ3ÀÃU‹ìƒì ‹E SVWj ‹}[ƒÎÿ™‹ËÇEü÷ù‰Eô‹E ™÷ùƒe ‹ÊÓæ+Ú÷Ö‹‹È#ΉMø‹ÊÓè E ‰‹Eø‹ËƒÇÓàÿMü‰E uÜ‹}ôj[‹÷jYÁæ;ß|‹U‹Á+Æ‹‰ë‹Eƒ$Kƒéyà_^[ÉÃU‹ìƒì‹ESVW·H ‹ÙဉM‹H‰Mô‹H·‹}ãÿëÿ?‰MøÁàûÀÿÿ‰Eüu&Eô3öPèÿÿÿ…ÀY…ÑEôPèèþÿÿYjXéÁEôPEèPè·þÿÿÿwEôPèþÿÿƒÄ…ÀtC‹G‹È+O;Ù} EôPè©þÿÿYë<;Ø?+ËðEèPEôPèvþÿÿEôVPè®þÿÿÿwEôPèÔýÿÿ‹G @PEôPè”þÿÿƒÄ 3öé|ÿÿÿ;|(EôPèVþÿÿÿw €M÷€EôPèmþÿÿ‹wƒÄ 7jéRÿÿÿÿw ‹w€e÷EôPóèIþÿÿYY3ÀjY+O ‹Óæ‹M÷ÙÉဠñ uôƒÿ@u ‹M ‹Uø‰q‰ë ƒÿ u‹M ‰1_^[ÉÃhÿt$ ÿt$ è‚þÿÿƒÄ Ãh0ÿt$ ÿt$ èlþÿÿƒÄ ÃU‹ìƒì 3ÀPPPPÿu E PEôPèèÿuEôPè¬ÿÿÿƒÄ$ÉÃU‹ìƒì 3ÀPPPPÿu E PEôPè»ÿuEôPè•ÿÿÿƒÄ$ÉÃU‹ì‹US‹] V‹u‹J W~Æ0…Û‹Ç~‰]3ÛŠ„Òt¾ÒAëj0Zˆ@ÿMué‹U€ …Û|€95| H€89uÆ0ëõþ€>1uÿBëWè#bÿÿ@PWVè:"ÿÿƒÄ_^[]ÃU‹ìƒì(VEWPEôPèGYEØYuôPjjƒì ‹ü¥¥f¥èá‹u‹}‰F¾EÚ‰¿E؉FEÜPWè“ÿÿƒÄ ‰~ ‹Æ_^ÉÃU‹ìQ‹U SVWf‹B¿ÿ‹È%€Áé#ωE ‹B‹·Ù¾€%ÿÿ…Û‰uüt;ßt¹<ë(¿ÿë!3Û;Ãu;Óu‹E‰X‰f‰XëK¹<‰]ü‹ÊÁéÁà È‹E MüÁâ ‰H‰…Îu‹É‹ÚÁë Ù ‰‰XÇÿÿ‹Ëëß‹M Ïf‰H_^[ÉÃjè÷ZÿÿYÃS3Û9¨&VWuBhx]ÿl‹ø;ûtg‹5œhl]WÿÖ…À£¨&tPh\]WÿÖhH]W£¬&ÿÖ£°&¡¬&…ÀtÿЋ؅Ût¡°&…ÀtSÿЋØÿt$ÿt$ÿt$Sÿ¨&_^[Ã3ÀëøU‹ì쀃}SVW…°3ÛE€Sh€P}€ÿu‰]ÿu èà‹ðƒÄ;óuMÿ̃øzu^SSSÿuÿu 辋ðƒÄ;ótGVè61ÿÿ‹øY;ût:SVWÇEÿuÿu è“‹ðƒÄ;ótVè 1ÿÿY;ËM‰u9]tWè 0ÿÿYƒÈÿ_^[ÉÃVWPèI:ÿÿƒÄ 9]ttWèî/ÿÿYëkƒ}uÙj¾´&jVÿuÿu èƒÄ…Àt½‹}€'ƒ=xëŠ~¶ÃjPèÐ1ÿÿYYë‹ lé¶ÃŠAƒà…Àtб öéÃ,0FFˆþ¼&|½3ÀépÿÿÿU‹ìjÿhˆ]hÌqd¡Pd‰%ƒìSVW‰e衼&3ÿ;Çu>EäPj^Vh´QVÿ¬…Àt‹ÆëEäPVh°QVWÿ¨…À„JjX£¼&ƒøuÿuÿuÿu ÿuÿ¬é(ƒø…9}u¡$‰EWWWWÿuÿu h ÿuÿ¼‹ð‰uØ;÷„ë‰}üƒÀ$üè£;ÿÿ‰eè‹Ä‰EÔVWPèciÿÿƒÄ ƒMüÿëjXËeè3ÿ‰}ÔƒMüÿ‹uØ9}Ô„©WWVÿuÔÿuÿu h ÿuÿ¼…À„‡ÇEüD6ƒÀ$üè7;ÿÿ‰eè‹Ü‰]Üë jXËeè3ÿ3ÛƒMüÿ;ßtU‹E;Çu¡$‹M< 4fÿÿfNþÿÿSÿuØÿuÔÿuPÿ¨‰Eàf~þÿÿtf>ÿÿuWSÿuè­ÿÿƒÄ ‹Eàë3ÀeÈ‹Mðd‰ _^[ÉÃU‹ìƒ} u ƒ}}jj ëjÿuÿu ÿuè‹E ƒÄ]ÃU‹ìƒ}‹M SVWt ‹uÆ-A÷Þë‹u‹ù‹Æ3Ò÷u‹Æ‹Ú3Ò÷uƒû ‹ðv€ÃWë€Ã0ˆA…öwÚ€!IŠŠˆˆIG;ùrò_^[]ÃÌÌÌÌÌÌÌÌU‹ìWVS‹M É„é‹u‹} $ƒxuN·A³Z¶ IŠ& äŠt! ÀtFG8ür8Üwæ8ør8ØwÆ8Äu Iu×3É8Ä„›¹ÿÿÿÿ‚÷Ùé‰ðÿh*ƒ=d*jëðÿ h*‹ÙjèHhÿÿÇ$‹Ë3À3Û‹ÿŠ ÀŠt# ÛtFGQPSèÊQÿÿ‹ØƒÄèÀQÿÿƒÄY;Ãu IuÕ3É;Ãt ¹ÿÿÿÿr÷ÙX Àu ðÿ h*ë‹ÙjèIhÿÿƒÄ‹Ë‹Á[^_ÉÃU‹ìƒì\SVW‹}E¤j‰Eô3ÀZ‰E؉Uè‰Eü‰Eð‰E܉Eà‰EÔ‰EЉEä‰Eø‰Eì‰}Š€ù t€ù t €ù t€ù uGëçj^ŠGƒø ‡wÿ$…bÓ€û1| €û9jé:|ëujéF¾Ãƒè+tHHtƒè…ÔéjÇEØ€X맃eØjX란û1‰Uð|€û9~®:|넼€û+t1€û-t,€û0tR€ûCމ€ûE~€ûcŽ{€ûerjéÈOj éÀ€û1| €û9ŽVÿÿÿ:|ë„Yÿÿÿ€û0…µ‹Âéÿÿÿ‰Uð9xë~¶ÃVPèö,ÿÿYYjZë‹ lé¶ÃŠA#Æ…Àtƒ}üs‹EôÿEü€ë0ÿEôˆëÿEøŠGë·:|ëug‹ÆéÂþÿÿƒ}ü‰Uð‰UÜu €û0uÿMøŠGëó9xë~¶ÃVPè…,ÿÿYYjZë‹ lé¶ÃŠA#Æ…Àtƒ}üs‹EôÿEü€ë0ÿEôÿMøˆŠGë¹€û+„ ÿÿÿ€û-„ÿÿÿéÕþÿÿ9xë‰UÜ~¶ÃVPè$,ÿÿYYjZë‹ lé¶ÃŠA#Æ…À„ª‹ÆëWOþ€û1‰M|€û9~D¾Ãƒè+ttHHtdƒè…jëe‰Uà€û0uŠGëö€û1Œò€û9éë €û1|€û9 j XOé¸ýÿÿ€û0uDëÁƒ} t*¾ÃOÿƒè+‰MtHH…´ƒMèÿjXé‰ýÿÿjXéýÿÿj OXƒø „•éoýÿÿ‹}éˆÇEà3öƒ=xë~¶ÃjPè8+ÿÿYYë‹ lé¶ÃŠAƒà…Àt¾Ë¶tAÐþPŠGë¾¾Q‰uäƒ=xë~¶ÃjPèî*ÿÿYYë‹ lé¶ÃŠAƒà…ÀtŠGëÐOë‹ù‹E ƒ}ð‰8„ÙjX9Eüv€}»|þE»‰Eü‹EôHÿEøë‹Eôƒ}ü†¥H€8uÿMüÿEøëòEÀPE¤ÿuüPèH‹Eä3ÉƒÄ 9Mè}÷ØEø9MàuE9MÜu+E=P~0ÇEÔ‹]‹u‹E‹Uƒ}Ôt`3Û¸ÿ¾€3ÒÇEìë^=°ëÿÿ} ÇEÐëÇÿuPEÀPè} ‹UÀ‹]‹uÆ‹EÊƒÄ ëµ3Ò3À3ö3Ûë«3Ò3À3ö3ÛÇEìëƒ}Ðt3Ò3À3ö3ÛÇEì‹M EØ_‰q‰Yf‰A ‹Eì^f‰[ÉÃ+ÏzÏÑÏûÏVÐÍÐÑMÑ,ѱћÑgÑU‹ìƒì ‹EƒeüHSVHWtgHHtFƒètAƒèt<ƒèt*ƒètHtƒÈÿéF‹È&¿È&ëB‹Ä&¿Ä&ë5‹Ì&¿Ì&ë(èœqÿÿ‹ðÿvPÿuè‹øYƒÇY‹ë‹À&¿À&jÇEüèwbÿÿ‹uYƒûuƒ}ü„ÔSè¿bÿÿYéÈ3É;Ùu9Mütjè§bÿÿYjè°Pÿÿ‹Eƒøt ƒø tƒøu‹VTƒø‰Uø‰NTuI‹VXÇFXŒ‰Uôƒøu7‹ ¨¡¬Á;È}(IÁà‹VPƒÀ ƒdü‹¨‹=¬Aú;Ï|â뉃}ütjè'bÿÿYƒ}u ÿvXjÿÓYYëÿuÿÓƒ} Ytƒ}u‹Eøƒ}‰FTu‹Eô‰FX3À_^[ÉËT$‹ ´V‹t$9rW‹ÂtUè &ÿÿ;ÇY‰D$t/WWUPjÿÿ6WjÿÓ…ÀtWÿt$è ‹FƒÆY;ÇYu¸3À_^][YÃÈÿëõ‹T$V‹t$ 3À 2;Êr;ÎsjX‹T$^‰ ÃV‹t$W‹|$Vÿ7ÿ6èËÿÿÿƒÄ …ÀtFPjÿ0è·ÿÿÿƒÄ …ÀtÿFFPÿwÿ0èŸÿÿÿƒÄ …ÀtÿFFPÿwÿ0è‡ÿÿÿƒÄ _^ËD$VW‹0‹x‹Îö‰04?Áé ñ‹H‹×‰pÁêÑá Ê_‰H^ËD$VW‹P‹H‹ò‹ùÁæÑé ΉH‹ÁçÑéÑê Ï_‰P‰^ÃU‹ìƒì‹E S‹]3Ò;ÂVÇEüN@‰‰S‰SvQW‰E‹ó}ð¥¥S¥èpÿÿÿSèjÿÿÿEðPSèÿÿÿSèZÿÿÿ‹Eƒeôƒeø¾‰EðEðPSèáþÿÿƒÄÿEÿMu¶3Ò_9Su(‹K‹ÁÁè‰C‹‹ðÁîÁá ñÁàEüðÿ‰s‰ëÓ¾€…suSèôþÿÿEüÿÿYëëf‹Eü^f‰C [ÉÃU‹ìƒì‹ES‹]V‹È¾ÿá€#Æf…ÉWÆEäÌÆEåÌÆEæÌÆEçÌÆEèÌÆEéÌÆEêÌÆEëÌÆEìÌÆEíÌÆEîûÆEï?ÇEü‹ÐtÆC-ëÆC ‹} f…Òu…ÿu9}ufƒ#ÆC ÆCÆC0éþf;Öuz¸€fÇ;øuƒ}t÷Ç@uh¸]ëFf…ÉtÿÀu ƒ}u.h°]ë;øu#ƒ}uh¨]CPè[ƒÿÿYÆCYƒeüénh ]CPè>ƒÿÿYÆCYëá·Â‹Ï‹ðÁéiÀMÁîfƒeðj Nf‰UúkÉM‰}ö´ í¼ì‹EÁþ‰Eò¿Æ÷ØPEðPè“ƒÄ f}úÿ?rEäFPEðPèZYYöEf‰3t‹}¿Æø…ÿéñþÿÿ‹}ƒÿ~j_·uúîþ?fƒeúÇEEðPè.ýÿÿÿMYuñ…ö}÷Þæÿ~ EðPè?ýÿÿNYuóOC…ɉE~P‰Muð}¥¥EðP¥èëüÿÿEðPèâüÿÿEPEðPèwüÿÿEðPèÌüÿÿŠEû‹M€eûƒÄ0ÿEÿMˆu¶‹EŠHÿHH€ù5K|0;Ár€89uÆ0Hëñ;Ás@fÿþ*Ã,ˆC¾À€d‹Eü_^[ÉÃ;Ár €80uHëô;ÁsÙfƒ#ÆC ÆCÆ0€cjXëÓU‹ìjÿhÀ]hÌqd¡Pd‰%ƒìSVW‰eè¡Ô&3ÿ;Çu.WWjWÿh…ÀtjëWWjWÿ€…À„¨jX£Ô&ƒøuÿuÿuÿu ÿuÿh醃øu9}u¡$‰EWWÿu ÿuÿ€‰Eä;Çt]‰}üƒÀ$üèÿ,ÿÿ‰eè‹ô‰uàë jXËeè3ÿ3öƒMüÿ;÷t3ÿuäVÿu ÿuÿ€…Àt9}uWWëÿuÿujÿVjÿuÿÀë3ÀeЋMðd‰ _^[ÉÃU‹ìjÿhÐ]hÌqd¡Pd‰%ƒìSVW‰eè¡Ø&3ö;Æu.VVjVÿh…ÀtjëVVjVÿ€…À„³jX£Ø&ƒøuÿuÿuÿu ÿuÿ€鑃ø…†9uu¡$‰EVVÿu ÿuÿh‰Eä;Ætd‰uüÀƒÀ$üèæ+ÿÿ‰eè‹ü‰}àë jXËeè3ö3ÿƒMüÿ;þt8ÿuäWÿu ÿuÿh…Àt$9uVVuVVëÿuÿujÿWh ÿuÿ¼ë3ÀeЋMðd‰ _^[ÉÃU‹ìƒì$S‹] V‹uf‹K 3ÀW‰Eì‰E܉Eà‰Eäf‹F ‹ùºÿ3ø#Â#Êç€f=ÿ‰Uƒ¸fùÿƒ­fúý¿‡¢fú¿?w3Àë:f…ÀºÿÿÿuÿE…Vu3À9Fu 9uéo3Àf;ÈuÿE…Su9Cu9u ‰F‰F‰ék‰EðEà‰EüÇE ‹EðÀƒ} ~IÆK‰Eø‹E ‰Mô‰Eè‹Eø‹Mô·· ¯Á‹MüƒÁüQPÿ1è¡øÿÿƒÄ …Àt‹EüfÿƒEøƒmôÿMèuȃEüÿEðÿM ƒ} œEÀfƒ}~%öEç€uEÜPèÙøÿÿEÿÿYfƒ}âfƒ}9Eÿÿfƒ}}+¿E÷ØE‹ØöEÜtÿEìEÜPèÆøÿÿKYuêƒ}ìt€MÜf}Ü€w‹EÜ%ÿÿ=€u5ƒ}Þÿu,ƒeÞƒ}âÿuƒeâf}æÿÿu ÿEfÇEæ€ëfÿEæëÿEâëÿEÞ‹Ef=ÿsf‹MÞ Çf‰‹Mà‰N‹Mä‰Nf‰F ëf÷ßÿƒfç€Ç€ÿƒ&‰~_^[ÉÃU‹ìƒì S»P3Ƀë`9M tc}‹E »°÷؉E ƒë`9Mu‹Ef‰9M tAVW‹E ƒÃTÁ} ƒà;Át'@f<ƒ€4ƒr }ô¥¥¥ÿMöuôVÿuèrýÿÿYY3É9M uÃ_^[ÉÃU‹ìQQSVW3ÿ9}tUj=ÿuè-‹ðY;÷Y‰uøt@9ut;¡h#3Û8^”Ã;l#u Pè›Y£h#;ÇuT9} t9=p#tè1öÿÿ…Àt>ƒÈÿ_^[ÉÃ;ß… jèRÿÿ;ÇY£h#t߉89=p#ujè7ÿÿ;ÇY£p#tĉ8+u‹=h#‰}üVÿuèЋðY…öY|Cƒ?t>…Ût2ÿ4·<·èÿÿYƒ?t ‹GF‰ƒÇëð‹ÆÁàPÿuüèŠÿÿY…ÀYt<ë5‹E‰·ë2…Ûuz…ö}÷ÞµPWèbÿÿY…ÀY„@ÿÿÿ‹M‰ °ƒd°£h#ƒ} tFÿuè_Jÿÿ@@Pèƒÿÿ‹ðY…öYt.ÿuVè†{ÿÿ‹ÆY+EYEø€ @÷ÛÛ÷Ó#ØSVÿ´VèeÿÿY3ÀéàþÿÿV‹5h#W‹…Àt-‹|$WPÿt$è®ôÿÿƒÄ …Àu ‹Š8<=t„Àt‹FƒÆ…Àu׋Æ+h#Áø÷Ø_^ËÆ+h#ÁøëðW‹|$3É…ÿu3À_Ã?Gt ‹AƒÀ…ÒuöSUVPè½ÿÿ‹ðY…ö‹îuj èCÿÿY‹‹ß…ÀtPƒÃ諉‹YƒÆëéƒ&‹Å^][_ÃU‹ìƒ= 'SVuÿu ÿuè‚ ÿÿYYëvjè4Uÿÿ‹uYf¶f…ÛtJ¶Ãö€!(tŠFF„Àt·Ë¶ÀÁá È9M të·Ã9E tFëÆjèPUÿÿY3Àë%jèDUÿÿYFÿëjè7Uÿÿ‹E Y·Ë+Á÷ØÀ÷Ð#Æ^[]ÃV‹t$…ötVèµHÿÿ@PèÚÿÿY…ÀYt VPèáyÿÿYY^Ã3À^ÃÌÌÌÌÌÌÌÌÌÿ%Ä‹D$‹@ÃÌÌ‹Mðé:üÿ¸pmé;ÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÔéH1üÿ¸˜méÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌ̸ÀméÿÿÌÌÌÌÌÌMäé1üÿ¸néëÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹E Pèw>þÿYËE Pèl>þÿYËE Pèa>þÿYø@né²ÿÿÌÌÌÌÌ‹Mðéx9üÿ‹MðƒÁTé½0üÿ‹MðƒÁdé²0üÿ¸xné…ÿÿÌÌÌÌÌÌÌÌ‹…Hÿÿÿƒà…À„MÀé'KüÿÃlÿÿÿé[KüÿdÿÿÿéIüÿ‹HÿÿÿƒéTéBKüÿLÿÿÿéW0üÿLÿÿÿéL0üÿ‹HÿÿÿƒéTéKüÿ‹Dÿÿÿé#Lüÿ‹DÿÿÿƒÁLéUNüÿ¸°néøÿÿÌÌÌÌÌÌÌÌÌÌÌMÔé0üÿ¸oéÛÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌ̸@oéÃÿÿÌÌÌÌÌÌ‹MìƒéTéµJüÿ‹Mðé½Küÿ‹MðƒÁLéòMüÿ¸˜oé•ÿÿÌÌÌÌÌÌÌÌ‹Mðé˜Küÿ‹MðƒÁLéÍMüÿ¸ÐoépÿÿÌÌÌ‹Eìƒà…À„ ‹MðƒÁéJüÿøpéIÿÿÌÌÌÌÌÌÌÌÌÌÌÌMäéˆMüÿMèé$Eþÿ‹EPèÇ<þÿYøˆpéÿÿÌÌÌÌÌÌÌÌÌÌÌ‹M é8ýÿMœéôDþÿM´é-Nþÿ¸øpéëÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹MðƒÁ4é%Müÿ‹MðéÝJüÿ‹MðƒÁLéMüÿ¸0qéµÿÿÌÌÌÌÌÌÌÌMÜéøLüÿMØé”Dþÿ‹EàPè7<þÿYÃMàéÝLüÿ¸hqé€ÿÿÌÌÌMéÈLüÿMðédDþÿ‹Eìƒà…À„‹MéªLüÿø¨qéLÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹M°éhýÿ¸àqé+ÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðé Dþÿ¸ré ÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðéìCþÿ¸0réëÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðéÌCþÿ¸XréËÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðé¬Cþÿ¸€ré«ÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Mðéh6üÿ¸¨ré‹ÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÔé˜-üÿ¸ÐrékÿÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹…èþÿÿƒà…À„ HÿÿÿéHüÿÃôþÿÿé8HüÿìþÿÿéíEüÿ¸øré ÿÿÌÌ̸0séÿÿÌÌÌÌÌÌ‹MðƒÁéŽüÿ¸ˆséøÿÿÌÌÌÌÌÌÌÌÌÌÌìýÿÿé¸üÿ¸°séØÿÿÌÌÌÌÌÌÌÌÌÌÌTðÿÿéå,üÿTðÿÿéÊüÿ<ðÿÿéÏ,üÿ<ðÿÿéÄ,üÿ<ðÿÿé¹,üÿòÿÿé~²üÿ<ðÿÿé£,üÿ<ðÿÿé˜,üÿñÿÿé,üÿñÿÿérüÿ<ðÿÿéw,üÿ<ðÿÿél,üÿ<ðÿÿéa,üÿ<ðÿÿéV,üÿ<ðÿÿéK,üÿ<ðÿÿé@,üÿ<ðÿÿé5,üÿ<ðÿÿé*,üÿ<ðÿÿé,üÿ<ðÿÿé,üÿ¸téçÿþÿÌÌÌÌÌÌÌÌÌÌMÔéȱüÿ¸ÐtéËÿþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌhõÿÿéÕ+üÿ|õÿÿéÊ+üÿ|õÿÿ鯌üÿTõÿÿé´+üÿTõÿÿé©+üÿ¸øté|ÿþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌMà阷üÿ¸@ué[ÿþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Eìƒà…À„ ‹MðƒÁé÷Eüÿø ué)ÿþÿÌÌÌÌÌÌÌÌÌÌÌÌHÿÿÿé5+üÿHÿÿÿéŒüÿHÿÿÿé+üÿHÿÿÿé+üÿHÿÿÿé +üÿHÿÿÿéþ*üÿ¸ÈuéÑþþÿÌÌÌÌÿÿÿéå*üÿÿÿÿézýÿ$ÿÿÿé? ýÿÿÿÿé¤Ìüÿÿÿÿé¹*üÿÿÿÿéNýÿ$ÿÿÿé ýÿ¸PvévþþÿÌÌÌÌÌÌÌÌÌ‹Mìéˆ*üÿ‹MìƒÁéýÿ¸àvéPþþÿÌÌÌ$ÿÿÿéeýÿ0ÿÿÿéZ*üÿtÿÿÿéO*üÿdÿÿÿéD*üÿtÿÿÿé9*üÿM”é1*üÿM”ééÝüÿM”é!*üÿM„é*üÿÿÿÿé*üÿÿÿÿé*üÿMäéû)üÿ0ÿÿÿéð)üÿ0ÿÿÿéå)üÿM´éÝ)üÿMÈéÕ)üÿDÿÿÿéÊ)üÿ0ÿÿÿé¿)üÿÿÿÿé´)üÿDÿÿÿé©)üÿDÿÿÿé^ÝüÿDÿÿÿé“)üÿ¸wéfýþÿÌÌÌÌÌÌÌÌÌMÜéÈxüÿMÈép)üÿ¸àwéCýþÿÌÌÌÌÌÌÄöÿÿ饉üÿäõÿÿéJ)üÿüõÿÿé?)üÿüõÿÿé$Šüÿ´õÿÿé))üÿÄõÿÿé)üÿÔõÿÿé)üÿ¤öÿÿé)üÿ´öÿÿéý(üÿäõÿÿéò(üÿ¸HxéÅüþÿÌÌÌÌÌÌÌÌûþÿéÕ(üÿhûþÿéÊ(üÿ ûþÿé®üÿhûþÿé4ìüÿ|ûþÿé©(üÿ|ûþÿéž(üÿ|ûþÿé“(üÿ¸¸xéfüþÿÌÌÌÌÌÌÌÌÌøúÿÿéňüÿÔùÿÿéj(üÿÄùÿÿé_(üÿúÿÿéT(üÿ¸ùÿÿéIýÿ¨ùÿÿé>(üÿ˜ùÿÿé3(üÿèúÿÿé((üÿ4úÿÿé(üÿ4úÿÿé‰üÿÔùÿÿé(üÿ¨ùÿÿéü'üÿèúÿÿéñ'üÿ˜ùÿÿéæ'üÿÔùÿÿéÛ'üÿøùÿÿéÐ'üÿ¸yé£ûþÿÌÌÌÌÌÌûþÿéµ'üÿlûþÿéª'üÿ ûþÿéo­üÿ€ûþÿéëüÿlûþÿé‰'üÿlûþÿé~'üÿlûþÿés'üÿlûþÿéh'üÿlûþÿé]'üÿ¸°yé0ûþÿÌÌÌ,ÿÿÿ镇üÿpþÿÿé:'üÿ„þÿÿé/'üÿ„þÿÿéˆüÿ¸zé÷úþÿÌÌÌÌÌÌÌÌÌÌMÔé³üÿMàé0EüÿMäéÌ<þÿ‹EÜPèo4þÿYøXzéÀúþÿÌÌÌMÔéè²üÿMàéEüÿMäéœ<þÿ‹EÜPè?4þÿYøÐzéúþÿÌÌÌMÔ鸲üÿMàéÐDüÿMäél<þÿ‹EÜPè4þÿYøH{é`úþÿÌÌÌ‹Mðéx&üÿ¸À{éKúþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMØéh²üÿ¸è{é+úþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMäé8&üÿ¸H|é úþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹EP‹MðQè3 ýÿƒÄËMðé&üÿ¸p|éÚùþÿÌÌÌÌÌÌÌÌÌÌÌÌÌ‹EP‹MðQè ýÿƒÄø |é²ùþÿÌÌÌÌÌ‹M°éØýÿ¸È|é›ùþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÐéØCüÿMÌét;þÿ‹EÔPè3þÿYÃMäé%üÿMÔé…%üÿMÔé}%üÿ¸ð|éPùþÿÌÌÌMàé˜CüÿMØé4;þÿ‹EPè×2þÿYø@}é(ùþÿÌÌÌÌÌÌÌÌÌÌÌMÌéhCüÿMÔé;þÿ‹EØPè§2þÿYÃMäé%üÿ¸x}éðøþÿÌÌÌ‹M°éýÿM´éDþÿ¸¸}éÓøþÿÌÌÌÌÌÌMðé¼:þÿ¸è}黸þÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðéœ:þÿ¸~雸þÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðé|:þÿ¸8~é{øþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMðé\:þÿ¸`~é[øþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÄéh$üÿMÔé`$üÿMäéX$üÿ¸ˆ~é+øþÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÔé8$üÿMäé0$üÿ¸À~éøþÿÌÌÌÌÌÌMäé$üÿ¸ð~éë÷þÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMÄéø#üÿM´éð#üÿMÔéè#üÿMäéà#üÿ¸é³÷þÿÌÌÌÌÌÌMäéè6ýÿMÔéà6ýÿ¸Xé“÷þÿÌÌÌÌÌÌMäéÈ6ýÿ¸ˆé{÷þÿÌÌÌÌÌÌÌÌÌÌÌÌÌÌMèéˆýÿ‹Eäƒà…À„‹Mérýÿø°éD÷þÿÌÌÌÌÌÌÌÌþÿÿéU#üÿ”þÿÿéJ#üÿ¨þÿÿé?#üÿ¸þÿÿé4#üÿ¸àé÷þÿÌÌÌÌÌÌÌÌÌ̸ €éóöþÿÌÌMàé #üÿ¸Ø€éßöþÿÌÌ‹Mìé© ÿÿ¸éËöþÿÌÌ‹Mðé• ÿÿ¸Hé·öþÿÌÌ‹Mðé ÿÿ¸pé£öþÿÌÌ‹Mðém ÿÿ¸˜éöþÿÌÌMàé¨"üÿ¸‚é{öþÿÌÌ‹MðéE ÿÿ¸(‚égöþÿÌÌMäé€"üÿ¸°‚éSöþÿÌÌ‹Mìé ÿÿ¸Ø‚é?öþÿÌÌ‹Mðé ÿÿ¸ ƒé+öþÿÌÌ‹Mðéõÿÿ¸HƒéöþÿÌÌ‹Mðéáÿÿ¸pƒéöþÿÌÌ‹MðƒÁ éI@üÿ¸˜ƒéìõþÿÌÌÌMðéØ7þÿÿuìè|/þÿYøÀƒéÍõþÿMðé¼7þÿ¸ðƒé»õþÿÌÌ‹Mðéäýÿ¸„é§õþÿÌÌ‹MìéÐýÿ‹MìƒÁéµ!üÿMðé7þÿ¸@„é€õþÿÌÌÌÿuðè/þÿYøx„éiõþÿMìéX7þÿÿuèü.þÿYËMé‚ýÿÿuèê.þÿYËMépýÿMÜéX!üÿ¸ „é+õþÿÌÌ‹MìéTýÿ‹MìƒÁé9!üÿMðé7þÿM¬é>@þÿMéõ6þÿ¸ð„éôôþÿÌÌÌMðéà6þÿ¸8…éßôþÿÌÌ‹Mìéø üÿ‹MìƒÁéí üÿ‹MìƒÁ éâ üÿ‹MìƒÁ0é× üÿ¸`…éªôþÿÌ‹MðéÄ üÿ‹MðƒÁé¹ üÿ‹MðƒÁ é® üÿ¸ …éôþÿMéÌ>üÿMØé” üÿMÈéŒ üÿMÈé„ üÿMìé¬>üÿ¸Ø…éOôþÿÌÌMé˜>üÿ¸ †é;ôþÿÌÌMé„>üÿ¸H†é'ôþÿÌÌMép>üÿ¸p†éôþÿÌÌMé\>üÿ¸˜†éÿóþÿÌÌMéH>üÿ¸À†éëóþÿÌÌMé4>üÿ¸è†é×óþÿÌÌMé >üÿ¸‡éÃóþÿÌÌM é >üÿ¸8‡é¯óþÿÌÌMÈéÈüÿMØéÀüÿ¸`‡é“óþÿÌÌMðé€5þÿÿuè$-þÿYø‡éuóþÿMðéd5þÿÿuè-þÿYËMéŽýÿ¸À‡éQóþÿMðé@5þÿÿuèä,þÿYËMéjýÿ¸ø‡é-óþÿMðé5þÿÿuèÀ,þÿYø0ˆéóþÿMðé5þÿÿuè¤,þÿYø`ˆéõòþÿMØéüÿ¸ˆéãòþÿÌÌMðéÐ4þÿ¸¸ˆéÏòþÿÌÌMðé¼4þÿ¸àˆé»òþÿÌÌ‹Eðƒà…À„ ‹MìƒÁ\éc9üÿËMìƒÁ é@`þÿ‹MƒÁ4éÜ<üÿ‹Mé”:üÿ¸‰éwòþÿÌÌ‹MðƒéPé`þÿ¸H‰é`òþÿÌÌÌ‹Mðéh:üÿ¸p‰éKòþÿÌÌ‹Eðƒà…À„ ‹MìƒÁ éó8üÿËMìƒÁé'9üÿ¸˜‰éòþÿÌMèé4þÿÿuäè¬+þÿYËMäé2ýÿÿuäèš+þÿYËMäéjÎþÿÿuäèˆ+þÿYÃÿuäè~+þÿYÃÿu èt+þÿYËM éDÎþÿÿu èb+þÿYËM é2Îþÿ‹M ƒÁéfþÿ¸Šé ñþÿÌÌÌMÜé¸üÿ¸ˆŠé‹ñþÿÌÌMéÔ;üÿMØéžžþÿMÈé–žþÿMÈ鎞þÿMìé´;üÿ¸°ŠéWñþÿÌÌMé ;üÿ¸øŠéCñþÿÌÌMéŒ;üÿ¸ ‹é/ñþÿÌÌMéx;üÿ¸H‹éñþÿÌÌMéd;üÿ¸p‹éñþÿÌÌMéP;üÿ¸˜‹éóðþÿÌÌMé<;üÿ¸À‹éßðþÿÌÌMé(;üÿ¸è‹éËðþÿÌÌM é;üÿ¸Œé·ðþÿÌÌMé;üÿMÔéÊþÿMäéÂþÿMäéºþÿ¸8Œé‹ðþÿÌÌMàé¦þÿ‹Eðƒà…À„‹MéþÿøxŒé`ðþÿÌÌÌMÜézþÿMÌépüÿ¸¨ŒéCðþÿÌÌMäé^þÿ¸ØŒé/ðþÿÌÌMØéJþÿ¸éðþÿÌÌMìéd:üÿMÐé.þÿ¸(éÿïþÿÌÌMÈéüÿMØéüÿ¸XéãïþÿÌÌMìé,:üÿ¸ˆéÏïþÿÌÌMäé:üÿMÌéàüÿ¸°é³ïþÿÌÌMŒéü9üÿMéô9üÿM˜éì9üÿMÄé¶œþÿM°é®œþÿlÿÿÿé¡üÿMàé™üÿ<ÿÿÿéœþÿÿÿÿé…œþÿ\ÿÿÿézœþÿ,ÿÿÿéoœþÿLÿÿÿédœþÿ ÿÿÿéYœþÿM éQœþÿ‹Eˆƒà…À„‹Mé;œþÿøàé ïþÿÌÌM$é&œþÿMÐéL9üÿMÐéD9üÿdÿÿÿé üÿMÀéœþÿMàéû›þÿMàéó›þÿtÿÿÿéè›þÿMàéà›þÿ¸xŽé±îþÿ‹Mðé&Ëþÿ¸àŽéŸîþÿÌ̸é“îþÿÌÌMðé€0þÿÿuè$(þÿYø`éuîþÿMðéd0þÿÿuè(þÿYËMéŽ ýÿ¸éQîþÿMðé@0þÿÿuèä'þÿYËMéj ýÿ¸Èé-îþÿMðé0þÿÿuèÀ'þÿYøéîþÿMðé0þÿÿuè¤'þÿYø0éõíþÿMðéä/þÿÿuèˆ'þÿYø`éÙíþÿMðéÈ/þÿÿuèl'þÿYËMéò ýÿ¸éµíþÿMðé¤/þÿÿuèH'þÿYËMéÎ ýÿ¸Èé‘íþÿMðé€/þÿÿuè$'þÿYø‘éuíþÿMðéd/þÿÿuè'þÿYø0‘éYíþÿMðéH/þÿÿuèì&þÿYø`‘é=íþÿMðé,/þÿÿuèÐ&þÿYø‘é!íþÿMðé/þÿÿuè´&þÿYøÀ‘éíþÿ‹Mðé0 ýÿ¸ð‘éóìþÿÌÌMØé üÿ¸’éßìþÿÌÌ‹Mðé ýÿ¸@’éËìþÿÌÌ‹Mðé>Éþÿ‹MðƒÁé%aþÿ¸h’é¬ìþÿÌÌÌ‹MðéÔýÿM°éÑ7þÿ¸˜’éìþÿÌÌ‹Mðé¸ýÿ¸È’é{ìþÿÌÌ‹MðéîÈþÿM°é¡7þÿ¸ð’é_ìþÿÌÌ‹MðéÒÈþÿM°é…7þÿ¸ “éCìþÿÌÌMðé0.þÿ¸P“é/ìþÿÌÌMðé.þÿ¸x“éìþÿÌÌMðé.þÿ¸ “éìþÿÌÌMðéô-þÿ¸È“éóëþÿÌÌMðéà-þÿ¸ð“éßëþÿÌÌMðéÌ-þÿ¸”éËëþÿÌÌMðé¸-þÿ¸@”é·ëþÿÌÌMðé¤-þÿ¸h”é£ëþÿÌÌMðé-þÿ¸”éëþÿÌÌMðé|-þÿ¸¸”é{ëþÿÌÌMðéh-þÿ¸à”égëþÿÌÌMðéT-þÿ¸•éSëþÿÌÌMðé@-þÿ¸0•é?ëþÿÌÌ‹Mðé²ÇþÿM°ée6þÿ¸X•é#ëþÿÌÌMðé-þÿ¸ˆ•éëþÿÌÌMðéü,þÿ¸°•éûêþÿÌÌMðéè,þÿ¸Ø•éçêþÿÌÌMðéÔ,þÿ¸–éÓêþÿÌÌMðéÀ,þÿ¸(–é¿êþÿÌÌMðé¬,þÿ¸P–é«êþÿÌÌMðé˜,þÿ¸x–é—êþÿÌÌMðé„,þÿ¸ –éƒêþÿÌÌMðép,þÿ¸È–éoêþÿÌÌMðé\,þÿ¸ð–é[êþÿÌÌMðéH,þÿ¸—éGêþÿÌÌMðé4,þÿ¸@—é3êþÿÌÌMðé ,þÿ¸h—éêþÿÌÌMðé ,þÿÿuìè°#þÿYËMì逯þÿÿuìèž#þÿYÃÿuìè”#þÿYÃÿu èŠ#þÿYËM éZÆþÿÿuèx#þÿYËMéHÆþÿ‹MƒÁé/^þÿ¸—é¶éþÿÌMàéÐüÿ‹Eðƒà…À„‹Méºüÿø˜éŒéþÿÌÌÌMÜé¤üÿMÌéœüÿ¸0˜éoéþÿÌÌMäéˆüÿ¸`˜é[éþÿÌÌMØétüÿ¸ˆ˜éGéþÿÌÌMðé3üÿMÔéXüÿ¸°˜é+éþÿÌÌMÜéDüÿ¸à˜ééþÿÌÌM¸é`3üÿM¸éX3üÿMéP3üÿMÀéüÿM”éüÿlÿÿÿéüÿMàéýüÿ<ÿÿÿéòüÿÿÿÿéçüÿ\ÿÿÿéÜüÿ,ÿÿÿéÑüÿLÿÿÿéÆüÿ ÿÿÿé»üÿM¤é³üÿ¸™é†èþÿÌM$é üÿMØéÈ2üÿMØéÀ2üÿ\ÿÿÿé…üÿM¼é}üÿMàéuüÿMàémüÿpÿÿÿébüÿMàéZüÿ¸˜™é-èþÿ‹Mðé¢Äþÿ¸šéèþÿÌÌMðé*þÿÿuè¬!þÿYø(šéýçþÿMðéì)þÿÿuè!þÿYøXšéáçþÿMðéÐ)þÿÿuèt!þÿYËMéúýÿ¸ˆšé½çþÿMðé¬)þÿÿuèP!þÿYËMéÖýÿ¸Àšé™çþÿMðéˆ)þÿÿuè,!þÿYøøšé}çþÿMðél)þÿÿuè!þÿYø(›éaçþÿMðéP)þÿÿuèô þÿYøX›éEçþÿMðé4)þÿÿuèØ þÿYøˆ›é)çþÿ‹MðéTýÿ¸¸›éçþÿÌÌ‹MðéŠÃþÿM°é=2þÿ¸à›éûæþÿÌÌ‹MðénÃþÿM°é!2þÿ¸œéßæþÿÌÌ‹MðéRÃþÿ‹MðƒÁé9[þÿ¸@œéÀæþÿÌÌÌMðé¬(þÿ¸pœ髿þÿÌÌMðé˜(þÿ¸˜œé—æþÿÌÌMðé„(þÿ¸ÀœéƒæþÿÌÌMðép(þÿ¸èœéoæþÿÌÌMðé\(þÿ¸é[æþÿÌÌMðéH(þÿ¸8éGæþÿÌÌMðé4(þÿ¸`é3æþÿÌÌMðé (þÿ¸ˆéæþÿÌÌ‹Mðé’ÂþÿM°éE1þÿ¸°éæþÿÌÌMðéð'þÿ¸àéïåþÿÌÌMðéÜ'þÿ¸žéÛåþÿÌÌMðéÈ'þÿ¸0žéÇåþÿÌÌMðé´'þÿ¸Xžé³åþÿÌÌMðé 'þÿ¸€žéŸåþÿÌÌMðéŒ'þÿ¸¨žé‹åþÿÌÌMðéx'þÿ¸ÐžéwåþÿÌÌMðéd'þÿ¸øžécåþÿh¡p¡„¡’¡ ¡¬¡º¡ΡÞ¡ê¡ö¡¢¢¢,¢<¢J¢Z¢j¢z¢¢¬¢Ä¢Ü¢ô¢ £Pª@ª0ª ª ªô©â©ЩÀ©¦©Ž©t©Z©H©0©©©©†¤œ¤´¤̤â¤ø¤¥¥"¥4¥@¥L¥Z¥j¥z¥ˆ¥–¥¢¥º¥Ô¥ä¥ö¥ ¦"¦0¦J¦b¦|¦Œ¦œ¦°¦À¦Ò¦à¦î¦§§&§6§B§T§f§r§|§Œ§š§¦§¸§ȧاê§ú§ ¨ ¨>¨R¨l¨|¨Ѝ˜¨¦¨¶¨ƨبê¨bªd¤V¤<¤0¤ ¤¤þ£ì£Ú£È£¸£¨£’£„£t£f£R£>£*£Ðð@0@0ðÓæÓæÓæ@ÓæÓæÀðÿÿÿÿ€"P#p##°#Ð#à#Àð À &P,p,,°,0I%Ð,ð=€4`6Ð#808 0À0 : :<@<°1Ð<\àSU]@`[ ] S€[ðÀsÿÿÿÿY@‹`Psp0 À `  €@ àX ;x8 Ðh( °ˆH ðTã+t4 È d$ ¨„D è\ ˜S|< Øl, ¸ ŒL øR£#r2 Ä b" ¤‚B äZ ”Cz: Ôj* ´ ŠJ ôV@3v6 Ìf& ¬†F ì ^ œc~> Ün. ¼ŽN ü`Qƒq1  a! ¢A âY ’;y9 Òi) ² ‰I òU+u5 Ê e% ª…E ê] šS}= Úm- º M úSÃ#s3 Æ c# ¦ƒC æ[ –C{; Ök+ ¶ ‹K öW@3w7 Îg' ®‡G î _ žc? Þo/ ¾O þ`Psp0 Á ` ¡€@ áX ‘;x8 Ñh( ±ˆH ñTã+t4 É d$ ©„D é\ ™S|< Ùl, ¹ ŒL ùR£#r2 Å b" ¥‚B åZ •Cz: Õj* µ ŠJ õV@3v6 Íf& ­†F í ^ c~> Ýn. ½ŽN ý`Qƒq1 à a! £A ãY “;y9 Ói) ³ ‰I óU+u5 Ë e% «…E ë] ›S}= Ûm- » M ûSÃ#s3 Ç c# §ƒC ç[ —C{; ×k+ · ‹K ÷W@3w7 Ïg' ¯‡G ï _ Ÿc? ßo/ ¿O ÿA@!  @a`10  Á@      deflate 1.2.2 Copyright 1995-2004 Jean-loup Gailly ÀêÀíÀí Àípó pó€€pó €pó €pó pó1.2.2–0w,aîºQ ™Ämôjp5¥c飕dž2ˆÛ¤¸ÜyéÕàˆÙÒ—+L¶ ½|±~-¸ç‘¿d·ò °jHq¹óÞA¾„}ÔÚëäÝmQµÔôÇ…ÓƒV˜lÀ¨kdzùbýìÉeŠO\Ùlcc=úõ È n;^iLäA`Õrqg¢Ñäjm ¨Zjz Ïäÿ “'® ±ž}D“ðÒ£‡hòþÂi]Wb÷Ëge€q6lçknvÔþà+Ó‰ZzÚÌJÝgoß¹ùùホC¾·Õް`è£ÖÖ~“Ñ¡ÄÂØ8RòßOñg»ÑgW¼¦Ýµ?K6²HÚ+ ØL ¯öJ6`zAÃï`ßUßg¨ïŽn1y¾iFŒ³a˃f¼ Òo%6âhR•w ÌG »¹"/&U¾;ºÅ( ½²’Z´+j³\§ÿ×Â1Ïе‹žÙ,®Þ[°Âd›&òc윣ju “m© œ?6ë…grW‚J¿•z¸â®+±{8¶ ›ŽÒ’ ¾Õå·ïÜ|!ßÛ ÔÒÓ†BâÔñø³ÝhnƒÚ;[&¹öáw°owG·æZˆpjÿÊ;f\ ÿžei®bøÓÿkaEÏlxâ  îÒ ×TƒN³9a&g§÷`ÐMGiIÛwn>JjÑ®ÜZÖÙf ß@ð;Ø7S®¼©Åž»ÞϲGéÿµ0ò½½ŠÂºÊ0“³S¦£´$6к“×Í)WÞT¿gÙ#.zf³¸JaÄh]”+o*7¾ ´¡Ž ÃßZï-A1‚b62ÃS-+ÅldEôw}†§ZVÇ–AOŠÙÈI»ÂÑŠèïúËÙôã Oµ¬M~®µŽ-ƒžÏ˜‡QÂJ#ÙSÓpôx’AïaU×®.æµ7×µ˜–„ƒY˜‚©›Ûú-°šË6©]]wællÿß?AÔžZÍ¢$„•㟌 F²§aw©¾¦áèñçÐóè$ƒÞÃe²ÅÚª®]]ëŸFD(Ìkoiýpv®k19ïZ* ,  m8ó6Fß²]ÆqTpí0ekô÷ó*»¶Â1¢u‘‰4 û¼Ÿº„yÞ©%8ï²<ÿyós¾Hèj}ÅA<*ÞXOyðD~bé‡-OÂÆTÛŠ”@»ƒè#¦ÂÙ8¿ Å 8Lô»!§– Ζ Ì\H1×E‹búnÊSáwT]»ºl £Ö?ˆ—–‘P˜×Þ©ÌÇÒúáì“Ëúõ\×bræykÞµT@Ÿ„OYX#Úp8$›A#=§kýeæZæ|% ËWd8ÐN£®‘⟊!̧3`ý¼*¯á$­îÐ?´-ƒŸl² †«$HÉêSÐ)F~ûhweâöy?/·H$6t 5*ò¼SK³HRpÞey1ï~`þóæç¿Âýþ|‘ÐÕ= ËÌú6Šƒ»‘šxT¼±9e§¨K˜ƒ; ©˜"Éúµ ˆË®O]ï_lôFÍ?ÙmŒÂtCZó#AêÁplÁ€AwØG×6—æ-ŽÅµ¥„„¼ŠAq[»Zh˜èwCÙÙlZO-_~6 œ-'Ý>˜¹S1ƒ b®‹ÑSµ’ÅôÝWôïÄ”§ÂïÕ–Ùöé¼®¨·kÞ1œ*ï*…íykʬHpÓo]ø.*Fáá6Þf ÅcTèT"eóMåó²¤Â©g‘„0& Ÿ)¸®ÅäùŸÞý:ÌóÖ{ýèϼk©€ýZ²™> Ÿ²8„«°$,ñ52F*sw1´ápHõÐkQ6ƒFzw²]cN×úËæáÒ̵Ìù„×àJ–¯ #¶Èp ‰A»„F]#l8Ä?1…(B˜Og©T~ÀúyUËbLÅ8^ô#˜§³Ü–ªTåZ1Oü™bbרSyÎOáIV~úP•-×{ÔÌbŠ-R»–4‘è»ÐÙ ìó~^­ÂeGn‘Hl/ Suè6:© #jT$+e?äy§–¥H¼f‘¤'*нà¼Ëò¡ÐëbÞýÀ#ïæÙ½á¼üЧ ?ƒŠ&~²‘?¹$ÐpøËi;FæBzwý[µkeÜôZ~Å7 Sîv8H÷±® ¸ðŸ¡3Ì?Šrý$“7jÂnÔ„Y¾Fܨ ëÂ˲|…O¸Q;ÑÖ…— áïU dù S“Ø -ž =G\ p£&GÉäw¢)`¬ /›aíÂß«õµiÈò5ÿ˜÷¦&±‘LsZ<#0þzޏMäzàFM8×,9Ž’É;¹ø :<îD? „†>R:À(ôq-Ãv³,šÈõ.­¢7/Àšp÷çXq®Ys™3Ür%“w+OQvrñtE›Õux܉~O¶K }!bÏ|¤t€y“BxÊ zýÊÆ{°.¼l‡D~mÞú8oéúnl†µk[ìwjR1h58ói¯b?mcf«+aQÁé`Ôצeã½ddº"fiàg Ë×H¡INSKyu‘JücÞOË N’·ZL¥Ý˜M˜šÄF¯ðGöN@EÁ$‚DD2ÍAsX@*æIBŒ‹CPhñTg3U>¼uW Ö·VŒÀøS»ª:Râ|PÕ~¾Qè9âZßS [†ífY±‡¤X4‘ë]û)\ZEo^m/­_€5á·q÷àîϱâÙ¥sã\³<ækÙþç2g¸å zä8J&ï äîVž¢ìaô`íäâ/èÓˆíéŠ6«ë½\iêð¸ýÇÒÑüžl—þ©Uÿ,úzØûBÄžùu®\øHéóƒÂò&=„ðWFñ”A ô£+Ëõú•÷ÍÿOö`]xÙW7ºØ‰üÚ9ã>Û¼õqÞ‹Ÿ³ßÒ!õÝåK7ÜØ k×ïf©Ö¶ØïÔ²-Õ¤bÐ3ΠÑjpæÓ]$Òþ^Å'”œÄ~*ÚÆI@ÇÌVWÂû<•â‚ÓÁ•èÀ¨¯MËŸÅÊÆ{ÉÈñ ÉtDÌCm†ÍÓÀÏ-¹Î@–¯‘wüm.B+’(铜>¦–«Td—òê"•Å€à”øÇ¼ŸÏ­~ž–8œ¡yú$oµ˜w™J»1›}Ñóš05‰_KŒ^á Ži‹Ï쀊Û÷B‹‚I‰µ#ƈˆdšƒ¿X‚æ°€ÑÚÜTÌ“„c¦Q…:‡ rÕ† Ðâ©—º ¨Îfªùn¤«|xë®K)¯¬o­%Æ­¬ñ§/ë3¦vUu¤A?·¥Ä)ø óC:¡ªý|£—¾¢Ðsĵç´¾§@¶‰Í‚· ÛͲ;±³bI±Ue‹°h"×»_HºöS¸1œ‘¹´ŠÞ¼ƒà½Ú^Z¿í4˜¾eg¼¸‹È ªî¯µW—b2ðÞ7Ü_k%¹8×ï(´ÅŠO}dà½o‡׸¿ÖJÝØjò3wßàVcXŸWPú0¥èŸúqø¬BÈÀ{ß­§ÇgCru&oÎÍp­•-û·¤?žÐ‡'èÏBs¢¬ ưÉGz>¯2 [ÈŽµg; Ї²i8P/ _ì—âðY…‡—å=ч†e´à:ÝZOÏ?(3w†äêãwXR Øí@h¿Qø¡ø+ðÄŸ—H*0"ZOWžâöoI“õÇ}§@ÕÀümNП5+·#Å–Ÿ *'Gýº| A’ô÷èH¨=X›X?¨#¶1Ó÷¡‰jÏv¨Ê¬á¾„`ÃÒp ^·æY¸©ô<ßL…çÂÑà€~i/Ë{kHwâ ËÇh±s)ÇaL ¸Ùõ˜oDÿÓü~Pfî7ÚVM'¹(@¶Æï°¤£ˆ °Û×g9‘xÒ+ôn“÷&;fšƒˆ?/‘íX“)T`D´1ø ߨMºÏñ¦ìß’þ‰¸.Fg›Tp'ì»HðqÞ/LÉ0€ùÛUçEcœ ?kùǃÓh6ÁrŠyË7]ä®Pá\@ÿTN%˜èösˆ‹®ï7ø@‚'>¼$é!AxU™¯×à‹Ê°\3;¶Yí^ÑåU°~PGÕìÿl!;b F‡Úçé2È‚ŽŽpÔží(±ùQ_Vä‚:1X:ƒ §æn3Á† m¦:µ¤á@½Á†ü/)IJNõ¯óv"2–žŠx¾+˜Ù— KÉôx.®HÀÀýÒ¥fAj^–÷y9*O—–Ÿ]òñ#åkM`~×õŽÑbçë¶Þ_RŽ Â7éµzÙFh¼!¼Ðê1߈Vc0aùÖ"žj𽦽ØÁ¿6n´­S šNrÿ)Î¥†{·táÇÍÙ’¨¾¬*F8#v¥€ufÆØz`þ®Ïr›ÉsÊ"ñ¤WG–ï©9­ýÌ^EîMvc‰ñÎ&DÜèAødQy/ù4“AÚ±&S¿ÖšëéÆù³Œ¡E bðiL¡¾Q›<Û6'„5™’–Pþ..™¹T&üÞèžq]Œwá4Î.6©«IŠEæ? ƒ»v‘àãö\[ýYéI˜>Uñ!‚lDa>Ԫ΋ÆÏ©7~8AÖ]&Ãn³‰v|ÖîÊÄoÖY ±¡áäóy¨K×i˲w«\¡Â¹9Æ~€þ©œå™$ 6 6nQާf†ÂqÚ>,Þo,I¹Ó”ð •渱{I £.±H>ÒC-YnûÃöÛ馑gQ©°ÌzÎ t”a¹fñÞw0–îa,™ QºmÄpjôéc¥5žd•£Ûˆ2yܸ¤àÕé—ÒÙˆ ¶L+~±|½ç¸-¿‘·dj° òó¹qH„¾AÞÚÔ}mÝäëôÔµQƒÓ…Çl˜Vdk¨ÀýbùzŠeÉì\OclÙú=c õ;n ÈLi^Õ`Aä¢gqr<äÑKÔGÒ …ý¥ µk5µ¨úB²˜lÛ»ÉÖ¬¼ù@2ØlãEß\uÜÖ Ï«Ñ=Y&Ù0¬QÞ:È×Q€¿Ða!´ôµV³Ä#Ϻ•™¸½¥(¸ž_ˆÆ Ù²± é$/o|‡XhLÁa«¶f-=vÜAÛq˜Ò ¼ïÕ*q±…‰¶µŸ¿ä¥è¸Ô3xÉ¢ù4– ¨Žá˜j »m=-‘dl—æc\kkQôlab…e0ØòbNl•í¥{‚ôÁõÄWe°ÙÆ·éP‹¾¸êü¹ˆ|bÝßÚ-IŒÓ|óûÔLeM²aX:µQΣ¼tÔ»0âJߥA=ؕפÑÄmÓÖôûCiéj4nÙü­gˆFÚ`¸ÐD-s3åª L_Ý |ÉPq<'Aª¾ É †Whµ% o…³¹fÔ ÎaäŸ^Þù)Ùɘ°Ð˜"Çר´Y³=.´ ·½\;Àºl­í¸ƒ š¿³¶¶â t±ÒšêÕG9Òw¯Û&s܃ãc ”d;„ mj>zjZ¨äÏ “ ÿ ®'}ž±ð“D‡£ÒòhiÂþ÷bW]€egËl6qnkçþÔv‰Ó+àÚzZgÝJÌù¹ßo޾ïù·¾C`°ŽÕÖÖ£è¡Ñ“~8ØÂÄOßòRÑ»gñ¦¼Wg?µÝH²6KØ +Ú¯ L6JöAz`ß`ïègßU1nŽïFi¾yËa³Œ¼fƒ%oÒ Rhâ6Ì w•» G"¹U&/ź;¾²½ (+´Z’\³jÂ×ÿ§µÐÏ1,Ùž‹[Þ®›d°ìcò&uj£œm“ œ ©ë6?rg…W•¿J‚â¸z{±+® ¶8’ÒŽ›åÕ¾ |Üï· Ûß!†ÓÒÔñÔâBhݳøÚƒn¾Íö¹&[o°wá·GwˆZæÿjpf;Ê \ežÿøb®iakÿÓlÏE  âx× ÒîNƒT9³Â§g&aÐ`÷IiGM>nwÛ®ÑjJÙÖZÜ@ß f7Ø;𩼮SÞ»žÅG²Ï0µÿé½½òʺŠS³“0$´£¦ºÐ6ÍדTÞW)#Ùg¿³fz.ÄaJ¸]h*o+”´ ¾7Ã Ž¡Zß-ï1A26b‚+-SÃdlÅ}wôEVZ§†OA–ÇÈÙŠÑ»IúïèŠãôÙˬµO µ®~Mžƒ-އ˜ÏJÂQSÙ#xôpÓaïA’.®×U7µæ˜µ×ƒ„–‚˜Y›©°-úÛ©6Ëšæw]]ÿllÔA?ßÍZž•„$¢ŒŸã§²F ¾©wañèá¦èóÐçÃÞƒ$ÚŲe]]®ªDFŸëokÌ(vpýi91k® *Zï  ,8mßF6óÆ]²ípTqôke0»*ó÷¢1¶‰‘u 4Ÿ¼û„º%©Þy<²ï8sóyÿjèH¾AÅ}XÞ*<ðyOéb~DÂO-‡ÛTÆ”Š»@¦#胿8ÙÂ8 Å !»ôL –§–Î\Ì E×1Hnúb‹wáSʺ»]T£ lˆ?Ö‘–—ÞטPÇÌ©ìáúÒõúË“rb×\kyæ@TµÞYO„ŸX#$8pÚ=#A›eýk§|æZæWË %NÐ8d‘®£ŠŸâ3§Ì!*¼ý`­$᯴?Ð-† ²lÉH$«ÐSêû~F)âewh/?yö6$H· t*5KS¼òRH³yeÞp`~ï1çæóþþý¿ÕБ|ÌË =ƒŠ6úš‘»±¼Tx¨§e9;ƒ˜K"˜© µúɮˈ_ï]OFôlmÙ?ÍtÂŒóZCêA#ÁlpÁØwA€—6×GŽ-極ż„„qAŠhZ»[Cwè˜ZlÙÙ-O 6~_'-œ>ݹ˜ ƒ1S‹®b’µSÑÝôÅÄïôWï§”öÙ–Õ®¼é·¨œ1Þk…*ï*ÊkyíÓpH¬ø]oáF*.fÞ6áÅ TèTcMóe"²óå©Â¤0„‘g)Ÿ &äÅ®¸ýÞŸùÖóÌ:Ïèý{€©k¼™²Zý²Ÿ >«„8,$°5ñ*F21wsHpá´QkÐõzFƒ6c]²wËú×NÒáæù̵Ìàׄ¯–J¶#  pÈ„»A‰#]F8l1?Ä(…gO˜B~T©UyúÀLbË8Ř#ô^³§ª–ÜåTüO1Z×bb™ÎySØIáOPú~V{×-•bÌÔ-Š4–»R»è‘ ÙÐ^~óìGe­lH‘nuS /:6è# ©$Tj?e+–§yä¼H¥¤‘f½Š*'ò˼àëСÀýÞbÙæï#¼á½ §Ðü&Šƒ??‘²~pÐ$¹iËøBæF;[ýwzÜekµÅ~ZôîS 7÷H8v¸ ®±¡ŸðŠ?Ì3“$ýrÂj7„ÔnF¾Y ¨ÜËÂë|²O…Q¸Ñ; —…Ö Uïá ùdØ“S ž- \G=&£päÉG¢w`)/ ¬ía›«ßÂiµõ5òÈ÷˜ÿ±&¦sL‘†„ <À:R=Pe6^X7œ}o5ÚÃ64©1W¿„0•Õ³2Ókê3Ý$kå%©§'ï1þ&-[É#bML" '{ æ™"!$ó*x´(+ºÞ)ü`F(> q-qô,³vÃ.õÈš/7¢­pšÀqXç÷sY®rÜ3™w“%vQO+tñruÕ›E~‰ÜxK¶O} |Ïb!y€t¤xB“z Ê{ÆÊýl¼.°m~D‡o8úÞnúékµ†ljwì[h1Rió85b¯cm?a+«f`éÁQe¦×Ôdd½ãf"ºgàiH×Ë I¡KSNJ‘uyOÞcüN ËLZ·’M˜Ý¥FÄš˜Gð¯E@NöD‚$ÁAÍ2D@XsBIæ*C‹ŒTñhPU3gWu¼>V·Ö SøÀŒR:ª»P|âQ¾~ÕZâ9è[ SßYfí†X¤‡±]ë‘4\)û^oEZ_­/má5€à÷q·â±Ïîãs¥Ùæ<³\çþÙkå¸g2äz ï&J8îä 좞Ví`ôaè/âäéíˆÓë«6Šêi\½ý¸ðüÑÒÇþ—lžÿU©ú,ûØzùžÄBø\®uóéHòƒð„=&ñFWô A”õË+£÷•úöOÿÍÙx]`غ7WÚü‰Û>ã9Þqõ¼ß³Ÿ‹Ýõ!ÒÜ7Kå×k ØÖ©fïÔïØ¶Õ-²Ðb¤Ñ Î3ÓæpjÒ$]Å^þÄœ”'ÆÚ*~Ç@IÂWVÌÕ<ûÁÓ‚¢Àè•ËM¯¨ÊÅŸÈÉ{ÆÉ ñÌDt͆mCÏÀÓι-‘¯–@müw’+B.“é(–¦>œ—dT«•"êò”à€ÅŸ¼Çøž~­Ïœ8–úy¡˜µo$™w›1»JšóÑ}‰50ŒK_Ž á^Ï‹iŠ€ì‹B÷Û‰I‚ˆÆ#µƒšdˆ‚X¿€°æÜÚÑ„“ÌT…Q¦c‡:†Õr ©âР¨ º—ªfΫ¤nù®ëx|¯)K­o¬¬­Æ%§ñ¦3ë/¤uUv¥·?A ø)Ä¡:Có£|ýª¢¾—µÄsдç¶@§¾·‚͉²ÍÛ ³±;±Ib°‹eU»×"hºH_¸Sö¹‘œ1¼ÞŠ´½àƒ¿Z^Ú¾˜4í¸¼geª È‹µ¯îb—W7Þð2%k_Ü×8¹Å´(ï}OŠo½àdׇJÖ¿¸òjØÝàßw3XcVPWŸè¥0úúŸB¬øqß{ÀÈgǧ­urCÍÎo&•­p-?¤·û‡ОÏè'¢sB°Æ ¬zGÉ 2¯>ŽÈ[ ;gµ²‡Ð/P8i—ì_ …Yðâ=å—‡e†‡ÑÝ:à´ÏOZw3(?êä†RXwã@íØ øQ¿hð+ø¡H—ŸÄZ"0*âžWOIoöÇõ“Õ@§}müÀ5ŸÐN#·+Ÿ–Å'* ºýGA |ô’¨Hè÷›X=#¨?X1¶‰¡÷ÓvÏj¬Ê¨¾áÃ`„^ pÒæ·ô©¸YLß<ÑÂç…i~€à{Ë/ÃwHkË ¢s±hÇaÇ)Ù¸ LDo˜õüÓÿîfP~VÚ7¹'M¶@(¤°ïÆ ˆ£Û°9g×+Òx‘“nô;&÷ƒšf‘/?ˆ)“Xí´D`T ø1M¨ß¦ñϺþ’ßìF.¸‰T›gì'pqðH»ÉL/ÞÛù€0cEçUk? œÓƒÇùÁ6hyŠrä]7Ë\áP®NTÿ@öè˜%®‹ˆs7ï‚@ø¼>'!é$™UxA‹àׯ3\°ÊíY¶;UåÑ^GP~°ÿìÕb;!lÚ‡F È2éçpŽŽ‚(ížÔQù±‚äV_:X1:§ ƒ3næ †Áµ:¦m½@á¤ü†ÁI)/¯õNJ2"vóŠž–˜+¾x —ÙxôÉKÀH®.ÒýÀjAf¥÷–^O*9y]Ÿ–—å#ñòMkõ×~`çbÑŽ_Þ¶ë ŽRzµé7hFÙм!¼ˆß1ê0cV"Öùašjž½¦½¿ÁØ­´n6 SrNš¥Î)ÿ·{†Çát’ÙÍ*¬¾¨8F€¥v#ØÆfu`zrÏ®þÊsÉ›W¤ñ"ï–Gý­9©E^ÌvMîÎñ‰cÜD&døAèù/yQA“4S&±ÚëšÖ¿³ùÆé E¡Œðb¡Li<›Q¾„'6Û–’™5..þP&T¹™žèÞüŒ]q4áw©6.ΊI«?æE»ƒ ãà‘v[\öIéYýñU>˜l‚!Ô>aDƋΪ~7©ÏÖA8nÃ&]|v‰³ÄÊîÖYÖoᡱ óäK¨yËi׫w²¹Â¡\~Æ9œ©þ€$™å6 6 ŽQn†f§>ÚqÂ,oÞ,”Ó¹I ð±¸æ•£ I{±.CÒ>HûnY-éÛöÃQg‘¦Ì°©t Îzf¹a”Þñ ßß !ßøÞìÞØÞÈÞ°Þ ! inflate 1.2.2 Copyright 1995-2004 Mark Adler  #+3;CScsƒ£ÃãÇÆ !1AaÁ  0@`@@       ŒLÌ,¬lìœ\Ü<¼|ü‚BÂ"¢bâ’RÒ2²rò ŠJÊ*ªjêšZÚ:ºzú†FÆ&¦fæ–VÖ6¶vöŽNÎ.®nîž^Þ>¾~þAÁ!¡aá‘QÑ1±qñ ‰IÉ)©ié™YÙ9¹yù…EÅ%¥eå•UÕ5µuõ MÍ-­mí]Ý=½}ý  “ “ S S Ó Ó 3 3 ³ ³ s s ó ó  ‹ ‹ K K Ë Ë + + « « k k ë ë   › › [ [ Û Û ; ; » » { { û û   ‡ ‡ G G Ç Ç ' ' § § g g ç ç   — — W W × × 7 7 · · w w ÷ ÷    O O Ï Ï / / ¯ ¯ o o ï ï   Ÿ Ÿ _ _ ß ß ? ? ¿ ¿   ÿ ÿ @ `P0pH(hX8xD$dT4tƒCÃ#£cã         (08@P`p€ Àà  0@`€À€  0@`H^#e%é"string too long€^3"e%Ù!Ð^î#e%Ñ#invalid string position8_Ÿ&e%‚&ios::eofbit setios::failbit setios::badbit setp_Ì%e%r%¸_P? !"2* #3+a+bw+br+ba+w+r+abaP`±+è_ðCa€O O O°O°OÐObÀ0@P ð `€Àà`ÿÀþûÀa]²99^8´77X65Ä43paàD@D D D€D0123456789abcdefABCDEF`b`BWú@B˜b€<àc.N¶OQÐ#hQð/ 0À0³QñR 1Ð#°1(c°<Ð/Ð/Ð#à/ð/ 0À0`1€1 1Ð#°1xc`<d°ž°d OT\ødSU bad allocationHeLVWú/VÈi]‰]þrŒ]å[g\:]8fvš_ fîvþrsÆs÷t5usuøfÒv=lWr\r’rBlÈrMÀQÀ]À€gÒv=lWr\r’rBlÈrMÀQÀ]ÀÐg]qço h]]o(nØh“v3»´m%n(i]xl»l’mxiKv=lWr\r’rBl˜e]kkíjojj¿i hèe]gdfºeebd´cìb bv`phÙuÒ]«]^=^š^i^ø^Ç^4_%_n_a_!%xÿÿÿÿ%.0Lf»½×Ùß|Û=‚MÇraB3Gjaw=lWr\r’rBlÈrMÀQÀ]Àyesno:Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday:Jan:January:Feb:February:Mar:March:Apr:April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:October:Nov:November:Dec:December-$+vx+v$x+v$xv$+xv+$xv$+x+$vx+$vx$v+x+$vx$+vx+v $+v $v $+v+ $v $++$ v+$ v$ v++$ v$ +vPj‹ÄàjLÄþriÀÁ/ÂmÂ«Âøj0Ä£¿§¿\r«¿á¿ÀMÀQÀ]Àhk0Ä£¿§¿\r«¿á¿ÀMÀQÀ]À¸k]‹¾a½l]×¼©»XlñÃ3»8»%n¨l]ºCº»àlõÄ£¿§¿\r«¿á¿ÀMÀQÀ]Àš™™™™™¹?$@mžùWúUnknown exceptionXmúcsmà “ÿÿÿÿMûÿÿÿÿ¥ûÿÿÿÿqüÿÿÿÿÍüÿÿÿÿþþÿÿÿÿNÿÿÿÿ•©.com.bat.cmd.exe./\?*H:mm:ssdddd, MMMM dd, yyyyM/d/yyPMAMDecemberNovemberOctoberSeptemberAugustJulyJuneAprilMarchFebruaryJanuaryDecNovOctSepAugJulJunMayAprMarFebJanSaturdayFridayThursdayWednesdayTuesdayMondaySundaySatFriThuWedTueMonSuna/pam/pmLC_TIMELC_NUMERICLC_MONETARYLC_CTYPELC_COLLATELC_ALL;=;=_.,_ÿÿÿÿ#8'8ÿÿÿÿ×8Û8ÿÿÿÿà;ä;ÿÿÿÿO<S<ÿÿÿÿb@l@ÿÿÿÿñAÏAÙAÿÿÿÿ'D+Dÿÿÿÿ‰D’DÿÿÿÿôFàFäFÿÿÿÿJG6G:Gÿÿÿÿ¶Gÿÿÿÿ1H__GLOBAL_HEAP_SELECTED__MSVCRT_HEAP_SELECTÿÿÿÿ¸s¼sÿÿÿÿœtÿÿÿÿ%uEEE50P (8PX700WP `h````ppxxxx(null)(null)SunMonTueWedThuFriSatJanFebMarAprMayJunJulAugSepOctNovDecTZð?À~PA€ÿÿGAIsProcessorFeaturePresentKERNEL32e+000runtime error TLOSS error SING error DOMAIN error R6028 - unable to initialize heap R6027 - not enough space for lowio initialization R6026 - not enough space for stdio initialization R6025 - pure virtual function call R6024 - not enough space for _onexit/atexit table R6019 - unable to open console device R6018 - unexpected heap error R6017 - unexpected multithread lock error R6016 - not enough space for thread data abnormal program termination R6009 - not enough space for environment R6008 - not enough space for arguments R6002 - floating point not loaded Microsoft Visual C++ Runtime Library Runtime Error! Program: ...ParaguayUruguayChileEcuadorArgentinaPeruColombiaVenezuelaDominican RepublicSouth AfricaPanamaLuxembourgCosta RicaSwitzerlandGuatemalaCanadaSpanish - Modern SortAustraliaEnglishAustriaGermanBelgiumMexicoSpanishBasqueSwedenSwedishIcelandIcelandicFranceFrenchFinlandFinnishSpainSpanish - Traditional Sortunited-statesunited-kingdomtrinidad & tobagosouth-koreasouth-africasouth koreasouth africaslovakpuerto-ricopr-chinapr chinanznew-zealandhong-konghollandgreat britainenglandczechchinabritainamericausausukswissswedish-finlandspanish-venezuelaspanish-uruguayspanish-puerto ricospanish-peruspanish-paraguayspanish-panamaspanish-nicaraguaspanish-modernspanish-mexicanspanish-hondurasspanish-guatemalaspanish-el salvadorspanish-ecuadorspanish-dominican republicspanish-costa ricaspanish-colombiaspanish-chilespanish-boliviaspanish-argentinaportuguese-braziliannorwegian-nynorsknorwegian-bokmalnorwegianitalian-swissirish-englishgerman-swissgerman-luxembourggerman-lichtensteingerman-austrianfrench-swissfrench-luxembourgfrench-canadianfrench-belgianenglish-usaenglish-usenglish-ukenglish-trinidad y tobagoenglish-south africaenglish-nzenglish-jamaicaenglish-ireenglish-caribbeanenglish-canenglish-belizeenglish-ausenglish-americandutch-belgianchinese-traditionalchinese-singaporechinese-simplifiedchinese-hongkongchinesechichhcanadianbelgianaustralianamerican-englishamerican englishamericanOCPACPGetLastActivePopupGetActiveWindowMessageBoxAuser32.dllÿÿÿÿVÌZÌÿÿÿÿ³Ì·Ì1#QNAN1#INF1#IND1#SNANÿÿÿÿëÚïÚÿÿÿÿÜܰÀÿÿÿÿxßÿÿÿÿ˜ßÿÿÿÿ^ø]à](^˜ß8^ø]à]`^xßp^¸ßÿÿÿÿ˜^ø]à]°^¸ßÀ^àßÿÿÿÿàÿÿÿÿ_è^à]_à(_è^à]P_àß`_(àÿÿÿÿˆ_ _(à¨_`Ì_€àØ_€àÿÿÿÿ àÿÿÿÿ``0` à@`Èàÿÿÿÿh``€`Èà` áÿÿÿÿ@áÿÿÿÿÐ`¸``è`@áø``áÿÿÿÿ€áÿÿÿÿ8a a`Pa€á`a áÿÿÿÿˆa` a á°aøáÿÿÿÿØa`ðaøábÈÀÿÿÿÿ(bà]@bÈÀPbàbÈb°bxbPâˆb(àâPâÿÿÿÿâÿÿÿÿccÐâcâÿÿÿÿ@cˆ_XcâhcÐâÿÿÿÿãÿÿÿÿ¨ccÀcãÐcøbÈb°bøcâdâÿÿÿÿ0ãÿÿÿÿpãÿÿÿÿ`dHdàbÈb°b0dÈb°bxd\pã dHdàbÈb°b0dÈb°bÈd 0ãèdãÿÿÿÿeà](eã8e°ãÿÿÿÿ`e`xe°ãˆeäÿÿÿÿ°e`ÈeäØe`äÿÿÿÿfPf`f`ä(f¸äÿÿÿÿØäÿÿÿÿhfPf`€fØäf0åÿÿÿÿ¸f(gg`Ðf0åèfXåÿÿÿÿxåÿÿÿÿ˜åÿÿÿÿ@g(gg`Xg˜åpgÀåÿÿÿÿ˜g`°gÀåÀgæÿÿÿÿèg`hæhpæÿÿÿÿ8h a`Phpæ`hæÿÿÿÿ°æÿÿÿÿ hˆh`¸h°æÈhÐæÿÿÿÿðh`iÐæiðæÿÿÿÿ@i`Xiðæhiçÿÿÿÿi¸``¨iç¸i(gg`àixåði0çÿÿÿÿjPf`0j0ç@jˆçÿÿÿÿhjPf`€jˆçjàçÿÿÿÿ¸jkg`Ðjàçèjèÿÿÿÿ(èÿÿÿÿ(kkg`@k(èXkPèÿÿÿÿ€k`˜kPè¨k¨èÿÿÿÿÐk`èk¨èøkéÿÿÿÿ lˆh`8léHl éÿÿÿÿpl`ˆl é˜lkg`ÀlèÐlà]ôl°ÀmPéÿÿÿÿ(m@mPéHm “mÿÿÿÿ â “¸mÿÿÿÿ@â “àmðmÿÿÿÿÿÿÿÿnY “8nÿÿÿÿpâ “`nÿÿÿÿâÿÿÿÿ›âÿÿÿÿ¦â “˜nÿÿÿÿÀâÈâÓâ “ Ðnÿÿÿÿðâ ãÿÿÿÿãÿÿÿÿ ã.ã9ãÿÿÿÿDãRã]ã “8oÿÿÿÿ€ã “`opoÿÿÿÿÿÿÿÿˆo/ “¸oÿÿÿÿ°ã»ãÃã “ðoÿÿÿÿàãèã “ pÿÿÿÿä°Àÿÿÿÿ ÷ùÈÀÿÿÿÿ €BHp(p0Bhp “¨pÐpÿÿÿÿ0ä8ä@äÿÿÿÿÿÿÿÿèpPA “qÿÿÿÿ`ähäpä “Pqÿÿÿÿäÿÿÿÿ›ä£ä “ˆqÿÿÿÿÀäÈäÐäÿÿÿÿÛä “Èqÿÿÿÿåðäøä “rÿÿÿÿ0å “(rÿÿÿÿPå “Prÿÿÿÿpå “xrÿÿÿÿå “ rÿÿÿÿ°å “ÈrÿÿÿÿÐå “ðrÿÿÿÿðå “sÿÿÿÿæ-æÿÿÿÿ8æ “Ps`sÿÿÿÿÿÿÿÿxs…j “¨sÿÿÿÿ`æ “Ðsÿÿÿÿ€æ0Âÿÿÿÿp’Øsøs “0tÿÿÿÿ æÿÿÿÿ«æ:çEçPç[çfçqççç$ç/çÁæÌæ׿âæíæøæç¶æ “ðtÿÿÿÿç “uÿÿÿÿ°ç»çÆçÑçÿÿÿÿÜç “`uxuÿÿÿÿèu[ “Àuÿÿÿÿ è “èu(vÿÿÿÿPèÿÿÿÿ[èÿÿÿÿfèÿÿÿÿqèÿÿÿÿ‡èÿÿÿÿ|è@v0ÂDÿÿÿ§© “ pv¸vÿÿÿÿ è«è¶èÿÿÿÿÁèÿÿÿÿÌè×èâèÐv0Âìÿÿÿ„² “wÿÿÿÿéé “0wÿÿÿÿ é+é6éAéoéwé‚éé•é«é³é»éLé Wé _é gé éÑéÜéçéòéÆé “x xÿÿÿÿêê8x0ÂìÿÿÿóÈ “ hxÿÿÿÿ0ê;êFêQê\êgêrê}êˆê“ê “Øxÿÿÿÿ°ê»êÆêÑêÜêòêçê “0yÿÿÿÿëë&ë1ë<ë‰ë”ëŸëªëµëGë Rë ]ë hë së~ë “ ÐyÿÿÿÿÐëÛëæëñëüëììì(ì “8zÿÿÿÿ@ìKìVìaì “xz¨zÿÿÿÿ€ìˆìì˜ìÀzré “ðz {ÿÿÿÿ°ì¸ìÀìÈì8{¤ë “h{˜{ÿÿÿÿàìèìðìøì°{äí “à{ÿÿÿÿí “| |ÿÿÿÿ0í8|Zö “h|ÿÿÿÿPí “|ÿÿÿÿpíí “À|ÿÿÿÿ í “è|ÿÿÿÿÀí “}ÿÿÿÿàíèíðíÿÿÿÿûíî î “`}ÿÿÿÿ î(î0î “˜}ÿÿÿÿPîXî`îÿÿÿÿkî “Ø}ÿÿÿÿ€îˆî “~ÿÿÿÿ î “0~ÿÿÿÿÀî “X~ÿÿÿÿàî “€~ÿÿÿÿï “¨~ÿÿÿÿ ï(ï0ï “à~ÿÿÿÿPïXï “ÿÿÿÿpï “8ÿÿÿÿï˜ï ï¨ï “xÿÿÿÿÀïÈï “¨ÿÿÿÿàï “Ðÿÿÿÿðð “€ÿÿÿÿ0ð;ðFðQð “@€P€ÿÿÿÿÿÿÿÿh€X-xßÿÿÿÿO"˜ßÿÿÿÿ"#˜€x€(p¬"¸€ “ø€ÿÿÿÿ|ð “ ÿÿÿÿðx€(pö!( “hÿÿÿÿ¤ð “ÿÿÿÿ¸ð “¸ÿÿÿÿÌð¸ßÿÿÿÿ $Àx€(p”#à “ ‚ÿÿÿÿàð “H‚ÿÿÿÿôðàßÿÿÿÿè%àÿÿÿÿ»&p‚P‚(pE&‚ “Ђÿÿÿÿñ “ø‚ÿÿÿÿñP‚(p%ƒ “@ƒÿÿÿÿ0ñ “hƒÿÿÿÿDñ “ƒÿÿÿÿXñ “¸ƒÿÿÿÿlñ “àƒÿÿÿÿ„ñŒñ “„ÿÿÿÿ ñ “8„ÿÿÿÿ´ñ “`„ÿÿÿÿÈñÐñÛñ “˜„ÿÿÿÿðñ “À„ÿÿÿÿò òòò(ò0ò “…ÿÿÿÿDòLòWò_ògò “X…ÿÿÿÿ|ò “€…ÿÿÿÿò˜ò£ò®ò “À…ÿÿÿÿÄòÌò×ò “ø…ÿÿÿÿìòÿÿÿÿôòüòóÿÿÿÿ ó “@†ÿÿÿÿ ó “h†ÿÿÿÿ4ó “†ÿÿÿÿHó “¸†ÿÿÿÿ\ó “à†ÿÿÿÿpó “‡ÿÿÿÿ„ó “0‡ÿÿÿÿ˜ó “X‡ÿÿÿÿ¬ó “€‡ÿÿÿÿÀóÈó “°‡ÿÿÿÿÜóäó “à‡ÿÿÿÿøóô ô “ˆÿÿÿÿô$ô.ô “Pˆÿÿÿÿ@ôHô “€ˆÿÿÿÿ\ôdô “°ˆÿÿÿÿxô “؈ÿÿÿÿŒô “‰ÿÿÿÿ ô “(‰ÿÿÿÿ´ôÎôÙôäô “h‰ÿÿÿÿøô “‰ÿÿÿÿõ “¸‰ÿÿÿÿ$õ>õãÿÿÿÿ hVȉ(p$Vè‰ “ (ŠÿÿÿÿTõ\õfõnõxõ€õŠõ”õžõ¦õ °õ ¸õ “¨ŠÿÿÿÿÐõ “Њÿÿÿÿäõÿÿÿÿìõôõüõÿÿÿÿö “‹ÿÿÿÿö “@‹ÿÿÿÿ,ö “h‹ÿÿÿÿ@ö “‹ÿÿÿÿTö “¸‹ÿÿÿÿhö “à‹ÿÿÿÿ|ö “Œÿÿÿÿö “0Œÿÿÿÿ¤ö “XŒÿÿÿÿ¸öÿÿÿÿÀöÈöÐö “˜Œÿÿÿÿìöäö “ÈŒÿÿÿÿ÷÷ “øŒÿÿÿÿ,÷ “ ÿÿÿÿ@÷ “HÿÿÿÿT÷ÿÿÿÿ\÷ “xÿÿÿÿp÷x÷ “¨ÿÿÿÿŒ÷ “Ðÿÿÿÿ ÷ÿÿÿÿ¨÷ “ŽÿÿÿÿAø¼÷Ä÷Ì÷Ô÷Ü÷9ø÷÷ø øø #ø.øä÷ ï÷ “ ˜Žÿÿÿÿdøløtø|ø‡øø—øŸøªø “ÿÿÿÿ¼ø “(8ÿÿÿÿÿÿÿÿPã “€ÿÿÿÿÜøäø “°ÿÿÿÿøøù ù “èÿÿÿÿù$ù.ù “ ÿÿÿÿ@ùHù “Pÿÿÿÿ\ùdù “€ÿÿÿÿxù€ù “°ÿÿÿÿ”ùœù¦ù “èÿÿÿÿ¸ùÀùÊù “ ‘ÿÿÿÿÜùäù “P‘ÿÿÿÿøùú “€‘ÿÿÿÿúú “°‘ÿÿÿÿ0ú8ú “à‘ÿÿÿÿLúTú “’ÿÿÿÿhú “8’ÿÿÿÿ|ú “`’ÿÿÿÿú “ˆ’ÿÿÿÿ¤ú¬ú “¸’ÿÿÿÿÄúÌú “è’ÿÿÿÿàú ““ÿÿÿÿôúüú “@“ÿÿÿÿûû “p“ÿÿÿÿ,û “˜“ÿÿÿÿ@û “À“ÿÿÿÿTû “è“ÿÿÿÿhû “”ÿÿÿÿ|û “8”ÿÿÿÿû “`”ÿÿÿÿ¤û “ˆ”ÿÿÿÿ¸û “°”ÿÿÿÿÌû “Ø”ÿÿÿÿàû “•ÿÿÿÿôû “(•ÿÿÿÿü “P•ÿÿÿÿü “x•ÿÿÿÿ0ü8ü “¨•ÿÿÿÿLü “Еÿÿÿÿ`ü “ø•ÿÿÿÿtü “ –ÿÿÿÿˆü “H–ÿÿÿÿœü “p–ÿÿÿÿ°ü “˜–ÿÿÿÿÄü “À–ÿÿÿÿØü “è–ÿÿÿÿìü “—ÿÿÿÿý “8—ÿÿÿÿý “`—ÿÿÿÿ(ý “ˆ—ÿÿÿÿ<ý “ °—ÿÿÿÿPýXýbýjýtý~ýˆýýšý¢ý “ ˜ÿÿÿÿÀý¸ý “P˜ÿÿÿÿäýìý “€˜ÿÿÿÿþ “¨˜ÿÿÿÿþ “Иÿÿÿÿ(þÿÿÿÿ0þ “™ÿÿÿÿDþ “(™ÿÿÿÿXþÿÿÿÿ`þÿÿÿÿhþÿÿÿÿpþxþÕþ“þžþ©þ´þ ¿þÊþ€þ ‹þ “ ¸™ÿÿÿÿèþðþøþÿ ÿÿÿ#ÿ.ÿ “ šÿÿÿÿ@ÿ “HšÿÿÿÿTÿ\ÿ “xšÿÿÿÿpÿxÿ “¨šÿÿÿÿŒÿ”ÿžÿ “àšÿÿÿÿ°ÿ¸ÿÂÿ “›ÿÿÿÿÔÿÜÿ “H›ÿÿÿÿðÿøÿ “x›ÿÿÿÿ  “¨›ÿÿÿÿ(0 “Ø›ÿÿÿÿD “œÿÿÿÿX` “0œÿÿÿÿt| “`œÿÿÿÿ˜ “œÿÿÿÿ° “¸œÿÿÿÿÄ “àœÿÿÿÿØ “ÿÿÿÿì “0ÿÿÿÿ “Xÿÿÿÿ “€ÿÿÿÿ( “¨ÿÿÿÿ< “ÐÿÿÿÿPX “žÿÿÿÿl “(žÿÿÿÿ€ “Pžÿÿÿÿ” “xžÿÿÿÿ¨ “ žÿÿÿÿ¼ “ÈžÿÿÿÿÐ “ðžÿÿÿÿä “Ÿÿÿÿÿø\Ÿ£¡z¤¼h¡p¡„¡’¡ ¡¬¡º¡ΡÞ¡ê¡ö¡¢¢¢,¢<¢J¢Z¢j¢z¢¢¬¢Ä¢Ü¢ô¢ £Pª@ª0ª ª ªô©â©ЩÀ©¦©Ž©t©Z©H©0©©©©†¤œ¤´¤̤â¤ø¤¥¥"¥4¥@¥L¥Z¥j¥z¥ˆ¥–¥¢¥º¥Ô¥ä¥ö¥ ¦"¦0¦J¦b¦|¦Œ¦œ¦°¦À¦Ò¦à¦î¦§§&§6§B§T§f§r§|§Œ§š§¦§¸§ȧاê§ú§ ¨ ¨>¨R¨l¨|¨Ѝ˜¨¦¨¶¨ƨبê¨bªd¤V¤<¤0¤ ¤¤þ£ì£Ú£È£¸£¨£’£„£t£f£R£>£*£–Sleep GetExitCodeThreadWDeleteFileACloseHandleßWriteFile4CreateFileAcGetTempFileNameAeGetTempPathAReadFileÌLocalFreeÒLocalUnlockÎLocalLockÈLocalAllocˆGlobalFree“GlobalUnlockŒGlobalLockÕLockResourceÇLoadResource£FindResourceA$GetModuleFileNameAªInitializeCriticalSectionUDeleteCriticalSectionfEnterCriticalSectionÁLeaveCriticalSectionúGetCurrentThreadId¹IsDBCSLeadByteKERNEL32.dll•DispatchMessageA‚TranslateMessageˆIsDialogMessageA*GetMessageA‘UpdateWindowjShowWindowOCreateDialogParamAReplyMessage+SetDlgItemInt,SetDlgItemTextAXSetWindowLongAàPostQuitMessageŽDestroyWindowVGetWindowLongASendMessageA¬wsprintfARegisterWindowMessageA¾MessageBoxAáPostThreadMessageAUSER32.dll®InterlockedExchange­InterlockedDecrement°InterlockedIncrementÒWideCharToMultiByteäMultiByteToWideChar/RtlUnwindGetFileTypeGetLastError RaiseExceptionŸHeapFree™HeapAlloc¢HeapReAlloc,ResumeThreadJCreateThread¥TlsSetValue~ExitThreadFindCloseŠFileTimeToSystemTime‰FileTimeToLocalFileTimeGetDriveTypeA”FindFirstFileAhSetFileAttributesA GetFileAttributesAlSetFileTimeÊLocalFileTimeToFileTime›SystemTimeToFileTimepGetTimeZoneInformation]GetSystemTimeGetLocalTime-CreateDirectoryAFindNextFileAÊGetCommandLineAtGetVersion}ExitProcessžTerminateProcess÷GetCurrentProcess¿LCMapStringAÀLCMapStringW¿GetCPInfo!CompareStringA"CompareStringW¢TlsAlloc£TlsFreeqSetLastError¤TlsGetValue£HeapSizejSetFilePointer|SetStdHandleaSetEndOfFilemSetHandleCountRGetStdHandlePGetStartupInfoAªFlushFileBuffers‹SetUnhandledExceptionFilter&GetModuleHandleA GetEnvironmentVariableAuGetVersionExAHeapDestroy›HeapCreate¿VirtualFree»VirtualAlloc¸IsBadWritePtrSGetStringTypeAVGetStringTypeW­UnhandledExceptionFilter¹GetACP1GetOEMCPGetFullPathNameAõGetCurrentDirectoryA>GetProcAddress²FreeEnvironmentStringsA³FreeEnvironmentStringsWGetEnvironmentStringsGetEnvironmentStringsW¾IsValidLocale½IsValidCodePageGetLocaleInfoAwEnumSystemLocalesAqGetUserDefaultLCIDµIsBadReadPtr²IsBadCodePtrÂLoadLibraryAGetLocaleInfoWbSetEnvironmentVariableAÃ@ÓDº¬55¨ª|«P¬°nÐp pÀl°mСP¤À¬¦°­@£p¤¢Ð¦ð¦¬p¡ªð©p¡p¡p¡ªª­`¬`¡@¬0«« ¬°¡€¡ «Ð¥ªPªp¡Ðª€ª`«`¡À« ¡à«ð¬0¦ ­p¡À¡¡ ¬Ð¬Ä¬Ó¬Û¬ç¬õ¬­­­)­9­H­W­g­u­‚­Ž­Ÿ­·­Å­×­é­ù­®®,®>®N®c®m®‚®™®ª®¿®ЮÛ®ë®ú®¯¯'¯<¯H¯V¯a¯o¯¯”¯£¯¸¯ͯâ¯ó¯°  !"#$%&'()*+,-./01234tar32.dllGetArchiveInfoGetFileGetFileInfoGetPluginInfoIsSupportedTarTarCheckArchiveTarClearOwnerWindowTarCloseArchiveTarCommandLineTarCompressMemTarConfigDialogTarExtractMemTarFindFirstTarFindNextTarGetAccessTimeTarGetArcCompressedSizeTarGetArcDateTarGetArcFileNameTarGetArcFileSizeTarGetArcOSTypeTarGetArcOriginalSizeTarGetArcRatioTarGetArcTimeTarGetArchiveTypeTarGetAttributeTarGetBackGroundModeTarGetCRCTarGetCompressedSizeTarGetCompressedSizeExTarGetCreateTimeTarGetCursorIntervalTarGetCursorModeTarGetDateTarGetFileCountTarGetFileNameTarGetMethodTarGetOSTypeTarGetOriginalSizeTarGetOriginalSizeExTarGetRatioTarGetRunningTarGetTimeTarGetVersionTarGetWriteTimeTarKillOwnerWindowExTarOpenArchiveTarQueryFunctionListTarSetBackGroundModeTarSetCursorIntervalTarSetCursorModeTarSetOwnerWindowTarSetOwnerWindowExP"0Rà\0epl°r€ ð­p±P€/"$†(y)U,&I~UŒ¶Vä“î<&Ð{]ä&']_extracted.bz2rb.gzŒO.?AVexception@@ŒO.?AVbad_cast@std@@missing locale facetC.ztar/gz/bz2/Z format*.tar;*.tgz;*.tbz;*.gz;*.bz2;*.Z;Tar32.DLL by Yoshioka Tsuneo(QWF00133@nifty.ne.jp)00AMTAR*--display-dialog=0 --use-directory=0 "%s" "%s"--display-dialog=0 --use-directory=0 -o "%s" -x "%s" "%s"rootustar00` ! ! 070702070701ŒO.?AVCTar32Exception@@tar header checksum error.(LongLink)can't read tar header(LongLink)can't get filename(LongLink)TRAILER!!!%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx/%d%nroot%d///tar header checksum error.can't read tar headerheader write error%11lo %06o %6o LongLink filename write error././@LongLinkcan't write to arcfilecan't read filewm_arcextract-p -x -p -c TAR32.DLL ConfigurationTAR32.DLL Configuration. ModuleFileName: %s TarGetVersion(): %d.%02d IMAGE_FILE_HEADER/TimeStamp: %d(%s) %Y/%m/%d %H:%M:%S-err-ar.bz2ar.zar.gzarcpiobz2cpio.zcpio.gzcpio-bz2--tbz-- z-- gz--taz--tgz--tar------Tar((HWND),(LPCSTR),,(DWORD)) ): TAR32 Error(0xusage: TAR32.DLL