diff options
Diffstat (limited to 'src/others/mimesh/g3dviewer-0.2.99.4')
90 files changed, 31485 insertions, 0 deletions
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/AUTHORS b/src/others/mimesh/g3dviewer-0.2.99.4/AUTHORS new file mode 100644 index 0000000..a352413 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/AUTHORS | |||
@@ -0,0 +1 @@ | |||
Markus Dahms <dahms@fh-brandenburg.de> | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/COPYING b/src/others/mimesh/g3dviewer-0.2.99.4/COPYING new file mode 100644 index 0000000..60549be --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/COPYING | |||
@@ -0,0 +1,340 @@ | |||
1 | GNU GENERAL PUBLIC LICENSE | ||
2 | Version 2, June 1991 | ||
3 | |||
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | ||
5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
6 | Everyone is permitted to copy and distribute verbatim copies | ||
7 | of this license document, but changing it is not allowed. | ||
8 | |||
9 | Preamble | ||
10 | |||
11 | The licenses for most software are designed to take away your | ||
12 | freedom to share and change it. By contrast, the GNU General Public | ||
13 | License is intended to guarantee your freedom to share and change free | ||
14 | software--to make sure the software is free for all its users. This | ||
15 | General Public License applies to most of the Free Software | ||
16 | Foundation's software and to any other program whose authors commit to | ||
17 | using it. (Some other Free Software Foundation software is covered by | ||
18 | the GNU Library General Public License instead.) You can apply it to | ||
19 | your programs, too. | ||
20 | |||
21 | When we speak of free software, we are referring to freedom, not | ||
22 | price. Our General Public Licenses are designed to make sure that you | ||
23 | have the freedom to distribute copies of free software (and charge for | ||
24 | this service if you wish), that you receive source code or can get it | ||
25 | if you want it, that you can change the software or use pieces of it | ||
26 | in new free programs; and that you know you can do these things. | ||
27 | |||
28 | To protect your rights, we need to make restrictions that forbid | ||
29 | anyone to deny you these rights or to ask you to surrender the rights. | ||
30 | These restrictions translate to certain responsibilities for you if you | ||
31 | distribute copies of the software, or if you modify it. | ||
32 | |||
33 | For example, if you distribute copies of such a program, whether | ||
34 | gratis or for a fee, you must give the recipients all the rights that | ||
35 | you have. You must make sure that they, too, receive or can get the | ||
36 | source code. And you must show them these terms so they know their | ||
37 | rights. | ||
38 | |||
39 | We protect your rights with two steps: (1) copyright the software, and | ||
40 | (2) offer you this license which gives you legal permission to copy, | ||
41 | distribute and/or modify the software. | ||
42 | |||
43 | Also, for each author's protection and ours, we want to make certain | ||
44 | that everyone understands that there is no warranty for this free | ||
45 | software. If the software is modified by someone else and passed on, we | ||
46 | want its recipients to know that what they have is not the original, so | ||
47 | that any problems introduced by others will not reflect on the original | ||
48 | authors' reputations. | ||
49 | |||
50 | Finally, any free program is threatened constantly by software | ||
51 | patents. We wish to avoid the danger that redistributors of a free | ||
52 | program will individually obtain patent licenses, in effect making the | ||
53 | program proprietary. To prevent this, we have made it clear that any | ||
54 | patent must be licensed for everyone's free use or not licensed at all. | ||
55 | |||
56 | The precise terms and conditions for copying, distribution and | ||
57 | modification follow. | ||
58 | |||
59 | GNU GENERAL PUBLIC LICENSE | ||
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
61 | |||
62 | 0. This License applies to any program or other work which contains | ||
63 | a notice placed by the copyright holder saying it may be distributed | ||
64 | under the terms of this General Public License. The "Program", below, | ||
65 | refers to any such program or work, and a "work based on the Program" | ||
66 | means either the Program or any derivative work under copyright law: | ||
67 | that is to say, a work containing the Program or a portion of it, | ||
68 | either verbatim or with modifications and/or translated into another | ||
69 | language. (Hereinafter, translation is included without limitation in | ||
70 | the term "modification".) Each licensee is addressed as "you". | ||
71 | |||
72 | Activities other than copying, distribution and modification are not | ||
73 | covered by this License; they are outside its scope. The act of | ||
74 | running the Program is not restricted, and the output from the Program | ||
75 | is covered only if its contents constitute a work based on the | ||
76 | Program (independent of having been made by running the Program). | ||
77 | Whether that is true depends on what the Program does. | ||
78 | |||
79 | 1. You may copy and distribute verbatim copies of the Program's | ||
80 | source code as you receive it, in any medium, provided that you | ||
81 | conspicuously and appropriately publish on each copy an appropriate | ||
82 | copyright notice and disclaimer of warranty; keep intact all the | ||
83 | notices that refer to this License and to the absence of any warranty; | ||
84 | and give any other recipients of the Program a copy of this License | ||
85 | along with the Program. | ||
86 | |||
87 | You may charge a fee for the physical act of transferring a copy, and | ||
88 | you may at your option offer warranty protection in exchange for a fee. | ||
89 | |||
90 | 2. You may modify your copy or copies of the Program or any portion | ||
91 | of it, thus forming a work based on the Program, and copy and | ||
92 | distribute such modifications or work under the terms of Section 1 | ||
93 | above, provided that you also meet all of these conditions: | ||
94 | |||
95 | a) You must cause the modified files to carry prominent notices | ||
96 | stating that you changed the files and the date of any change. | ||
97 | |||
98 | b) You must cause any work that you distribute or publish, that in | ||
99 | whole or in part contains or is derived from the Program or any | ||
100 | part thereof, to be licensed as a whole at no charge to all third | ||
101 | parties under the terms of this License. | ||
102 | |||
103 | c) If the modified program normally reads commands interactively | ||
104 | when run, you must cause it, when started running for such | ||
105 | interactive use in the most ordinary way, to print or display an | ||
106 | announcement including an appropriate copyright notice and a | ||
107 | notice that there is no warranty (or else, saying that you provide | ||
108 | a warranty) and that users may redistribute the program under | ||
109 | these conditions, and telling the user how to view a copy of this | ||
110 | License. (Exception: if the Program itself is interactive but | ||
111 | does not normally print such an announcement, your work based on | ||
112 | the Program is not required to print an announcement.) | ||
113 | |||
114 | These requirements apply to the modified work as a whole. If | ||
115 | identifiable sections of that work are not derived from the Program, | ||
116 | and can be reasonably considered independent and separate works in | ||
117 | themselves, then this License, and its terms, do not apply to those | ||
118 | sections when you distribute them as separate works. But when you | ||
119 | distribute the same sections as part of a whole which is a work based | ||
120 | on the Program, the distribution of the whole must be on the terms of | ||
121 | this License, whose permissions for other licensees extend to the | ||
122 | entire whole, and thus to each and every part regardless of who wrote it. | ||
123 | |||
124 | Thus, it is not the intent of this section to claim rights or contest | ||
125 | your rights to work written entirely by you; rather, the intent is to | ||
126 | exercise the right to control the distribution of derivative or | ||
127 | collective works based on the Program. | ||
128 | |||
129 | In addition, mere aggregation of another work not based on the Program | ||
130 | with the Program (or with a work based on the Program) on a volume of | ||
131 | a storage or distribution medium does not bring the other work under | ||
132 | the scope of this License. | ||
133 | |||
134 | 3. You may copy and distribute the Program (or a work based on it, | ||
135 | under Section 2) in object code or executable form under the terms of | ||
136 | Sections 1 and 2 above provided that you also do one of the following: | ||
137 | |||
138 | a) Accompany it with the complete corresponding machine-readable | ||
139 | source code, which must be distributed under the terms of Sections | ||
140 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
141 | |||
142 | b) Accompany it with a written offer, valid for at least three | ||
143 | years, to give any third party, for a charge no more than your | ||
144 | cost of physically performing source distribution, a complete | ||
145 | machine-readable copy of the corresponding source code, to be | ||
146 | distributed under the terms of Sections 1 and 2 above on a medium | ||
147 | customarily used for software interchange; or, | ||
148 | |||
149 | c) Accompany it with the information you received as to the offer | ||
150 | to distribute corresponding source code. (This alternative is | ||
151 | allowed only for noncommercial distribution and only if you | ||
152 | received the program in object code or executable form with such | ||
153 | an offer, in accord with Subsection b above.) | ||
154 | |||
155 | The source code for a work means the preferred form of the work for | ||
156 | making modifications to it. For an executable work, complete source | ||
157 | code means all the source code for all modules it contains, plus any | ||
158 | associated interface definition files, plus the scripts used to | ||
159 | control compilation and installation of the executable. However, as a | ||
160 | special exception, the source code distributed need not include | ||
161 | anything that is normally distributed (in either source or binary | ||
162 | form) with the major components (compiler, kernel, and so on) of the | ||
163 | operating system on which the executable runs, unless that component | ||
164 | itself accompanies the executable. | ||
165 | |||
166 | If distribution of executable or object code is made by offering | ||
167 | access to copy from a designated place, then offering equivalent | ||
168 | access to copy the source code from the same place counts as | ||
169 | distribution of the source code, even though third parties are not | ||
170 | compelled to copy the source along with the object code. | ||
171 | |||
172 | 4. You may not copy, modify, sublicense, or distribute the Program | ||
173 | except as expressly provided under this License. Any attempt | ||
174 | otherwise to copy, modify, sublicense or distribute the Program is | ||
175 | void, and will automatically terminate your rights under this License. | ||
176 | However, parties who have received copies, or rights, from you under | ||
177 | this License will not have their licenses terminated so long as such | ||
178 | parties remain in full compliance. | ||
179 | |||
180 | 5. You are not required to accept this License, since you have not | ||
181 | signed it. However, nothing else grants you permission to modify or | ||
182 | distribute the Program or its derivative works. These actions are | ||
183 | prohibited by law if you do not accept this License. Therefore, by | ||
184 | modifying or distributing the Program (or any work based on the | ||
185 | Program), you indicate your acceptance of this License to do so, and | ||
186 | all its terms and conditions for copying, distributing or modifying | ||
187 | the Program or works based on it. | ||
188 | |||
189 | 6. Each time you redistribute the Program (or any work based on the | ||
190 | Program), the recipient automatically receives a license from the | ||
191 | original licensor to copy, distribute or modify the Program subject to | ||
192 | these terms and conditions. You may not impose any further | ||
193 | restrictions on the recipients' exercise of the rights granted herein. | ||
194 | You are not responsible for enforcing compliance by third parties to | ||
195 | this License. | ||
196 | |||
197 | 7. If, as a consequence of a court judgment or allegation of patent | ||
198 | infringement or for any other reason (not limited to patent issues), | ||
199 | conditions are imposed on you (whether by court order, agreement or | ||
200 | otherwise) that contradict the conditions of this License, they do not | ||
201 | excuse you from the conditions of this License. If you cannot | ||
202 | distribute so as to satisfy simultaneously your obligations under this | ||
203 | License and any other pertinent obligations, then as a consequence you | ||
204 | may not distribute the Program at all. For example, if a patent | ||
205 | license would not permit royalty-free redistribution of the Program by | ||
206 | all those who receive copies directly or indirectly through you, then | ||
207 | the only way you could satisfy both it and this License would be to | ||
208 | refrain entirely from distribution of the Program. | ||
209 | |||
210 | If any portion of this section is held invalid or unenforceable under | ||
211 | any particular circumstance, the balance of the section is intended to | ||
212 | apply and the section as a whole is intended to apply in other | ||
213 | circumstances. | ||
214 | |||
215 | It is not the purpose of this section to induce you to infringe any | ||
216 | patents or other property right claims or to contest validity of any | ||
217 | such claims; this section has the sole purpose of protecting the | ||
218 | integrity of the free software distribution system, which is | ||
219 | implemented by public license practices. Many people have made | ||
220 | generous contributions to the wide range of software distributed | ||
221 | through that system in reliance on consistent application of that | ||
222 | system; it is up to the author/donor to decide if he or she is willing | ||
223 | to distribute software through any other system and a licensee cannot | ||
224 | impose that choice. | ||
225 | |||
226 | This section is intended to make thoroughly clear what is believed to | ||
227 | be a consequence of the rest of this License. | ||
228 | |||
229 | 8. If the distribution and/or use of the Program is restricted in | ||
230 | certain countries either by patents or by copyrighted interfaces, the | ||
231 | original copyright holder who places the Program under this License | ||
232 | may add an explicit geographical distribution limitation excluding | ||
233 | those countries, so that distribution is permitted only in or among | ||
234 | countries not thus excluded. In such case, this License incorporates | ||
235 | the limitation as if written in the body of this License. | ||
236 | |||
237 | 9. The Free Software Foundation may publish revised and/or new versions | ||
238 | of the General Public License from time to time. Such new versions will | ||
239 | be similar in spirit to the present version, but may differ in detail to | ||
240 | address new problems or concerns. | ||
241 | |||
242 | Each version is given a distinguishing version number. If the Program | ||
243 | specifies a version number of this License which applies to it and "any | ||
244 | later version", you have the option of following the terms and conditions | ||
245 | either of that version or of any later version published by the Free | ||
246 | Software Foundation. If the Program does not specify a version number of | ||
247 | this License, you may choose any version ever published by the Free Software | ||
248 | Foundation. | ||
249 | |||
250 | 10. If you wish to incorporate parts of the Program into other free | ||
251 | programs whose distribution conditions are different, write to the author | ||
252 | to ask for permission. For software which is copyrighted by the Free | ||
253 | Software Foundation, write to the Free Software Foundation; we sometimes | ||
254 | make exceptions for this. Our decision will be guided by the two goals | ||
255 | of preserving the free status of all derivatives of our free software and | ||
256 | of promoting the sharing and reuse of software generally. | ||
257 | |||
258 | NO WARRANTY | ||
259 | |||
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | ||
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||
268 | REPAIR OR CORRECTION. | ||
269 | |||
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
278 | POSSIBILITY OF SUCH DAMAGES. | ||
279 | |||
280 | END OF TERMS AND CONDITIONS | ||
281 | |||
282 | How to Apply These Terms to Your New Programs | ||
283 | |||
284 | If you develop a new program, and you want it to be of the greatest | ||
285 | possible use to the public, the best way to achieve this is to make it | ||
286 | free software which everyone can redistribute and change under these terms. | ||
287 | |||
288 | To do so, attach the following notices to the program. It is safest | ||
289 | to attach them to the start of each source file to most effectively | ||
290 | convey the exclusion of warranty; and each file should have at least | ||
291 | the "copyright" line and a pointer to where the full notice is found. | ||
292 | |||
293 | <one line to give the program's name and a brief idea of what it does.> | ||
294 | Copyright (C) 19yy <name of author> | ||
295 | |||
296 | This program is free software; you can redistribute it and/or modify | ||
297 | it under the terms of the GNU General Public License as published by | ||
298 | the Free Software Foundation; either version 2 of the License, or | ||
299 | (at your option) any later version. | ||
300 | |||
301 | This program is distributed in the hope that it will be useful, | ||
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
304 | GNU General Public License for more details. | ||
305 | |||
306 | You should have received a copy of the GNU General Public License | ||
307 | along with this program; if not, write to the Free Software | ||
308 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
309 | |||
310 | |||
311 | Also add information on how to contact you by electronic and paper mail. | ||
312 | |||
313 | If the program is interactive, make it output a short notice like this | ||
314 | when it starts in an interactive mode: | ||
315 | |||
316 | Gnomovision version 69, Copyright (C) 19yy name of author | ||
317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
318 | This is free software, and you are welcome to redistribute it | ||
319 | under certain conditions; type `show c' for details. | ||
320 | |||
321 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
322 | parts of the General Public License. Of course, the commands you use may | ||
323 | be called something other than `show w' and `show c'; they could even be | ||
324 | mouse-clicks or menu items--whatever suits your program. | ||
325 | |||
326 | You should also get your employer (if you work as a programmer) or your | ||
327 | school, if any, to sign a "copyright disclaimer" for the program, if | ||
328 | necessary. Here is a sample; alter the names: | ||
329 | |||
330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | ||
331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | ||
332 | |||
333 | <signature of Ty Coon>, 1 April 1989 | ||
334 | Ty Coon, President of Vice | ||
335 | |||
336 | This General Public License does not permit incorporating your program into | ||
337 | proprietary programs. If your program is a subroutine library, you may | ||
338 | consider it more useful to permit linking proprietary applications with the | ||
339 | library. If this is what you want to do, use the GNU Library General | ||
340 | Public License instead of this License. | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/COPYING.trackball b/src/others/mimesh/g3dviewer-0.2.99.4/COPYING.trackball new file mode 100644 index 0000000..5a862a5 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/COPYING.trackball | |||
@@ -0,0 +1,37 @@ | |||
1 | For the files "src/trackball.c" and "src/trackball.h" the following | ||
2 | license applies: | ||
3 | |||
4 | (c) Copyright 1993, 1994, Silicon Graphics, Inc. | ||
5 | ALL RIGHTS RESERVED | ||
6 | Permission to use, copy, modify, and distribute this software for | ||
7 | any purpose and without fee is hereby granted, provided that the above | ||
8 | copyright notice appear in all copies and that both the copyright notice | ||
9 | and this permission notice appear in supporting documentation, and that | ||
10 | the name of Silicon Graphics, Inc. not be used in advertising | ||
11 | or publicity pertaining to distribution of the software without specific, | ||
12 | written prior permission. | ||
13 | |||
14 | THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" | ||
15 | AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, | ||
16 | INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR | ||
17 | FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON | ||
18 | GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, | ||
19 | SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY | ||
20 | KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, | ||
21 | LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF | ||
22 | THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN | ||
23 | ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON | ||
24 | ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE | ||
25 | POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. | ||
26 | |||
27 | US Government Users Restricted Rights | ||
28 | Use, duplication, or disclosure by the Government is subject to | ||
29 | restrictions set forth in FAR 52.227.19(c)(2) or subparagraph | ||
30 | (c)(1)(ii) of the Rights in Technical Data and Computer Software | ||
31 | clause at DFARS 252.227-7013 and/or in similar or successor | ||
32 | clauses in the FAR or the DOD or NASA FAR Supplement. | ||
33 | Unpublished-- rights reserved under the copyright laws of the | ||
34 | United States. Contractor/manufacturer is Silicon Graphics, | ||
35 | Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. | ||
36 | |||
37 | OpenGL(TM) is a trademark of Silicon Graphics, Inc. | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/CREDITS b/src/others/mimesh/g3dviewer-0.2.99.4/CREDITS new file mode 100644 index 0000000..12ddce5 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/CREDITS | |||
@@ -0,0 +1,5 @@ | |||
1 | Many thanks to: | ||
2 | * the developers of GtkGLArea <http://www.student.oulu.fi/~jlof/gtkglarea/> | ||
3 | (for the nice widget and the helpful examples..) | ||
4 | * wotsit.org <http://www.wotsit.org> | ||
5 | (a lot of file type descriptions came from there) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/ChangeLog b/src/others/mimesh/g3dviewer-0.2.99.4/ChangeLog new file mode 100644 index 0000000..621cc7d --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/ChangeLog | |||
@@ -0,0 +1,71 @@ | |||
1 | changes since version 0.2.99.2: | ||
2 | * gui: fullscreen function | ||
3 | * gl: support for different texture environment parameters | ||
4 | * general: requires libg3d >= 0.0.5 now | ||
5 | * general: usual small, undocumented fixes and tweaks... | ||
6 | |||
7 | changes since version 0.2.99.0: | ||
8 | * gui: screenshot function | ||
9 | * gui: moved to libglade | ||
10 | * gui: objects hideable | ||
11 | * general: localization | ||
12 | |||
13 | changes since version 0.2.0: | ||
14 | * libg3d: moved model loading and manipulation into separate library | ||
15 | * gui: gtk+ 2.x is required now | ||
16 | * gui: gtkglext >= 1.0 is required now | ||
17 | |||
18 | changes since version 0.1.99.1: | ||
19 | * plugins: moved to ${PREFIX}/lib/g3dviewer/plugins | ||
20 | * configure: look for OpenGL headers and libs in X11 path | ||
21 | * general: some warnings removed | ||
22 | * imp_ac3d: support for TORCS .acc files | ||
23 | |||
24 | changes since version 0.1.1: | ||
25 | * general: texture support (for ac3d, q3o and partly 3ds) | ||
26 | * general: some code cleanup (removed dead code, some variable types | ||
27 | changed....) | ||
28 | * plugins: imp_ac3d: AC3D plugin | ||
29 | * plugins: img_sgi: SGI RGB image plugin | ||
30 | * plugins: img_gdkpixbuf: general image loader based on GdkPixbuf, | ||
31 | GTK 2.x only for now | ||
32 | |||
33 | changes since version 0.1.0: | ||
34 | * general: added manpage | ||
35 | * plugins: fix for compatibility of shared libraries (PIC) | ||
36 | * plugins: imp_vrml: started buggy VRML 1.0 plugin (requires flex) | ||
37 | |||
38 | changes since version 0.0.3: | ||
39 | * general: ported to GtkGLExt (now default with GTK 2.x) | ||
40 | * general: zooming with mouse wheel (GTK 2.x only) | ||
41 | * plugins: imp_3dmf: 3D Metafile format plugin (basics for now) | ||
42 | * plugins: imp_q3o: Quick3D object/scene plugin (mesh + materials) | ||
43 | * plugins: imp_cob: TrueSpace object plugin | ||
44 | * plugins: imp_lwo: supports LWO2 objects now | ||
45 | * build system: updated some parts, include m4 files | ||
46 | |||
47 | == rerelease of version 0.0.3 with changes below == | ||
48 | |||
49 | changes since version 0.0.3: | ||
50 | * general: ported to GLib/GTK+ 2.0 & GtkGlArea 1.99.0 (optional, but | ||
51 | default, use "./configure --with-gtk12" to use Gtk+ 1.2) | ||
52 | * configure: quite a lot of changes, hopefully to make things better... | ||
53 | * interface/infowin: removed some gtk warnings | ||
54 | * plugins/imp_*.c: fixed a locale problem | ||
55 | |||
56 | changes since version 0.0.2a (2002/03/21): | ||
57 | * plugins: generic support for image plugins (for height fields & textures) | ||
58 | * plugins: imp_heightfield.so plugin (generates height fields from images) | ||
59 | * plugins: img_bmp.so - Windows Bitmap loader | ||
60 | * gl: some changes in rendering, COULD be a little faster on some machines | ||
61 | |||
62 | changes since version 0.0.2 (2002/03/21): | ||
63 | * pixmaps: 2 icons missing in package | ||
64 | |||
65 | changes since version 0.0.1 (2002/03/09): | ||
66 | * plugins: nff plugin added | ||
67 | * gl: custom normals possible | ||
68 | * infowin: started information window | ||
69 | * main: eliminated error on exit | ||
70 | * configure: debugging not enabled by default (use | ||
71 | --enable-debug[=<level>]) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/INSTALL b/src/others/mimesh/g3dviewer-0.2.99.4/INSTALL new file mode 100644 index 0000000..b42a17a --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/INSTALL | |||
@@ -0,0 +1,182 @@ | |||
1 | Basic Installation | ||
2 | ================== | ||
3 | |||
4 | These are generic installation instructions. | ||
5 | |||
6 | The `configure' shell script attempts to guess correct values for | ||
7 | various system-dependent variables used during compilation. It uses | ||
8 | those values to create a `Makefile' in each directory of the package. | ||
9 | It may also create one or more `.h' files containing system-dependent | ||
10 | definitions. Finally, it creates a shell script `config.status' that | ||
11 | you can run in the future to recreate the current configuration, a file | ||
12 | `config.cache' that saves the results of its tests to speed up | ||
13 | reconfiguring, and a file `config.log' containing compiler output | ||
14 | (useful mainly for debugging `configure'). | ||
15 | |||
16 | If you need to do unusual things to compile the package, please try | ||
17 | to figure out how `configure' could check whether to do them, and mail | ||
18 | diffs or instructions to the address given in the `README' so they can | ||
19 | be considered for the next release. If at some point `config.cache' | ||
20 | contains results you don't want to keep, you may remove or edit it. | ||
21 | |||
22 | The file `configure.in' is used to create `configure' by a program | ||
23 | called `autoconf'. You only need `configure.in' if you want to change | ||
24 | it or regenerate `configure' using a newer version of `autoconf'. | ||
25 | |||
26 | The simplest way to compile this package is: | ||
27 | |||
28 | 1. `cd' to the directory containing the package's source code and type | ||
29 | `./configure' to configure the package for your system. If you're | ||
30 | using `csh' on an old version of System V, you might need to type | ||
31 | `sh ./configure' instead to prevent `csh' from trying to execute | ||
32 | `configure' itself. | ||
33 | |||
34 | Running `configure' takes awhile. While running, it prints some | ||
35 | messages telling which features it is checking for. | ||
36 | |||
37 | 2. Type `make' to compile the package. | ||
38 | |||
39 | 3. Optionally, type `make check' to run any self-tests that come with | ||
40 | the package. | ||
41 | |||
42 | 4. Type `make install' to install the programs and any data files and | ||
43 | documentation. | ||
44 | |||
45 | 5. You can remove the program binaries and object files from the | ||
46 | source code directory by typing `make clean'. To also remove the | ||
47 | files that `configure' created (so you can compile the package for | ||
48 | a different kind of computer), type `make distclean'. There is | ||
49 | also a `make maintainer-clean' target, but that is intended mainly | ||
50 | for the package's developers. If you use it, you may have to get | ||
51 | all sorts of other programs in order to regenerate files that came | ||
52 | with the distribution. | ||
53 | |||
54 | Compilers and Options | ||
55 | ===================== | ||
56 | |||
57 | Some systems require unusual options for compilation or linking that | ||
58 | the `configure' script does not know about. You can give `configure' | ||
59 | initial values for variables by setting them in the environment. Using | ||
60 | a Bourne-compatible shell, you can do that on the command line like | ||
61 | this: | ||
62 | CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure | ||
63 | |||
64 | Or on systems that have the `env' program, you can do it like this: | ||
65 | env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure | ||
66 | |||
67 | Compiling For Multiple Architectures | ||
68 | ==================================== | ||
69 | |||
70 | You can compile the package for more than one kind of computer at the | ||
71 | same time, by placing the object files for each architecture in their | ||
72 | own directory. To do this, you must use a version of `make' that | ||
73 | supports the `VPATH' variable, such as GNU `make'. `cd' to the | ||
74 | directory where you want the object files and executables to go and run | ||
75 | the `configure' script. `configure' automatically checks for the | ||
76 | source code in the directory that `configure' is in and in `..'. | ||
77 | |||
78 | If you have to use a `make' that does not supports the `VPATH' | ||
79 | variable, you have to compile the package for one architecture at a time | ||
80 | in the source code directory. After you have installed the package for | ||
81 | one architecture, use `make distclean' before reconfiguring for another | ||
82 | architecture. | ||
83 | |||
84 | Installation Names | ||
85 | ================== | ||
86 | |||
87 | By default, `make install' will install the package's files in | ||
88 | `/usr/local/bin', `/usr/local/man', etc. You can specify an | ||
89 | installation prefix other than `/usr/local' by giving `configure' the | ||
90 | option `--prefix=PATH'. | ||
91 | |||
92 | You can specify separate installation prefixes for | ||
93 | architecture-specific files and architecture-independent files. If you | ||
94 | give `configure' the option `--exec-prefix=PATH', the package will use | ||
95 | PATH as the prefix for installing programs and libraries. | ||
96 | Documentation and other data files will still use the regular prefix. | ||
97 | |||
98 | In addition, if you use an unusual directory layout you can give | ||
99 | options like `--bindir=PATH' to specify different values for particular | ||
100 | kinds of files. Run `configure --help' for a list of the directories | ||
101 | you can set and what kinds of files go in them. | ||
102 | |||
103 | If the package supports it, you can cause programs to be installed | ||
104 | with an extra prefix or suffix on their names by giving `configure' the | ||
105 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | ||
106 | |||
107 | Optional Features | ||
108 | ================= | ||
109 | |||
110 | Some packages pay attention to `--enable-FEATURE' options to | ||
111 | `configure', where FEATURE indicates an optional part of the package. | ||
112 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | ||
113 | is something like `gnu-as' or `x' (for the X Window System). The | ||
114 | `README' should mention any `--enable-' and `--with-' options that the | ||
115 | package recognizes. | ||
116 | |||
117 | For packages that use the X Window System, `configure' can usually | ||
118 | find the X include and library files automatically, but if it doesn't, | ||
119 | you can use the `configure' options `--x-includes=DIR' and | ||
120 | `--x-libraries=DIR' to specify their locations. | ||
121 | |||
122 | Specifying the System Type | ||
123 | ========================== | ||
124 | |||
125 | There may be some features `configure' can not figure out | ||
126 | automatically, but needs to determine by the type of host the package | ||
127 | will run on. Usually `configure' can figure that out, but if it prints | ||
128 | a message saying it can not guess the host type, give it the | ||
129 | `--host=TYPE' option. TYPE can either be a short name for the system | ||
130 | type, such as `sun4', or a canonical name with three fields: | ||
131 | CPU-COMPANY-SYSTEM | ||
132 | |||
133 | See the file `config.sub' for the possible values of each field. If | ||
134 | `config.sub' isn't included in this package, then this package doesn't | ||
135 | need to know the host type. | ||
136 | |||
137 | If you are building compiler tools for cross-compiling, you can also | ||
138 | use the `--target=TYPE' option to select the type of system they will | ||
139 | produce code for and the `--build=TYPE' option to select the type of | ||
140 | system on which you are compiling the package. | ||
141 | |||
142 | Sharing Defaults | ||
143 | ================ | ||
144 | |||
145 | If you want to set default values for `configure' scripts to share, | ||
146 | you can create a site shell script called `config.site' that gives | ||
147 | default values for variables like `CC', `cache_file', and `prefix'. | ||
148 | `configure' looks for `PREFIX/share/config.site' if it exists, then | ||
149 | `PREFIX/etc/config.site' if it exists. Or, you can set the | ||
150 | `CONFIG_SITE' environment variable to the location of the site script. | ||
151 | A warning: not all `configure' scripts look for a site script. | ||
152 | |||
153 | Operation Controls | ||
154 | ================== | ||
155 | |||
156 | `configure' recognizes the following options to control how it | ||
157 | operates. | ||
158 | |||
159 | `--cache-file=FILE' | ||
160 | Use and save the results of the tests in FILE instead of | ||
161 | `./config.cache'. Set FILE to `/dev/null' to disable caching, for | ||
162 | debugging `configure'. | ||
163 | |||
164 | `--help' | ||
165 | Print a summary of the options to `configure', and exit. | ||
166 | |||
167 | `--quiet' | ||
168 | `--silent' | ||
169 | `-q' | ||
170 | Do not print messages saying which checks are being made. To | ||
171 | suppress all normal output, redirect it to `/dev/null' (any error | ||
172 | messages will still be shown). | ||
173 | |||
174 | `--srcdir=DIR' | ||
175 | Look for the package's source code in directory DIR. Usually | ||
176 | `configure' can determine that directory automatically. | ||
177 | |||
178 | `--version' | ||
179 | Print the version of Autoconf used to generate the `configure' | ||
180 | script, and exit. | ||
181 | |||
182 | `configure' also accepts some other, not widely useful, options. | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile new file mode 100644 index 0000000..4cc1dd1 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile | |||
@@ -0,0 +1,559 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = . | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = . | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | SUBDIRS = m4 man src thumbnailer pixmaps glade po | ||
152 | EXTRA_DIST = CREDITS COPYING.trackball README.thumbnailer | ||
153 | subdir = . | ||
154 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
155 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
156 | CONFIG_HEADER = config.h | ||
157 | CONFIG_CLEAN_FILES = | ||
158 | DIST_SOURCES = | ||
159 | |||
160 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ | ||
161 | ps-recursive install-info-recursive uninstall-info-recursive \ | ||
162 | all-recursive install-data-recursive install-exec-recursive \ | ||
163 | installdirs-recursive install-recursive uninstall-recursive \ | ||
164 | check-recursive installcheck-recursive | ||
165 | DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ | ||
166 | COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \ | ||
167 | compile config.guess config.h.in config.sub configure \ | ||
168 | configure.in depcomp install-sh missing mkinstalldirs | ||
169 | DIST_SUBDIRS = $(SUBDIRS) | ||
170 | all: config.h | ||
171 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | ||
172 | |||
173 | .SUFFIXES: | ||
174 | |||
175 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | ||
176 | configure.lineno | ||
177 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
178 | cd $(top_srcdir) && \ | ||
179 | $(AUTOMAKE) --gnu Makefile | ||
180 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
181 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) | ||
182 | |||
183 | $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
184 | $(SHELL) ./config.status --recheck | ||
185 | $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) | ||
186 | cd $(srcdir) && $(AUTOCONF) | ||
187 | |||
188 | $(ACLOCAL_M4): configure.in | ||
189 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | ||
190 | |||
191 | config.h: stamp-h1 | ||
192 | @if test ! -f $@; then \ | ||
193 | rm -f stamp-h1; \ | ||
194 | $(MAKE) stamp-h1; \ | ||
195 | else :; fi | ||
196 | |||
197 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | ||
198 | @rm -f stamp-h1 | ||
199 | cd $(top_builddir) && $(SHELL) ./config.status config.h | ||
200 | |||
201 | $(srcdir)/config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
202 | cd $(top_srcdir) && $(AUTOHEADER) | ||
203 | touch $(srcdir)/config.h.in | ||
204 | |||
205 | distclean-hdr: | ||
206 | -rm -f config.h stamp-h1 | ||
207 | uninstall-info-am: | ||
208 | |||
209 | # This directory's subdirectories are mostly independent; you can cd | ||
210 | # into them and run `make' without going through this Makefile. | ||
211 | # To change the values of `make' variables: instead of editing Makefiles, | ||
212 | # (1) if the variable is set in `config.status', edit `config.status' | ||
213 | # (which will cause the Makefiles to be regenerated when you run `make'); | ||
214 | # (2) otherwise, pass the desired values on the `make' command line. | ||
215 | $(RECURSIVE_TARGETS): | ||
216 | @set fnord $$MAKEFLAGS; amf=$$2; \ | ||
217 | dot_seen=no; \ | ||
218 | target=`echo $@ | sed s/-recursive//`; \ | ||
219 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
220 | echo "Making $$target in $$subdir"; \ | ||
221 | if test "$$subdir" = "."; then \ | ||
222 | dot_seen=yes; \ | ||
223 | local_target="$$target-am"; \ | ||
224 | else \ | ||
225 | local_target="$$target"; \ | ||
226 | fi; \ | ||
227 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
228 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | ||
229 | done; \ | ||
230 | if test "$$dot_seen" = "no"; then \ | ||
231 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
232 | fi; test -z "$$fail" | ||
233 | |||
234 | mostlyclean-recursive clean-recursive distclean-recursive \ | ||
235 | maintainer-clean-recursive: | ||
236 | @set fnord $$MAKEFLAGS; amf=$$2; \ | ||
237 | dot_seen=no; \ | ||
238 | case "$@" in \ | ||
239 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
240 | *) list='$(SUBDIRS)' ;; \ | ||
241 | esac; \ | ||
242 | rev=''; for subdir in $$list; do \ | ||
243 | if test "$$subdir" = "."; then :; else \ | ||
244 | rev="$$subdir $$rev"; \ | ||
245 | fi; \ | ||
246 | done; \ | ||
247 | rev="$$rev ."; \ | ||
248 | target=`echo $@ | sed s/-recursive//`; \ | ||
249 | for subdir in $$rev; do \ | ||
250 | echo "Making $$target in $$subdir"; \ | ||
251 | if test "$$subdir" = "."; then \ | ||
252 | local_target="$$target-am"; \ | ||
253 | else \ | ||
254 | local_target="$$target"; \ | ||
255 | fi; \ | ||
256 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
257 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | ||
258 | done && test -z "$$fail" | ||
259 | tags-recursive: | ||
260 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
261 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
262 | done | ||
263 | ctags-recursive: | ||
264 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
265 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
266 | done | ||
267 | |||
268 | ETAGS = etags | ||
269 | ETAGSFLAGS = | ||
270 | |||
271 | CTAGS = ctags | ||
272 | CTAGSFLAGS = | ||
273 | |||
274 | tags: TAGS | ||
275 | |||
276 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
277 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
278 | unique=`for i in $$list; do \ | ||
279 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
280 | done | \ | ||
281 | $(AWK) ' { files[$$0] = 1; } \ | ||
282 | END { for (i in files) print i; }'`; \ | ||
283 | mkid -fID $$unique | ||
284 | |||
285 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
286 | $(TAGS_FILES) $(LISP) | ||
287 | tags=; \ | ||
288 | here=`pwd`; \ | ||
289 | if (etags --etags-include --version) >/dev/null 2>&1; then \ | ||
290 | include_option=--etags-include; \ | ||
291 | else \ | ||
292 | include_option=--include; \ | ||
293 | fi; \ | ||
294 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
295 | if test "$$subdir" = .; then :; else \ | ||
296 | test -f $$subdir/TAGS && \ | ||
297 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | ||
298 | fi; \ | ||
299 | done; \ | ||
300 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
301 | unique=`for i in $$list; do \ | ||
302 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
303 | done | \ | ||
304 | $(AWK) ' { files[$$0] = 1; } \ | ||
305 | END { for (i in files) print i; }'`; \ | ||
306 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
307 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
308 | $$tags $$unique | ||
309 | |||
310 | ctags: CTAGS | ||
311 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
312 | $(TAGS_FILES) $(LISP) | ||
313 | tags=; \ | ||
314 | here=`pwd`; \ | ||
315 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
316 | unique=`for i in $$list; do \ | ||
317 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
318 | done | \ | ||
319 | $(AWK) ' { files[$$0] = 1; } \ | ||
320 | END { for (i in files) print i; }'`; \ | ||
321 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
322 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
323 | $$tags $$unique | ||
324 | |||
325 | GTAGS: | ||
326 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
327 | && cd $(top_srcdir) \ | ||
328 | && gtags -i $(GTAGS_ARGS) $$here | ||
329 | |||
330 | distclean-tags: | ||
331 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
332 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
333 | |||
334 | top_distdir = . | ||
335 | distdir = $(PACKAGE)-$(VERSION) | ||
336 | |||
337 | am__remove_distdir = \ | ||
338 | { test ! -d $(distdir) \ | ||
339 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | ||
340 | && rm -fr $(distdir); }; } | ||
341 | |||
342 | GZIP_ENV = --best | ||
343 | distuninstallcheck_listfiles = find . -type f -print | ||
344 | distcleancheck_listfiles = find . -type f -print | ||
345 | |||
346 | distdir: $(DISTFILES) | ||
347 | $(am__remove_distdir) | ||
348 | mkdir $(distdir) | ||
349 | $(mkinstalldirs) $(distdir)/po | ||
350 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
351 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
352 | list='$(DISTFILES)'; for file in $$list; do \ | ||
353 | case $$file in \ | ||
354 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
355 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
356 | esac; \ | ||
357 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
358 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
359 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
360 | dir="/$$dir"; \ | ||
361 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
362 | else \ | ||
363 | dir=''; \ | ||
364 | fi; \ | ||
365 | if test -d $$d/$$file; then \ | ||
366 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
367 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
368 | fi; \ | ||
369 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
370 | else \ | ||
371 | test -f $(distdir)/$$file \ | ||
372 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
373 | || exit 1; \ | ||
374 | fi; \ | ||
375 | done | ||
376 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
377 | if test "$$subdir" = .; then :; else \ | ||
378 | test -d $(distdir)/$$subdir \ | ||
379 | || mkdir $(distdir)/$$subdir \ | ||
380 | || exit 1; \ | ||
381 | (cd $$subdir && \ | ||
382 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
383 | top_distdir="$(top_distdir)" \ | ||
384 | distdir=../$(distdir)/$$subdir \ | ||
385 | distdir) \ | ||
386 | || exit 1; \ | ||
387 | fi; \ | ||
388 | done | ||
389 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | ||
390 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | ||
391 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | ||
392 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | ||
393 | || chmod -R a+r $(distdir) | ||
394 | dist-gzip: distdir | ||
395 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
396 | $(am__remove_distdir) | ||
397 | |||
398 | dist dist-all: distdir | ||
399 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
400 | $(am__remove_distdir) | ||
401 | |||
402 | # This target untars the dist file and tries a VPATH configuration. Then | ||
403 | # it guarantees that the distribution is self-contained by making another | ||
404 | # tarfile. | ||
405 | distcheck: dist | ||
406 | $(am__remove_distdir) | ||
407 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - | ||
408 | chmod -R a-w $(distdir); chmod a+w $(distdir) | ||
409 | mkdir $(distdir)/_build | ||
410 | mkdir $(distdir)/_inst | ||
411 | chmod a-w $(distdir) | ||
412 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | ||
413 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | ||
414 | && cd $(distdir)/_build \ | ||
415 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | ||
416 | $(DISTCHECK_CONFIGURE_FLAGS) \ | ||
417 | && $(MAKE) $(AM_MAKEFLAGS) \ | ||
418 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | ||
419 | && $(MAKE) $(AM_MAKEFLAGS) check \ | ||
420 | && $(MAKE) $(AM_MAKEFLAGS) install \ | ||
421 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | ||
422 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | ||
423 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | ||
424 | distuninstallcheck \ | ||
425 | && chmod -R a-w "$$dc_install_base" \ | ||
426 | && ({ \ | ||
427 | (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ | ||
428 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | ||
429 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | ||
430 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | ||
431 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | ||
432 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | ||
433 | && rm -rf "$$dc_destdir" \ | ||
434 | && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ | ||
435 | && rm -f $(distdir).tar.gz \ | ||
436 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | ||
437 | $(am__remove_distdir) | ||
438 | @echo "$(distdir).tar.gz is ready for distribution" | \ | ||
439 | sed 'h;s/./=/g;p;x;p;x' | ||
440 | distuninstallcheck: | ||
441 | @cd $(distuninstallcheck_dir) \ | ||
442 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | ||
443 | || { echo "ERROR: files left after uninstall:" ; \ | ||
444 | if test -n "$(DESTDIR)"; then \ | ||
445 | echo " (check DESTDIR support)"; \ | ||
446 | fi ; \ | ||
447 | $(distuninstallcheck_listfiles) ; \ | ||
448 | exit 1; } >&2 | ||
449 | distcleancheck: distclean | ||
450 | @if test '$(srcdir)' = . ; then \ | ||
451 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | ||
452 | exit 1 ; \ | ||
453 | fi | ||
454 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | ||
455 | || { echo "ERROR: files left in build directory after distclean:" ; \ | ||
456 | $(distcleancheck_listfiles) ; \ | ||
457 | exit 1; } >&2 | ||
458 | check-am: all-am | ||
459 | check: check-recursive | ||
460 | all-am: Makefile config.h | ||
461 | installdirs: installdirs-recursive | ||
462 | installdirs-am: | ||
463 | |||
464 | install: install-recursive | ||
465 | install-exec: install-exec-recursive | ||
466 | install-data: install-data-recursive | ||
467 | uninstall: uninstall-recursive | ||
468 | |||
469 | install-am: all-am | ||
470 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
471 | |||
472 | installcheck: installcheck-recursive | ||
473 | install-strip: | ||
474 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
475 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
476 | `test -z '$(STRIP)' || \ | ||
477 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
478 | mostlyclean-generic: | ||
479 | |||
480 | clean-generic: | ||
481 | |||
482 | distclean-generic: | ||
483 | -rm -f $(CONFIG_CLEAN_FILES) | ||
484 | |||
485 | maintainer-clean-generic: | ||
486 | @echo "This command is intended for maintainers to use" | ||
487 | @echo "it deletes files that may require special tools to rebuild." | ||
488 | clean: clean-recursive | ||
489 | |||
490 | clean-am: clean-generic mostlyclean-am | ||
491 | |||
492 | distclean: distclean-recursive | ||
493 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
494 | -rm -f Makefile | ||
495 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags | ||
496 | |||
497 | dvi: dvi-recursive | ||
498 | |||
499 | dvi-am: | ||
500 | |||
501 | info: info-recursive | ||
502 | |||
503 | info-am: | ||
504 | |||
505 | install-data-am: | ||
506 | |||
507 | install-exec-am: | ||
508 | |||
509 | install-info: install-info-recursive | ||
510 | |||
511 | install-man: | ||
512 | |||
513 | installcheck-am: | ||
514 | |||
515 | maintainer-clean: maintainer-clean-recursive | ||
516 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
517 | -rm -rf $(top_srcdir)/autom4te.cache | ||
518 | -rm -f Makefile | ||
519 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
520 | |||
521 | mostlyclean: mostlyclean-recursive | ||
522 | |||
523 | mostlyclean-am: mostlyclean-generic | ||
524 | |||
525 | pdf: pdf-recursive | ||
526 | |||
527 | pdf-am: | ||
528 | |||
529 | ps: ps-recursive | ||
530 | |||
531 | ps-am: | ||
532 | |||
533 | uninstall-am: uninstall-info-am | ||
534 | |||
535 | uninstall-info: uninstall-info-recursive | ||
536 | |||
537 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ | ||
538 | clean-generic clean-recursive ctags ctags-recursive dist \ | ||
539 | dist-all dist-gzip distcheck distclean distclean-generic \ | ||
540 | distclean-hdr distclean-recursive distclean-tags distcleancheck \ | ||
541 | distdir distuninstallcheck dvi dvi-am dvi-recursive info \ | ||
542 | info-am info-recursive install install-am install-data \ | ||
543 | install-data-am install-data-recursive install-exec \ | ||
544 | install-exec-am install-exec-recursive install-info \ | ||
545 | install-info-am install-info-recursive install-man \ | ||
546 | install-recursive install-strip installcheck installcheck-am \ | ||
547 | installdirs installdirs-am installdirs-recursive \ | ||
548 | maintainer-clean maintainer-clean-generic \ | ||
549 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ | ||
550 | mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \ | ||
551 | ps-recursive tags tags-recursive uninstall uninstall-am \ | ||
552 | uninstall-info-am uninstall-info-recursive uninstall-recursive | ||
553 | |||
554 | |||
555 | deb: | ||
556 | fakeroot dpkg-buildpackage | ||
557 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
558 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
559 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.am new file mode 100644 index 0000000..b0b121e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.am | |||
@@ -0,0 +1,5 @@ | |||
1 | SUBDIRS = m4 man src thumbnailer pixmaps glade po | ||
2 | EXTRA_DIST = CREDITS COPYING.trackball README.thumbnailer | ||
3 | |||
4 | deb: | ||
5 | fakeroot dpkg-buildpackage | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.in new file mode 100644 index 0000000..743cd03 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/Makefile.in | |||
@@ -0,0 +1,559 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = . | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | SUBDIRS = m4 man src thumbnailer pixmaps glade po | ||
152 | EXTRA_DIST = CREDITS COPYING.trackball README.thumbnailer | ||
153 | subdir = . | ||
154 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
155 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
156 | CONFIG_HEADER = config.h | ||
157 | CONFIG_CLEAN_FILES = | ||
158 | DIST_SOURCES = | ||
159 | |||
160 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ | ||
161 | ps-recursive install-info-recursive uninstall-info-recursive \ | ||
162 | all-recursive install-data-recursive install-exec-recursive \ | ||
163 | installdirs-recursive install-recursive uninstall-recursive \ | ||
164 | check-recursive installcheck-recursive | ||
165 | DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ | ||
166 | COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \ | ||
167 | compile config.guess config.h.in config.sub configure \ | ||
168 | configure.in depcomp install-sh missing mkinstalldirs | ||
169 | DIST_SUBDIRS = $(SUBDIRS) | ||
170 | all: config.h | ||
171 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | ||
172 | |||
173 | .SUFFIXES: | ||
174 | |||
175 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | ||
176 | configure.lineno | ||
177 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
178 | cd $(top_srcdir) && \ | ||
179 | $(AUTOMAKE) --gnu Makefile | ||
180 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
181 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) | ||
182 | |||
183 | $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
184 | $(SHELL) ./config.status --recheck | ||
185 | $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) | ||
186 | cd $(srcdir) && $(AUTOCONF) | ||
187 | |||
188 | $(ACLOCAL_M4): configure.in | ||
189 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | ||
190 | |||
191 | config.h: stamp-h1 | ||
192 | @if test ! -f $@; then \ | ||
193 | rm -f stamp-h1; \ | ||
194 | $(MAKE) stamp-h1; \ | ||
195 | else :; fi | ||
196 | |||
197 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | ||
198 | @rm -f stamp-h1 | ||
199 | cd $(top_builddir) && $(SHELL) ./config.status config.h | ||
200 | |||
201 | $(srcdir)/config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
202 | cd $(top_srcdir) && $(AUTOHEADER) | ||
203 | touch $(srcdir)/config.h.in | ||
204 | |||
205 | distclean-hdr: | ||
206 | -rm -f config.h stamp-h1 | ||
207 | uninstall-info-am: | ||
208 | |||
209 | # This directory's subdirectories are mostly independent; you can cd | ||
210 | # into them and run `make' without going through this Makefile. | ||
211 | # To change the values of `make' variables: instead of editing Makefiles, | ||
212 | # (1) if the variable is set in `config.status', edit `config.status' | ||
213 | # (which will cause the Makefiles to be regenerated when you run `make'); | ||
214 | # (2) otherwise, pass the desired values on the `make' command line. | ||
215 | $(RECURSIVE_TARGETS): | ||
216 | @set fnord $$MAKEFLAGS; amf=$$2; \ | ||
217 | dot_seen=no; \ | ||
218 | target=`echo $@ | sed s/-recursive//`; \ | ||
219 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
220 | echo "Making $$target in $$subdir"; \ | ||
221 | if test "$$subdir" = "."; then \ | ||
222 | dot_seen=yes; \ | ||
223 | local_target="$$target-am"; \ | ||
224 | else \ | ||
225 | local_target="$$target"; \ | ||
226 | fi; \ | ||
227 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
228 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | ||
229 | done; \ | ||
230 | if test "$$dot_seen" = "no"; then \ | ||
231 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
232 | fi; test -z "$$fail" | ||
233 | |||
234 | mostlyclean-recursive clean-recursive distclean-recursive \ | ||
235 | maintainer-clean-recursive: | ||
236 | @set fnord $$MAKEFLAGS; amf=$$2; \ | ||
237 | dot_seen=no; \ | ||
238 | case "$@" in \ | ||
239 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
240 | *) list='$(SUBDIRS)' ;; \ | ||
241 | esac; \ | ||
242 | rev=''; for subdir in $$list; do \ | ||
243 | if test "$$subdir" = "."; then :; else \ | ||
244 | rev="$$subdir $$rev"; \ | ||
245 | fi; \ | ||
246 | done; \ | ||
247 | rev="$$rev ."; \ | ||
248 | target=`echo $@ | sed s/-recursive//`; \ | ||
249 | for subdir in $$rev; do \ | ||
250 | echo "Making $$target in $$subdir"; \ | ||
251 | if test "$$subdir" = "."; then \ | ||
252 | local_target="$$target-am"; \ | ||
253 | else \ | ||
254 | local_target="$$target"; \ | ||
255 | fi; \ | ||
256 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
257 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | ||
258 | done && test -z "$$fail" | ||
259 | tags-recursive: | ||
260 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
261 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
262 | done | ||
263 | ctags-recursive: | ||
264 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
265 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
266 | done | ||
267 | |||
268 | ETAGS = etags | ||
269 | ETAGSFLAGS = | ||
270 | |||
271 | CTAGS = ctags | ||
272 | CTAGSFLAGS = | ||
273 | |||
274 | tags: TAGS | ||
275 | |||
276 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
277 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
278 | unique=`for i in $$list; do \ | ||
279 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
280 | done | \ | ||
281 | $(AWK) ' { files[$$0] = 1; } \ | ||
282 | END { for (i in files) print i; }'`; \ | ||
283 | mkid -fID $$unique | ||
284 | |||
285 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
286 | $(TAGS_FILES) $(LISP) | ||
287 | tags=; \ | ||
288 | here=`pwd`; \ | ||
289 | if (etags --etags-include --version) >/dev/null 2>&1; then \ | ||
290 | include_option=--etags-include; \ | ||
291 | else \ | ||
292 | include_option=--include; \ | ||
293 | fi; \ | ||
294 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
295 | if test "$$subdir" = .; then :; else \ | ||
296 | test -f $$subdir/TAGS && \ | ||
297 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | ||
298 | fi; \ | ||
299 | done; \ | ||
300 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
301 | unique=`for i in $$list; do \ | ||
302 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
303 | done | \ | ||
304 | $(AWK) ' { files[$$0] = 1; } \ | ||
305 | END { for (i in files) print i; }'`; \ | ||
306 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
307 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
308 | $$tags $$unique | ||
309 | |||
310 | ctags: CTAGS | ||
311 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
312 | $(TAGS_FILES) $(LISP) | ||
313 | tags=; \ | ||
314 | here=`pwd`; \ | ||
315 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
316 | unique=`for i in $$list; do \ | ||
317 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
318 | done | \ | ||
319 | $(AWK) ' { files[$$0] = 1; } \ | ||
320 | END { for (i in files) print i; }'`; \ | ||
321 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
322 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
323 | $$tags $$unique | ||
324 | |||
325 | GTAGS: | ||
326 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
327 | && cd $(top_srcdir) \ | ||
328 | && gtags -i $(GTAGS_ARGS) $$here | ||
329 | |||
330 | distclean-tags: | ||
331 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
332 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
333 | |||
334 | top_distdir = . | ||
335 | distdir = $(PACKAGE)-$(VERSION) | ||
336 | |||
337 | am__remove_distdir = \ | ||
338 | { test ! -d $(distdir) \ | ||
339 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | ||
340 | && rm -fr $(distdir); }; } | ||
341 | |||
342 | GZIP_ENV = --best | ||
343 | distuninstallcheck_listfiles = find . -type f -print | ||
344 | distcleancheck_listfiles = find . -type f -print | ||
345 | |||
346 | distdir: $(DISTFILES) | ||
347 | $(am__remove_distdir) | ||
348 | mkdir $(distdir) | ||
349 | $(mkinstalldirs) $(distdir)/po | ||
350 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
351 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
352 | list='$(DISTFILES)'; for file in $$list; do \ | ||
353 | case $$file in \ | ||
354 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
355 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
356 | esac; \ | ||
357 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
358 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
359 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
360 | dir="/$$dir"; \ | ||
361 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
362 | else \ | ||
363 | dir=''; \ | ||
364 | fi; \ | ||
365 | if test -d $$d/$$file; then \ | ||
366 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
367 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
368 | fi; \ | ||
369 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
370 | else \ | ||
371 | test -f $(distdir)/$$file \ | ||
372 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
373 | || exit 1; \ | ||
374 | fi; \ | ||
375 | done | ||
376 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
377 | if test "$$subdir" = .; then :; else \ | ||
378 | test -d $(distdir)/$$subdir \ | ||
379 | || mkdir $(distdir)/$$subdir \ | ||
380 | || exit 1; \ | ||
381 | (cd $$subdir && \ | ||
382 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
383 | top_distdir="$(top_distdir)" \ | ||
384 | distdir=../$(distdir)/$$subdir \ | ||
385 | distdir) \ | ||
386 | || exit 1; \ | ||
387 | fi; \ | ||
388 | done | ||
389 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | ||
390 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | ||
391 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | ||
392 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | ||
393 | || chmod -R a+r $(distdir) | ||
394 | dist-gzip: distdir | ||
395 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
396 | $(am__remove_distdir) | ||
397 | |||
398 | dist dist-all: distdir | ||
399 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
400 | $(am__remove_distdir) | ||
401 | |||
402 | # This target untars the dist file and tries a VPATH configuration. Then | ||
403 | # it guarantees that the distribution is self-contained by making another | ||
404 | # tarfile. | ||
405 | distcheck: dist | ||
406 | $(am__remove_distdir) | ||
407 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - | ||
408 | chmod -R a-w $(distdir); chmod a+w $(distdir) | ||
409 | mkdir $(distdir)/_build | ||
410 | mkdir $(distdir)/_inst | ||
411 | chmod a-w $(distdir) | ||
412 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | ||
413 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | ||
414 | && cd $(distdir)/_build \ | ||
415 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | ||
416 | $(DISTCHECK_CONFIGURE_FLAGS) \ | ||
417 | && $(MAKE) $(AM_MAKEFLAGS) \ | ||
418 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | ||
419 | && $(MAKE) $(AM_MAKEFLAGS) check \ | ||
420 | && $(MAKE) $(AM_MAKEFLAGS) install \ | ||
421 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | ||
422 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | ||
423 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | ||
424 | distuninstallcheck \ | ||
425 | && chmod -R a-w "$$dc_install_base" \ | ||
426 | && ({ \ | ||
427 | (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ | ||
428 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | ||
429 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | ||
430 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | ||
431 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | ||
432 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | ||
433 | && rm -rf "$$dc_destdir" \ | ||
434 | && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ | ||
435 | && rm -f $(distdir).tar.gz \ | ||
436 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | ||
437 | $(am__remove_distdir) | ||
438 | @echo "$(distdir).tar.gz is ready for distribution" | \ | ||
439 | sed 'h;s/./=/g;p;x;p;x' | ||
440 | distuninstallcheck: | ||
441 | @cd $(distuninstallcheck_dir) \ | ||
442 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | ||
443 | || { echo "ERROR: files left after uninstall:" ; \ | ||
444 | if test -n "$(DESTDIR)"; then \ | ||
445 | echo " (check DESTDIR support)"; \ | ||
446 | fi ; \ | ||
447 | $(distuninstallcheck_listfiles) ; \ | ||
448 | exit 1; } >&2 | ||
449 | distcleancheck: distclean | ||
450 | @if test '$(srcdir)' = . ; then \ | ||
451 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | ||
452 | exit 1 ; \ | ||
453 | fi | ||
454 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | ||
455 | || { echo "ERROR: files left in build directory after distclean:" ; \ | ||
456 | $(distcleancheck_listfiles) ; \ | ||
457 | exit 1; } >&2 | ||
458 | check-am: all-am | ||
459 | check: check-recursive | ||
460 | all-am: Makefile config.h | ||
461 | installdirs: installdirs-recursive | ||
462 | installdirs-am: | ||
463 | |||
464 | install: install-recursive | ||
465 | install-exec: install-exec-recursive | ||
466 | install-data: install-data-recursive | ||
467 | uninstall: uninstall-recursive | ||
468 | |||
469 | install-am: all-am | ||
470 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
471 | |||
472 | installcheck: installcheck-recursive | ||
473 | install-strip: | ||
474 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
475 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
476 | `test -z '$(STRIP)' || \ | ||
477 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
478 | mostlyclean-generic: | ||
479 | |||
480 | clean-generic: | ||
481 | |||
482 | distclean-generic: | ||
483 | -rm -f $(CONFIG_CLEAN_FILES) | ||
484 | |||
485 | maintainer-clean-generic: | ||
486 | @echo "This command is intended for maintainers to use" | ||
487 | @echo "it deletes files that may require special tools to rebuild." | ||
488 | clean: clean-recursive | ||
489 | |||
490 | clean-am: clean-generic mostlyclean-am | ||
491 | |||
492 | distclean: distclean-recursive | ||
493 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
494 | -rm -f Makefile | ||
495 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags | ||
496 | |||
497 | dvi: dvi-recursive | ||
498 | |||
499 | dvi-am: | ||
500 | |||
501 | info: info-recursive | ||
502 | |||
503 | info-am: | ||
504 | |||
505 | install-data-am: | ||
506 | |||
507 | install-exec-am: | ||
508 | |||
509 | install-info: install-info-recursive | ||
510 | |||
511 | install-man: | ||
512 | |||
513 | installcheck-am: | ||
514 | |||
515 | maintainer-clean: maintainer-clean-recursive | ||
516 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
517 | -rm -rf $(top_srcdir)/autom4te.cache | ||
518 | -rm -f Makefile | ||
519 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
520 | |||
521 | mostlyclean: mostlyclean-recursive | ||
522 | |||
523 | mostlyclean-am: mostlyclean-generic | ||
524 | |||
525 | pdf: pdf-recursive | ||
526 | |||
527 | pdf-am: | ||
528 | |||
529 | ps: ps-recursive | ||
530 | |||
531 | ps-am: | ||
532 | |||
533 | uninstall-am: uninstall-info-am | ||
534 | |||
535 | uninstall-info: uninstall-info-recursive | ||
536 | |||
537 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ | ||
538 | clean-generic clean-recursive ctags ctags-recursive dist \ | ||
539 | dist-all dist-gzip distcheck distclean distclean-generic \ | ||
540 | distclean-hdr distclean-recursive distclean-tags distcleancheck \ | ||
541 | distdir distuninstallcheck dvi dvi-am dvi-recursive info \ | ||
542 | info-am info-recursive install install-am install-data \ | ||
543 | install-data-am install-data-recursive install-exec \ | ||
544 | install-exec-am install-exec-recursive install-info \ | ||
545 | install-info-am install-info-recursive install-man \ | ||
546 | install-recursive install-strip installcheck installcheck-am \ | ||
547 | installdirs installdirs-am installdirs-recursive \ | ||
548 | maintainer-clean maintainer-clean-generic \ | ||
549 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ | ||
550 | mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \ | ||
551 | ps-recursive tags tags-recursive uninstall uninstall-am \ | ||
552 | uninstall-info-am uninstall-info-recursive uninstall-recursive | ||
553 | |||
554 | |||
555 | deb: | ||
556 | fakeroot dpkg-buildpackage | ||
557 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
558 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
559 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/NEWS b/src/others/mimesh/g3dviewer-0.2.99.4/NEWS new file mode 100644 index 0000000..e4d5e69 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/NEWS | |||
@@ -0,0 +1,2 @@ | |||
1 | For changes from the last version you should read the ChangeLog. | ||
2 | All other news on http://automagically.de/?g3dviewer . | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/README b/src/others/mimesh/g3dviewer-0.2.99.4/README new file mode 100644 index 0000000..9791cec --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/README | |||
@@ -0,0 +1,23 @@ | |||
1 | g3dviewer - a 3D file viewer | ||
2 | |||
3 | REQUIREMENTS: | ||
4 | * GTK+ 2.4+ | ||
5 | * libglade >= 2.4.0 | ||
6 | * GtkGLExt 1.0+ | ||
7 | * OpenGL (GL & GLU library) | ||
8 | * Flex (optional, for VRML plugin) | ||
9 | |||
10 | Debian (Sarge+) Packages: | ||
11 | * GTK+ 2.4+: libgtk2.0-dev | ||
12 | * libglade libglade2-dev | ||
13 | * GtkGLExt: libgtkglext1-dev | ||
14 | * Mesa GL: xlibmesa-gl-dev | ||
15 | * Mesa GLU: xlibmesa-glu-dev | ||
16 | * Flex: flex | ||
17 | |||
18 | INSTALLATION: | ||
19 | Usual autoconf/automake installation, refer to INSTALL if you are not | ||
20 | familiar with this procedure. | ||
21 | |||
22 | SUPPORTED FILETYPES: | ||
23 | * see libg3d README | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/README.thumbnailer b/src/others/mimesh/g3dviewer-0.2.99.4/README.thumbnailer new file mode 100644 index 0000000..4931176 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/README.thumbnailer | |||
@@ -0,0 +1,14 @@ | |||
1 | G3D-THUMBNAILER | ||
2 | |||
3 | the directory "thumbnailer" contains a program to create small images | ||
4 | ("thumbnails") for file managers like Nautilus. The program ("g3d-thumbnailer") | ||
5 | is installed by default, but the integration step has to be done on a user | ||
6 | basis at the moment. To install the mime information (freedesktop.org shared | ||
7 | mime info stuff) and the integration into Nautilus you have to do the | ||
8 | following steps as _normal user_: | ||
9 | |||
10 | $ cd thumbnailer | ||
11 | $ make install-data-user | ||
12 | |||
13 | This procedure will be integrated into the usual installation process for | ||
14 | all users in the future. | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/TODO b/src/others/mimesh/g3dviewer-0.2.99.4/TODO new file mode 100644 index 0000000..daf41da --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/TODO | |||
@@ -0,0 +1,64 @@ | |||
1 | # OUT OF DATE! | ||
2 | |||
3 | short term: | ||
4 | * flex version check | ||
5 | * type cleanup | ||
6 | * fix imp_heightfield | ||
7 | * optional plugins | ||
8 | |||
9 | * 3ds lights | ||
10 | * correct normals (right direction faces) [added a hack (two-sided faces)] | ||
11 | * debug/info window (model tree, plugin infos, debug output...) | ||
12 | |||
13 | longer term: | ||
14 | * more filetype of course | ||
15 | * .max (no specs, may be just serialization of internal objects, | ||
16 | so very hard to implement) | ||
17 | * .wrl / .vrml (on the way) | ||
18 | * .x3d (http://www.web3d.org/x3d/specifications/) | ||
19 | * .flt (specs available) | ||
20 | * .off | ||
21 | * .blend (current blender format hard to implement (similar to .max), | ||
22 | blender will move to xml based format some time) | ||
23 | * .off | ||
24 | * .lcd (LeoCAD, http://leocad.org/, parts library: specs available, | ||
25 | lcd project files: source available) | ||
26 | |||
27 | ------------------------------------------------------------------------------- | ||
28 | done: | ||
29 | * center objects | ||
30 | * 3ds color materials | ||
31 | * interface inprovements (open dialog) | ||
32 | * move .so file building to libtool | ||
33 | ------------------------------------------------------------------------------- | ||
34 | TODO for 0.2.0 | ||
35 | * type cleanup (GLib / GL types only) | ||
36 | * textures optional | ||
37 | * twosided faces optional again | ||
38 | * heightfield? | ||
39 | |||
40 | release testing: | ||
41 | |||
42 | 0.1.0 0.2.0 | ||
43 | * GTK+ 1.2 + GtkGLArea: x ? | ||
44 | * GTK+ 2.x + GtkGLExt: x x | ||
45 | |||
46 | plugins [1]: | ||
47 | * .3mf / .b3d x | ||
48 | * .3ds x | ||
49 | * .ac - | ||
50 | * .cob x | ||
51 | * .dxf x | ||
52 | * .iob x | ||
53 | * .lwo (LWOB) x | ||
54 | * .lwo (LWO2) x | ||
55 | * .md2 x | ||
56 | * .obj x | ||
57 | * .prj x | ||
58 | * .q3o / .q3s x | ||
59 | * heightfield [2] | ||
60 | |||
61 | [1] plugin works with some (most) models and doesn't crash with unsupported | ||
62 | files | ||
63 | [2] not working in 0.1.0 for some mysterious reason | ||
64 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/aclocal.m4 b/src/others/mimesh/g3dviewer-0.2.99.4/aclocal.m4 new file mode 100644 index 0000000..998ce92 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/aclocal.m4 | |||
@@ -0,0 +1,2064 @@ | |||
1 | # generated automatically by aclocal 1.7.9 -*- Autoconf -*- | ||
2 | |||
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 | ||
4 | # Free Software Foundation, Inc. | ||
5 | # This file is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | |||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
12 | # PARTICULAR PURPOSE. | ||
13 | |||
14 | # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- | ||
15 | |||
16 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. | ||
17 | |||
18 | # This program is free software; you can redistribute it and/or modify | ||
19 | # it under the terms of the GNU General Public License as published by | ||
20 | # the Free Software Foundation; either version 2, or (at your option) | ||
21 | # any later version. | ||
22 | |||
23 | # This program is distributed in the hope that it will be useful, | ||
24 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | # GNU General Public License for more details. | ||
27 | |||
28 | # You should have received a copy of the GNU General Public License | ||
29 | # along with this program; if not, write to the Free Software | ||
30 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
31 | # 02111-1307, USA. | ||
32 | |||
33 | AC_PREREQ([2.52]) | ||
34 | |||
35 | # serial 6 | ||
36 | |||
37 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | ||
38 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | ||
39 | |||
40 | # Do all the work for Automake. -*- Autoconf -*- | ||
41 | |||
42 | # This macro actually does too much some checks are only needed if | ||
43 | # your package does certain things. But this isn't really a big deal. | ||
44 | |||
45 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
46 | # Free Software Foundation, Inc. | ||
47 | |||
48 | # This program is free software; you can redistribute it and/or modify | ||
49 | # it under the terms of the GNU General Public License as published by | ||
50 | # the Free Software Foundation; either version 2, or (at your option) | ||
51 | # any later version. | ||
52 | |||
53 | # This program is distributed in the hope that it will be useful, | ||
54 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
55 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
56 | # GNU General Public License for more details. | ||
57 | |||
58 | # You should have received a copy of the GNU General Public License | ||
59 | # along with this program; if not, write to the Free Software | ||
60 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
61 | # 02111-1307, USA. | ||
62 | |||
63 | # serial 10 | ||
64 | |||
65 | AC_PREREQ([2.54]) | ||
66 | |||
67 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow | ||
68 | # the ones we care about. | ||
69 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | ||
70 | |||
71 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | ||
72 | # AM_INIT_AUTOMAKE([OPTIONS]) | ||
73 | # ----------------------------------------------- | ||
74 | # The call with PACKAGE and VERSION arguments is the old style | ||
75 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | ||
76 | # and VERSION should now be passed to AC_INIT and removed from | ||
77 | # the call to AM_INIT_AUTOMAKE. | ||
78 | # We support both call styles for the transition. After | ||
79 | # the next Automake release, Autoconf can make the AC_INIT | ||
80 | # arguments mandatory, and then we can depend on a new Autoconf | ||
81 | # release and drop the old call support. | ||
82 | AC_DEFUN([AM_INIT_AUTOMAKE], | ||
83 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | ||
84 | AC_REQUIRE([AC_PROG_INSTALL])dnl | ||
85 | # test to see if srcdir already configured | ||
86 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
87 | test -f $srcdir/config.status; then | ||
88 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | ||
89 | fi | ||
90 | |||
91 | # test whether we have cygpath | ||
92 | if test -z "$CYGPATH_W"; then | ||
93 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
94 | CYGPATH_W='cygpath -w' | ||
95 | else | ||
96 | CYGPATH_W=echo | ||
97 | fi | ||
98 | fi | ||
99 | AC_SUBST([CYGPATH_W]) | ||
100 | |||
101 | # Define the identity of the package. | ||
102 | dnl Distinguish between old-style and new-style calls. | ||
103 | m4_ifval([$2], | ||
104 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | ||
105 | AC_SUBST([PACKAGE], [$1])dnl | ||
106 | AC_SUBST([VERSION], [$2])], | ||
107 | [_AM_SET_OPTIONS([$1])dnl | ||
108 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | ||
109 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | ||
110 | |||
111 | _AM_IF_OPTION([no-define],, | ||
112 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | ||
113 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | ||
114 | |||
115 | # Some tools Automake needs. | ||
116 | AC_REQUIRE([AM_SANITY_CHECK])dnl | ||
117 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | ||
118 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | ||
119 | AM_MISSING_PROG(AUTOCONF, autoconf) | ||
120 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | ||
121 | AM_MISSING_PROG(AUTOHEADER, autoheader) | ||
122 | AM_MISSING_PROG(MAKEINFO, makeinfo) | ||
123 | AM_MISSING_PROG(AMTAR, tar) | ||
124 | AM_PROG_INSTALL_SH | ||
125 | AM_PROG_INSTALL_STRIP | ||
126 | # We need awk for the "check" target. The system "awk" is bad on | ||
127 | # some platforms. | ||
128 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
129 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||
130 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
131 | |||
132 | _AM_IF_OPTION([no-dependencies],, | ||
133 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | ||
134 | [_AM_DEPENDENCIES(CC)], | ||
135 | [define([AC_PROG_CC], | ||
136 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | ||
137 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
138 | [_AM_DEPENDENCIES(CXX)], | ||
139 | [define([AC_PROG_CXX], | ||
140 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | ||
141 | ]) | ||
142 | ]) | ||
143 | |||
144 | |||
145 | # When config.status generates a header, we must update the stamp-h file. | ||
146 | # This file resides in the same directory as the config header | ||
147 | # that is generated. The stamp files are numbered to have different names. | ||
148 | |||
149 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | ||
150 | # loop where config.status creates the headers, so we can generate | ||
151 | # our stamp files there. | ||
152 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | ||
153 | [# Compute $1's index in $config_headers. | ||
154 | _am_stamp_count=1 | ||
155 | for _am_header in $config_headers :; do | ||
156 | case $_am_header in | ||
157 | $1 | $1:* ) | ||
158 | break ;; | ||
159 | * ) | ||
160 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
161 | esac | ||
162 | done | ||
163 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | ||
164 | |||
165 | # Copyright 2002 Free Software Foundation, Inc. | ||
166 | |||
167 | # This program is free software; you can redistribute it and/or modify | ||
168 | # it under the terms of the GNU General Public License as published by | ||
169 | # the Free Software Foundation; either version 2, or (at your option) | ||
170 | # any later version. | ||
171 | |||
172 | # This program is distributed in the hope that it will be useful, | ||
173 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
174 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
175 | # GNU General Public License for more details. | ||
176 | |||
177 | # You should have received a copy of the GNU General Public License | ||
178 | # along with this program; if not, write to the Free Software | ||
179 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
180 | |||
181 | # AM_AUTOMAKE_VERSION(VERSION) | ||
182 | # ---------------------------- | ||
183 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||
184 | # generated from the m4 files accompanying Automake X.Y. | ||
185 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) | ||
186 | |||
187 | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||
188 | # ------------------------------- | ||
189 | # Call AM_AUTOMAKE_VERSION so it can be traced. | ||
190 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | ||
191 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||
192 | [AM_AUTOMAKE_VERSION([1.7.9])]) | ||
193 | |||
194 | # Helper functions for option handling. -*- Autoconf -*- | ||
195 | |||
196 | # Copyright 2001, 2002 Free Software Foundation, Inc. | ||
197 | |||
198 | # This program is free software; you can redistribute it and/or modify | ||
199 | # it under the terms of the GNU General Public License as published by | ||
200 | # the Free Software Foundation; either version 2, or (at your option) | ||
201 | # any later version. | ||
202 | |||
203 | # This program is distributed in the hope that it will be useful, | ||
204 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
205 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
206 | # GNU General Public License for more details. | ||
207 | |||
208 | # You should have received a copy of the GNU General Public License | ||
209 | # along with this program; if not, write to the Free Software | ||
210 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
211 | # 02111-1307, USA. | ||
212 | |||
213 | # serial 2 | ||
214 | |||
215 | # _AM_MANGLE_OPTION(NAME) | ||
216 | # ----------------------- | ||
217 | AC_DEFUN([_AM_MANGLE_OPTION], | ||
218 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | ||
219 | |||
220 | # _AM_SET_OPTION(NAME) | ||
221 | # ------------------------------ | ||
222 | # Set option NAME. Presently that only means defining a flag for this option. | ||
223 | AC_DEFUN([_AM_SET_OPTION], | ||
224 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | ||
225 | |||
226 | # _AM_SET_OPTIONS(OPTIONS) | ||
227 | # ---------------------------------- | ||
228 | # OPTIONS is a space-separated list of Automake options. | ||
229 | AC_DEFUN([_AM_SET_OPTIONS], | ||
230 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | ||
231 | |||
232 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | ||
233 | # ------------------------------------------- | ||
234 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | ||
235 | AC_DEFUN([_AM_IF_OPTION], | ||
236 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | ||
237 | |||
238 | # | ||
239 | # Check to make sure that the build environment is sane. | ||
240 | # | ||
241 | |||
242 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. | ||
243 | |||
244 | # This program is free software; you can redistribute it and/or modify | ||
245 | # it under the terms of the GNU General Public License as published by | ||
246 | # the Free Software Foundation; either version 2, or (at your option) | ||
247 | # any later version. | ||
248 | |||
249 | # This program is distributed in the hope that it will be useful, | ||
250 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
251 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
252 | # GNU General Public License for more details. | ||
253 | |||
254 | # You should have received a copy of the GNU General Public License | ||
255 | # along with this program; if not, write to the Free Software | ||
256 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
257 | # 02111-1307, USA. | ||
258 | |||
259 | # serial 3 | ||
260 | |||
261 | # AM_SANITY_CHECK | ||
262 | # --------------- | ||
263 | AC_DEFUN([AM_SANITY_CHECK], | ||
264 | [AC_MSG_CHECKING([whether build environment is sane]) | ||
265 | # Just in case | ||
266 | sleep 1 | ||
267 | echo timestamp > conftest.file | ||
268 | # Do `set' in a subshell so we don't clobber the current shell's | ||
269 | # arguments. Must try -L first in case configure is actually a | ||
270 | # symlink; some systems play weird games with the mod time of symlinks | ||
271 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
272 | # directory). | ||
273 | if ( | ||
274 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
275 | if test "$[*]" = "X"; then | ||
276 | # -L didn't work. | ||
277 | set X `ls -t $srcdir/configure conftest.file` | ||
278 | fi | ||
279 | rm -f conftest.file | ||
280 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | ||
281 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | ||
282 | |||
283 | # If neither matched, then we have a broken ls. This can happen | ||
284 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
285 | # broken ls alias from the environment. This has actually | ||
286 | # happened. Such a system could not be considered "sane". | ||
287 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | ||
288 | alias in your environment]) | ||
289 | fi | ||
290 | |||
291 | test "$[2]" = conftest.file | ||
292 | ) | ||
293 | then | ||
294 | # Ok. | ||
295 | : | ||
296 | else | ||
297 | AC_MSG_ERROR([newly created file is older than distributed files! | ||
298 | Check your system clock]) | ||
299 | fi | ||
300 | AC_MSG_RESULT(yes)]) | ||
301 | |||
302 | # -*- Autoconf -*- | ||
303 | |||
304 | |||
305 | # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. | ||
306 | |||
307 | # This program is free software; you can redistribute it and/or modify | ||
308 | # it under the terms of the GNU General Public License as published by | ||
309 | # the Free Software Foundation; either version 2, or (at your option) | ||
310 | # any later version. | ||
311 | |||
312 | # This program is distributed in the hope that it will be useful, | ||
313 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
314 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
315 | # GNU General Public License for more details. | ||
316 | |||
317 | # You should have received a copy of the GNU General Public License | ||
318 | # along with this program; if not, write to the Free Software | ||
319 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
320 | # 02111-1307, USA. | ||
321 | |||
322 | # serial 3 | ||
323 | |||
324 | # AM_MISSING_PROG(NAME, PROGRAM) | ||
325 | # ------------------------------ | ||
326 | AC_DEFUN([AM_MISSING_PROG], | ||
327 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | ||
328 | $1=${$1-"${am_missing_run}$2"} | ||
329 | AC_SUBST($1)]) | ||
330 | |||
331 | |||
332 | # AM_MISSING_HAS_RUN | ||
333 | # ------------------ | ||
334 | # Define MISSING if not defined so far and test if it supports --run. | ||
335 | # If it does, set am_missing_run to use it, otherwise, to nothing. | ||
336 | AC_DEFUN([AM_MISSING_HAS_RUN], | ||
337 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
338 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
339 | # Use eval to expand $SHELL | ||
340 | if eval "$MISSING --run true"; then | ||
341 | am_missing_run="$MISSING --run " | ||
342 | else | ||
343 | am_missing_run= | ||
344 | AC_MSG_WARN([`missing' script is too old or missing]) | ||
345 | fi | ||
346 | ]) | ||
347 | |||
348 | # AM_AUX_DIR_EXPAND | ||
349 | |||
350 | # Copyright 2001 Free Software Foundation, Inc. | ||
351 | |||
352 | # This program is free software; you can redistribute it and/or modify | ||
353 | # it under the terms of the GNU General Public License as published by | ||
354 | # the Free Software Foundation; either version 2, or (at your option) | ||
355 | # any later version. | ||
356 | |||
357 | # This program is distributed in the hope that it will be useful, | ||
358 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
359 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
360 | # GNU General Public License for more details. | ||
361 | |||
362 | # You should have received a copy of the GNU General Public License | ||
363 | # along with this program; if not, write to the Free Software | ||
364 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
365 | # 02111-1307, USA. | ||
366 | |||
367 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | ||
368 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | ||
369 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | ||
370 | # | ||
371 | # Of course, Automake must honor this variable whenever it calls a | ||
372 | # tool from the auxiliary directory. The problem is that $srcdir (and | ||
373 | # therefore $ac_aux_dir as well) can be either absolute or relative, | ||
374 | # depending on how configure is run. This is pretty annoying, since | ||
375 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | ||
376 | # source directory, any form will work fine, but in subdirectories a | ||
377 | # relative path needs to be adjusted first. | ||
378 | # | ||
379 | # $ac_aux_dir/missing | ||
380 | # fails when called from a subdirectory if $ac_aux_dir is relative | ||
381 | # $top_srcdir/$ac_aux_dir/missing | ||
382 | # fails if $ac_aux_dir is absolute, | ||
383 | # fails when called from a subdirectory in a VPATH build with | ||
384 | # a relative $ac_aux_dir | ||
385 | # | ||
386 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | ||
387 | # are both prefixed by $srcdir. In an in-source build this is usually | ||
388 | # harmless because $srcdir is `.', but things will broke when you | ||
389 | # start a VPATH build or use an absolute $srcdir. | ||
390 | # | ||
391 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | ||
392 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | ||
393 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | ||
394 | # and then we would define $MISSING as | ||
395 | # MISSING="\${SHELL} $am_aux_dir/missing" | ||
396 | # This will work as long as MISSING is not called from configure, because | ||
397 | # unfortunately $(top_srcdir) has no meaning in configure. | ||
398 | # However there are other variables, like CC, which are often used in | ||
399 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | ||
400 | # | ||
401 | # Another solution, used here, is to always expand $ac_aux_dir to an | ||
402 | # absolute PATH. The drawback is that using absolute paths prevent a | ||
403 | # configured tree to be moved without reconfiguration. | ||
404 | |||
405 | # Rely on autoconf to set up CDPATH properly. | ||
406 | AC_PREREQ([2.50]) | ||
407 | |||
408 | AC_DEFUN([AM_AUX_DIR_EXPAND], [ | ||
409 | # expand $ac_aux_dir to an absolute path | ||
410 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
411 | ]) | ||
412 | |||
413 | # AM_PROG_INSTALL_SH | ||
414 | # ------------------ | ||
415 | # Define $install_sh. | ||
416 | |||
417 | # Copyright 2001 Free Software Foundation, Inc. | ||
418 | |||
419 | # This program is free software; you can redistribute it and/or modify | ||
420 | # it under the terms of the GNU General Public License as published by | ||
421 | # the Free Software Foundation; either version 2, or (at your option) | ||
422 | # any later version. | ||
423 | |||
424 | # This program is distributed in the hope that it will be useful, | ||
425 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
426 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
427 | # GNU General Public License for more details. | ||
428 | |||
429 | # You should have received a copy of the GNU General Public License | ||
430 | # along with this program; if not, write to the Free Software | ||
431 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
432 | # 02111-1307, USA. | ||
433 | |||
434 | AC_DEFUN([AM_PROG_INSTALL_SH], | ||
435 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
436 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
437 | AC_SUBST(install_sh)]) | ||
438 | |||
439 | # AM_PROG_INSTALL_STRIP | ||
440 | |||
441 | # Copyright 2001 Free Software Foundation, Inc. | ||
442 | |||
443 | # This program is free software; you can redistribute it and/or modify | ||
444 | # it under the terms of the GNU General Public License as published by | ||
445 | # the Free Software Foundation; either version 2, or (at your option) | ||
446 | # any later version. | ||
447 | |||
448 | # This program is distributed in the hope that it will be useful, | ||
449 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
450 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
451 | # GNU General Public License for more details. | ||
452 | |||
453 | # You should have received a copy of the GNU General Public License | ||
454 | # along with this program; if not, write to the Free Software | ||
455 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
456 | # 02111-1307, USA. | ||
457 | |||
458 | # One issue with vendor `install' (even GNU) is that you can't | ||
459 | # specify the program used to strip binaries. This is especially | ||
460 | # annoying in cross-compiling environments, where the build's strip | ||
461 | # is unlikely to handle the host's binaries. | ||
462 | # Fortunately install-sh will honor a STRIPPROG variable, so we | ||
463 | # always use install-sh in `make install-strip', and initialize | ||
464 | # STRIPPROG with the value of the STRIP variable (set by the user). | ||
465 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | ||
466 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | ||
467 | # Installed binaries are usually stripped using `strip' when the user | ||
468 | # run `make install-strip'. However `strip' might not be the right | ||
469 | # tool to use in cross-compilation environments, therefore Automake | ||
470 | # will honor the `STRIP' environment variable to overrule this program. | ||
471 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | ||
472 | if test "$cross_compiling" != no; then | ||
473 | AC_CHECK_TOOL([STRIP], [strip], :) | ||
474 | fi | ||
475 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
476 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | ||
477 | |||
478 | # -*- Autoconf -*- | ||
479 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
480 | |||
481 | # This program is free software; you can redistribute it and/or modify | ||
482 | # it under the terms of the GNU General Public License as published by | ||
483 | # the Free Software Foundation; either version 2, or (at your option) | ||
484 | # any later version. | ||
485 | |||
486 | # This program is distributed in the hope that it will be useful, | ||
487 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
488 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
489 | # GNU General Public License for more details. | ||
490 | |||
491 | # You should have received a copy of the GNU General Public License | ||
492 | # along with this program; if not, write to the Free Software | ||
493 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
494 | # 02111-1307, USA. | ||
495 | |||
496 | # serial 1 | ||
497 | |||
498 | # Check whether the underlying file-system supports filenames | ||
499 | # with a leading dot. For instance MS-DOS doesn't. | ||
500 | AC_DEFUN([AM_SET_LEADING_DOT], | ||
501 | [rm -rf .tst 2>/dev/null | ||
502 | mkdir .tst 2>/dev/null | ||
503 | if test -d .tst; then | ||
504 | am__leading_dot=. | ||
505 | else | ||
506 | am__leading_dot=_ | ||
507 | fi | ||
508 | rmdir .tst 2>/dev/null | ||
509 | AC_SUBST([am__leading_dot])]) | ||
510 | |||
511 | # serial 5 -*- Autoconf -*- | ||
512 | |||
513 | # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | ||
514 | |||
515 | # This program is free software; you can redistribute it and/or modify | ||
516 | # it under the terms of the GNU General Public License as published by | ||
517 | # the Free Software Foundation; either version 2, or (at your option) | ||
518 | # any later version. | ||
519 | |||
520 | # This program is distributed in the hope that it will be useful, | ||
521 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
522 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
523 | # GNU General Public License for more details. | ||
524 | |||
525 | # You should have received a copy of the GNU General Public License | ||
526 | # along with this program; if not, write to the Free Software | ||
527 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
528 | # 02111-1307, USA. | ||
529 | |||
530 | |||
531 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | ||
532 | # written in clear, in which case automake, when reading aclocal.m4, | ||
533 | # will think it sees a *use*, and therefore will trigger all it's | ||
534 | # C support machinery. Also note that it means that autoscan, seeing | ||
535 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | ||
536 | |||
537 | |||
538 | |||
539 | # _AM_DEPENDENCIES(NAME) | ||
540 | # ---------------------- | ||
541 | # See how the compiler implements dependency checking. | ||
542 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | ||
543 | # We try a few techniques and use that to set a single cache variable. | ||
544 | # | ||
545 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | ||
546 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | ||
547 | # dependency, and given that the user is not expected to run this macro, | ||
548 | # just rely on AC_PROG_CC. | ||
549 | AC_DEFUN([_AM_DEPENDENCIES], | ||
550 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | ||
551 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | ||
552 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | ||
553 | AC_REQUIRE([AM_DEP_TRACK])dnl | ||
554 | |||
555 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | ||
556 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | ||
557 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | ||
558 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | ||
559 | [depcc="$$1" am_compiler_list=]) | ||
560 | |||
561 | AC_CACHE_CHECK([dependency style of $depcc], | ||
562 | [am_cv_$1_dependencies_compiler_type], | ||
563 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
564 | # We make a subdir and do the tests there. Otherwise we can end up | ||
565 | # making bogus files that we don't know about and never remove. For | ||
566 | # instance it was reported that on HP-UX the gcc test will end up | ||
567 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
568 | # in D'. | ||
569 | mkdir conftest.dir | ||
570 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
571 | # using a relative directory. | ||
572 | cp "$am_depcomp" conftest.dir | ||
573 | cd conftest.dir | ||
574 | # We will build objects and dependencies in a subdirectory because | ||
575 | # it helps to detect inapplicable dependency modes. For instance | ||
576 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
577 | # side effect of compilation, but ICC will put the dependencies in | ||
578 | # the current directory while Tru64 will put them in the object | ||
579 | # directory. | ||
580 | mkdir sub | ||
581 | |||
582 | am_cv_$1_dependencies_compiler_type=none | ||
583 | if test "$am_compiler_list" = ""; then | ||
584 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | ||
585 | fi | ||
586 | for depmode in $am_compiler_list; do | ||
587 | # Setup a source with many dependencies, because some compilers | ||
588 | # like to wrap large dependency lists on column 80 (with \), and | ||
589 | # we should not choose a depcomp mode which is confused by this. | ||
590 | # | ||
591 | # We need to recreate these files for each test, as the compiler may | ||
592 | # overwrite some of them when testing with obscure command lines. | ||
593 | # This happens at least with the AIX C compiler. | ||
594 | : > sub/conftest.c | ||
595 | for i in 1 2 3 4 5 6; do | ||
596 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
597 | : > sub/conftst$i.h | ||
598 | done | ||
599 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
600 | |||
601 | case $depmode in | ||
602 | nosideeffect) | ||
603 | # after this tag, mechanisms are not by side-effect, so they'll | ||
604 | # only be used when explicitly requested | ||
605 | if test "x$enable_dependency_tracking" = xyes; then | ||
606 | continue | ||
607 | else | ||
608 | break | ||
609 | fi | ||
610 | ;; | ||
611 | none) break ;; | ||
612 | esac | ||
613 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
614 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
615 | # handle `-M -o', and we need to detect this. | ||
616 | if depmode=$depmode \ | ||
617 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
618 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
619 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
620 | >/dev/null 2>conftest.err && | ||
621 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
622 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
623 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
624 | # icc doesn't choke on unknown options, it will just issue warnings | ||
625 | # (even with -Werror). So we grep stderr for any message | ||
626 | # that says an option was ignored. | ||
627 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | ||
628 | am_cv_$1_dependencies_compiler_type=$depmode | ||
629 | break | ||
630 | fi | ||
631 | fi | ||
632 | done | ||
633 | |||
634 | cd .. | ||
635 | rm -rf conftest.dir | ||
636 | else | ||
637 | am_cv_$1_dependencies_compiler_type=none | ||
638 | fi | ||
639 | ]) | ||
640 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | ||
641 | AM_CONDITIONAL([am__fastdep$1], [ | ||
642 | test "x$enable_dependency_tracking" != xno \ | ||
643 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | ||
644 | ]) | ||
645 | |||
646 | |||
647 | # AM_SET_DEPDIR | ||
648 | # ------------- | ||
649 | # Choose a directory name for dependency files. | ||
650 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | ||
651 | AC_DEFUN([AM_SET_DEPDIR], | ||
652 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | ||
653 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | ||
654 | ]) | ||
655 | |||
656 | |||
657 | # AM_DEP_TRACK | ||
658 | # ------------ | ||
659 | AC_DEFUN([AM_DEP_TRACK], | ||
660 | [AC_ARG_ENABLE(dependency-tracking, | ||
661 | [ --disable-dependency-tracking Speeds up one-time builds | ||
662 | --enable-dependency-tracking Do not reject slow dependency extractors]) | ||
663 | if test "x$enable_dependency_tracking" != xno; then | ||
664 | am_depcomp="$ac_aux_dir/depcomp" | ||
665 | AMDEPBACKSLASH='\' | ||
666 | fi | ||
667 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | ||
668 | AC_SUBST([AMDEPBACKSLASH]) | ||
669 | ]) | ||
670 | |||
671 | # Generate code to set up dependency tracking. -*- Autoconf -*- | ||
672 | |||
673 | # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | ||
674 | |||
675 | # This program is free software; you can redistribute it and/or modify | ||
676 | # it under the terms of the GNU General Public License as published by | ||
677 | # the Free Software Foundation; either version 2, or (at your option) | ||
678 | # any later version. | ||
679 | |||
680 | # This program is distributed in the hope that it will be useful, | ||
681 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
682 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
683 | # GNU General Public License for more details. | ||
684 | |||
685 | # You should have received a copy of the GNU General Public License | ||
686 | # along with this program; if not, write to the Free Software | ||
687 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
688 | # 02111-1307, USA. | ||
689 | |||
690 | #serial 2 | ||
691 | |||
692 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
693 | # ------------------------------ | ||
694 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
695 | [for mf in $CONFIG_FILES; do | ||
696 | # Strip MF so we end up with the name of the file. | ||
697 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
698 | # Check whether this is an Automake generated Makefile or not. | ||
699 | # We used to match only the files named `Makefile.in', but | ||
700 | # some people rename them; so instead we look at the file content. | ||
701 | # Grep'ing the first line is not enough: some people post-process | ||
702 | # each Makefile.in and add a new line on top of each file to say so. | ||
703 | # So let's grep whole file. | ||
704 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
705 | dirpart=`AS_DIRNAME("$mf")` | ||
706 | else | ||
707 | continue | ||
708 | fi | ||
709 | grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue | ||
710 | # Extract the definition of DEP_FILES from the Makefile without | ||
711 | # running `make'. | ||
712 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | ||
713 | test -z "$DEPDIR" && continue | ||
714 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
715 | U=`sed -n -e '/^U = / s///p' < "$mf"` | ||
716 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | ||
717 | # We invoke sed twice because it is the simplest approach to | ||
718 | # changing $(DEPDIR) to its actual value in the expansion. | ||
719 | for file in `sed -n -e ' | ||
720 | /^DEP_FILES = .*\\\\$/ { | ||
721 | s/^DEP_FILES = // | ||
722 | :loop | ||
723 | s/\\\\$// | ||
724 | p | ||
725 | n | ||
726 | /\\\\$/ b loop | ||
727 | p | ||
728 | } | ||
729 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | ||
730 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
731 | # Make sure the directory exists. | ||
732 | test -f "$dirpart/$file" && continue | ||
733 | fdir=`AS_DIRNAME(["$file"])` | ||
734 | AS_MKDIR_P([$dirpart/$fdir]) | ||
735 | # echo "creating $dirpart/$file" | ||
736 | echo '# dummy' > "$dirpart/$file" | ||
737 | done | ||
738 | done | ||
739 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | ||
740 | |||
741 | |||
742 | # AM_OUTPUT_DEPENDENCY_COMMANDS | ||
743 | # ----------------------------- | ||
744 | # This macro should only be invoked once -- use via AC_REQUIRE. | ||
745 | # | ||
746 | # This code is only required when automatic dependency tracking | ||
747 | # is enabled. FIXME. This creates each `.P' file that we will | ||
748 | # need in order to bootstrap the dependency handling code. | ||
749 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
750 | [AC_CONFIG_COMMANDS([depfiles], | ||
751 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | ||
752 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | ||
753 | ]) | ||
754 | |||
755 | # Check to see how 'make' treats includes. -*- Autoconf -*- | ||
756 | |||
757 | # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | ||
758 | |||
759 | # This program is free software; you can redistribute it and/or modify | ||
760 | # it under the terms of the GNU General Public License as published by | ||
761 | # the Free Software Foundation; either version 2, or (at your option) | ||
762 | # any later version. | ||
763 | |||
764 | # This program is distributed in the hope that it will be useful, | ||
765 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
766 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
767 | # GNU General Public License for more details. | ||
768 | |||
769 | # You should have received a copy of the GNU General Public License | ||
770 | # along with this program; if not, write to the Free Software | ||
771 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
772 | # 02111-1307, USA. | ||
773 | |||
774 | # serial 2 | ||
775 | |||
776 | # AM_MAKE_INCLUDE() | ||
777 | # ----------------- | ||
778 | # Check to see how make treats includes. | ||
779 | AC_DEFUN([AM_MAKE_INCLUDE], | ||
780 | [am_make=${MAKE-make} | ||
781 | cat > confinc << 'END' | ||
782 | am__doit: | ||
783 | @echo done | ||
784 | .PHONY: am__doit | ||
785 | END | ||
786 | # If we don't find an include directive, just comment out the code. | ||
787 | AC_MSG_CHECKING([for style of include used by $am_make]) | ||
788 | am__include="#" | ||
789 | am__quote= | ||
790 | _am_result=none | ||
791 | # First try GNU make style include. | ||
792 | echo "include confinc" > confmf | ||
793 | # We grep out `Entering directory' and `Leaving directory' | ||
794 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
795 | # In particular we don't look at `^make:' because GNU make might | ||
796 | # be invoked under some other name (usually "gmake"), in which | ||
797 | # case it prints its new name instead of `make'. | ||
798 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
799 | am__include=include | ||
800 | am__quote= | ||
801 | _am_result=GNU | ||
802 | fi | ||
803 | # Now try BSD make style include. | ||
804 | if test "$am__include" = "#"; then | ||
805 | echo '.include "confinc"' > confmf | ||
806 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
807 | am__include=.include | ||
808 | am__quote="\"" | ||
809 | _am_result=BSD | ||
810 | fi | ||
811 | fi | ||
812 | AC_SUBST([am__include]) | ||
813 | AC_SUBST([am__quote]) | ||
814 | AC_MSG_RESULT([$_am_result]) | ||
815 | rm -f confinc confmf | ||
816 | ]) | ||
817 | |||
818 | # AM_CONDITIONAL -*- Autoconf -*- | ||
819 | |||
820 | # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. | ||
821 | |||
822 | # This program is free software; you can redistribute it and/or modify | ||
823 | # it under the terms of the GNU General Public License as published by | ||
824 | # the Free Software Foundation; either version 2, or (at your option) | ||
825 | # any later version. | ||
826 | |||
827 | # This program is distributed in the hope that it will be useful, | ||
828 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
829 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
830 | # GNU General Public License for more details. | ||
831 | |||
832 | # You should have received a copy of the GNU General Public License | ||
833 | # along with this program; if not, write to the Free Software | ||
834 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
835 | # 02111-1307, USA. | ||
836 | |||
837 | # serial 5 | ||
838 | |||
839 | AC_PREREQ(2.52) | ||
840 | |||
841 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | ||
842 | # ------------------------------------- | ||
843 | # Define a conditional. | ||
844 | AC_DEFUN([AM_CONDITIONAL], | ||
845 | [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | ||
846 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | ||
847 | AC_SUBST([$1_TRUE]) | ||
848 | AC_SUBST([$1_FALSE]) | ||
849 | if $2; then | ||
850 | $1_TRUE= | ||
851 | $1_FALSE='#' | ||
852 | else | ||
853 | $1_TRUE='#' | ||
854 | $1_FALSE= | ||
855 | fi | ||
856 | AC_CONFIG_COMMANDS_PRE( | ||
857 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | ||
858 | AC_MSG_ERROR([conditional "$1" was never defined. | ||
859 | Usually this means the macro was only invoked conditionally.]) | ||
860 | fi])]) | ||
861 | |||
862 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | ||
863 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | ||
864 | # | ||
865 | # This file is free software, distributed under the terms of the GNU | ||
866 | # General Public License. As a special exception to the GNU General | ||
867 | # Public License, this file may be distributed as part of a program | ||
868 | # that contains a configuration script generated by Autoconf, under | ||
869 | # the same distribution terms as the rest of that program. | ||
870 | # | ||
871 | # This file can be copied and used freely without restrictions. It can | ||
872 | # be used in projects which are not available under the GNU Public License | ||
873 | # but which still want to provide support for the GNU gettext functionality. | ||
874 | # | ||
875 | # Macro to add for using GNU gettext. | ||
876 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | ||
877 | # | ||
878 | # Modified to never use included libintl. | ||
879 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | ||
880 | # | ||
881 | # Major rework to remove unused code | ||
882 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | ||
883 | # | ||
884 | # Added better handling of ALL_LINGUAS from GNU gettext version | ||
885 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | ||
886 | # | ||
887 | # Modified to require ngettext | ||
888 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | ||
889 | # | ||
890 | # We need this here as well, since someone might use autoconf-2.5x | ||
891 | # to configure GLib then an older version to configure a package | ||
892 | # using AM_GLIB_GNU_GETTEXT | ||
893 | AC_PREREQ(2.53) | ||
894 | |||
895 | dnl | ||
896 | dnl We go to great lengths to make sure that aclocal won't | ||
897 | dnl try to pull in the installed version of these macros | ||
898 | dnl when running aclocal in the glib directory. | ||
899 | dnl | ||
900 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
901 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | ||
902 | dnl | ||
903 | dnl At the end, if we're not within glib, we'll define the public | ||
904 | dnl definitions in terms of our private definitions. | ||
905 | dnl | ||
906 | |||
907 | # GLIB_LC_MESSAGES | ||
908 | #-------------------- | ||
909 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
910 | [AC_CHECK_HEADERS([locale.h]) | ||
911 | if test $ac_cv_header_locale_h = yes; then | ||
912 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
913 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
914 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
915 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
916 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
917 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
918 | fi | ||
919 | fi]) | ||
920 | |||
921 | # GLIB_PATH_PROG_WITH_TEST | ||
922 | #---------------------------- | ||
923 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
924 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
925 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | ||
926 | [# Extract the first word of "$2", so it can be a program name with args. | ||
927 | set dummy $2; ac_word=[$]2 | ||
928 | AC_MSG_CHECKING([for $ac_word]) | ||
929 | AC_CACHE_VAL(ac_cv_path_$1, | ||
930 | [case "[$]$1" in | ||
931 | /*) | ||
932 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
933 | ;; | ||
934 | *) | ||
935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
936 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
937 | test -z "$ac_dir" && ac_dir=. | ||
938 | if test -f $ac_dir/$ac_word; then | ||
939 | if [$3]; then | ||
940 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
941 | break | ||
942 | fi | ||
943 | fi | ||
944 | done | ||
945 | IFS="$ac_save_ifs" | ||
946 | dnl If no 4th arg is given, leave the cache variable unset, | ||
947 | dnl so AC_PATH_PROGS will keep looking. | ||
948 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
949 | ])dnl | ||
950 | ;; | ||
951 | esac])dnl | ||
952 | $1="$ac_cv_path_$1" | ||
953 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
954 | AC_MSG_RESULT([$]$1) | ||
955 | else | ||
956 | AC_MSG_RESULT(no) | ||
957 | fi | ||
958 | AC_SUBST($1)dnl | ||
959 | ]) | ||
960 | |||
961 | # GLIB_WITH_NLS | ||
962 | #----------------- | ||
963 | glib_DEFUN([GLIB_WITH_NLS], | ||
964 | dnl NLS is obligatory | ||
965 | [USE_NLS=yes | ||
966 | AC_SUBST(USE_NLS) | ||
967 | |||
968 | gt_cv_have_gettext=no | ||
969 | |||
970 | CATOBJEXT=NONE | ||
971 | XGETTEXT=: | ||
972 | INTLLIBS= | ||
973 | |||
974 | AC_CHECK_HEADER(libintl.h, | ||
975 | [gt_cv_func_dgettext_libintl="no" | ||
976 | libintl_extra_libs="" | ||
977 | |||
978 | # | ||
979 | # First check in libc | ||
980 | # | ||
981 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | ||
982 | [AC_TRY_LINK([ | ||
983 | #include <libintl.h> | ||
984 | ], | ||
985 | [return !ngettext ("","", 1)], | ||
986 | gt_cv_func_ngettext_libc=yes, | ||
987 | gt_cv_func_ngettext_libc=no) | ||
988 | ]) | ||
989 | |||
990 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
991 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | ||
992 | [AC_TRY_LINK([ | ||
993 | #include <libintl.h> | ||
994 | ], | ||
995 | [return !dgettext ("","")], | ||
996 | gt_cv_func_dgettext_libc=yes, | ||
997 | gt_cv_func_dgettext_libc=no) | ||
998 | ]) | ||
999 | fi | ||
1000 | |||
1001 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
1002 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
1003 | fi | ||
1004 | |||
1005 | # | ||
1006 | # If we don't have everything we want, check in libintl | ||
1007 | # | ||
1008 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
1009 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
1010 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
1011 | |||
1012 | AC_CHECK_LIB(intl, bindtextdomain, | ||
1013 | [AC_CHECK_LIB(intl, ngettext, | ||
1014 | [AC_CHECK_LIB(intl, dgettext, | ||
1015 | gt_cv_func_dgettext_libintl=yes)])]) | ||
1016 | |||
1017 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
1018 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | ||
1019 | AC_MSG_RESULT([]) | ||
1020 | AC_CHECK_LIB(intl, ngettext, | ||
1021 | [AC_CHECK_LIB(intl, dcgettext, | ||
1022 | [gt_cv_func_dgettext_libintl=yes | ||
1023 | libintl_extra_libs=-liconv], | ||
1024 | :,-liconv)], | ||
1025 | :,-liconv) | ||
1026 | fi | ||
1027 | |||
1028 | # | ||
1029 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
1030 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
1031 | # and both have dgettext and ngettext | ||
1032 | # | ||
1033 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
1034 | glib_save_LIBS="$LIBS" | ||
1035 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
1036 | unset ac_cv_func_bind_textdomain_codeset | ||
1037 | AC_CHECK_FUNCS(bind_textdomain_codeset) | ||
1038 | LIBS="$glib_save_LIBS" | ||
1039 | |||
1040 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
1041 | gt_cv_func_dgettext_libc=no | ||
1042 | else | ||
1043 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
1044 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
1045 | gt_cv_func_dgettext_libintl=no | ||
1046 | fi | ||
1047 | fi | ||
1048 | fi | ||
1049 | fi | ||
1050 | |||
1051 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
1052 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
1053 | gt_cv_have_gettext=yes | ||
1054 | fi | ||
1055 | |||
1056 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
1057 | INTLLIBS="-lintl $libintl_extra_libs" | ||
1058 | fi | ||
1059 | |||
1060 | if test "$gt_cv_have_gettext" = "yes"; then | ||
1061 | AC_DEFINE(HAVE_GETTEXT,1, | ||
1062 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
1063 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
1064 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | ||
1065 | if test "$MSGFMT" != "no"; then | ||
1066 | glib_save_LIBS="$LIBS" | ||
1067 | LIBS="$LIBS $INTLLIBS" | ||
1068 | AC_CHECK_FUNCS(dcgettext) | ||
1069 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
1070 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
1071 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | ||
1072 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | ||
1073 | return _nl_msg_cat_cntr], | ||
1074 | [CATOBJEXT=.gmo | ||
1075 | DATADIRNAME=share], | ||
1076 | [case $host in | ||
1077 | *-*-solaris*) | ||
1078 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
1079 | dnl GNU format message catalog is always supported, | ||
1080 | dnl since both are added to the libc all together. | ||
1081 | dnl Hence, we'd like to go with DATADIRNAME=share and | ||
1082 | dnl and CATOBJEXT=.gmo in this case. | ||
1083 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
1084 | [CATOBJEXT=.gmo | ||
1085 | DATADIRNAME=share], | ||
1086 | [CATOBJEXT=.mo | ||
1087 | DATADIRNAME=lib]) | ||
1088 | ;; | ||
1089 | *) | ||
1090 | CATOBJEXT=.mo | ||
1091 | DATADIRNAME=lib | ||
1092 | ;; | ||
1093 | esac]) | ||
1094 | LIBS="$glib_save_LIBS" | ||
1095 | INSTOBJEXT=.mo | ||
1096 | else | ||
1097 | gt_cv_have_gettext=no | ||
1098 | fi | ||
1099 | fi | ||
1100 | ]) | ||
1101 | |||
1102 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
1103 | AC_DEFINE(ENABLE_NLS, 1, | ||
1104 | [always defined to indicate that i18n is enabled]) | ||
1105 | fi | ||
1106 | |||
1107 | dnl Test whether we really found GNU xgettext. | ||
1108 | if test "$XGETTEXT" != ":"; then | ||
1109 | dnl If it is not GNU xgettext we define it as : so that the | ||
1110 | dnl Makefiles still can work. | ||
1111 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
1112 | : ; | ||
1113 | else | ||
1114 | AC_MSG_RESULT( | ||
1115 | [found xgettext program is not GNU xgettext; ignore it]) | ||
1116 | XGETTEXT=":" | ||
1117 | fi | ||
1118 | fi | ||
1119 | |||
1120 | # We need to process the po/ directory. | ||
1121 | POSUB=po | ||
1122 | |||
1123 | AC_OUTPUT_COMMANDS( | ||
1124 | [case "$CONFIG_FILES" in *po/Makefile.in*) | ||
1125 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
1126 | esac]) | ||
1127 | |||
1128 | dnl These rules are solely for the distribution goal. While doing this | ||
1129 | dnl we only have to keep exactly one list of the available catalogs | ||
1130 | dnl in configure.in. | ||
1131 | for lang in $ALL_LINGUAS; do | ||
1132 | GMOFILES="$GMOFILES $lang.gmo" | ||
1133 | POFILES="$POFILES $lang.po" | ||
1134 | done | ||
1135 | |||
1136 | dnl Make all variables we use known to autoconf. | ||
1137 | AC_SUBST(CATALOGS) | ||
1138 | AC_SUBST(CATOBJEXT) | ||
1139 | AC_SUBST(DATADIRNAME) | ||
1140 | AC_SUBST(GMOFILES) | ||
1141 | AC_SUBST(INSTOBJEXT) | ||
1142 | AC_SUBST(INTLLIBS) | ||
1143 | AC_SUBST(PO_IN_DATADIR_TRUE) | ||
1144 | AC_SUBST(PO_IN_DATADIR_FALSE) | ||
1145 | AC_SUBST(POFILES) | ||
1146 | AC_SUBST(POSUB) | ||
1147 | ]) | ||
1148 | |||
1149 | # AM_GLIB_GNU_GETTEXT | ||
1150 | # ------------------- | ||
1151 | # Do checks necessary for use of gettext. If a suitable implementation | ||
1152 | # of gettext is found in either in libintl or in the C library, | ||
1153 | # it will set INTLLIBS to the libraries needed for use of gettext | ||
1154 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | ||
1155 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | ||
1156 | # on various variables needed by the Makefile.in.in installed by | ||
1157 | # glib-gettextize. | ||
1158 | dnl | ||
1159 | glib_DEFUN([GLIB_GNU_GETTEXT], | ||
1160 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1161 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
1162 | |||
1163 | GLIB_LC_MESSAGES | ||
1164 | GLIB_WITH_NLS | ||
1165 | |||
1166 | if test "$gt_cv_have_gettext" = "yes"; then | ||
1167 | if test "x$ALL_LINGUAS" = "x"; then | ||
1168 | LINGUAS= | ||
1169 | else | ||
1170 | AC_MSG_CHECKING(for catalogs to be installed) | ||
1171 | NEW_LINGUAS= | ||
1172 | for presentlang in $ALL_LINGUAS; do | ||
1173 | useit=no | ||
1174 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
1175 | desiredlanguages="$LINGUAS" | ||
1176 | else | ||
1177 | desiredlanguages="$ALL_LINGUAS" | ||
1178 | fi | ||
1179 | for desiredlang in $desiredlanguages; do | ||
1180 | # Use the presentlang catalog if desiredlang is | ||
1181 | # a. equal to presentlang, or | ||
1182 | # b. a variant of presentlang (because in this case, | ||
1183 | # presentlang can be used as a fallback for messages | ||
1184 | # which are not translated in the desiredlang catalog). | ||
1185 | case "$desiredlang" in | ||
1186 | "$presentlang"*) useit=yes;; | ||
1187 | esac | ||
1188 | done | ||
1189 | if test $useit = yes; then | ||
1190 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
1191 | fi | ||
1192 | done | ||
1193 | LINGUAS=$NEW_LINGUAS | ||
1194 | AC_MSG_RESULT($LINGUAS) | ||
1195 | fi | ||
1196 | |||
1197 | dnl Construct list of names of catalog files to be constructed. | ||
1198 | if test -n "$LINGUAS"; then | ||
1199 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
1200 | fi | ||
1201 | fi | ||
1202 | |||
1203 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
1204 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | ||
1205 | dnl Try to locate is. | ||
1206 | MKINSTALLDIRS= | ||
1207 | if test -n "$ac_aux_dir"; then | ||
1208 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
1209 | fi | ||
1210 | if test -z "$MKINSTALLDIRS"; then | ||
1211 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
1212 | fi | ||
1213 | AC_SUBST(MKINSTALLDIRS) | ||
1214 | |||
1215 | dnl Generate list of files to be processed by xgettext which will | ||
1216 | dnl be included in po/Makefile. | ||
1217 | test -d po || mkdir po | ||
1218 | if test "x$srcdir" != "x."; then | ||
1219 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
1220 | posrcprefix="$srcdir/" | ||
1221 | else | ||
1222 | posrcprefix="../$srcdir/" | ||
1223 | fi | ||
1224 | else | ||
1225 | posrcprefix="../" | ||
1226 | fi | ||
1227 | rm -f po/POTFILES | ||
1228 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
1229 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
1230 | ]) | ||
1231 | |||
1232 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | ||
1233 | # ------------------------------- | ||
1234 | # Define VARIABLE to the location where catalog files will | ||
1235 | # be installed by po/Makefile. | ||
1236 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | ||
1237 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | ||
1238 | glib_save_prefix="$prefix" | ||
1239 | glib_save_exec_prefix="$exec_prefix" | ||
1240 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
1241 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | ||
1242 | if test "x$CATOBJEXT" = "x.mo" ; then | ||
1243 | localedir=`eval echo "${libdir}/locale"` | ||
1244 | else | ||
1245 | localedir=`eval echo "${datadir}/locale"` | ||
1246 | fi | ||
1247 | prefix="$glib_save_prefix" | ||
1248 | exec_prefix="$glib_save_exec_prefix" | ||
1249 | AC_DEFINE_UNQUOTED($1, "$localedir", | ||
1250 | [Define the location where the catalogs will be installed]) | ||
1251 | ]) | ||
1252 | |||
1253 | dnl | ||
1254 | dnl Now the definitions that aclocal will find | ||
1255 | dnl | ||
1256 | ifdef(glib_configure_in,[],[ | ||
1257 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | ||
1258 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | ||
1259 | ])dnl | ||
1260 | |||
1261 | # Configure paths for GLIB | ||
1262 | # Owen Taylor 1997-2001 | ||
1263 | |||
1264 | dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | ||
1265 | dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or | ||
1266 | dnl gthread is specified in MODULES, pass to pkg-config | ||
1267 | dnl | ||
1268 | AC_DEFUN([AM_PATH_GLIB_2_0], | ||
1269 | [dnl | ||
1270 | dnl Get the cflags and libraries from pkg-config | ||
1271 | dnl | ||
1272 | AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], | ||
1273 | , enable_glibtest=yes) | ||
1274 | |||
1275 | pkg_config_args=glib-2.0 | ||
1276 | for module in . $4 | ||
1277 | do | ||
1278 | case "$module" in | ||
1279 | gmodule) | ||
1280 | pkg_config_args="$pkg_config_args gmodule-2.0" | ||
1281 | ;; | ||
1282 | gmodule-no-export) | ||
1283 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" | ||
1284 | ;; | ||
1285 | gobject) | ||
1286 | pkg_config_args="$pkg_config_args gobject-2.0" | ||
1287 | ;; | ||
1288 | gthread) | ||
1289 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
1290 | ;; | ||
1291 | esac | ||
1292 | done | ||
1293 | |||
1294 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
1295 | |||
1296 | no_glib="" | ||
1297 | |||
1298 | if test x$PKG_CONFIG != xno ; then | ||
1299 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | ||
1300 | : | ||
1301 | else | ||
1302 | echo *** pkg-config too old; version 0.7 or better required. | ||
1303 | no_glib=yes | ||
1304 | PKG_CONFIG=no | ||
1305 | fi | ||
1306 | else | ||
1307 | no_glib=yes | ||
1308 | fi | ||
1309 | |||
1310 | min_glib_version=ifelse([$1], ,2.0.0,$1) | ||
1311 | AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) | ||
1312 | |||
1313 | if test x$PKG_CONFIG != xno ; then | ||
1314 | ## don't try to run the test against uninstalled libtool libs | ||
1315 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
1316 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" | ||
1317 | enable_glibtest=no | ||
1318 | fi | ||
1319 | |||
1320 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then | ||
1321 | : | ||
1322 | else | ||
1323 | no_glib=yes | ||
1324 | fi | ||
1325 | fi | ||
1326 | |||
1327 | if test x"$no_glib" = x ; then | ||
1328 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` | ||
1329 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` | ||
1330 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
1331 | |||
1332 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` | ||
1333 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` | ||
1334 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
1335 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
1336 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
1337 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
1338 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
1339 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
1340 | if test "x$enable_glibtest" = "xyes" ; then | ||
1341 | ac_save_CFLAGS="$CFLAGS" | ||
1342 | ac_save_LIBS="$LIBS" | ||
1343 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
1344 | LIBS="$GLIB_LIBS $LIBS" | ||
1345 | dnl | ||
1346 | dnl Now check if the installed GLIB is sufficiently new. (Also sanity | ||
1347 | dnl checks the results of pkg-config to some extent) | ||
1348 | dnl | ||
1349 | rm -f conf.glibtest | ||
1350 | AC_TRY_RUN([ | ||
1351 | #include <glib.h> | ||
1352 | #include <stdio.h> | ||
1353 | #include <stdlib.h> | ||
1354 | |||
1355 | int | ||
1356 | main () | ||
1357 | { | ||
1358 | int major, minor, micro; | ||
1359 | char *tmp_version; | ||
1360 | |||
1361 | system ("touch conf.glibtest"); | ||
1362 | |||
1363 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
1364 | tmp_version = g_strdup("$min_glib_version"); | ||
1365 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
1366 | printf("%s, bad version string\n", "$min_glib_version"); | ||
1367 | exit(1); | ||
1368 | } | ||
1369 | |||
1370 | if ((glib_major_version != $glib_config_major_version) || | ||
1371 | (glib_minor_version != $glib_config_minor_version) || | ||
1372 | (glib_micro_version != $glib_config_micro_version)) | ||
1373 | { | ||
1374 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
1375 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
1376 | glib_major_version, glib_minor_version, glib_micro_version); | ||
1377 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
1378 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); | ||
1379 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
1380 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
1381 | printf("*** required on your system.\n"); | ||
1382 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
1383 | printf("*** to point to the correct configuration files\n"); | ||
1384 | } | ||
1385 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
1386 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
1387 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
1388 | { | ||
1389 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
1390 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
1391 | printf("*** library (version %d.%d.%d)\n", | ||
1392 | glib_major_version, glib_minor_version, glib_micro_version); | ||
1393 | } | ||
1394 | else | ||
1395 | { | ||
1396 | if ((glib_major_version > major) || | ||
1397 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
1398 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
1399 | { | ||
1400 | return 0; | ||
1401 | } | ||
1402 | else | ||
1403 | { | ||
1404 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
1405 | glib_major_version, glib_minor_version, glib_micro_version); | ||
1406 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
1407 | major, minor, micro); | ||
1408 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
1409 | printf("***\n"); | ||
1410 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
1411 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
1412 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
1413 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
1414 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
1415 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
1416 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
1417 | } | ||
1418 | } | ||
1419 | return 1; | ||
1420 | } | ||
1421 | ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
1422 | CFLAGS="$ac_save_CFLAGS" | ||
1423 | LIBS="$ac_save_LIBS" | ||
1424 | fi | ||
1425 | fi | ||
1426 | if test "x$no_glib" = x ; then | ||
1427 | AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) | ||
1428 | ifelse([$2], , :, [$2]) | ||
1429 | else | ||
1430 | AC_MSG_RESULT(no) | ||
1431 | if test "$PKG_CONFIG" = "no" ; then | ||
1432 | echo "*** A new enough version of pkg-config was not found." | ||
1433 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" | ||
1434 | else | ||
1435 | if test -f conf.glibtest ; then | ||
1436 | : | ||
1437 | else | ||
1438 | echo "*** Could not run GLIB test program, checking why..." | ||
1439 | ac_save_CFLAGS="$CFLAGS" | ||
1440 | ac_save_LIBS="$LIBS" | ||
1441 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
1442 | LIBS="$LIBS $GLIB_LIBS" | ||
1443 | AC_TRY_LINK([ | ||
1444 | #include <glib.h> | ||
1445 | #include <stdio.h> | ||
1446 | ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], | ||
1447 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
1448 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
1449 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
1450 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
1451 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
1452 | echo "*** is required on your system" | ||
1453 | echo "***" | ||
1454 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
1455 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
1456 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
1457 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) | ||
1458 | CFLAGS="$ac_save_CFLAGS" | ||
1459 | LIBS="$ac_save_LIBS" | ||
1460 | fi | ||
1461 | fi | ||
1462 | GLIB_CFLAGS="" | ||
1463 | GLIB_LIBS="" | ||
1464 | GLIB_GENMARSHAL="" | ||
1465 | GOBJECT_QUERY="" | ||
1466 | GLIB_MKENUMS="" | ||
1467 | ifelse([$3], , :, [$3]) | ||
1468 | fi | ||
1469 | AC_SUBST(GLIB_CFLAGS) | ||
1470 | AC_SUBST(GLIB_LIBS) | ||
1471 | AC_SUBST(GLIB_GENMARSHAL) | ||
1472 | AC_SUBST(GOBJECT_QUERY) | ||
1473 | AC_SUBST(GLIB_MKENUMS) | ||
1474 | rm -f conf.glibtest | ||
1475 | ]) | ||
1476 | |||
1477 | # Configure paths for GTK+ | ||
1478 | # Owen Taylor 1997-2001 | ||
1479 | |||
1480 | dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | ||
1481 | dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, | ||
1482 | dnl pass to pkg-config | ||
1483 | dnl | ||
1484 | AC_DEFUN([AM_PATH_GTK_2_0], | ||
1485 | [dnl | ||
1486 | dnl Get the cflags and libraries from pkg-config | ||
1487 | dnl | ||
1488 | AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], | ||
1489 | , enable_gtktest=yes) | ||
1490 | |||
1491 | pkg_config_args=gtk+-2.0 | ||
1492 | for module in . $4 | ||
1493 | do | ||
1494 | case "$module" in | ||
1495 | gthread) | ||
1496 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
1497 | ;; | ||
1498 | esac | ||
1499 | done | ||
1500 | |||
1501 | no_gtk="" | ||
1502 | |||
1503 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
1504 | |||
1505 | if test x$PKG_CONFIG != xno ; then | ||
1506 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | ||
1507 | : | ||
1508 | else | ||
1509 | echo "*** pkg-config too old; version 0.7 or better required." | ||
1510 | no_gtk=yes | ||
1511 | PKG_CONFIG=no | ||
1512 | fi | ||
1513 | else | ||
1514 | no_gtk=yes | ||
1515 | fi | ||
1516 | |||
1517 | min_gtk_version=ifelse([$1], ,2.0.0,$1) | ||
1518 | AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) | ||
1519 | |||
1520 | if test x$PKG_CONFIG != xno ; then | ||
1521 | ## don't try to run the test against uninstalled libtool libs | ||
1522 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
1523 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | ||
1524 | enable_gtktest=no | ||
1525 | fi | ||
1526 | |||
1527 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | ||
1528 | : | ||
1529 | else | ||
1530 | no_gtk=yes | ||
1531 | fi | ||
1532 | fi | ||
1533 | |||
1534 | if test x"$no_gtk" = x ; then | ||
1535 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | ||
1536 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | ||
1537 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
1538 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
1539 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
1540 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
1541 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
1542 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
1543 | if test "x$enable_gtktest" = "xyes" ; then | ||
1544 | ac_save_CFLAGS="$CFLAGS" | ||
1545 | ac_save_LIBS="$LIBS" | ||
1546 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
1547 | LIBS="$GTK_LIBS $LIBS" | ||
1548 | dnl | ||
1549 | dnl Now check if the installed GTK+ is sufficiently new. (Also sanity | ||
1550 | dnl checks the results of pkg-config to some extent) | ||
1551 | dnl | ||
1552 | rm -f conf.gtktest | ||
1553 | AC_TRY_RUN([ | ||
1554 | #include <gtk/gtk.h> | ||
1555 | #include <stdio.h> | ||
1556 | #include <stdlib.h> | ||
1557 | |||
1558 | int | ||
1559 | main () | ||
1560 | { | ||
1561 | int major, minor, micro; | ||
1562 | char *tmp_version; | ||
1563 | |||
1564 | system ("touch conf.gtktest"); | ||
1565 | |||
1566 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
1567 | tmp_version = g_strdup("$min_gtk_version"); | ||
1568 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
1569 | printf("%s, bad version string\n", "$min_gtk_version"); | ||
1570 | exit(1); | ||
1571 | } | ||
1572 | |||
1573 | if ((gtk_major_version != $gtk_config_major_version) || | ||
1574 | (gtk_minor_version != $gtk_config_minor_version) || | ||
1575 | (gtk_micro_version != $gtk_config_micro_version)) | ||
1576 | { | ||
1577 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | ||
1578 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | ||
1579 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
1580 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
1581 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | ||
1582 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
1583 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
1584 | printf("*** required on your system.\n"); | ||
1585 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
1586 | printf("*** to point to the correct configuration files\n"); | ||
1587 | } | ||
1588 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | ||
1589 | (gtk_minor_version != GTK_MINOR_VERSION) || | ||
1590 | (gtk_micro_version != GTK_MICRO_VERSION)) | ||
1591 | { | ||
1592 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | ||
1593 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | ||
1594 | printf("*** library (version %d.%d.%d)\n", | ||
1595 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
1596 | } | ||
1597 | else | ||
1598 | { | ||
1599 | if ((gtk_major_version > major) || | ||
1600 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | ||
1601 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | ||
1602 | { | ||
1603 | return 0; | ||
1604 | } | ||
1605 | else | ||
1606 | { | ||
1607 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | ||
1608 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
1609 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | ||
1610 | major, minor, micro); | ||
1611 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | ||
1612 | printf("***\n"); | ||
1613 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
1614 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
1615 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
1616 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
1617 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
1618 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
1619 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
1620 | } | ||
1621 | } | ||
1622 | return 1; | ||
1623 | } | ||
1624 | ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
1625 | CFLAGS="$ac_save_CFLAGS" | ||
1626 | LIBS="$ac_save_LIBS" | ||
1627 | fi | ||
1628 | fi | ||
1629 | if test "x$no_gtk" = x ; then | ||
1630 | AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) | ||
1631 | ifelse([$2], , :, [$2]) | ||
1632 | else | ||
1633 | AC_MSG_RESULT(no) | ||
1634 | if test "$PKG_CONFIG" = "no" ; then | ||
1635 | echo "*** A new enough version of pkg-config was not found." | ||
1636 | echo "*** See http://pkgconfig.sourceforge.net" | ||
1637 | else | ||
1638 | if test -f conf.gtktest ; then | ||
1639 | : | ||
1640 | else | ||
1641 | echo "*** Could not run GTK+ test program, checking why..." | ||
1642 | ac_save_CFLAGS="$CFLAGS" | ||
1643 | ac_save_LIBS="$LIBS" | ||
1644 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
1645 | LIBS="$LIBS $GTK_LIBS" | ||
1646 | AC_TRY_LINK([ | ||
1647 | #include <gtk/gtk.h> | ||
1648 | #include <stdio.h> | ||
1649 | ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], | ||
1650 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
1651 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | ||
1652 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | ||
1653 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
1654 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
1655 | echo "*** is required on your system" | ||
1656 | echo "***" | ||
1657 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
1658 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
1659 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
1660 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) | ||
1661 | CFLAGS="$ac_save_CFLAGS" | ||
1662 | LIBS="$ac_save_LIBS" | ||
1663 | fi | ||
1664 | fi | ||
1665 | GTK_CFLAGS="" | ||
1666 | GTK_LIBS="" | ||
1667 | ifelse([$3], , :, [$3]) | ||
1668 | fi | ||
1669 | AC_SUBST(GTK_CFLAGS) | ||
1670 | AC_SUBST(GTK_LIBS) | ||
1671 | rm -f conf.gtktest | ||
1672 | ]) | ||
1673 | |||
1674 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | ||
1675 | # | ||
1676 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | ||
1677 | # | ||
1678 | # This program is free software; you can redistribute it and/or modify | ||
1679 | # it under the terms of the GNU General Public License as published by | ||
1680 | # the Free Software Foundation; either version 2 of the License, or | ||
1681 | # (at your option) any later version. | ||
1682 | # | ||
1683 | # This program is distributed in the hope that it will be useful, but | ||
1684 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1685 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1686 | # General Public License for more details. | ||
1687 | # | ||
1688 | # You should have received a copy of the GNU General Public License | ||
1689 | # along with this program; if not, write to the Free Software | ||
1690 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
1691 | # | ||
1692 | # As a special exception to the GNU General Public License, if you | ||
1693 | # distribute this file as part of a program that contains a | ||
1694 | # configuration script generated by Autoconf, you may include it under | ||
1695 | # the same distribution terms that you use for the rest of that program. | ||
1696 | |||
1697 | # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | ||
1698 | # ---------------------------------- | ||
1699 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | ||
1700 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | ||
1701 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | ||
1702 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl | ||
1703 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
1704 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | ||
1705 | fi | ||
1706 | if test -n "$PKG_CONFIG"; then | ||
1707 | _pkg_min_version=m4_ifval([$1], [$1], [0.9.0]) | ||
1708 | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | ||
1709 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
1710 | AC_MSG_RESULT([yes]) | ||
1711 | else | ||
1712 | AC_MSG_RESULT([no]) | ||
1713 | PKG_CONFIG="" | ||
1714 | fi | ||
1715 | |||
1716 | fi[]dnl | ||
1717 | ])# PKG_PROG_PKG_CONFIG | ||
1718 | |||
1719 | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | ||
1720 | # | ||
1721 | # Check to see whether a particular set of modules exists. Similar | ||
1722 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. | ||
1723 | # | ||
1724 | # | ||
1725 | # Similar to PKG_CHECK_MODULES, make sure that the first instance of | ||
1726 | # this or PKG_CHECK_MODULES is called, or make sure to call | ||
1727 | # PKG_CHECK_EXISTS manually | ||
1728 | # -------------------------------------------------------------- | ||
1729 | AC_DEFUN([PKG_CHECK_EXISTS], | ||
1730 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | ||
1731 | if test -n "$PKG_CONFIG" && \ | ||
1732 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | ||
1733 | m4_ifval([$2], [$2], [:]) | ||
1734 | m4_ifvaln([$3], [else | ||
1735 | $3])dnl | ||
1736 | fi]) | ||
1737 | |||
1738 | |||
1739 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | ||
1740 | # --------------------------------------------- | ||
1741 | m4_define([_PKG_CONFIG], | ||
1742 | [if test -n "$PKG_CONFIG"; then | ||
1743 | PKG_CHECK_EXISTS([$3], | ||
1744 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | ||
1745 | [pkg_failed=yes]) | ||
1746 | else | ||
1747 | pkg_failed=untried | ||
1748 | fi[]dnl | ||
1749 | ])# _PKG_CONFIG | ||
1750 | |||
1751 | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | ||
1752 | # [ACTION-IF-NOT-FOUND]) | ||
1753 | # | ||
1754 | # | ||
1755 | # Note that if there is a possibility the first call to | ||
1756 | # PKG_CHECK_MODULES might not happen, you should be sure to include an | ||
1757 | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | ||
1758 | # | ||
1759 | # | ||
1760 | # -------------------------------------------------------------- | ||
1761 | AC_DEFUN([PKG_CHECK_MODULES], | ||
1762 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | ||
1763 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | ||
1764 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | ||
1765 | |||
1766 | pkg_failed=no | ||
1767 | AC_MSG_CHECKING([for $1]) | ||
1768 | |||
1769 | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | ||
1770 | _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | ||
1771 | |||
1772 | if test $pkg_failed = yes; then | ||
1773 | $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | ||
1774 | # Put the nasty error message in config.log where it belongs | ||
1775 | echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD | ||
1776 | |||
1777 | ifelse([$4], , [AC_MSG_ERROR(dnl | ||
1778 | [Package requirements ($2) were not met. | ||
1779 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
1780 | installed software in a non-standard prefix. | ||
1781 | |||
1782 | Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables | ||
1783 | to avoid the need to call pkg-config. See the pkg-config man page for | ||
1784 | more details.])], | ||
1785 | [$4]) | ||
1786 | elif test $pkg_failed = untried; then | ||
1787 | ifelse([$4], , [AC_MSG_FAILURE(dnl | ||
1788 | [The pkg-config script could not be found or is too old. Make sure it | ||
1789 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
1790 | path to pkg-config. | ||
1791 | |||
1792 | Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables | ||
1793 | to avoid the need to call pkg-config. See the pkg-config man page for | ||
1794 | more details. | ||
1795 | |||
1796 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], | ||
1797 | [$4]) | ||
1798 | else | ||
1799 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | ||
1800 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | ||
1801 | AC_MSG_RESULT([yes]) | ||
1802 | ifelse([$3], , :, [$3]) | ||
1803 | fi[]dnl | ||
1804 | ])# PKG_CHECK_MODULES | ||
1805 | |||
1806 | # Configure paths for GtkGLExt | ||
1807 | # Naofumi Yasufuku | ||
1808 | # | ||
1809 | # Shamelessly stolen from gtk-2.0.m4 | ||
1810 | # Configure paths for GTK+ | ||
1811 | # Owen Taylor 1997-2001 | ||
1812 | |||
1813 | dnl AM_PATH_GTKGLEXT_1_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
1814 | dnl Test for GtkGLExt, and define GTKGLEXT_CFLAGS and GTKGLEXT_LIBS. | ||
1815 | dnl | ||
1816 | AC_DEFUN([AM_PATH_GTKGLEXT_1_0], | ||
1817 | [ no_gtkglext="" | ||
1818 | GTKGLEXT_CFLAGS="" | ||
1819 | GTKGLEXT_LIBS="" | ||
1820 | |||
1821 | # GtkGLExt pkg-config module | ||
1822 | gtkglext_module=gtkglext-1.0 | ||
1823 | |||
1824 | # minimum GtkGLExt version | ||
1825 | gtkglext_min_version=ifelse([$1], ,1.0.0,$1) | ||
1826 | |||
1827 | # minimum pkg-config version | ||
1828 | pkgconfig_min_version=0.7 | ||
1829 | |||
1830 | AC_ARG_ENABLE(gtkglext-test, | ||
1831 | [ --disable-gtkglext-test do not try to compile and run a test GtkGLExt program], | ||
1832 | , enable_gtkglext_test=yes) | ||
1833 | |||
1834 | dnl | ||
1835 | dnl Get the cflags and libraries from pkg-config | ||
1836 | dnl | ||
1837 | pkg_config_modules=$gtkglext_module | ||
1838 | |||
1839 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
1840 | |||
1841 | if test x$PKG_CONFIG != xno ; then | ||
1842 | if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then | ||
1843 | : | ||
1844 | else | ||
1845 | echo "" | ||
1846 | echo "*** pkg-config too old; version $pkgconfig_min_version or better required." | ||
1847 | no_gtkglext=yes | ||
1848 | PKG_CONFIG=no | ||
1849 | fi | ||
1850 | else | ||
1851 | no_gtkglext=yes | ||
1852 | fi | ||
1853 | |||
1854 | AC_MSG_CHECKING(for GtkGLExt - version >= $gtkglext_min_version) | ||
1855 | |||
1856 | if test x$PKG_CONFIG != xno ; then | ||
1857 | ## don't try to run the test against uninstalled libtool libs | ||
1858 | if $PKG_CONFIG --uninstalled $pkg_config_modules; then | ||
1859 | echo "" | ||
1860 | echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" | ||
1861 | enable_gtkglext_test=no | ||
1862 | fi | ||
1863 | |||
1864 | if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then | ||
1865 | : | ||
1866 | else | ||
1867 | echo "" | ||
1868 | echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" | ||
1869 | echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" | ||
1870 | echo "*** configuration files." | ||
1871 | no_gtkglext=yes | ||
1872 | enable_gtkglext_test=no | ||
1873 | fi | ||
1874 | fi | ||
1875 | |||
1876 | if test x"$no_gtkglext" = x ; then | ||
1877 | GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` | ||
1878 | GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` | ||
1879 | gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
1880 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
1881 | gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
1882 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
1883 | gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
1884 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
1885 | if test "x$enable_gtkglext_test" = "xyes" ; then | ||
1886 | ac_save_CFLAGS="$CFLAGS" | ||
1887 | ac_save_LIBS="$LIBS" | ||
1888 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
1889 | LIBS="$GTKGLEXT_LIBS $LIBS" | ||
1890 | dnl | ||
1891 | dnl Now check if the installed GtkGLExt is sufficiently new. (Also sanity | ||
1892 | dnl checks the results of pkg-config to some extent) | ||
1893 | dnl | ||
1894 | rm -f conf.gtkgltest | ||
1895 | AC_TRY_RUN([ | ||
1896 | #include <gtk/gtk.h> | ||
1897 | #include <gtk/gtkgl.h> | ||
1898 | #include <stdio.h> | ||
1899 | #include <stdlib.h> | ||
1900 | |||
1901 | int | ||
1902 | main () | ||
1903 | { | ||
1904 | int major, minor, micro; | ||
1905 | char *tmp_version; | ||
1906 | |||
1907 | system ("touch conf.gtkgltest"); | ||
1908 | |||
1909 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
1910 | tmp_version = g_strdup ("$gtkglext_min_version"); | ||
1911 | if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) | ||
1912 | { | ||
1913 | printf ("%s, bad version string\n", "$gtkglext_min_version"); | ||
1914 | exit (1); | ||
1915 | } | ||
1916 | |||
1917 | if ((gtkglext_major_version != $gtkglext_config_major_version) || | ||
1918 | (gtkglext_minor_version != $gtkglext_config_minor_version) || | ||
1919 | (gtkglext_micro_version != $gtkglext_config_micro_version)) | ||
1920 | { | ||
1921 | printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", | ||
1922 | $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); | ||
1923 | printf ("*** library %d.%d.%d was found!\n", | ||
1924 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
1925 | printf ("***\n"); | ||
1926 | printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); | ||
1927 | printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); | ||
1928 | printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); | ||
1929 | printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); | ||
1930 | printf ("***\n"); | ||
1931 | printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
1932 | printf ("*** to point to the correct configuration files.\n"); | ||
1933 | } | ||
1934 | else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || | ||
1935 | (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || | ||
1936 | (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) | ||
1937 | { | ||
1938 | printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", | ||
1939 | GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, | ||
1940 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
1941 | } | ||
1942 | else | ||
1943 | { | ||
1944 | if ((gtkglext_major_version > major) || | ||
1945 | ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || | ||
1946 | ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) | ||
1947 | { | ||
1948 | return 0; | ||
1949 | } | ||
1950 | else | ||
1951 | { | ||
1952 | printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", | ||
1953 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
1954 | printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", | ||
1955 | major, minor, micro); | ||
1956 | printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); | ||
1957 | printf ("***\n"); | ||
1958 | printf ("*** If you have already installed a sufficiently new version, this error\n"); | ||
1959 | printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
1960 | printf ("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
1961 | printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); | ||
1962 | printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); | ||
1963 | printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
1964 | printf ("*** so that the correct libraries are found at run-time)\n"); | ||
1965 | } | ||
1966 | } | ||
1967 | return 1; | ||
1968 | } | ||
1969 | ],, no_gtkglext=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
1970 | CFLAGS="$ac_save_CFLAGS" | ||
1971 | LIBS="$ac_save_LIBS" | ||
1972 | fi | ||
1973 | fi | ||
1974 | if test "x$no_gtkglext" = x ; then | ||
1975 | AC_MSG_RESULT(yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)) | ||
1976 | ifelse([$2], , :, [$2]) | ||
1977 | else | ||
1978 | AC_MSG_RESULT(no) | ||
1979 | if test "$PKG_CONFIG" = "no" ; then | ||
1980 | echo "*** A new enough version of pkg-config was not found." | ||
1981 | echo "*** See http://www.freedesktop.org/software/pkgconfig/." | ||
1982 | elif test "x$enable_gtkglext_test" = "xyes" ; then | ||
1983 | if test -f conf.gtkgltest ; then | ||
1984 | : | ||
1985 | else | ||
1986 | echo "*** Could not run GtkGLExt test program, checking why..." | ||
1987 | ac_save_CFLAGS="$CFLAGS" | ||
1988 | ac_save_LIBS="$LIBS" | ||
1989 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
1990 | LIBS="$LIBS $GTKGLEXT_LIBS" | ||
1991 | AC_TRY_LINK([ | ||
1992 | #include <gtk/gtk.h> | ||
1993 | #include <gtk/gtkgl.h> | ||
1994 | #include <stdio.h> | ||
1995 | ], [ return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); ], | ||
1996 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
1997 | echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" | ||
1998 | echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" | ||
1999 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
2000 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
2001 | echo "*** is required on your system" | ||
2002 | echo "***" | ||
2003 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
2004 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
2005 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
2006 | echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed."]) | ||
2007 | CFLAGS="$ac_save_CFLAGS" | ||
2008 | LIBS="$ac_save_LIBS" | ||
2009 | fi | ||
2010 | fi | ||
2011 | GTKGLEXT_CFLAGS="" | ||
2012 | GTKGLEXT_LIBS="" | ||
2013 | ifelse([$3], , :, [$3]) | ||
2014 | fi | ||
2015 | AC_SUBST(GTKGLEXT_CFLAGS) | ||
2016 | AC_SUBST(GTKGLEXT_LIBS) | ||
2017 | rm -f conf.gtkgltest | ||
2018 | ]) | ||
2019 | |||
2020 | dnl AC_GTKGLEXT_SUPPORTS_MULTIHEAD([ACTION-IF-SUPPORTED [, ACTION-IF-NOT-SUPPORTED]]) | ||
2021 | dnl Checks whether GtkGLExt supports multihead. | ||
2022 | dnl | ||
2023 | AC_DEFUN([AC_GTKGLEXT_SUPPORTS_MULTIHEAD], | ||
2024 | [ AC_CACHE_CHECK([whether GtkGLExt supports multihead], | ||
2025 | [ac_cv_gtkglext_supports_multihead], | ||
2026 | [AC_TRY_LINK([#include <gdk/gdkglquery.h>], | ||
2027 | [gdk_gl_query_extension_for_display(gdk_display_get_default());], | ||
2028 | [ac_cv_gtkglext_supports_multihead=yes], | ||
2029 | [ac_cv_gtkglext_supports_multihead=no])]) | ||
2030 | if test "x$ac_cv_gtkglext_supports_multihead" = "xyes" ; then | ||
2031 | ifelse([$1], , :, [$1]) | ||
2032 | else | ||
2033 | ifelse([$2], , :, [$2]) | ||
2034 | fi | ||
2035 | ]) | ||
2036 | |||
2037 | dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) | ||
2038 | dnl | ||
2039 | dnl This macro _AC_DEFINEs VARNAME to the expansion of the DIR | ||
2040 | dnl variable, taking care of fixing up ${prefix} and such. | ||
2041 | dnl | ||
2042 | dnl Note that the 3 argument form is only supported with autoconf 2.13 and | ||
2043 | dnl later (i.e. only where _AC_DEFINE supports 3 arguments). | ||
2044 | dnl | ||
2045 | dnl Examples: | ||
2046 | dnl | ||
2047 | dnl AC_DEFINE_DIR(DATADIR, datadir) | ||
2048 | dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries]) | ||
2049 | dnl | ||
2050 | dnl @version $Id: acinclude.m4 25 2006-04-22 17:24:27Z mmmaddd $ | ||
2051 | dnl @author Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva | ||
2052 | |||
2053 | AC_DEFUN([AC_DEFINE_DIR], [ | ||
2054 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
2055 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
2056 | ac_define_dir=`eval echo [$]$2` | ||
2057 | ac_define_dir=`eval echo [$]ac_define_dir` | ||
2058 | ifelse($3, , | ||
2059 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir"), | ||
2060 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3)) | ||
2061 | ]) | ||
2062 | |||
2063 | |||
2064 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/compile b/src/others/mimesh/g3dviewer-0.2.99.4/compile new file mode 100755 index 0000000..ac07cc5 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/compile | |||
@@ -0,0 +1,107 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # Wrapper for compilers which do not understand `-c -o'. | ||
4 | |||
5 | # Copyright 1999, 2000 Free Software Foundation, Inc. | ||
6 | # Written by Tom Tromey <tromey@cygnus.com>. | ||
7 | # | ||
8 | # This program is free software; you can redistribute it and/or modify | ||
9 | # it under the terms of the GNU General Public License as published by | ||
10 | # the Free Software Foundation; either version 2, or (at your option) | ||
11 | # any later version. | ||
12 | # | ||
13 | # This program is distributed in the hope that it will be useful, | ||
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | # GNU General Public License for more details. | ||
17 | # | ||
18 | # You should have received a copy of the GNU General Public License | ||
19 | # along with this program; if not, write to the Free Software | ||
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
21 | |||
22 | # As a special exception to the GNU General Public License, if you | ||
23 | # distribute this file as part of a program that contains a | ||
24 | # configuration script generated by Autoconf, you may include it under | ||
25 | # the same distribution terms that you use for the rest of that program. | ||
26 | |||
27 | # Usage: | ||
28 | # compile PROGRAM [ARGS]... | ||
29 | # `-o FOO.o' is removed from the args passed to the actual compile. | ||
30 | |||
31 | # Usage statement added by Billy Biggs <vektor@dumbterm.net>. | ||
32 | if [ -z $1 ]; then | ||
33 | echo "Wrapper for compilers which do not understand '-c -o'." | ||
34 | echo "usage: compile PROGRAM [ARGS]..." | ||
35 | echo "'-o FOO.o' is removed from the args passed to the actual compile." | ||
36 | exit 1 | ||
37 | fi | ||
38 | |||
39 | prog=$1 | ||
40 | shift | ||
41 | |||
42 | ofile= | ||
43 | cfile= | ||
44 | args= | ||
45 | while test $# -gt 0; do | ||
46 | case "$1" in | ||
47 | -o) | ||
48 | # configure might choose to run compile as `compile cc -o foo foo.c'. | ||
49 | # So we do something ugly here. | ||
50 | ofile=$2 | ||
51 | shift | ||
52 | case "$ofile" in | ||
53 | *.o | *.obj) | ||
54 | ;; | ||
55 | *) | ||
56 | args="$args -o $ofile" | ||
57 | ofile= | ||
58 | ;; | ||
59 | esac | ||
60 | ;; | ||
61 | *.c) | ||
62 | cfile=$1 | ||
63 | args="$args $1" | ||
64 | ;; | ||
65 | *) | ||
66 | args="$args $1" | ||
67 | ;; | ||
68 | esac | ||
69 | shift | ||
70 | done | ||
71 | |||
72 | if test -z "$ofile" || test -z "$cfile"; then | ||
73 | # If no `-o' option was seen then we might have been invoked from a | ||
74 | # pattern rule where we don't need one. That is ok -- this is a | ||
75 | # normal compilation that the losing compiler can handle. If no | ||
76 | # `.c' file was seen then we are probably linking. That is also | ||
77 | # ok. | ||
78 | exec "$prog" $args | ||
79 | fi | ||
80 | |||
81 | # Name of file we expect compiler to create. | ||
82 | cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'` | ||
83 | |||
84 | # Create the lock directory. | ||
85 | # Note: use `[/.-]' here to ensure that we don't use the same name | ||
86 | # that we are using for the .o file. Also, base the name on the expected | ||
87 | # object file name, since that is what matters with a parallel build. | ||
88 | lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d | ||
89 | while true; do | ||
90 | if mkdir $lockdir > /dev/null 2>&1; then | ||
91 | break | ||
92 | fi | ||
93 | sleep 1 | ||
94 | done | ||
95 | # FIXME: race condition here if user kills between mkdir and trap. | ||
96 | trap "rmdir $lockdir; exit 1" 1 2 15 | ||
97 | |||
98 | # Run the compile. | ||
99 | "$prog" $args | ||
100 | status=$? | ||
101 | |||
102 | if test -f "$cofile"; then | ||
103 | mv "$cofile" "$ofile" | ||
104 | fi | ||
105 | |||
106 | rmdir $lockdir | ||
107 | exit $status | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/config.guess b/src/others/mimesh/g3dviewer-0.2.99.4/config.guess new file mode 100755 index 0000000..ad5281e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/config.guess | |||
@@ -0,0 +1,1466 @@ | |||
1 | #! /bin/sh | ||
2 | # Attempt to guess a canonical system name. | ||
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | ||
5 | |||
6 | timestamp='2005-08-03' | ||
7 | |||
8 | # This file is free software; you can redistribute it and/or modify it | ||
9 | # under the terms of the GNU General Public License as published by | ||
10 | # the Free Software Foundation; either version 2 of the License, or | ||
11 | # (at your option) any later version. | ||
12 | # | ||
13 | # This program is distributed in the hope that it will be useful, but | ||
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | # General Public License for more details. | ||
17 | # | ||
18 | # You should have received a copy of the GNU General Public License | ||
19 | # along with this program; if not, write to the Free Software | ||
20 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
21 | # 02110-1301, USA. | ||
22 | # | ||
23 | # As a special exception to the GNU General Public License, if you | ||
24 | # distribute this file as part of a program that contains a | ||
25 | # configuration script generated by Autoconf, you may include it under | ||
26 | # the same distribution terms that you use for the rest of that program. | ||
27 | |||
28 | |||
29 | # Originally written by Per Bothner <per@bothner.com>. | ||
30 | # Please send patches to <config-patches@gnu.org>. Submit a context | ||
31 | # diff and a properly formatted ChangeLog entry. | ||
32 | # | ||
33 | # This script attempts to guess a canonical system name similar to | ||
34 | # config.sub. If it succeeds, it prints the system name on stdout, and | ||
35 | # exits with 0. Otherwise, it exits with 1. | ||
36 | # | ||
37 | # The plan is that this can be called by configure scripts if you | ||
38 | # don't specify an explicit build system type. | ||
39 | |||
40 | me=`echo "$0" | sed -e 's,.*/,,'` | ||
41 | |||
42 | usage="\ | ||
43 | Usage: $0 [OPTION] | ||
44 | |||
45 | Output the configuration name of the system \`$me' is run on. | ||
46 | |||
47 | Operation modes: | ||
48 | -h, --help print this help, then exit | ||
49 | -t, --time-stamp print date of last modification, then exit | ||
50 | -v, --version print version number, then exit | ||
51 | |||
52 | Report bugs and patches to <config-patches@gnu.org>." | ||
53 | |||
54 | version="\ | ||
55 | GNU config.guess ($timestamp) | ||
56 | |||
57 | Originally written by Per Bothner. | ||
58 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
59 | Free Software Foundation, Inc. | ||
60 | |||
61 | This is free software; see the source for copying conditions. There is NO | ||
62 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
63 | |||
64 | help=" | ||
65 | Try \`$me --help' for more information." | ||
66 | |||
67 | # Parse command line | ||
68 | while test $# -gt 0 ; do | ||
69 | case $1 in | ||
70 | --time-stamp | --time* | -t ) | ||
71 | echo "$timestamp" ; exit ;; | ||
72 | --version | -v ) | ||
73 | echo "$version" ; exit ;; | ||
74 | --help | --h* | -h ) | ||
75 | echo "$usage"; exit ;; | ||
76 | -- ) # Stop option processing | ||
77 | shift; break ;; | ||
78 | - ) # Use stdin as input. | ||
79 | break ;; | ||
80 | -* ) | ||
81 | echo "$me: invalid option $1$help" >&2 | ||
82 | exit 1 ;; | ||
83 | * ) | ||
84 | break ;; | ||
85 | esac | ||
86 | done | ||
87 | |||
88 | if test $# != 0; then | ||
89 | echo "$me: too many arguments$help" >&2 | ||
90 | exit 1 | ||
91 | fi | ||
92 | |||
93 | trap 'exit 1' 1 2 15 | ||
94 | |||
95 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | ||
96 | # compiler to aid in system detection is discouraged as it requires | ||
97 | # temporary files to be created and, as you can see below, it is a | ||
98 | # headache to deal with in a portable fashion. | ||
99 | |||
100 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | ||
101 | # use `HOST_CC' if defined, but it is deprecated. | ||
102 | |||
103 | # Portable tmp directory creation inspired by the Autoconf team. | ||
104 | |||
105 | set_cc_for_build=' | ||
106 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | ||
107 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | ||
108 | : ${TMPDIR=/tmp} ; | ||
109 | { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | ||
110 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | ||
111 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | ||
112 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | ||
113 | dummy=$tmp/dummy ; | ||
114 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | ||
115 | case $CC_FOR_BUILD,$HOST_CC,$CC in | ||
116 | ,,) echo "int x;" > $dummy.c ; | ||
117 | for c in cc gcc c89 c99 ; do | ||
118 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | ||
119 | CC_FOR_BUILD="$c"; break ; | ||
120 | fi ; | ||
121 | done ; | ||
122 | if test x"$CC_FOR_BUILD" = x ; then | ||
123 | CC_FOR_BUILD=no_compiler_found ; | ||
124 | fi | ||
125 | ;; | ||
126 | ,,*) CC_FOR_BUILD=$CC ;; | ||
127 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | ||
128 | esac ; set_cc_for_build= ;' | ||
129 | |||
130 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | ||
131 | # (ghazi@noc.rutgers.edu 1994-08-24) | ||
132 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | ||
133 | PATH=$PATH:/.attbin ; export PATH | ||
134 | fi | ||
135 | |||
136 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | ||
137 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | ||
138 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | ||
139 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | ||
140 | |||
141 | # Note: order is significant - the case branches are not exclusive. | ||
142 | |||
143 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
144 | *:NetBSD:*:*) | ||
145 | # NetBSD (nbsd) targets should (where applicable) match one or | ||
146 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | ||
147 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | ||
148 | # switched to ELF, *-*-netbsd* would select the old | ||
149 | # object file format. This provides both forward | ||
150 | # compatibility and a consistent mechanism for selecting the | ||
151 | # object file format. | ||
152 | # | ||
153 | # Note: NetBSD doesn't particularly care about the vendor | ||
154 | # portion of the name. We always set it to "unknown". | ||
155 | sysctl="sysctl -n hw.machine_arch" | ||
156 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | ||
157 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | ||
158 | case "${UNAME_MACHINE_ARCH}" in | ||
159 | armeb) machine=armeb-unknown ;; | ||
160 | arm*) machine=arm-unknown ;; | ||
161 | sh3el) machine=shl-unknown ;; | ||
162 | sh3eb) machine=sh-unknown ;; | ||
163 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | ||
164 | esac | ||
165 | # The Operating System including object format, if it has switched | ||
166 | # to ELF recently, or will in the future. | ||
167 | case "${UNAME_MACHINE_ARCH}" in | ||
168 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | ||
169 | eval $set_cc_for_build | ||
170 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
171 | | grep __ELF__ >/dev/null | ||
172 | then | ||
173 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | ||
174 | # Return netbsd for either. FIX? | ||
175 | os=netbsd | ||
176 | else | ||
177 | os=netbsdelf | ||
178 | fi | ||
179 | ;; | ||
180 | *) | ||
181 | os=netbsd | ||
182 | ;; | ||
183 | esac | ||
184 | # The OS release | ||
185 | # Debian GNU/NetBSD machines have a different userland, and | ||
186 | # thus, need a distinct triplet. However, they do not need | ||
187 | # kernel version information, so it can be replaced with a | ||
188 | # suitable tag, in the style of linux-gnu. | ||
189 | case "${UNAME_VERSION}" in | ||
190 | Debian*) | ||
191 | release='-gnu' | ||
192 | ;; | ||
193 | *) | ||
194 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
195 | ;; | ||
196 | esac | ||
197 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | ||
198 | # contains redundant information, the shorter form: | ||
199 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||
200 | echo "${machine}-${os}${release}" | ||
201 | exit ;; | ||
202 | *:OpenBSD:*:*) | ||
203 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | ||
204 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | ||
205 | exit ;; | ||
206 | *:ekkoBSD:*:*) | ||
207 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | ||
208 | exit ;; | ||
209 | macppc:MirBSD:*:*) | ||
210 | echo powerppc-unknown-mirbsd${UNAME_RELEASE} | ||
211 | exit ;; | ||
212 | *:MirBSD:*:*) | ||
213 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | ||
214 | exit ;; | ||
215 | alpha:OSF1:*:*) | ||
216 | case $UNAME_RELEASE in | ||
217 | *4.0) | ||
218 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | ||
219 | ;; | ||
220 | *5.*) | ||
221 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | ||
222 | ;; | ||
223 | esac | ||
224 | # According to Compaq, /usr/sbin/psrinfo has been available on | ||
225 | # OSF/1 and Tru64 systems produced since 1995. I hope that | ||
226 | # covers most systems running today. This code pipes the CPU | ||
227 | # types through head -n 1, so we only detect the type of CPU 0. | ||
228 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | ||
229 | case "$ALPHA_CPU_TYPE" in | ||
230 | "EV4 (21064)") | ||
231 | UNAME_MACHINE="alpha" ;; | ||
232 | "EV4.5 (21064)") | ||
233 | UNAME_MACHINE="alpha" ;; | ||
234 | "LCA4 (21066/21068)") | ||
235 | UNAME_MACHINE="alpha" ;; | ||
236 | "EV5 (21164)") | ||
237 | UNAME_MACHINE="alphaev5" ;; | ||
238 | "EV5.6 (21164A)") | ||
239 | UNAME_MACHINE="alphaev56" ;; | ||
240 | "EV5.6 (21164PC)") | ||
241 | UNAME_MACHINE="alphapca56" ;; | ||
242 | "EV5.7 (21164PC)") | ||
243 | UNAME_MACHINE="alphapca57" ;; | ||
244 | "EV6 (21264)") | ||
245 | UNAME_MACHINE="alphaev6" ;; | ||
246 | "EV6.7 (21264A)") | ||
247 | UNAME_MACHINE="alphaev67" ;; | ||
248 | "EV6.8CB (21264C)") | ||
249 | UNAME_MACHINE="alphaev68" ;; | ||
250 | "EV6.8AL (21264B)") | ||
251 | UNAME_MACHINE="alphaev68" ;; | ||
252 | "EV6.8CX (21264D)") | ||
253 | UNAME_MACHINE="alphaev68" ;; | ||
254 | "EV6.9A (21264/EV69A)") | ||
255 | UNAME_MACHINE="alphaev69" ;; | ||
256 | "EV7 (21364)") | ||
257 | UNAME_MACHINE="alphaev7" ;; | ||
258 | "EV7.9 (21364A)") | ||
259 | UNAME_MACHINE="alphaev79" ;; | ||
260 | esac | ||
261 | # A Pn.n version is a patched version. | ||
262 | # A Vn.n version is a released version. | ||
263 | # A Tn.n version is a released field test version. | ||
264 | # A Xn.n version is an unreleased experimental baselevel. | ||
265 | # 1.2 uses "1.2" for uname -r. | ||
266 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
267 | exit ;; | ||
268 | Alpha\ *:Windows_NT*:*) | ||
269 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
270 | # Should we change UNAME_MACHINE based on the output of uname instead | ||
271 | # of the specific Alpha model? | ||
272 | echo alpha-pc-interix | ||
273 | exit ;; | ||
274 | 21064:Windows_NT:50:3) | ||
275 | echo alpha-dec-winnt3.5 | ||
276 | exit ;; | ||
277 | Amiga*:UNIX_System_V:4.0:*) | ||
278 | echo m68k-unknown-sysv4 | ||
279 | exit ;; | ||
280 | *:[Aa]miga[Oo][Ss]:*:*) | ||
281 | echo ${UNAME_MACHINE}-unknown-amigaos | ||
282 | exit ;; | ||
283 | *:[Mm]orph[Oo][Ss]:*:*) | ||
284 | echo ${UNAME_MACHINE}-unknown-morphos | ||
285 | exit ;; | ||
286 | *:OS/390:*:*) | ||
287 | echo i370-ibm-openedition | ||
288 | exit ;; | ||
289 | *:z/VM:*:*) | ||
290 | echo s390-ibm-zvmoe | ||
291 | exit ;; | ||
292 | *:OS400:*:*) | ||
293 | echo powerpc-ibm-os400 | ||
294 | exit ;; | ||
295 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | ||
296 | echo arm-acorn-riscix${UNAME_RELEASE} | ||
297 | exit ;; | ||
298 | arm:riscos:*:*|arm:RISCOS:*:*) | ||
299 | echo arm-unknown-riscos | ||
300 | exit ;; | ||
301 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | ||
302 | echo hppa1.1-hitachi-hiuxmpp | ||
303 | exit ;; | ||
304 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | ||
305 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | ||
306 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | ||
307 | echo pyramid-pyramid-sysv3 | ||
308 | else | ||
309 | echo pyramid-pyramid-bsd | ||
310 | fi | ||
311 | exit ;; | ||
312 | NILE*:*:*:dcosx) | ||
313 | echo pyramid-pyramid-svr4 | ||
314 | exit ;; | ||
315 | DRS?6000:unix:4.0:6*) | ||
316 | echo sparc-icl-nx6 | ||
317 | exit ;; | ||
318 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | ||
319 | case `/usr/bin/uname -p` in | ||
320 | sparc) echo sparc-icl-nx7; exit ;; | ||
321 | esac ;; | ||
322 | sun4H:SunOS:5.*:*) | ||
323 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
324 | exit ;; | ||
325 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | ||
326 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
327 | exit ;; | ||
328 | i86pc:SunOS:5.*:*) | ||
329 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
330 | exit ;; | ||
331 | sun4*:SunOS:6*:*) | ||
332 | # According to config.sub, this is the proper way to canonicalize | ||
333 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | ||
334 | # it's likely to be more like Solaris than SunOS4. | ||
335 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
336 | exit ;; | ||
337 | sun4*:SunOS:*:*) | ||
338 | case "`/usr/bin/arch -k`" in | ||
339 | Series*|S4*) | ||
340 | UNAME_RELEASE=`uname -v` | ||
341 | ;; | ||
342 | esac | ||
343 | # Japanese Language versions have a version number like `4.1.3-JL'. | ||
344 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | ||
345 | exit ;; | ||
346 | sun3*:SunOS:*:*) | ||
347 | echo m68k-sun-sunos${UNAME_RELEASE} | ||
348 | exit ;; | ||
349 | sun*:*:4.2BSD:*) | ||
350 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | ||
351 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | ||
352 | case "`/bin/arch`" in | ||
353 | sun3) | ||
354 | echo m68k-sun-sunos${UNAME_RELEASE} | ||
355 | ;; | ||
356 | sun4) | ||
357 | echo sparc-sun-sunos${UNAME_RELEASE} | ||
358 | ;; | ||
359 | esac | ||
360 | exit ;; | ||
361 | aushp:SunOS:*:*) | ||
362 | echo sparc-auspex-sunos${UNAME_RELEASE} | ||
363 | exit ;; | ||
364 | # The situation for MiNT is a little confusing. The machine name | ||
365 | # can be virtually everything (everything which is not | ||
366 | # "atarist" or "atariste" at least should have a processor | ||
367 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | ||
368 | # to the lowercase version "mint" (or "freemint"). Finally | ||
369 | # the system name "TOS" denotes a system which is actually not | ||
370 | # MiNT. But MiNT is downward compatible to TOS, so this should | ||
371 | # be no problem. | ||
372 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | ||
373 | echo m68k-atari-mint${UNAME_RELEASE} | ||
374 | exit ;; | ||
375 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | ||
376 | echo m68k-atari-mint${UNAME_RELEASE} | ||
377 | exit ;; | ||
378 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | ||
379 | echo m68k-atari-mint${UNAME_RELEASE} | ||
380 | exit ;; | ||
381 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | ||
382 | echo m68k-milan-mint${UNAME_RELEASE} | ||
383 | exit ;; | ||
384 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | ||
385 | echo m68k-hades-mint${UNAME_RELEASE} | ||
386 | exit ;; | ||
387 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | ||
388 | echo m68k-unknown-mint${UNAME_RELEASE} | ||
389 | exit ;; | ||
390 | m68k:machten:*:*) | ||
391 | echo m68k-apple-machten${UNAME_RELEASE} | ||
392 | exit ;; | ||
393 | powerpc:machten:*:*) | ||
394 | echo powerpc-apple-machten${UNAME_RELEASE} | ||
395 | exit ;; | ||
396 | RISC*:Mach:*:*) | ||
397 | echo mips-dec-mach_bsd4.3 | ||
398 | exit ;; | ||
399 | RISC*:ULTRIX:*:*) | ||
400 | echo mips-dec-ultrix${UNAME_RELEASE} | ||
401 | exit ;; | ||
402 | VAX*:ULTRIX*:*:*) | ||
403 | echo vax-dec-ultrix${UNAME_RELEASE} | ||
404 | exit ;; | ||
405 | 2020:CLIX:*:* | 2430:CLIX:*:*) | ||
406 | echo clipper-intergraph-clix${UNAME_RELEASE} | ||
407 | exit ;; | ||
408 | mips:*:*:UMIPS | mips:*:*:RISCos) | ||
409 | eval $set_cc_for_build | ||
410 | sed 's/^ //' << EOF >$dummy.c | ||
411 | #ifdef __cplusplus | ||
412 | #include <stdio.h> /* for printf() prototype */ | ||
413 | int main (int argc, char *argv[]) { | ||
414 | #else | ||
415 | int main (argc, argv) int argc; char *argv[]; { | ||
416 | #endif | ||
417 | #if defined (host_mips) && defined (MIPSEB) | ||
418 | #if defined (SYSTYPE_SYSV) | ||
419 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | ||
420 | #endif | ||
421 | #if defined (SYSTYPE_SVR4) | ||
422 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | ||
423 | #endif | ||
424 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | ||
425 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | ||
426 | #endif | ||
427 | #endif | ||
428 | exit (-1); | ||
429 | } | ||
430 | EOF | ||
431 | $CC_FOR_BUILD -o $dummy $dummy.c && | ||
432 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | ||
433 | SYSTEM_NAME=`$dummy $dummyarg` && | ||
434 | { echo "$SYSTEM_NAME"; exit; } | ||
435 | echo mips-mips-riscos${UNAME_RELEASE} | ||
436 | exit ;; | ||
437 | Motorola:PowerMAX_OS:*:*) | ||
438 | echo powerpc-motorola-powermax | ||
439 | exit ;; | ||
440 | Motorola:*:4.3:PL8-*) | ||
441 | echo powerpc-harris-powermax | ||
442 | exit ;; | ||
443 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | ||
444 | echo powerpc-harris-powermax | ||
445 | exit ;; | ||
446 | Night_Hawk:Power_UNIX:*:*) | ||
447 | echo powerpc-harris-powerunix | ||
448 | exit ;; | ||
449 | m88k:CX/UX:7*:*) | ||
450 | echo m88k-harris-cxux7 | ||
451 | exit ;; | ||
452 | m88k:*:4*:R4*) | ||
453 | echo m88k-motorola-sysv4 | ||
454 | exit ;; | ||
455 | m88k:*:3*:R3*) | ||
456 | echo m88k-motorola-sysv3 | ||
457 | exit ;; | ||
458 | AViiON:dgux:*:*) | ||
459 | # DG/UX returns AViiON for all architectures | ||
460 | UNAME_PROCESSOR=`/usr/bin/uname -p` | ||
461 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | ||
462 | then | ||
463 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | ||
464 | [ ${TARGET_BINARY_INTERFACE}x = x ] | ||
465 | then | ||
466 | echo m88k-dg-dgux${UNAME_RELEASE} | ||
467 | else | ||
468 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | ||
469 | fi | ||
470 | else | ||
471 | echo i586-dg-dgux${UNAME_RELEASE} | ||
472 | fi | ||
473 | exit ;; | ||
474 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | ||
475 | echo m88k-dolphin-sysv3 | ||
476 | exit ;; | ||
477 | M88*:*:R3*:*) | ||
478 | # Delta 88k system running SVR3 | ||
479 | echo m88k-motorola-sysv3 | ||
480 | exit ;; | ||
481 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | ||
482 | echo m88k-tektronix-sysv3 | ||
483 | exit ;; | ||
484 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | ||
485 | echo m68k-tektronix-bsd | ||
486 | exit ;; | ||
487 | *:IRIX*:*:*) | ||
488 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | ||
489 | exit ;; | ||
490 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | ||
491 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | ||
492 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | ||
493 | i*86:AIX:*:*) | ||
494 | echo i386-ibm-aix | ||
495 | exit ;; | ||
496 | ia64:AIX:*:*) | ||
497 | if [ -x /usr/bin/oslevel ] ; then | ||
498 | IBM_REV=`/usr/bin/oslevel` | ||
499 | else | ||
500 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
501 | fi | ||
502 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | ||
503 | exit ;; | ||
504 | *:AIX:2:3) | ||
505 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | ||
506 | eval $set_cc_for_build | ||
507 | sed 's/^ //' << EOF >$dummy.c | ||
508 | #include <sys/systemcfg.h> | ||
509 | |||
510 | main() | ||
511 | { | ||
512 | if (!__power_pc()) | ||
513 | exit(1); | ||
514 | puts("powerpc-ibm-aix3.2.5"); | ||
515 | exit(0); | ||
516 | } | ||
517 | EOF | ||
518 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | ||
519 | then | ||
520 | echo "$SYSTEM_NAME" | ||
521 | else | ||
522 | echo rs6000-ibm-aix3.2.5 | ||
523 | fi | ||
524 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | ||
525 | echo rs6000-ibm-aix3.2.4 | ||
526 | else | ||
527 | echo rs6000-ibm-aix3.2 | ||
528 | fi | ||
529 | exit ;; | ||
530 | *:AIX:*:[45]) | ||
531 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | ||
532 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | ||
533 | IBM_ARCH=rs6000 | ||
534 | else | ||
535 | IBM_ARCH=powerpc | ||
536 | fi | ||
537 | if [ -x /usr/bin/oslevel ] ; then | ||
538 | IBM_REV=`/usr/bin/oslevel` | ||
539 | else | ||
540 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
541 | fi | ||
542 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | ||
543 | exit ;; | ||
544 | *:AIX:*:*) | ||
545 | echo rs6000-ibm-aix | ||
546 | exit ;; | ||
547 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | ||
548 | echo romp-ibm-bsd4.4 | ||
549 | exit ;; | ||
550 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | ||
551 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | ||
552 | exit ;; # report: romp-ibm BSD 4.3 | ||
553 | *:BOSX:*:*) | ||
554 | echo rs6000-bull-bosx | ||
555 | exit ;; | ||
556 | DPX/2?00:B.O.S.:*:*) | ||
557 | echo m68k-bull-sysv3 | ||
558 | exit ;; | ||
559 | 9000/[34]??:4.3bsd:1.*:*) | ||
560 | echo m68k-hp-bsd | ||
561 | exit ;; | ||
562 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | ||
563 | echo m68k-hp-bsd4.4 | ||
564 | exit ;; | ||
565 | 9000/[34678]??:HP-UX:*:*) | ||
566 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
567 | case "${UNAME_MACHINE}" in | ||
568 | 9000/31? ) HP_ARCH=m68000 ;; | ||
569 | 9000/[34]?? ) HP_ARCH=m68k ;; | ||
570 | 9000/[678][0-9][0-9]) | ||
571 | if [ -x /usr/bin/getconf ]; then | ||
572 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | ||
573 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | ||
574 | case "${sc_cpu_version}" in | ||
575 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | ||
576 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | ||
577 | 532) # CPU_PA_RISC2_0 | ||
578 | case "${sc_kernel_bits}" in | ||
579 | 32) HP_ARCH="hppa2.0n" ;; | ||
580 | 64) HP_ARCH="hppa2.0w" ;; | ||
581 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | ||
582 | esac ;; | ||
583 | esac | ||
584 | fi | ||
585 | if [ "${HP_ARCH}" = "" ]; then | ||
586 | eval $set_cc_for_build | ||
587 | sed 's/^ //' << EOF >$dummy.c | ||
588 | |||
589 | #define _HPUX_SOURCE | ||
590 | #include <stdlib.h> | ||
591 | #include <unistd.h> | ||
592 | |||
593 | int main () | ||
594 | { | ||
595 | #if defined(_SC_KERNEL_BITS) | ||
596 | long bits = sysconf(_SC_KERNEL_BITS); | ||
597 | #endif | ||
598 | long cpu = sysconf (_SC_CPU_VERSION); | ||
599 | |||
600 | switch (cpu) | ||
601 | { | ||
602 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | ||
603 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | ||
604 | case CPU_PA_RISC2_0: | ||
605 | #if defined(_SC_KERNEL_BITS) | ||
606 | switch (bits) | ||
607 | { | ||
608 | case 64: puts ("hppa2.0w"); break; | ||
609 | case 32: puts ("hppa2.0n"); break; | ||
610 | default: puts ("hppa2.0"); break; | ||
611 | } break; | ||
612 | #else /* !defined(_SC_KERNEL_BITS) */ | ||
613 | puts ("hppa2.0"); break; | ||
614 | #endif | ||
615 | default: puts ("hppa1.0"); break; | ||
616 | } | ||
617 | exit (0); | ||
618 | } | ||
619 | EOF | ||
620 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | ||
621 | test -z "$HP_ARCH" && HP_ARCH=hppa | ||
622 | fi ;; | ||
623 | esac | ||
624 | if [ ${HP_ARCH} = "hppa2.0w" ] | ||
625 | then | ||
626 | eval $set_cc_for_build | ||
627 | |||
628 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | ||
629 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | ||
630 | # generating 64-bit code. GNU and HP use different nomenclature: | ||
631 | # | ||
632 | # $ CC_FOR_BUILD=cc ./config.guess | ||
633 | # => hppa2.0w-hp-hpux11.23 | ||
634 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | ||
635 | # => hppa64-hp-hpux11.23 | ||
636 | |||
637 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | ||
638 | grep __LP64__ >/dev/null | ||
639 | then | ||
640 | HP_ARCH="hppa2.0w" | ||
641 | else | ||
642 | HP_ARCH="hppa64" | ||
643 | fi | ||
644 | fi | ||
645 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | ||
646 | exit ;; | ||
647 | ia64:HP-UX:*:*) | ||
648 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
649 | echo ia64-hp-hpux${HPUX_REV} | ||
650 | exit ;; | ||
651 | 3050*:HI-UX:*:*) | ||
652 | eval $set_cc_for_build | ||
653 | sed 's/^ //' << EOF >$dummy.c | ||
654 | #include <unistd.h> | ||
655 | int | ||
656 | main () | ||
657 | { | ||
658 | long cpu = sysconf (_SC_CPU_VERSION); | ||
659 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns | ||
660 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | ||
661 | results, however. */ | ||
662 | if (CPU_IS_PA_RISC (cpu)) | ||
663 | { | ||
664 | switch (cpu) | ||
665 | { | ||
666 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | ||
667 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | ||
668 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | ||
669 | default: puts ("hppa-hitachi-hiuxwe2"); break; | ||
670 | } | ||
671 | } | ||
672 | else if (CPU_IS_HP_MC68K (cpu)) | ||
673 | puts ("m68k-hitachi-hiuxwe2"); | ||
674 | else puts ("unknown-hitachi-hiuxwe2"); | ||
675 | exit (0); | ||
676 | } | ||
677 | EOF | ||
678 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | ||
679 | { echo "$SYSTEM_NAME"; exit; } | ||
680 | echo unknown-hitachi-hiuxwe2 | ||
681 | exit ;; | ||
682 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | ||
683 | echo hppa1.1-hp-bsd | ||
684 | exit ;; | ||
685 | 9000/8??:4.3bsd:*:*) | ||
686 | echo hppa1.0-hp-bsd | ||
687 | exit ;; | ||
688 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | ||
689 | echo hppa1.0-hp-mpeix | ||
690 | exit ;; | ||
691 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | ||
692 | echo hppa1.1-hp-osf | ||
693 | exit ;; | ||
694 | hp8??:OSF1:*:*) | ||
695 | echo hppa1.0-hp-osf | ||
696 | exit ;; | ||
697 | i*86:OSF1:*:*) | ||
698 | if [ -x /usr/sbin/sysversion ] ; then | ||
699 | echo ${UNAME_MACHINE}-unknown-osf1mk | ||
700 | else | ||
701 | echo ${UNAME_MACHINE}-unknown-osf1 | ||
702 | fi | ||
703 | exit ;; | ||
704 | parisc*:Lites*:*:*) | ||
705 | echo hppa1.1-hp-lites | ||
706 | exit ;; | ||
707 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | ||
708 | echo c1-convex-bsd | ||
709 | exit ;; | ||
710 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | ||
711 | if getsysinfo -f scalar_acc | ||
712 | then echo c32-convex-bsd | ||
713 | else echo c2-convex-bsd | ||
714 | fi | ||
715 | exit ;; | ||
716 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | ||
717 | echo c34-convex-bsd | ||
718 | exit ;; | ||
719 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | ||
720 | echo c38-convex-bsd | ||
721 | exit ;; | ||
722 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | ||
723 | echo c4-convex-bsd | ||
724 | exit ;; | ||
725 | CRAY*Y-MP:*:*:*) | ||
726 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
727 | exit ;; | ||
728 | CRAY*[A-Z]90:*:*:*) | ||
729 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | ||
730 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | ||
731 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | ||
732 | -e 's/\.[^.]*$/.X/' | ||
733 | exit ;; | ||
734 | CRAY*TS:*:*:*) | ||
735 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
736 | exit ;; | ||
737 | CRAY*T3E:*:*:*) | ||
738 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
739 | exit ;; | ||
740 | CRAY*SV1:*:*:*) | ||
741 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
742 | exit ;; | ||
743 | *:UNICOS/mp:*:*) | ||
744 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
745 | exit ;; | ||
746 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | ||
747 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
748 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
749 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | ||
750 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
751 | exit ;; | ||
752 | 5000:UNIX_System_V:4.*:*) | ||
753 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
754 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | ||
755 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
756 | exit ;; | ||
757 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | ||
758 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | ||
759 | exit ;; | ||
760 | sparc*:BSD/OS:*:*) | ||
761 | echo sparc-unknown-bsdi${UNAME_RELEASE} | ||
762 | exit ;; | ||
763 | *:BSD/OS:*:*) | ||
764 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | ||
765 | exit ;; | ||
766 | *:FreeBSD:*:*) | ||
767 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | ||
768 | exit ;; | ||
769 | i*:CYGWIN*:*) | ||
770 | echo ${UNAME_MACHINE}-pc-cygwin | ||
771 | exit ;; | ||
772 | i*:MINGW*:*) | ||
773 | echo ${UNAME_MACHINE}-pc-mingw32 | ||
774 | exit ;; | ||
775 | i*:windows32*:*) | ||
776 | # uname -m includes "-pc" on this system. | ||
777 | echo ${UNAME_MACHINE}-mingw32 | ||
778 | exit ;; | ||
779 | i*:PW*:*) | ||
780 | echo ${UNAME_MACHINE}-pc-pw32 | ||
781 | exit ;; | ||
782 | x86:Interix*:[34]*) | ||
783 | echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' | ||
784 | exit ;; | ||
785 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | ||
786 | echo i${UNAME_MACHINE}-pc-mks | ||
787 | exit ;; | ||
788 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | ||
789 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
790 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | ||
791 | # UNAME_MACHINE based on the output of uname instead of i386? | ||
792 | echo i586-pc-interix | ||
793 | exit ;; | ||
794 | i*:UWIN*:*) | ||
795 | echo ${UNAME_MACHINE}-pc-uwin | ||
796 | exit ;; | ||
797 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | ||
798 | echo x86_64-unknown-cygwin | ||
799 | exit ;; | ||
800 | p*:CYGWIN*:*) | ||
801 | echo powerpcle-unknown-cygwin | ||
802 | exit ;; | ||
803 | prep*:SunOS:5.*:*) | ||
804 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
805 | exit ;; | ||
806 | *:GNU:*:*) | ||
807 | # the GNU system | ||
808 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | ||
809 | exit ;; | ||
810 | *:GNU/*:*:*) | ||
811 | # other systems with GNU libc and userland | ||
812 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | ||
813 | exit ;; | ||
814 | i*86:Minix:*:*) | ||
815 | echo ${UNAME_MACHINE}-pc-minix | ||
816 | exit ;; | ||
817 | arm*:Linux:*:*) | ||
818 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
819 | exit ;; | ||
820 | cris:Linux:*:*) | ||
821 | echo cris-axis-linux-gnu | ||
822 | exit ;; | ||
823 | crisv32:Linux:*:*) | ||
824 | echo crisv32-axis-linux-gnu | ||
825 | exit ;; | ||
826 | frv:Linux:*:*) | ||
827 | echo frv-unknown-linux-gnu | ||
828 | exit ;; | ||
829 | ia64:Linux:*:*) | ||
830 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
831 | exit ;; | ||
832 | m32r*:Linux:*:*) | ||
833 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
834 | exit ;; | ||
835 | m68*:Linux:*:*) | ||
836 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
837 | exit ;; | ||
838 | mips:Linux:*:*) | ||
839 | eval $set_cc_for_build | ||
840 | sed 's/^ //' << EOF >$dummy.c | ||
841 | #undef CPU | ||
842 | #undef mips | ||
843 | #undef mipsel | ||
844 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||
845 | CPU=mipsel | ||
846 | #else | ||
847 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||
848 | CPU=mips | ||
849 | #else | ||
850 | CPU= | ||
851 | #endif | ||
852 | #endif | ||
853 | EOF | ||
854 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | ||
855 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||
856 | ;; | ||
857 | mips64:Linux:*:*) | ||
858 | eval $set_cc_for_build | ||
859 | sed 's/^ //' << EOF >$dummy.c | ||
860 | #undef CPU | ||
861 | #undef mips64 | ||
862 | #undef mips64el | ||
863 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||
864 | CPU=mips64el | ||
865 | #else | ||
866 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||
867 | CPU=mips64 | ||
868 | #else | ||
869 | CPU= | ||
870 | #endif | ||
871 | #endif | ||
872 | EOF | ||
873 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | ||
874 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||
875 | ;; | ||
876 | or32:Linux:*:*) | ||
877 | echo or32-unknown-linux-gnu | ||
878 | exit ;; | ||
879 | ppc:Linux:*:*) | ||
880 | echo powerpc-unknown-linux-gnu | ||
881 | exit ;; | ||
882 | ppc64:Linux:*:*) | ||
883 | echo powerpc64-unknown-linux-gnu | ||
884 | exit ;; | ||
885 | alpha:Linux:*:*) | ||
886 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||
887 | EV5) UNAME_MACHINE=alphaev5 ;; | ||
888 | EV56) UNAME_MACHINE=alphaev56 ;; | ||
889 | PCA56) UNAME_MACHINE=alphapca56 ;; | ||
890 | PCA57) UNAME_MACHINE=alphapca56 ;; | ||
891 | EV6) UNAME_MACHINE=alphaev6 ;; | ||
892 | EV67) UNAME_MACHINE=alphaev67 ;; | ||
893 | EV68*) UNAME_MACHINE=alphaev68 ;; | ||
894 | esac | ||
895 | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | ||
896 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | ||
897 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | ||
898 | exit ;; | ||
899 | parisc:Linux:*:* | hppa:Linux:*:*) | ||
900 | # Look for CPU level | ||
901 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | ||
902 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | ||
903 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | ||
904 | *) echo hppa-unknown-linux-gnu ;; | ||
905 | esac | ||
906 | exit ;; | ||
907 | parisc64:Linux:*:* | hppa64:Linux:*:*) | ||
908 | echo hppa64-unknown-linux-gnu | ||
909 | exit ;; | ||
910 | s390:Linux:*:* | s390x:Linux:*:*) | ||
911 | echo ${UNAME_MACHINE}-ibm-linux | ||
912 | exit ;; | ||
913 | sh64*:Linux:*:*) | ||
914 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
915 | exit ;; | ||
916 | sh*:Linux:*:*) | ||
917 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
918 | exit ;; | ||
919 | sparc:Linux:*:* | sparc64:Linux:*:*) | ||
920 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
921 | exit ;; | ||
922 | x86_64:Linux:*:*) | ||
923 | echo x86_64-unknown-linux-gnu | ||
924 | exit ;; | ||
925 | i*86:Linux:*:*) | ||
926 | # The BFD linker knows what the default object file format is, so | ||
927 | # first see if it will tell us. cd to the root directory to prevent | ||
928 | # problems with other programs or directories called `ld' in the path. | ||
929 | # Set LC_ALL=C to ensure ld outputs messages in English. | ||
930 | ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | ||
931 | | sed -ne '/supported targets:/!d | ||
932 | s/[ ][ ]*/ /g | ||
933 | s/.*supported targets: *// | ||
934 | s/ .*// | ||
935 | p'` | ||
936 | case "$ld_supported_targets" in | ||
937 | elf32-i386) | ||
938 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | ||
939 | ;; | ||
940 | a.out-i386-linux) | ||
941 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" | ||
942 | exit ;; | ||
943 | coff-i386) | ||
944 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" | ||
945 | exit ;; | ||
946 | "") | ||
947 | # Either a pre-BFD a.out linker (linux-gnuoldld) or | ||
948 | # one that does not give us useful --help. | ||
949 | echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | ||
950 | exit ;; | ||
951 | esac | ||
952 | # Determine whether the default compiler is a.out or elf | ||
953 | eval $set_cc_for_build | ||
954 | sed 's/^ //' << EOF >$dummy.c | ||
955 | #include <features.h> | ||
956 | #ifdef __ELF__ | ||
957 | # ifdef __GLIBC__ | ||
958 | # if __GLIBC__ >= 2 | ||
959 | LIBC=gnu | ||
960 | # else | ||
961 | LIBC=gnulibc1 | ||
962 | # endif | ||
963 | # else | ||
964 | LIBC=gnulibc1 | ||
965 | # endif | ||
966 | #else | ||
967 | #ifdef __INTEL_COMPILER | ||
968 | LIBC=gnu | ||
969 | #else | ||
970 | LIBC=gnuaout | ||
971 | #endif | ||
972 | #endif | ||
973 | #ifdef __dietlibc__ | ||
974 | LIBC=dietlibc | ||
975 | #endif | ||
976 | EOF | ||
977 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` | ||
978 | test x"${LIBC}" != x && { | ||
979 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | ||
980 | exit | ||
981 | } | ||
982 | test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | ||
983 | ;; | ||
984 | i*86:DYNIX/ptx:4*:*) | ||
985 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | ||
986 | # earlier versions are messed up and put the nodename in both | ||
987 | # sysname and nodename. | ||
988 | echo i386-sequent-sysv4 | ||
989 | exit ;; | ||
990 | i*86:UNIX_SV:4.2MP:2.*) | ||
991 | # Unixware is an offshoot of SVR4, but it has its own version | ||
992 | # number series starting with 2... | ||
993 | # I am not positive that other SVR4 systems won't match this, | ||
994 | # I just have to hope. -- rms. | ||
995 | # Use sysv4.2uw... so that sysv4* matches it. | ||
996 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | ||
997 | exit ;; | ||
998 | i*86:OS/2:*:*) | ||
999 | # If we were able to find `uname', then EMX Unix compatibility | ||
1000 | # is probably installed. | ||
1001 | echo ${UNAME_MACHINE}-pc-os2-emx | ||
1002 | exit ;; | ||
1003 | i*86:XTS-300:*:STOP) | ||
1004 | echo ${UNAME_MACHINE}-unknown-stop | ||
1005 | exit ;; | ||
1006 | i*86:atheos:*:*) | ||
1007 | echo ${UNAME_MACHINE}-unknown-atheos | ||
1008 | exit ;; | ||
1009 | i*86:syllable:*:*) | ||
1010 | echo ${UNAME_MACHINE}-pc-syllable | ||
1011 | exit ;; | ||
1012 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | ||
1013 | echo i386-unknown-lynxos${UNAME_RELEASE} | ||
1014 | exit ;; | ||
1015 | i*86:*DOS:*:*) | ||
1016 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | ||
1017 | exit ;; | ||
1018 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | ||
1019 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | ||
1020 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | ||
1021 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | ||
1022 | else | ||
1023 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | ||
1024 | fi | ||
1025 | exit ;; | ||
1026 | i*86:*:5:[678]*) | ||
1027 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | ||
1028 | case `/bin/uname -X | grep "^Machine"` in | ||
1029 | *486*) UNAME_MACHINE=i486 ;; | ||
1030 | *Pentium) UNAME_MACHINE=i586 ;; | ||
1031 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | ||
1032 | esac | ||
1033 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | ||
1034 | exit ;; | ||
1035 | i*86:*:3.2:*) | ||
1036 | if test -f /usr/options/cb.name; then | ||
1037 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | ||
1038 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | ||
1039 | elif /bin/uname -X 2>/dev/null >/dev/null ; then | ||
1040 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | ||
1041 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | ||
1042 | (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | ||
1043 | && UNAME_MACHINE=i586 | ||
1044 | (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | ||
1045 | && UNAME_MACHINE=i686 | ||
1046 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | ||
1047 | && UNAME_MACHINE=i686 | ||
1048 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | ||
1049 | else | ||
1050 | echo ${UNAME_MACHINE}-pc-sysv32 | ||
1051 | fi | ||
1052 | exit ;; | ||
1053 | pc:*:*:*) | ||
1054 | # Left here for compatibility: | ||
1055 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | ||
1056 | # the processor, so we play safe by assuming i386. | ||
1057 | echo i386-pc-msdosdjgpp | ||
1058 | exit ;; | ||
1059 | Intel:Mach:3*:*) | ||
1060 | echo i386-pc-mach3 | ||
1061 | exit ;; | ||
1062 | paragon:*:*:*) | ||
1063 | echo i860-intel-osf1 | ||
1064 | exit ;; | ||
1065 | i860:*:4.*:*) # i860-SVR4 | ||
1066 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | ||
1067 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | ||
1068 | else # Add other i860-SVR4 vendors below as they are discovered. | ||
1069 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | ||
1070 | fi | ||
1071 | exit ;; | ||
1072 | mini*:CTIX:SYS*5:*) | ||
1073 | # "miniframe" | ||
1074 | echo m68010-convergent-sysv | ||
1075 | exit ;; | ||
1076 | mc68k:UNIX:SYSTEM5:3.51m) | ||
1077 | echo m68k-convergent-sysv | ||
1078 | exit ;; | ||
1079 | M680?0:D-NIX:5.3:*) | ||
1080 | echo m68k-diab-dnix | ||
1081 | exit ;; | ||
1082 | M68*:*:R3V[5678]*:*) | ||
1083 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | ||
1084 | 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) | ||
1085 | OS_REL='' | ||
1086 | test -r /etc/.relid \ | ||
1087 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | ||
1088 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1089 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | ||
1090 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | ||
1091 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | ||
1092 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | ||
1093 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1094 | && { echo i486-ncr-sysv4; exit; } ;; | ||
1095 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | ||
1096 | echo m68k-unknown-lynxos${UNAME_RELEASE} | ||
1097 | exit ;; | ||
1098 | mc68030:UNIX_System_V:4.*:*) | ||
1099 | echo m68k-atari-sysv4 | ||
1100 | exit ;; | ||
1101 | TSUNAMI:LynxOS:2.*:*) | ||
1102 | echo sparc-unknown-lynxos${UNAME_RELEASE} | ||
1103 | exit ;; | ||
1104 | rs6000:LynxOS:2.*:*) | ||
1105 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | ||
1106 | exit ;; | ||
1107 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | ||
1108 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | ||
1109 | exit ;; | ||
1110 | SM[BE]S:UNIX_SV:*:*) | ||
1111 | echo mips-dde-sysv${UNAME_RELEASE} | ||
1112 | exit ;; | ||
1113 | RM*:ReliantUNIX-*:*:*) | ||
1114 | echo mips-sni-sysv4 | ||
1115 | exit ;; | ||
1116 | RM*:SINIX-*:*:*) | ||
1117 | echo mips-sni-sysv4 | ||
1118 | exit ;; | ||
1119 | *:SINIX-*:*:*) | ||
1120 | if uname -p 2>/dev/null >/dev/null ; then | ||
1121 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1122 | echo ${UNAME_MACHINE}-sni-sysv4 | ||
1123 | else | ||
1124 | echo ns32k-sni-sysv | ||
1125 | fi | ||
1126 | exit ;; | ||
1127 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | ||
1128 | # says <Richard.M.Bartel@ccMail.Census.GOV> | ||
1129 | echo i586-unisys-sysv4 | ||
1130 | exit ;; | ||
1131 | *:UNIX_System_V:4*:FTX*) | ||
1132 | # From Gerald Hewes <hewes@openmarket.com>. | ||
1133 | # How about differentiating between stratus architectures? -djm | ||
1134 | echo hppa1.1-stratus-sysv4 | ||
1135 | exit ;; | ||
1136 | *:*:*:FTX*) | ||
1137 | # From seanf@swdc.stratus.com. | ||
1138 | echo i860-stratus-sysv4 | ||
1139 | exit ;; | ||
1140 | i*86:VOS:*:*) | ||
1141 | # From Paul.Green@stratus.com. | ||
1142 | echo ${UNAME_MACHINE}-stratus-vos | ||
1143 | exit ;; | ||
1144 | *:VOS:*:*) | ||
1145 | # From Paul.Green@stratus.com. | ||
1146 | echo hppa1.1-stratus-vos | ||
1147 | exit ;; | ||
1148 | mc68*:A/UX:*:*) | ||
1149 | echo m68k-apple-aux${UNAME_RELEASE} | ||
1150 | exit ;; | ||
1151 | news*:NEWS-OS:6*:*) | ||
1152 | echo mips-sony-newsos6 | ||
1153 | exit ;; | ||
1154 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | ||
1155 | if [ -d /usr/nec ]; then | ||
1156 | echo mips-nec-sysv${UNAME_RELEASE} | ||
1157 | else | ||
1158 | echo mips-unknown-sysv${UNAME_RELEASE} | ||
1159 | fi | ||
1160 | exit ;; | ||
1161 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | ||
1162 | echo powerpc-be-beos | ||
1163 | exit ;; | ||
1164 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | ||
1165 | echo powerpc-apple-beos | ||
1166 | exit ;; | ||
1167 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | ||
1168 | echo i586-pc-beos | ||
1169 | exit ;; | ||
1170 | SX-4:SUPER-UX:*:*) | ||
1171 | echo sx4-nec-superux${UNAME_RELEASE} | ||
1172 | exit ;; | ||
1173 | SX-5:SUPER-UX:*:*) | ||
1174 | echo sx5-nec-superux${UNAME_RELEASE} | ||
1175 | exit ;; | ||
1176 | SX-6:SUPER-UX:*:*) | ||
1177 | echo sx6-nec-superux${UNAME_RELEASE} | ||
1178 | exit ;; | ||
1179 | Power*:Rhapsody:*:*) | ||
1180 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | ||
1181 | exit ;; | ||
1182 | *:Rhapsody:*:*) | ||
1183 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | ||
1184 | exit ;; | ||
1185 | *:Darwin:*:*) | ||
1186 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | ||
1187 | case $UNAME_PROCESSOR in | ||
1188 | *86) UNAME_PROCESSOR=i686 ;; | ||
1189 | unknown) UNAME_PROCESSOR=powerpc ;; | ||
1190 | esac | ||
1191 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | ||
1192 | exit ;; | ||
1193 | *:procnto*:*:* | *:QNX:[0123456789]*:*) | ||
1194 | UNAME_PROCESSOR=`uname -p` | ||
1195 | if test "$UNAME_PROCESSOR" = "x86"; then | ||
1196 | UNAME_PROCESSOR=i386 | ||
1197 | UNAME_MACHINE=pc | ||
1198 | fi | ||
1199 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | ||
1200 | exit ;; | ||
1201 | *:QNX:*:4*) | ||
1202 | echo i386-pc-qnx | ||
1203 | exit ;; | ||
1204 | NSE-?:NONSTOP_KERNEL:*:*) | ||
1205 | echo nse-tandem-nsk${UNAME_RELEASE} | ||
1206 | exit ;; | ||
1207 | NSR-?:NONSTOP_KERNEL:*:*) | ||
1208 | echo nsr-tandem-nsk${UNAME_RELEASE} | ||
1209 | exit ;; | ||
1210 | *:NonStop-UX:*:*) | ||
1211 | echo mips-compaq-nonstopux | ||
1212 | exit ;; | ||
1213 | BS2000:POSIX*:*:*) | ||
1214 | echo bs2000-siemens-sysv | ||
1215 | exit ;; | ||
1216 | DS/*:UNIX_System_V:*:*) | ||
1217 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | ||
1218 | exit ;; | ||
1219 | *:Plan9:*:*) | ||
1220 | # "uname -m" is not consistent, so use $cputype instead. 386 | ||
1221 | # is converted to i386 for consistency with other x86 | ||
1222 | # operating systems. | ||
1223 | if test "$cputype" = "386"; then | ||
1224 | UNAME_MACHINE=i386 | ||
1225 | else | ||
1226 | UNAME_MACHINE="$cputype" | ||
1227 | fi | ||
1228 | echo ${UNAME_MACHINE}-unknown-plan9 | ||
1229 | exit ;; | ||
1230 | *:TOPS-10:*:*) | ||
1231 | echo pdp10-unknown-tops10 | ||
1232 | exit ;; | ||
1233 | *:TENEX:*:*) | ||
1234 | echo pdp10-unknown-tenex | ||
1235 | exit ;; | ||
1236 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | ||
1237 | echo pdp10-dec-tops20 | ||
1238 | exit ;; | ||
1239 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | ||
1240 | echo pdp10-xkl-tops20 | ||
1241 | exit ;; | ||
1242 | *:TOPS-20:*:*) | ||
1243 | echo pdp10-unknown-tops20 | ||
1244 | exit ;; | ||
1245 | *:ITS:*:*) | ||
1246 | echo pdp10-unknown-its | ||
1247 | exit ;; | ||
1248 | SEI:*:*:SEIUX) | ||
1249 | echo mips-sei-seiux${UNAME_RELEASE} | ||
1250 | exit ;; | ||
1251 | *:DragonFly:*:*) | ||
1252 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | ||
1253 | exit ;; | ||
1254 | *:*VMS:*:*) | ||
1255 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1256 | case "${UNAME_MACHINE}" in | ||
1257 | A*) echo alpha-dec-vms ; exit ;; | ||
1258 | I*) echo ia64-dec-vms ; exit ;; | ||
1259 | V*) echo vax-dec-vms ; exit ;; | ||
1260 | esac ;; | ||
1261 | *:XENIX:*:SysV) | ||
1262 | echo i386-pc-xenix | ||
1263 | exit ;; | ||
1264 | i*86:skyos:*:*) | ||
1265 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | ||
1266 | exit ;; | ||
1267 | esac | ||
1268 | |||
1269 | #echo '(No uname command or uname output not recognized.)' 1>&2 | ||
1270 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | ||
1271 | |||
1272 | eval $set_cc_for_build | ||
1273 | cat >$dummy.c <<EOF | ||
1274 | #ifdef _SEQUENT_ | ||
1275 | # include <sys/types.h> | ||
1276 | # include <sys/utsname.h> | ||
1277 | #endif | ||
1278 | main () | ||
1279 | { | ||
1280 | #if defined (sony) | ||
1281 | #if defined (MIPSEB) | ||
1282 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||
1283 | I don't know.... */ | ||
1284 | printf ("mips-sony-bsd\n"); exit (0); | ||
1285 | #else | ||
1286 | #include <sys/param.h> | ||
1287 | printf ("m68k-sony-newsos%s\n", | ||
1288 | #ifdef NEWSOS4 | ||
1289 | "4" | ||
1290 | #else | ||
1291 | "" | ||
1292 | #endif | ||
1293 | ); exit (0); | ||
1294 | #endif | ||
1295 | #endif | ||
1296 | |||
1297 | #if defined (__arm) && defined (__acorn) && defined (__unix) | ||
1298 | printf ("arm-acorn-riscix\n"); exit (0); | ||
1299 | #endif | ||
1300 | |||
1301 | #if defined (hp300) && !defined (hpux) | ||
1302 | printf ("m68k-hp-bsd\n"); exit (0); | ||
1303 | #endif | ||
1304 | |||
1305 | #if defined (NeXT) | ||
1306 | #if !defined (__ARCHITECTURE__) | ||
1307 | #define __ARCHITECTURE__ "m68k" | ||
1308 | #endif | ||
1309 | int version; | ||
1310 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||
1311 | if (version < 4) | ||
1312 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||
1313 | else | ||
1314 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||
1315 | exit (0); | ||
1316 | #endif | ||
1317 | |||
1318 | #if defined (MULTIMAX) || defined (n16) | ||
1319 | #if defined (UMAXV) | ||
1320 | printf ("ns32k-encore-sysv\n"); exit (0); | ||
1321 | #else | ||
1322 | #if defined (CMU) | ||
1323 | printf ("ns32k-encore-mach\n"); exit (0); | ||
1324 | #else | ||
1325 | printf ("ns32k-encore-bsd\n"); exit (0); | ||
1326 | #endif | ||
1327 | #endif | ||
1328 | #endif | ||
1329 | |||
1330 | #if defined (__386BSD__) | ||
1331 | printf ("i386-pc-bsd\n"); exit (0); | ||
1332 | #endif | ||
1333 | |||
1334 | #if defined (sequent) | ||
1335 | #if defined (i386) | ||
1336 | printf ("i386-sequent-dynix\n"); exit (0); | ||
1337 | #endif | ||
1338 | #if defined (ns32000) | ||
1339 | printf ("ns32k-sequent-dynix\n"); exit (0); | ||
1340 | #endif | ||
1341 | #endif | ||
1342 | |||
1343 | #if defined (_SEQUENT_) | ||
1344 | struct utsname un; | ||
1345 | |||
1346 | uname(&un); | ||
1347 | |||
1348 | if (strncmp(un.version, "V2", 2) == 0) { | ||
1349 | printf ("i386-sequent-ptx2\n"); exit (0); | ||
1350 | } | ||
1351 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
1352 | printf ("i386-sequent-ptx1\n"); exit (0); | ||
1353 | } | ||
1354 | printf ("i386-sequent-ptx\n"); exit (0); | ||
1355 | |||
1356 | #endif | ||
1357 | |||
1358 | #if defined (vax) | ||
1359 | # if !defined (ultrix) | ||
1360 | # include <sys/param.h> | ||
1361 | # if defined (BSD) | ||
1362 | # if BSD == 43 | ||
1363 | printf ("vax-dec-bsd4.3\n"); exit (0); | ||
1364 | # else | ||
1365 | # if BSD == 199006 | ||
1366 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||
1367 | # else | ||
1368 | printf ("vax-dec-bsd\n"); exit (0); | ||
1369 | # endif | ||
1370 | # endif | ||
1371 | # else | ||
1372 | printf ("vax-dec-bsd\n"); exit (0); | ||
1373 | # endif | ||
1374 | # else | ||
1375 | printf ("vax-dec-ultrix\n"); exit (0); | ||
1376 | # endif | ||
1377 | #endif | ||
1378 | |||
1379 | #if defined (alliant) && defined (i860) | ||
1380 | printf ("i860-alliant-bsd\n"); exit (0); | ||
1381 | #endif | ||
1382 | |||
1383 | exit (1); | ||
1384 | } | ||
1385 | EOF | ||
1386 | |||
1387 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | ||
1388 | { echo "$SYSTEM_NAME"; exit; } | ||
1389 | |||
1390 | # Apollos put the system type in the environment. | ||
1391 | |||
1392 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | ||
1393 | |||
1394 | # Convex versions that predate uname can use getsysinfo(1) | ||
1395 | |||
1396 | if [ -x /usr/convex/getsysinfo ] | ||
1397 | then | ||
1398 | case `getsysinfo -f cpu_type` in | ||
1399 | c1*) | ||
1400 | echo c1-convex-bsd | ||
1401 | exit ;; | ||
1402 | c2*) | ||
1403 | if getsysinfo -f scalar_acc | ||
1404 | then echo c32-convex-bsd | ||
1405 | else echo c2-convex-bsd | ||
1406 | fi | ||
1407 | exit ;; | ||
1408 | c34*) | ||
1409 | echo c34-convex-bsd | ||
1410 | exit ;; | ||
1411 | c38*) | ||
1412 | echo c38-convex-bsd | ||
1413 | exit ;; | ||
1414 | c4*) | ||
1415 | echo c4-convex-bsd | ||
1416 | exit ;; | ||
1417 | esac | ||
1418 | fi | ||
1419 | |||
1420 | cat >&2 <<EOF | ||
1421 | $0: unable to guess system type | ||
1422 | |||
1423 | This script, last modified $timestamp, has failed to recognize | ||
1424 | the operating system you are using. It is advised that you | ||
1425 | download the most up to date version of the config scripts from | ||
1426 | |||
1427 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess | ||
1428 | and | ||
1429 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub | ||
1430 | |||
1431 | If the version you run ($0) is already up to date, please | ||
1432 | send the following data and any information you think might be | ||
1433 | pertinent to <config-patches@gnu.org> in order to provide the needed | ||
1434 | information to handle your system. | ||
1435 | |||
1436 | config.guess timestamp = $timestamp | ||
1437 | |||
1438 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1439 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1440 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1441 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1442 | |||
1443 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | ||
1444 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null` | ||
1445 | |||
1446 | hostinfo = `(hostinfo) 2>/dev/null` | ||
1447 | /bin/universe = `(/bin/universe) 2>/dev/null` | ||
1448 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | ||
1449 | /bin/arch = `(/bin/arch) 2>/dev/null` | ||
1450 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | ||
1451 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | ||
1452 | |||
1453 | UNAME_MACHINE = ${UNAME_MACHINE} | ||
1454 | UNAME_RELEASE = ${UNAME_RELEASE} | ||
1455 | UNAME_SYSTEM = ${UNAME_SYSTEM} | ||
1456 | UNAME_VERSION = ${UNAME_VERSION} | ||
1457 | EOF | ||
1458 | |||
1459 | exit 1 | ||
1460 | |||
1461 | # Local variables: | ||
1462 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
1463 | # time-stamp-start: "timestamp='" | ||
1464 | # time-stamp-format: "%:y-%02m-%02d" | ||
1465 | # time-stamp-end: "'" | ||
1466 | # End: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/config.h b/src/others/mimesh/g3dviewer-0.2.99.4/config.h new file mode 100644 index 0000000..d0d348e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/config.h | |||
@@ -0,0 +1,83 @@ | |||
1 | /* config.h. Generated from config.h.in by configure. */ | ||
2 | /* config.h.in. Generated from configure.in by autoheader. */ | ||
3 | |||
4 | /* Data directory */ | ||
5 | #define DATA_DIR "/usr/local/share/g3dviewer" | ||
6 | |||
7 | /* always defined to indicate that i18n is enabled */ | ||
8 | #define ENABLE_NLS 1 | ||
9 | |||
10 | /* Define to 1 if you have the `bind_textdomain_codeset' function. */ | ||
11 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 | ||
12 | |||
13 | /* Define to 1 if you have the `dcgettext' function. */ | ||
14 | #define HAVE_DCGETTEXT 1 | ||
15 | |||
16 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
17 | #define HAVE_DIRENT_H 1 | ||
18 | |||
19 | /* Define if the GNU gettext() function is already present or preinstalled. */ | ||
20 | #define HAVE_GETTEXT 1 | ||
21 | |||
22 | /* Define to 1 if you have the <GL/glu.h> header file. */ | ||
23 | #define HAVE_GL_GLU_H 1 | ||
24 | |||
25 | /* Define to 1 if you have the <GL/gl.h> header file. */ | ||
26 | #define HAVE_GL_GL_H 1 | ||
27 | |||
28 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
29 | #define HAVE_INTTYPES_H 1 | ||
30 | |||
31 | /* Define if your <locale.h> file defines LC_MESSAGES. */ | ||
32 | #define HAVE_LC_MESSAGES 1 | ||
33 | |||
34 | /* Define to 1 if you have the <locale.h> header file. */ | ||
35 | #define HAVE_LOCALE_H 1 | ||
36 | |||
37 | /* Define to 1 if you have the <memory.h> header file. */ | ||
38 | #define HAVE_MEMORY_H 1 | ||
39 | |||
40 | /* snprintf */ | ||
41 | #define HAVE_SNPRINTF 1 | ||
42 | |||
43 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
44 | #define HAVE_STDINT_H 1 | ||
45 | |||
46 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
47 | #define HAVE_STDLIB_H 1 | ||
48 | |||
49 | /* Define to 1 if you have the <strings.h> header file. */ | ||
50 | #define HAVE_STRINGS_H 1 | ||
51 | |||
52 | /* Define to 1 if you have the <string.h> header file. */ | ||
53 | #define HAVE_STRING_H 1 | ||
54 | |||
55 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
56 | #define HAVE_SYS_STAT_H 1 | ||
57 | |||
58 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
59 | #define HAVE_SYS_TYPES_H 1 | ||
60 | |||
61 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
62 | #define HAVE_UNISTD_H 1 | ||
63 | |||
64 | /* Define to the address where bug reports for this package should be sent. */ | ||
65 | #define PACKAGE_BUGREPORT "" | ||
66 | |||
67 | /* Define to the full name of this package. */ | ||
68 | #define PACKAGE_NAME "" | ||
69 | |||
70 | /* Define to the full name and version of this package. */ | ||
71 | #define PACKAGE_STRING "" | ||
72 | |||
73 | /* Define to the one symbol short name of this package. */ | ||
74 | #define PACKAGE_TARNAME "" | ||
75 | |||
76 | /* Define to the version of this package. */ | ||
77 | #define PACKAGE_VERSION "" | ||
78 | |||
79 | /* Define to 1 if you have the ANSI C header files. */ | ||
80 | #define STDC_HEADERS 1 | ||
81 | |||
82 | /* Define to 1 if the X Window System is missing or not being used. */ | ||
83 | /* #undef X_DISPLAY_MISSING */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/config.h.in b/src/others/mimesh/g3dviewer-0.2.99.4/config.h.in new file mode 100644 index 0000000..13e91cb --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/config.h.in | |||
@@ -0,0 +1,82 @@ | |||
1 | /* config.h.in. Generated from configure.in by autoheader. */ | ||
2 | |||
3 | /* Data directory */ | ||
4 | #undef DATA_DIR | ||
5 | |||
6 | /* always defined to indicate that i18n is enabled */ | ||
7 | #undef ENABLE_NLS | ||
8 | |||
9 | /* Define to 1 if you have the `bind_textdomain_codeset' function. */ | ||
10 | #undef HAVE_BIND_TEXTDOMAIN_CODESET | ||
11 | |||
12 | /* Define to 1 if you have the `dcgettext' function. */ | ||
13 | #undef HAVE_DCGETTEXT | ||
14 | |||
15 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
16 | #undef HAVE_DIRENT_H | ||
17 | |||
18 | /* Define if the GNU gettext() function is already present or preinstalled. */ | ||
19 | #undef HAVE_GETTEXT | ||
20 | |||
21 | /* Define to 1 if you have the <GL/glu.h> header file. */ | ||
22 | #undef HAVE_GL_GLU_H | ||
23 | |||
24 | /* Define to 1 if you have the <GL/gl.h> header file. */ | ||
25 | #undef HAVE_GL_GL_H | ||
26 | |||
27 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
28 | #undef HAVE_INTTYPES_H | ||
29 | |||
30 | /* Define if your <locale.h> file defines LC_MESSAGES. */ | ||
31 | #undef HAVE_LC_MESSAGES | ||
32 | |||
33 | /* Define to 1 if you have the <locale.h> header file. */ | ||
34 | #undef HAVE_LOCALE_H | ||
35 | |||
36 | /* Define to 1 if you have the <memory.h> header file. */ | ||
37 | #undef HAVE_MEMORY_H | ||
38 | |||
39 | /* snprintf */ | ||
40 | #undef HAVE_SNPRINTF | ||
41 | |||
42 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
43 | #undef HAVE_STDINT_H | ||
44 | |||
45 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
46 | #undef HAVE_STDLIB_H | ||
47 | |||
48 | /* Define to 1 if you have the <strings.h> header file. */ | ||
49 | #undef HAVE_STRINGS_H | ||
50 | |||
51 | /* Define to 1 if you have the <string.h> header file. */ | ||
52 | #undef HAVE_STRING_H | ||
53 | |||
54 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
55 | #undef HAVE_SYS_STAT_H | ||
56 | |||
57 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
58 | #undef HAVE_SYS_TYPES_H | ||
59 | |||
60 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
61 | #undef HAVE_UNISTD_H | ||
62 | |||
63 | /* Define to the address where bug reports for this package should be sent. */ | ||
64 | #undef PACKAGE_BUGREPORT | ||
65 | |||
66 | /* Define to the full name of this package. */ | ||
67 | #undef PACKAGE_NAME | ||
68 | |||
69 | /* Define to the full name and version of this package. */ | ||
70 | #undef PACKAGE_STRING | ||
71 | |||
72 | /* Define to the one symbol short name of this package. */ | ||
73 | #undef PACKAGE_TARNAME | ||
74 | |||
75 | /* Define to the version of this package. */ | ||
76 | #undef PACKAGE_VERSION | ||
77 | |||
78 | /* Define to 1 if you have the ANSI C header files. */ | ||
79 | #undef STDC_HEADERS | ||
80 | |||
81 | /* Define to 1 if the X Window System is missing or not being used. */ | ||
82 | #undef X_DISPLAY_MISSING | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/config.sub b/src/others/mimesh/g3dviewer-0.2.99.4/config.sub new file mode 100755 index 0000000..1c366df --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/config.sub | |||
@@ -0,0 +1,1579 @@ | |||
1 | #! /bin/sh | ||
2 | # Configuration validation subroutine script. | ||
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | ||
5 | |||
6 | timestamp='2005-07-08' | ||
7 | |||
8 | # This file is (in principle) common to ALL GNU software. | ||
9 | # The presence of a machine in this file suggests that SOME GNU software | ||
10 | # can handle that machine. It does not imply ALL GNU software can. | ||
11 | # | ||
12 | # This file is free software; you can redistribute it and/or modify | ||
13 | # it under the terms of the GNU General Public License as published by | ||
14 | # the Free Software Foundation; either version 2 of the License, or | ||
15 | # (at your option) any later version. | ||
16 | # | ||
17 | # This program is distributed in the hope that it will be useful, | ||
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | # GNU General Public License for more details. | ||
21 | # | ||
22 | # You should have received a copy of the GNU General Public License | ||
23 | # along with this program; if not, write to the Free Software | ||
24 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
25 | # 02110-1301, USA. | ||
26 | # | ||
27 | # As a special exception to the GNU General Public License, if you | ||
28 | # distribute this file as part of a program that contains a | ||
29 | # configuration script generated by Autoconf, you may include it under | ||
30 | # the same distribution terms that you use for the rest of that program. | ||
31 | |||
32 | |||
33 | # Please send patches to <config-patches@gnu.org>. Submit a context | ||
34 | # diff and a properly formatted ChangeLog entry. | ||
35 | # | ||
36 | # Configuration subroutine to validate and canonicalize a configuration type. | ||
37 | # Supply the specified configuration type as an argument. | ||
38 | # If it is invalid, we print an error message on stderr and exit with code 1. | ||
39 | # Otherwise, we print the canonical config type on stdout and succeed. | ||
40 | |||
41 | # This file is supposed to be the same for all GNU packages | ||
42 | # and recognize all the CPU types, system types and aliases | ||
43 | # that are meaningful with *any* GNU software. | ||
44 | # Each package is responsible for reporting which valid configurations | ||
45 | # it does not support. The user should be able to distinguish | ||
46 | # a failure to support a valid configuration from a meaningless | ||
47 | # configuration. | ||
48 | |||
49 | # The goal of this file is to map all the various variations of a given | ||
50 | # machine specification into a single specification in the form: | ||
51 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | ||
52 | # or in some cases, the newer four-part form: | ||
53 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | ||
54 | # It is wrong to echo any other type of specification. | ||
55 | |||
56 | me=`echo "$0" | sed -e 's,.*/,,'` | ||
57 | |||
58 | usage="\ | ||
59 | Usage: $0 [OPTION] CPU-MFR-OPSYS | ||
60 | $0 [OPTION] ALIAS | ||
61 | |||
62 | Canonicalize a configuration name. | ||
63 | |||
64 | Operation modes: | ||
65 | -h, --help print this help, then exit | ||
66 | -t, --time-stamp print date of last modification, then exit | ||
67 | -v, --version print version number, then exit | ||
68 | |||
69 | Report bugs and patches to <config-patches@gnu.org>." | ||
70 | |||
71 | version="\ | ||
72 | GNU config.sub ($timestamp) | ||
73 | |||
74 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | ||
75 | Free Software Foundation, Inc. | ||
76 | |||
77 | This is free software; see the source for copying conditions. There is NO | ||
78 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
79 | |||
80 | help=" | ||
81 | Try \`$me --help' for more information." | ||
82 | |||
83 | # Parse command line | ||
84 | while test $# -gt 0 ; do | ||
85 | case $1 in | ||
86 | --time-stamp | --time* | -t ) | ||
87 | echo "$timestamp" ; exit ;; | ||
88 | --version | -v ) | ||
89 | echo "$version" ; exit ;; | ||
90 | --help | --h* | -h ) | ||
91 | echo "$usage"; exit ;; | ||
92 | -- ) # Stop option processing | ||
93 | shift; break ;; | ||
94 | - ) # Use stdin as input. | ||
95 | break ;; | ||
96 | -* ) | ||
97 | echo "$me: invalid option $1$help" | ||
98 | exit 1 ;; | ||
99 | |||
100 | *local*) | ||
101 | # First pass through any local machine types. | ||
102 | echo $1 | ||
103 | exit ;; | ||
104 | |||
105 | * ) | ||
106 | break ;; | ||
107 | esac | ||
108 | done | ||
109 | |||
110 | case $# in | ||
111 | 0) echo "$me: missing argument$help" >&2 | ||
112 | exit 1;; | ||
113 | 1) ;; | ||
114 | *) echo "$me: too many arguments$help" >&2 | ||
115 | exit 1;; | ||
116 | esac | ||
117 | |||
118 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | ||
119 | # Here we must recognize all the valid KERNEL-OS combinations. | ||
120 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | ||
121 | case $maybe_os in | ||
122 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ | ||
123 | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) | ||
124 | os=-$maybe_os | ||
125 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||
126 | ;; | ||
127 | *) | ||
128 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | ||
129 | if [ $basic_machine != $1 ] | ||
130 | then os=`echo $1 | sed 's/.*-/-/'` | ||
131 | else os=; fi | ||
132 | ;; | ||
133 | esac | ||
134 | |||
135 | ### Let's recognize common machines as not being operating systems so | ||
136 | ### that things like config.sub decstation-3100 work. We also | ||
137 | ### recognize some manufacturers as not being operating systems, so we | ||
138 | ### can provide default operating systems below. | ||
139 | case $os in | ||
140 | -sun*os*) | ||
141 | # Prevent following clause from handling this invalid input. | ||
142 | ;; | ||
143 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | ||
144 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | ||
145 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | ||
146 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | ||
147 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | ||
148 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | ||
149 | -apple | -axis | -knuth | -cray) | ||
150 | os= | ||
151 | basic_machine=$1 | ||
152 | ;; | ||
153 | -sim | -cisco | -oki | -wec | -winbond) | ||
154 | os= | ||
155 | basic_machine=$1 | ||
156 | ;; | ||
157 | -scout) | ||
158 | ;; | ||
159 | -wrs) | ||
160 | os=-vxworks | ||
161 | basic_machine=$1 | ||
162 | ;; | ||
163 | -chorusos*) | ||
164 | os=-chorusos | ||
165 | basic_machine=$1 | ||
166 | ;; | ||
167 | -chorusrdb) | ||
168 | os=-chorusrdb | ||
169 | basic_machine=$1 | ||
170 | ;; | ||
171 | -hiux*) | ||
172 | os=-hiuxwe2 | ||
173 | ;; | ||
174 | -sco5) | ||
175 | os=-sco3.2v5 | ||
176 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
177 | ;; | ||
178 | -sco4) | ||
179 | os=-sco3.2v4 | ||
180 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
181 | ;; | ||
182 | -sco3.2.[4-9]*) | ||
183 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | ||
184 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
185 | ;; | ||
186 | -sco3.2v[4-9]*) | ||
187 | # Don't forget version if it is 3.2v4 or newer. | ||
188 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
189 | ;; | ||
190 | -sco*) | ||
191 | os=-sco3.2v2 | ||
192 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
193 | ;; | ||
194 | -udk*) | ||
195 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
196 | ;; | ||
197 | -isc) | ||
198 | os=-isc2.2 | ||
199 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
200 | ;; | ||
201 | -clix*) | ||
202 | basic_machine=clipper-intergraph | ||
203 | ;; | ||
204 | -isc*) | ||
205 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
206 | ;; | ||
207 | -lynx*) | ||
208 | os=-lynxos | ||
209 | ;; | ||
210 | -ptx*) | ||
211 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | ||
212 | ;; | ||
213 | -windowsnt*) | ||
214 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | ||
215 | ;; | ||
216 | -psos*) | ||
217 | os=-psos | ||
218 | ;; | ||
219 | -mint | -mint[0-9]*) | ||
220 | basic_machine=m68k-atari | ||
221 | os=-mint | ||
222 | ;; | ||
223 | esac | ||
224 | |||
225 | # Decode aliases for certain CPU-COMPANY combinations. | ||
226 | case $basic_machine in | ||
227 | # Recognize the basic CPU types without company name. | ||
228 | # Some are omitted here because they have special meanings below. | ||
229 | 1750a | 580 \ | ||
230 | | a29k \ | ||
231 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
232 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
233 | | am33_2.0 \ | ||
234 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | ||
235 | | bfin \ | ||
236 | | c4x | clipper \ | ||
237 | | d10v | d30v | dlx | dsp16xx \ | ||
238 | | fr30 | frv \ | ||
239 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
240 | | i370 | i860 | i960 | ia64 \ | ||
241 | | ip2k | iq2000 \ | ||
242 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ | ||
243 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
244 | | mips16 \ | ||
245 | | mips64 | mips64el \ | ||
246 | | mips64vr | mips64vrel \ | ||
247 | | mips64orion | mips64orionel \ | ||
248 | | mips64vr4100 | mips64vr4100el \ | ||
249 | | mips64vr4300 | mips64vr4300el \ | ||
250 | | mips64vr5000 | mips64vr5000el \ | ||
251 | | mips64vr5900 | mips64vr5900el \ | ||
252 | | mipsisa32 | mipsisa32el \ | ||
253 | | mipsisa32r2 | mipsisa32r2el \ | ||
254 | | mipsisa64 | mipsisa64el \ | ||
255 | | mipsisa64r2 | mipsisa64r2el \ | ||
256 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
257 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
258 | | mipstx39 | mipstx39el \ | ||
259 | | mn10200 | mn10300 \ | ||
260 | | ms1 \ | ||
261 | | msp430 \ | ||
262 | | ns16k | ns32k \ | ||
263 | | or32 \ | ||
264 | | pdp10 | pdp11 | pj | pjl \ | ||
265 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | ||
266 | | pyramid \ | ||
267 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | ||
268 | | sh64 | sh64le \ | ||
269 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | ||
270 | | sparcv8 | sparcv9 | sparcv9b \ | ||
271 | | strongarm \ | ||
272 | | tahoe | thumb | tic4x | tic80 | tron \ | ||
273 | | v850 | v850e \ | ||
274 | | we32k \ | ||
275 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | ||
276 | | z8k) | ||
277 | basic_machine=$basic_machine-unknown | ||
278 | ;; | ||
279 | m32c) | ||
280 | basic_machine=$basic_machine-unknown | ||
281 | ;; | ||
282 | m6811 | m68hc11 | m6812 | m68hc12) | ||
283 | # Motorola 68HC11/12. | ||
284 | basic_machine=$basic_machine-unknown | ||
285 | os=-none | ||
286 | ;; | ||
287 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | ||
288 | ;; | ||
289 | |||
290 | # We use `pc' rather than `unknown' | ||
291 | # because (1) that's what they normally are, and | ||
292 | # (2) the word "unknown" tends to confuse beginning users. | ||
293 | i*86 | x86_64) | ||
294 | basic_machine=$basic_machine-pc | ||
295 | ;; | ||
296 | # Object if more than one company name word. | ||
297 | *-*-*) | ||
298 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
299 | exit 1 | ||
300 | ;; | ||
301 | # Recognize the basic CPU types with company name. | ||
302 | 580-* \ | ||
303 | | a29k-* \ | ||
304 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
305 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
306 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | ||
307 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | ||
308 | | avr-* \ | ||
309 | | bfin-* | bs2000-* \ | ||
310 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | ||
311 | | clipper-* | craynv-* | cydra-* \ | ||
312 | | d10v-* | d30v-* | dlx-* \ | ||
313 | | elxsi-* \ | ||
314 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | ||
315 | | h8300-* | h8500-* \ | ||
316 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
317 | | i*86-* | i860-* | i960-* | ia64-* \ | ||
318 | | ip2k-* | iq2000-* \ | ||
319 | | m32r-* | m32rle-* \ | ||
320 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | ||
321 | | m88110-* | m88k-* | maxq-* | mcore-* \ | ||
322 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
323 | | mips16-* \ | ||
324 | | mips64-* | mips64el-* \ | ||
325 | | mips64vr-* | mips64vrel-* \ | ||
326 | | mips64orion-* | mips64orionel-* \ | ||
327 | | mips64vr4100-* | mips64vr4100el-* \ | ||
328 | | mips64vr4300-* | mips64vr4300el-* \ | ||
329 | | mips64vr5000-* | mips64vr5000el-* \ | ||
330 | | mips64vr5900-* | mips64vr5900el-* \ | ||
331 | | mipsisa32-* | mipsisa32el-* \ | ||
332 | | mipsisa32r2-* | mipsisa32r2el-* \ | ||
333 | | mipsisa64-* | mipsisa64el-* \ | ||
334 | | mipsisa64r2-* | mipsisa64r2el-* \ | ||
335 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
336 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
337 | | mipstx39-* | mipstx39el-* \ | ||
338 | | mmix-* \ | ||
339 | | ms1-* \ | ||
340 | | msp430-* \ | ||
341 | | none-* | np1-* | ns16k-* | ns32k-* \ | ||
342 | | orion-* \ | ||
343 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
344 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | ||
345 | | pyramid-* \ | ||
346 | | romp-* | rs6000-* \ | ||
347 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | ||
348 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||
349 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | ||
350 | | sparclite-* \ | ||
351 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | ||
352 | | tahoe-* | thumb-* \ | ||
353 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
354 | | tron-* \ | ||
355 | | v850-* | v850e-* | vax-* \ | ||
356 | | we32k-* \ | ||
357 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | ||
358 | | xstormy16-* | xtensa-* \ | ||
359 | | ymp-* \ | ||
360 | | z8k-*) | ||
361 | ;; | ||
362 | m32c-*) | ||
363 | ;; | ||
364 | # Recognize the various machine names and aliases which stand | ||
365 | # for a CPU type and a company and sometimes even an OS. | ||
366 | 386bsd) | ||
367 | basic_machine=i386-unknown | ||
368 | os=-bsd | ||
369 | ;; | ||
370 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | ||
371 | basic_machine=m68000-att | ||
372 | ;; | ||
373 | 3b*) | ||
374 | basic_machine=we32k-att | ||
375 | ;; | ||
376 | a29khif) | ||
377 | basic_machine=a29k-amd | ||
378 | os=-udi | ||
379 | ;; | ||
380 | abacus) | ||
381 | basic_machine=abacus-unknown | ||
382 | ;; | ||
383 | adobe68k) | ||
384 | basic_machine=m68010-adobe | ||
385 | os=-scout | ||
386 | ;; | ||
387 | alliant | fx80) | ||
388 | basic_machine=fx80-alliant | ||
389 | ;; | ||
390 | altos | altos3068) | ||
391 | basic_machine=m68k-altos | ||
392 | ;; | ||
393 | am29k) | ||
394 | basic_machine=a29k-none | ||
395 | os=-bsd | ||
396 | ;; | ||
397 | amd64) | ||
398 | basic_machine=x86_64-pc | ||
399 | ;; | ||
400 | amd64-*) | ||
401 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
402 | ;; | ||
403 | amdahl) | ||
404 | basic_machine=580-amdahl | ||
405 | os=-sysv | ||
406 | ;; | ||
407 | amiga | amiga-*) | ||
408 | basic_machine=m68k-unknown | ||
409 | ;; | ||
410 | amigaos | amigados) | ||
411 | basic_machine=m68k-unknown | ||
412 | os=-amigaos | ||
413 | ;; | ||
414 | amigaunix | amix) | ||
415 | basic_machine=m68k-unknown | ||
416 | os=-sysv4 | ||
417 | ;; | ||
418 | apollo68) | ||
419 | basic_machine=m68k-apollo | ||
420 | os=-sysv | ||
421 | ;; | ||
422 | apollo68bsd) | ||
423 | basic_machine=m68k-apollo | ||
424 | os=-bsd | ||
425 | ;; | ||
426 | aux) | ||
427 | basic_machine=m68k-apple | ||
428 | os=-aux | ||
429 | ;; | ||
430 | balance) | ||
431 | basic_machine=ns32k-sequent | ||
432 | os=-dynix | ||
433 | ;; | ||
434 | c90) | ||
435 | basic_machine=c90-cray | ||
436 | os=-unicos | ||
437 | ;; | ||
438 | convex-c1) | ||
439 | basic_machine=c1-convex | ||
440 | os=-bsd | ||
441 | ;; | ||
442 | convex-c2) | ||
443 | basic_machine=c2-convex | ||
444 | os=-bsd | ||
445 | ;; | ||
446 | convex-c32) | ||
447 | basic_machine=c32-convex | ||
448 | os=-bsd | ||
449 | ;; | ||
450 | convex-c34) | ||
451 | basic_machine=c34-convex | ||
452 | os=-bsd | ||
453 | ;; | ||
454 | convex-c38) | ||
455 | basic_machine=c38-convex | ||
456 | os=-bsd | ||
457 | ;; | ||
458 | cray | j90) | ||
459 | basic_machine=j90-cray | ||
460 | os=-unicos | ||
461 | ;; | ||
462 | craynv) | ||
463 | basic_machine=craynv-cray | ||
464 | os=-unicosmp | ||
465 | ;; | ||
466 | cr16c) | ||
467 | basic_machine=cr16c-unknown | ||
468 | os=-elf | ||
469 | ;; | ||
470 | crds | unos) | ||
471 | basic_machine=m68k-crds | ||
472 | ;; | ||
473 | crisv32 | crisv32-* | etraxfs*) | ||
474 | basic_machine=crisv32-axis | ||
475 | ;; | ||
476 | cris | cris-* | etrax*) | ||
477 | basic_machine=cris-axis | ||
478 | ;; | ||
479 | crx) | ||
480 | basic_machine=crx-unknown | ||
481 | os=-elf | ||
482 | ;; | ||
483 | da30 | da30-*) | ||
484 | basic_machine=m68k-da30 | ||
485 | ;; | ||
486 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | ||
487 | basic_machine=mips-dec | ||
488 | ;; | ||
489 | decsystem10* | dec10*) | ||
490 | basic_machine=pdp10-dec | ||
491 | os=-tops10 | ||
492 | ;; | ||
493 | decsystem20* | dec20*) | ||
494 | basic_machine=pdp10-dec | ||
495 | os=-tops20 | ||
496 | ;; | ||
497 | delta | 3300 | motorola-3300 | motorola-delta \ | ||
498 | | 3300-motorola | delta-motorola) | ||
499 | basic_machine=m68k-motorola | ||
500 | ;; | ||
501 | delta88) | ||
502 | basic_machine=m88k-motorola | ||
503 | os=-sysv3 | ||
504 | ;; | ||
505 | djgpp) | ||
506 | basic_machine=i586-pc | ||
507 | os=-msdosdjgpp | ||
508 | ;; | ||
509 | dpx20 | dpx20-*) | ||
510 | basic_machine=rs6000-bull | ||
511 | os=-bosx | ||
512 | ;; | ||
513 | dpx2* | dpx2*-bull) | ||
514 | basic_machine=m68k-bull | ||
515 | os=-sysv3 | ||
516 | ;; | ||
517 | ebmon29k) | ||
518 | basic_machine=a29k-amd | ||
519 | os=-ebmon | ||
520 | ;; | ||
521 | elxsi) | ||
522 | basic_machine=elxsi-elxsi | ||
523 | os=-bsd | ||
524 | ;; | ||
525 | encore | umax | mmax) | ||
526 | basic_machine=ns32k-encore | ||
527 | ;; | ||
528 | es1800 | OSE68k | ose68k | ose | OSE) | ||
529 | basic_machine=m68k-ericsson | ||
530 | os=-ose | ||
531 | ;; | ||
532 | fx2800) | ||
533 | basic_machine=i860-alliant | ||
534 | ;; | ||
535 | genix) | ||
536 | basic_machine=ns32k-ns | ||
537 | ;; | ||
538 | gmicro) | ||
539 | basic_machine=tron-gmicro | ||
540 | os=-sysv | ||
541 | ;; | ||
542 | go32) | ||
543 | basic_machine=i386-pc | ||
544 | os=-go32 | ||
545 | ;; | ||
546 | h3050r* | hiux*) | ||
547 | basic_machine=hppa1.1-hitachi | ||
548 | os=-hiuxwe2 | ||
549 | ;; | ||
550 | h8300hms) | ||
551 | basic_machine=h8300-hitachi | ||
552 | os=-hms | ||
553 | ;; | ||
554 | h8300xray) | ||
555 | basic_machine=h8300-hitachi | ||
556 | os=-xray | ||
557 | ;; | ||
558 | h8500hms) | ||
559 | basic_machine=h8500-hitachi | ||
560 | os=-hms | ||
561 | ;; | ||
562 | harris) | ||
563 | basic_machine=m88k-harris | ||
564 | os=-sysv3 | ||
565 | ;; | ||
566 | hp300-*) | ||
567 | basic_machine=m68k-hp | ||
568 | ;; | ||
569 | hp300bsd) | ||
570 | basic_machine=m68k-hp | ||
571 | os=-bsd | ||
572 | ;; | ||
573 | hp300hpux) | ||
574 | basic_machine=m68k-hp | ||
575 | os=-hpux | ||
576 | ;; | ||
577 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | ||
578 | basic_machine=hppa1.0-hp | ||
579 | ;; | ||
580 | hp9k2[0-9][0-9] | hp9k31[0-9]) | ||
581 | basic_machine=m68000-hp | ||
582 | ;; | ||
583 | hp9k3[2-9][0-9]) | ||
584 | basic_machine=m68k-hp | ||
585 | ;; | ||
586 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | ||
587 | basic_machine=hppa1.0-hp | ||
588 | ;; | ||
589 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | ||
590 | basic_machine=hppa1.1-hp | ||
591 | ;; | ||
592 | hp9k78[0-9] | hp78[0-9]) | ||
593 | # FIXME: really hppa2.0-hp | ||
594 | basic_machine=hppa1.1-hp | ||
595 | ;; | ||
596 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | ||
597 | # FIXME: really hppa2.0-hp | ||
598 | basic_machine=hppa1.1-hp | ||
599 | ;; | ||
600 | hp9k8[0-9][13679] | hp8[0-9][13679]) | ||
601 | basic_machine=hppa1.1-hp | ||
602 | ;; | ||
603 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | ||
604 | basic_machine=hppa1.0-hp | ||
605 | ;; | ||
606 | hppa-next) | ||
607 | os=-nextstep3 | ||
608 | ;; | ||
609 | hppaosf) | ||
610 | basic_machine=hppa1.1-hp | ||
611 | os=-osf | ||
612 | ;; | ||
613 | hppro) | ||
614 | basic_machine=hppa1.1-hp | ||
615 | os=-proelf | ||
616 | ;; | ||
617 | i370-ibm* | ibm*) | ||
618 | basic_machine=i370-ibm | ||
619 | ;; | ||
620 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | ||
621 | i*86v32) | ||
622 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
623 | os=-sysv32 | ||
624 | ;; | ||
625 | i*86v4*) | ||
626 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
627 | os=-sysv4 | ||
628 | ;; | ||
629 | i*86v) | ||
630 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
631 | os=-sysv | ||
632 | ;; | ||
633 | i*86sol2) | ||
634 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
635 | os=-solaris2 | ||
636 | ;; | ||
637 | i386mach) | ||
638 | basic_machine=i386-mach | ||
639 | os=-mach | ||
640 | ;; | ||
641 | i386-vsta | vsta) | ||
642 | basic_machine=i386-unknown | ||
643 | os=-vsta | ||
644 | ;; | ||
645 | iris | iris4d) | ||
646 | basic_machine=mips-sgi | ||
647 | case $os in | ||
648 | -irix*) | ||
649 | ;; | ||
650 | *) | ||
651 | os=-irix4 | ||
652 | ;; | ||
653 | esac | ||
654 | ;; | ||
655 | isi68 | isi) | ||
656 | basic_machine=m68k-isi | ||
657 | os=-sysv | ||
658 | ;; | ||
659 | m88k-omron*) | ||
660 | basic_machine=m88k-omron | ||
661 | ;; | ||
662 | magnum | m3230) | ||
663 | basic_machine=mips-mips | ||
664 | os=-sysv | ||
665 | ;; | ||
666 | merlin) | ||
667 | basic_machine=ns32k-utek | ||
668 | os=-sysv | ||
669 | ;; | ||
670 | mingw32) | ||
671 | basic_machine=i386-pc | ||
672 | os=-mingw32 | ||
673 | ;; | ||
674 | miniframe) | ||
675 | basic_machine=m68000-convergent | ||
676 | ;; | ||
677 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | ||
678 | basic_machine=m68k-atari | ||
679 | os=-mint | ||
680 | ;; | ||
681 | mips3*-*) | ||
682 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | ||
683 | ;; | ||
684 | mips3*) | ||
685 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | ||
686 | ;; | ||
687 | monitor) | ||
688 | basic_machine=m68k-rom68k | ||
689 | os=-coff | ||
690 | ;; | ||
691 | morphos) | ||
692 | basic_machine=powerpc-unknown | ||
693 | os=-morphos | ||
694 | ;; | ||
695 | msdos) | ||
696 | basic_machine=i386-pc | ||
697 | os=-msdos | ||
698 | ;; | ||
699 | mvs) | ||
700 | basic_machine=i370-ibm | ||
701 | os=-mvs | ||
702 | ;; | ||
703 | ncr3000) | ||
704 | basic_machine=i486-ncr | ||
705 | os=-sysv4 | ||
706 | ;; | ||
707 | netbsd386) | ||
708 | basic_machine=i386-unknown | ||
709 | os=-netbsd | ||
710 | ;; | ||
711 | netwinder) | ||
712 | basic_machine=armv4l-rebel | ||
713 | os=-linux | ||
714 | ;; | ||
715 | news | news700 | news800 | news900) | ||
716 | basic_machine=m68k-sony | ||
717 | os=-newsos | ||
718 | ;; | ||
719 | news1000) | ||
720 | basic_machine=m68030-sony | ||
721 | os=-newsos | ||
722 | ;; | ||
723 | news-3600 | risc-news) | ||
724 | basic_machine=mips-sony | ||
725 | os=-newsos | ||
726 | ;; | ||
727 | necv70) | ||
728 | basic_machine=v70-nec | ||
729 | os=-sysv | ||
730 | ;; | ||
731 | next | m*-next ) | ||
732 | basic_machine=m68k-next | ||
733 | case $os in | ||
734 | -nextstep* ) | ||
735 | ;; | ||
736 | -ns2*) | ||
737 | os=-nextstep2 | ||
738 | ;; | ||
739 | *) | ||
740 | os=-nextstep3 | ||
741 | ;; | ||
742 | esac | ||
743 | ;; | ||
744 | nh3000) | ||
745 | basic_machine=m68k-harris | ||
746 | os=-cxux | ||
747 | ;; | ||
748 | nh[45]000) | ||
749 | basic_machine=m88k-harris | ||
750 | os=-cxux | ||
751 | ;; | ||
752 | nindy960) | ||
753 | basic_machine=i960-intel | ||
754 | os=-nindy | ||
755 | ;; | ||
756 | mon960) | ||
757 | basic_machine=i960-intel | ||
758 | os=-mon960 | ||
759 | ;; | ||
760 | nonstopux) | ||
761 | basic_machine=mips-compaq | ||
762 | os=-nonstopux | ||
763 | ;; | ||
764 | np1) | ||
765 | basic_machine=np1-gould | ||
766 | ;; | ||
767 | nsr-tandem) | ||
768 | basic_machine=nsr-tandem | ||
769 | ;; | ||
770 | op50n-* | op60c-*) | ||
771 | basic_machine=hppa1.1-oki | ||
772 | os=-proelf | ||
773 | ;; | ||
774 | openrisc | openrisc-*) | ||
775 | basic_machine=or32-unknown | ||
776 | ;; | ||
777 | os400) | ||
778 | basic_machine=powerpc-ibm | ||
779 | os=-os400 | ||
780 | ;; | ||
781 | OSE68000 | ose68000) | ||
782 | basic_machine=m68000-ericsson | ||
783 | os=-ose | ||
784 | ;; | ||
785 | os68k) | ||
786 | basic_machine=m68k-none | ||
787 | os=-os68k | ||
788 | ;; | ||
789 | pa-hitachi) | ||
790 | basic_machine=hppa1.1-hitachi | ||
791 | os=-hiuxwe2 | ||
792 | ;; | ||
793 | paragon) | ||
794 | basic_machine=i860-intel | ||
795 | os=-osf | ||
796 | ;; | ||
797 | pbd) | ||
798 | basic_machine=sparc-tti | ||
799 | ;; | ||
800 | pbb) | ||
801 | basic_machine=m68k-tti | ||
802 | ;; | ||
803 | pc532 | pc532-*) | ||
804 | basic_machine=ns32k-pc532 | ||
805 | ;; | ||
806 | pentium | p5 | k5 | k6 | nexgen | viac3) | ||
807 | basic_machine=i586-pc | ||
808 | ;; | ||
809 | pentiumpro | p6 | 6x86 | athlon | athlon_*) | ||
810 | basic_machine=i686-pc | ||
811 | ;; | ||
812 | pentiumii | pentium2 | pentiumiii | pentium3) | ||
813 | basic_machine=i686-pc | ||
814 | ;; | ||
815 | pentium4) | ||
816 | basic_machine=i786-pc | ||
817 | ;; | ||
818 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | ||
819 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
820 | ;; | ||
821 | pentiumpro-* | p6-* | 6x86-* | athlon-*) | ||
822 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
823 | ;; | ||
824 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | ||
825 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
826 | ;; | ||
827 | pentium4-*) | ||
828 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
829 | ;; | ||
830 | pn) | ||
831 | basic_machine=pn-gould | ||
832 | ;; | ||
833 | power) basic_machine=power-ibm | ||
834 | ;; | ||
835 | ppc) basic_machine=powerpc-unknown | ||
836 | ;; | ||
837 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
838 | ;; | ||
839 | ppcle | powerpclittle | ppc-le | powerpc-little) | ||
840 | basic_machine=powerpcle-unknown | ||
841 | ;; | ||
842 | ppcle-* | powerpclittle-*) | ||
843 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
844 | ;; | ||
845 | ppc64) basic_machine=powerpc64-unknown | ||
846 | ;; | ||
847 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
848 | ;; | ||
849 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | ||
850 | basic_machine=powerpc64le-unknown | ||
851 | ;; | ||
852 | ppc64le-* | powerpc64little-*) | ||
853 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
854 | ;; | ||
855 | ps2) | ||
856 | basic_machine=i386-ibm | ||
857 | ;; | ||
858 | pw32) | ||
859 | basic_machine=i586-unknown | ||
860 | os=-pw32 | ||
861 | ;; | ||
862 | rom68k) | ||
863 | basic_machine=m68k-rom68k | ||
864 | os=-coff | ||
865 | ;; | ||
866 | rm[46]00) | ||
867 | basic_machine=mips-siemens | ||
868 | ;; | ||
869 | rtpc | rtpc-*) | ||
870 | basic_machine=romp-ibm | ||
871 | ;; | ||
872 | s390 | s390-*) | ||
873 | basic_machine=s390-ibm | ||
874 | ;; | ||
875 | s390x | s390x-*) | ||
876 | basic_machine=s390x-ibm | ||
877 | ;; | ||
878 | sa29200) | ||
879 | basic_machine=a29k-amd | ||
880 | os=-udi | ||
881 | ;; | ||
882 | sb1) | ||
883 | basic_machine=mipsisa64sb1-unknown | ||
884 | ;; | ||
885 | sb1el) | ||
886 | basic_machine=mipsisa64sb1el-unknown | ||
887 | ;; | ||
888 | sei) | ||
889 | basic_machine=mips-sei | ||
890 | os=-seiux | ||
891 | ;; | ||
892 | sequent) | ||
893 | basic_machine=i386-sequent | ||
894 | ;; | ||
895 | sh) | ||
896 | basic_machine=sh-hitachi | ||
897 | os=-hms | ||
898 | ;; | ||
899 | sh64) | ||
900 | basic_machine=sh64-unknown | ||
901 | ;; | ||
902 | sparclite-wrs | simso-wrs) | ||
903 | basic_machine=sparclite-wrs | ||
904 | os=-vxworks | ||
905 | ;; | ||
906 | sps7) | ||
907 | basic_machine=m68k-bull | ||
908 | os=-sysv2 | ||
909 | ;; | ||
910 | spur) | ||
911 | basic_machine=spur-unknown | ||
912 | ;; | ||
913 | st2000) | ||
914 | basic_machine=m68k-tandem | ||
915 | ;; | ||
916 | stratus) | ||
917 | basic_machine=i860-stratus | ||
918 | os=-sysv4 | ||
919 | ;; | ||
920 | sun2) | ||
921 | basic_machine=m68000-sun | ||
922 | ;; | ||
923 | sun2os3) | ||
924 | basic_machine=m68000-sun | ||
925 | os=-sunos3 | ||
926 | ;; | ||
927 | sun2os4) | ||
928 | basic_machine=m68000-sun | ||
929 | os=-sunos4 | ||
930 | ;; | ||
931 | sun3os3) | ||
932 | basic_machine=m68k-sun | ||
933 | os=-sunos3 | ||
934 | ;; | ||
935 | sun3os4) | ||
936 | basic_machine=m68k-sun | ||
937 | os=-sunos4 | ||
938 | ;; | ||
939 | sun4os3) | ||
940 | basic_machine=sparc-sun | ||
941 | os=-sunos3 | ||
942 | ;; | ||
943 | sun4os4) | ||
944 | basic_machine=sparc-sun | ||
945 | os=-sunos4 | ||
946 | ;; | ||
947 | sun4sol2) | ||
948 | basic_machine=sparc-sun | ||
949 | os=-solaris2 | ||
950 | ;; | ||
951 | sun3 | sun3-*) | ||
952 | basic_machine=m68k-sun | ||
953 | ;; | ||
954 | sun4) | ||
955 | basic_machine=sparc-sun | ||
956 | ;; | ||
957 | sun386 | sun386i | roadrunner) | ||
958 | basic_machine=i386-sun | ||
959 | ;; | ||
960 | sv1) | ||
961 | basic_machine=sv1-cray | ||
962 | os=-unicos | ||
963 | ;; | ||
964 | symmetry) | ||
965 | basic_machine=i386-sequent | ||
966 | os=-dynix | ||
967 | ;; | ||
968 | t3e) | ||
969 | basic_machine=alphaev5-cray | ||
970 | os=-unicos | ||
971 | ;; | ||
972 | t90) | ||
973 | basic_machine=t90-cray | ||
974 | os=-unicos | ||
975 | ;; | ||
976 | tic54x | c54x*) | ||
977 | basic_machine=tic54x-unknown | ||
978 | os=-coff | ||
979 | ;; | ||
980 | tic55x | c55x*) | ||
981 | basic_machine=tic55x-unknown | ||
982 | os=-coff | ||
983 | ;; | ||
984 | tic6x | c6x*) | ||
985 | basic_machine=tic6x-unknown | ||
986 | os=-coff | ||
987 | ;; | ||
988 | tx39) | ||
989 | basic_machine=mipstx39-unknown | ||
990 | ;; | ||
991 | tx39el) | ||
992 | basic_machine=mipstx39el-unknown | ||
993 | ;; | ||
994 | toad1) | ||
995 | basic_machine=pdp10-xkl | ||
996 | os=-tops20 | ||
997 | ;; | ||
998 | tower | tower-32) | ||
999 | basic_machine=m68k-ncr | ||
1000 | ;; | ||
1001 | tpf) | ||
1002 | basic_machine=s390x-ibm | ||
1003 | os=-tpf | ||
1004 | ;; | ||
1005 | udi29k) | ||
1006 | basic_machine=a29k-amd | ||
1007 | os=-udi | ||
1008 | ;; | ||
1009 | ultra3) | ||
1010 | basic_machine=a29k-nyu | ||
1011 | os=-sym1 | ||
1012 | ;; | ||
1013 | v810 | necv810) | ||
1014 | basic_machine=v810-nec | ||
1015 | os=-none | ||
1016 | ;; | ||
1017 | vaxv) | ||
1018 | basic_machine=vax-dec | ||
1019 | os=-sysv | ||
1020 | ;; | ||
1021 | vms) | ||
1022 | basic_machine=vax-dec | ||
1023 | os=-vms | ||
1024 | ;; | ||
1025 | vpp*|vx|vx-*) | ||
1026 | basic_machine=f301-fujitsu | ||
1027 | ;; | ||
1028 | vxworks960) | ||
1029 | basic_machine=i960-wrs | ||
1030 | os=-vxworks | ||
1031 | ;; | ||
1032 | vxworks68) | ||
1033 | basic_machine=m68k-wrs | ||
1034 | os=-vxworks | ||
1035 | ;; | ||
1036 | vxworks29k) | ||
1037 | basic_machine=a29k-wrs | ||
1038 | os=-vxworks | ||
1039 | ;; | ||
1040 | w65*) | ||
1041 | basic_machine=w65-wdc | ||
1042 | os=-none | ||
1043 | ;; | ||
1044 | w89k-*) | ||
1045 | basic_machine=hppa1.1-winbond | ||
1046 | os=-proelf | ||
1047 | ;; | ||
1048 | xbox) | ||
1049 | basic_machine=i686-pc | ||
1050 | os=-mingw32 | ||
1051 | ;; | ||
1052 | xps | xps100) | ||
1053 | basic_machine=xps100-honeywell | ||
1054 | ;; | ||
1055 | ymp) | ||
1056 | basic_machine=ymp-cray | ||
1057 | os=-unicos | ||
1058 | ;; | ||
1059 | z8k-*-coff) | ||
1060 | basic_machine=z8k-unknown | ||
1061 | os=-sim | ||
1062 | ;; | ||
1063 | none) | ||
1064 | basic_machine=none-none | ||
1065 | os=-none | ||
1066 | ;; | ||
1067 | |||
1068 | # Here we handle the default manufacturer of certain CPU types. It is in | ||
1069 | # some cases the only manufacturer, in others, it is the most popular. | ||
1070 | w89k) | ||
1071 | basic_machine=hppa1.1-winbond | ||
1072 | ;; | ||
1073 | op50n) | ||
1074 | basic_machine=hppa1.1-oki | ||
1075 | ;; | ||
1076 | op60c) | ||
1077 | basic_machine=hppa1.1-oki | ||
1078 | ;; | ||
1079 | romp) | ||
1080 | basic_machine=romp-ibm | ||
1081 | ;; | ||
1082 | mmix) | ||
1083 | basic_machine=mmix-knuth | ||
1084 | ;; | ||
1085 | rs6000) | ||
1086 | basic_machine=rs6000-ibm | ||
1087 | ;; | ||
1088 | vax) | ||
1089 | basic_machine=vax-dec | ||
1090 | ;; | ||
1091 | pdp10) | ||
1092 | # there are many clones, so DEC is not a safe bet | ||
1093 | basic_machine=pdp10-unknown | ||
1094 | ;; | ||
1095 | pdp11) | ||
1096 | basic_machine=pdp11-dec | ||
1097 | ;; | ||
1098 | we32k) | ||
1099 | basic_machine=we32k-att | ||
1100 | ;; | ||
1101 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) | ||
1102 | basic_machine=sh-unknown | ||
1103 | ;; | ||
1104 | sparc | sparcv8 | sparcv9 | sparcv9b) | ||
1105 | basic_machine=sparc-sun | ||
1106 | ;; | ||
1107 | cydra) | ||
1108 | basic_machine=cydra-cydrome | ||
1109 | ;; | ||
1110 | orion) | ||
1111 | basic_machine=orion-highlevel | ||
1112 | ;; | ||
1113 | orion105) | ||
1114 | basic_machine=clipper-highlevel | ||
1115 | ;; | ||
1116 | mac | mpw | mac-mpw) | ||
1117 | basic_machine=m68k-apple | ||
1118 | ;; | ||
1119 | pmac | pmac-mpw) | ||
1120 | basic_machine=powerpc-apple | ||
1121 | ;; | ||
1122 | *-unknown) | ||
1123 | # Make sure to match an already-canonicalized machine name. | ||
1124 | ;; | ||
1125 | *) | ||
1126 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
1127 | exit 1 | ||
1128 | ;; | ||
1129 | esac | ||
1130 | |||
1131 | # Here we canonicalize certain aliases for manufacturers. | ||
1132 | case $basic_machine in | ||
1133 | *-digital*) | ||
1134 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | ||
1135 | ;; | ||
1136 | *-commodore*) | ||
1137 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | ||
1138 | ;; | ||
1139 | *) | ||
1140 | ;; | ||
1141 | esac | ||
1142 | |||
1143 | # Decode manufacturer-specific aliases for certain operating systems. | ||
1144 | |||
1145 | if [ x"$os" != x"" ] | ||
1146 | then | ||
1147 | case $os in | ||
1148 | # First match some system type aliases | ||
1149 | # that might get confused with valid system types. | ||
1150 | # -solaris* is a basic system type, with this one exception. | ||
1151 | -solaris1 | -solaris1.*) | ||
1152 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | ||
1153 | ;; | ||
1154 | -solaris) | ||
1155 | os=-solaris2 | ||
1156 | ;; | ||
1157 | -svr4*) | ||
1158 | os=-sysv4 | ||
1159 | ;; | ||
1160 | -unixware*) | ||
1161 | os=-sysv4.2uw | ||
1162 | ;; | ||
1163 | -gnu/linux*) | ||
1164 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | ||
1165 | ;; | ||
1166 | # First accept the basic system types. | ||
1167 | # The portable systems comes first. | ||
1168 | # Each alternative MUST END IN A *, to match a version number. | ||
1169 | # -sysv* is not here because it comes later, after sysvr4. | ||
1170 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | ||
1171 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | ||
1172 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | ||
1173 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||
1174 | | -aos* \ | ||
1175 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||
1176 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | ||
1177 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ | ||
1178 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | ||
1179 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | ||
1180 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | ||
1181 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | ||
1182 | | -chorusos* | -chorusrdb* \ | ||
1183 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||
1184 | | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ | ||
1185 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | ||
1186 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | ||
1187 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | ||
1188 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | ||
1189 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | ||
1190 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | ||
1191 | | -skyos* | -haiku*) | ||
1192 | # Remember, each alternative MUST END IN *, to match a version number. | ||
1193 | ;; | ||
1194 | -qnx*) | ||
1195 | case $basic_machine in | ||
1196 | x86-* | i*86-*) | ||
1197 | ;; | ||
1198 | *) | ||
1199 | os=-nto$os | ||
1200 | ;; | ||
1201 | esac | ||
1202 | ;; | ||
1203 | -nto-qnx*) | ||
1204 | ;; | ||
1205 | -nto*) | ||
1206 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | ||
1207 | ;; | ||
1208 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | ||
1209 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | ||
1210 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | ||
1211 | ;; | ||
1212 | -mac*) | ||
1213 | os=`echo $os | sed -e 's|mac|macos|'` | ||
1214 | ;; | ||
1215 | -linux-dietlibc) | ||
1216 | os=-linux-dietlibc | ||
1217 | ;; | ||
1218 | -linux*) | ||
1219 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | ||
1220 | ;; | ||
1221 | -sunos5*) | ||
1222 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | ||
1223 | ;; | ||
1224 | -sunos6*) | ||
1225 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | ||
1226 | ;; | ||
1227 | -opened*) | ||
1228 | os=-openedition | ||
1229 | ;; | ||
1230 | -os400*) | ||
1231 | os=-os400 | ||
1232 | ;; | ||
1233 | -wince*) | ||
1234 | os=-wince | ||
1235 | ;; | ||
1236 | -osfrose*) | ||
1237 | os=-osfrose | ||
1238 | ;; | ||
1239 | -osf*) | ||
1240 | os=-osf | ||
1241 | ;; | ||
1242 | -utek*) | ||
1243 | os=-bsd | ||
1244 | ;; | ||
1245 | -dynix*) | ||
1246 | os=-bsd | ||
1247 | ;; | ||
1248 | -acis*) | ||
1249 | os=-aos | ||
1250 | ;; | ||
1251 | -atheos*) | ||
1252 | os=-atheos | ||
1253 | ;; | ||
1254 | -syllable*) | ||
1255 | os=-syllable | ||
1256 | ;; | ||
1257 | -386bsd) | ||
1258 | os=-bsd | ||
1259 | ;; | ||
1260 | -ctix* | -uts*) | ||
1261 | os=-sysv | ||
1262 | ;; | ||
1263 | -nova*) | ||
1264 | os=-rtmk-nova | ||
1265 | ;; | ||
1266 | -ns2 ) | ||
1267 | os=-nextstep2 | ||
1268 | ;; | ||
1269 | -nsk*) | ||
1270 | os=-nsk | ||
1271 | ;; | ||
1272 | # Preserve the version number of sinix5. | ||
1273 | -sinix5.*) | ||
1274 | os=`echo $os | sed -e 's|sinix|sysv|'` | ||
1275 | ;; | ||
1276 | -sinix*) | ||
1277 | os=-sysv4 | ||
1278 | ;; | ||
1279 | -tpf*) | ||
1280 | os=-tpf | ||
1281 | ;; | ||
1282 | -triton*) | ||
1283 | os=-sysv3 | ||
1284 | ;; | ||
1285 | -oss*) | ||
1286 | os=-sysv3 | ||
1287 | ;; | ||
1288 | -svr4) | ||
1289 | os=-sysv4 | ||
1290 | ;; | ||
1291 | -svr3) | ||
1292 | os=-sysv3 | ||
1293 | ;; | ||
1294 | -sysvr4) | ||
1295 | os=-sysv4 | ||
1296 | ;; | ||
1297 | # This must come after -sysvr4. | ||
1298 | -sysv*) | ||
1299 | ;; | ||
1300 | -ose*) | ||
1301 | os=-ose | ||
1302 | ;; | ||
1303 | -es1800*) | ||
1304 | os=-ose | ||
1305 | ;; | ||
1306 | -xenix) | ||
1307 | os=-xenix | ||
1308 | ;; | ||
1309 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
1310 | os=-mint | ||
1311 | ;; | ||
1312 | -aros*) | ||
1313 | os=-aros | ||
1314 | ;; | ||
1315 | -kaos*) | ||
1316 | os=-kaos | ||
1317 | ;; | ||
1318 | -zvmoe) | ||
1319 | os=-zvmoe | ||
1320 | ;; | ||
1321 | -none) | ||
1322 | ;; | ||
1323 | *) | ||
1324 | # Get rid of the `-' at the beginning of $os. | ||
1325 | os=`echo $os | sed 's/[^-]*-//'` | ||
1326 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | ||
1327 | exit 1 | ||
1328 | ;; | ||
1329 | esac | ||
1330 | else | ||
1331 | |||
1332 | # Here we handle the default operating systems that come with various machines. | ||
1333 | # The value should be what the vendor currently ships out the door with their | ||
1334 | # machine or put another way, the most popular os provided with the machine. | ||
1335 | |||
1336 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | ||
1337 | # "-sun"), then you have to tell the case statement up towards the top | ||
1338 | # that MANUFACTURER isn't an operating system. Otherwise, code above | ||
1339 | # will signal an error saying that MANUFACTURER isn't an operating | ||
1340 | # system, and we'll never get to this point. | ||
1341 | |||
1342 | case $basic_machine in | ||
1343 | *-acorn) | ||
1344 | os=-riscix1.2 | ||
1345 | ;; | ||
1346 | arm*-rebel) | ||
1347 | os=-linux | ||
1348 | ;; | ||
1349 | arm*-semi) | ||
1350 | os=-aout | ||
1351 | ;; | ||
1352 | c4x-* | tic4x-*) | ||
1353 | os=-coff | ||
1354 | ;; | ||
1355 | # This must come before the *-dec entry. | ||
1356 | pdp10-*) | ||
1357 | os=-tops20 | ||
1358 | ;; | ||
1359 | pdp11-*) | ||
1360 | os=-none | ||
1361 | ;; | ||
1362 | *-dec | vax-*) | ||
1363 | os=-ultrix4.2 | ||
1364 | ;; | ||
1365 | m68*-apollo) | ||
1366 | os=-domain | ||
1367 | ;; | ||
1368 | i386-sun) | ||
1369 | os=-sunos4.0.2 | ||
1370 | ;; | ||
1371 | m68000-sun) | ||
1372 | os=-sunos3 | ||
1373 | # This also exists in the configure program, but was not the | ||
1374 | # default. | ||
1375 | # os=-sunos4 | ||
1376 | ;; | ||
1377 | m68*-cisco) | ||
1378 | os=-aout | ||
1379 | ;; | ||
1380 | mips*-cisco) | ||
1381 | os=-elf | ||
1382 | ;; | ||
1383 | mips*-*) | ||
1384 | os=-elf | ||
1385 | ;; | ||
1386 | or32-*) | ||
1387 | os=-coff | ||
1388 | ;; | ||
1389 | *-tti) # must be before sparc entry or we get the wrong os. | ||
1390 | os=-sysv3 | ||
1391 | ;; | ||
1392 | sparc-* | *-sun) | ||
1393 | os=-sunos4.1.1 | ||
1394 | ;; | ||
1395 | *-be) | ||
1396 | os=-beos | ||
1397 | ;; | ||
1398 | *-haiku) | ||
1399 | os=-haiku | ||
1400 | ;; | ||
1401 | *-ibm) | ||
1402 | os=-aix | ||
1403 | ;; | ||
1404 | *-knuth) | ||
1405 | os=-mmixware | ||
1406 | ;; | ||
1407 | *-wec) | ||
1408 | os=-proelf | ||
1409 | ;; | ||
1410 | *-winbond) | ||
1411 | os=-proelf | ||
1412 | ;; | ||
1413 | *-oki) | ||
1414 | os=-proelf | ||
1415 | ;; | ||
1416 | *-hp) | ||
1417 | os=-hpux | ||
1418 | ;; | ||
1419 | *-hitachi) | ||
1420 | os=-hiux | ||
1421 | ;; | ||
1422 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) | ||
1423 | os=-sysv | ||
1424 | ;; | ||
1425 | *-cbm) | ||
1426 | os=-amigaos | ||
1427 | ;; | ||
1428 | *-dg) | ||
1429 | os=-dgux | ||
1430 | ;; | ||
1431 | *-dolphin) | ||
1432 | os=-sysv3 | ||
1433 | ;; | ||
1434 | m68k-ccur) | ||
1435 | os=-rtu | ||
1436 | ;; | ||
1437 | m88k-omron*) | ||
1438 | os=-luna | ||
1439 | ;; | ||
1440 | *-next ) | ||
1441 | os=-nextstep | ||
1442 | ;; | ||
1443 | *-sequent) | ||
1444 | os=-ptx | ||
1445 | ;; | ||
1446 | *-crds) | ||
1447 | os=-unos | ||
1448 | ;; | ||
1449 | *-ns) | ||
1450 | os=-genix | ||
1451 | ;; | ||
1452 | i370-*) | ||
1453 | os=-mvs | ||
1454 | ;; | ||
1455 | *-next) | ||
1456 | os=-nextstep3 | ||
1457 | ;; | ||
1458 | *-gould) | ||
1459 | os=-sysv | ||
1460 | ;; | ||
1461 | *-highlevel) | ||
1462 | os=-bsd | ||
1463 | ;; | ||
1464 | *-encore) | ||
1465 | os=-bsd | ||
1466 | ;; | ||
1467 | *-sgi) | ||
1468 | os=-irix | ||
1469 | ;; | ||
1470 | *-siemens) | ||
1471 | os=-sysv4 | ||
1472 | ;; | ||
1473 | *-masscomp) | ||
1474 | os=-rtu | ||
1475 | ;; | ||
1476 | f30[01]-fujitsu | f700-fujitsu) | ||
1477 | os=-uxpv | ||
1478 | ;; | ||
1479 | *-rom68k) | ||
1480 | os=-coff | ||
1481 | ;; | ||
1482 | *-*bug) | ||
1483 | os=-coff | ||
1484 | ;; | ||
1485 | *-apple) | ||
1486 | os=-macos | ||
1487 | ;; | ||
1488 | *-atari*) | ||
1489 | os=-mint | ||
1490 | ;; | ||
1491 | *) | ||
1492 | os=-none | ||
1493 | ;; | ||
1494 | esac | ||
1495 | fi | ||
1496 | |||
1497 | # Here we handle the case where we know the os, and the CPU type, but not the | ||
1498 | # manufacturer. We pick the logical manufacturer. | ||
1499 | vendor=unknown | ||
1500 | case $basic_machine in | ||
1501 | *-unknown) | ||
1502 | case $os in | ||
1503 | -riscix*) | ||
1504 | vendor=acorn | ||
1505 | ;; | ||
1506 | -sunos*) | ||
1507 | vendor=sun | ||
1508 | ;; | ||
1509 | -aix*) | ||
1510 | vendor=ibm | ||
1511 | ;; | ||
1512 | -beos*) | ||
1513 | vendor=be | ||
1514 | ;; | ||
1515 | -hpux*) | ||
1516 | vendor=hp | ||
1517 | ;; | ||
1518 | -mpeix*) | ||
1519 | vendor=hp | ||
1520 | ;; | ||
1521 | -hiux*) | ||
1522 | vendor=hitachi | ||
1523 | ;; | ||
1524 | -unos*) | ||
1525 | vendor=crds | ||
1526 | ;; | ||
1527 | -dgux*) | ||
1528 | vendor=dg | ||
1529 | ;; | ||
1530 | -luna*) | ||
1531 | vendor=omron | ||
1532 | ;; | ||
1533 | -genix*) | ||
1534 | vendor=ns | ||
1535 | ;; | ||
1536 | -mvs* | -opened*) | ||
1537 | vendor=ibm | ||
1538 | ;; | ||
1539 | -os400*) | ||
1540 | vendor=ibm | ||
1541 | ;; | ||
1542 | -ptx*) | ||
1543 | vendor=sequent | ||
1544 | ;; | ||
1545 | -tpf*) | ||
1546 | vendor=ibm | ||
1547 | ;; | ||
1548 | -vxsim* | -vxworks* | -windiss*) | ||
1549 | vendor=wrs | ||
1550 | ;; | ||
1551 | -aux*) | ||
1552 | vendor=apple | ||
1553 | ;; | ||
1554 | -hms*) | ||
1555 | vendor=hitachi | ||
1556 | ;; | ||
1557 | -mpw* | -macos*) | ||
1558 | vendor=apple | ||
1559 | ;; | ||
1560 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
1561 | vendor=atari | ||
1562 | ;; | ||
1563 | -vos*) | ||
1564 | vendor=stratus | ||
1565 | ;; | ||
1566 | esac | ||
1567 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | ||
1568 | ;; | ||
1569 | esac | ||
1570 | |||
1571 | echo $basic_machine$os | ||
1572 | exit | ||
1573 | |||
1574 | # Local variables: | ||
1575 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
1576 | # time-stamp-start: "timestamp='" | ||
1577 | # time-stamp-format: "%:y-%02m-%02d" | ||
1578 | # time-stamp-end: "'" | ||
1579 | # End: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/configure b/src/others/mimesh/g3dviewer-0.2.99.4/configure new file mode 100755 index 0000000..dd249c2 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/configure | |||
@@ -0,0 +1,10636 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.60a. | ||
4 | # | ||
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
7 | # This configure script is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy, distribute and modify it. | ||
9 | ## --------------------- ## | ||
10 | ## M4sh Initialization. ## | ||
11 | ## --------------------- ## | ||
12 | |||
13 | # Be Bourne compatible | ||
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
15 | emulate sh | ||
16 | NULLCMD=: | ||
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
18 | # is contrary to our usage. Disable this feature. | ||
19 | alias -g '${1+"$@"}'='"$@"' | ||
20 | setopt NO_GLOB_SUBST | ||
21 | else | ||
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
23 | fi | ||
24 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
25 | DUALCASE=1; export DUALCASE # for MKS sh | ||
26 | |||
27 | |||
28 | # PATH needs CR | ||
29 | # Avoid depending upon Character Ranges. | ||
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
33 | as_cr_digits='0123456789' | ||
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
35 | |||
36 | # The user is always right. | ||
37 | if test "${PATH_SEPARATOR+set}" != set; then | ||
38 | echo "#! /bin/sh" >conf$$.sh | ||
39 | echo "exit 0" >>conf$$.sh | ||
40 | chmod +x conf$$.sh | ||
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
42 | PATH_SEPARATOR=';' | ||
43 | else | ||
44 | PATH_SEPARATOR=: | ||
45 | fi | ||
46 | rm -f conf$$.sh | ||
47 | fi | ||
48 | |||
49 | # Support unset when possible. | ||
50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
51 | as_unset=unset | ||
52 | else | ||
53 | as_unset=false | ||
54 | fi | ||
55 | |||
56 | |||
57 | # IFS | ||
58 | # We need space, tab and new line, in precisely that order. Quoting is | ||
59 | # there to prevent editors from complaining about space-tab. | ||
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
61 | # splitting by setting IFS to empty value.) | ||
62 | as_nl=' | ||
63 | ' | ||
64 | IFS=" "" $as_nl" | ||
65 | |||
66 | # Find who we are. Look in the path if we contain no directory separator. | ||
67 | case $0 in | ||
68 | *[\\/]* ) as_myself=$0 ;; | ||
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
70 | for as_dir in $PATH | ||
71 | do | ||
72 | IFS=$as_save_IFS | ||
73 | test -z "$as_dir" && as_dir=. | ||
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
75 | done | ||
76 | IFS=$as_save_IFS | ||
77 | |||
78 | ;; | ||
79 | esac | ||
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
81 | # in which case we are not to be found in the path. | ||
82 | if test "x$as_myself" = x; then | ||
83 | as_myself=$0 | ||
84 | fi | ||
85 | if test ! -f "$as_myself"; then | ||
86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
87 | { (exit 1); exit 1; } | ||
88 | fi | ||
89 | |||
90 | # Work around bugs in pre-3.0 UWIN ksh. | ||
91 | for as_var in ENV MAIL MAILPATH | ||
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
93 | done | ||
94 | PS1='$ ' | ||
95 | PS2='> ' | ||
96 | PS4='+ ' | ||
97 | |||
98 | # NLS nuisances. | ||
99 | for as_var in \ | ||
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
102 | LC_TELEPHONE LC_TIME | ||
103 | do | ||
104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
105 | eval $as_var=C; export $as_var | ||
106 | else | ||
107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
108 | fi | ||
109 | done | ||
110 | |||
111 | # Required to use basename. | ||
112 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
114 | as_expr=expr | ||
115 | else | ||
116 | as_expr=false | ||
117 | fi | ||
118 | |||
119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
120 | as_basename=basename | ||
121 | else | ||
122 | as_basename=false | ||
123 | fi | ||
124 | |||
125 | |||
126 | # Name of the executable. | ||
127 | as_me=`$as_basename -- "$0" || | ||
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
129 | X"$0" : 'X\(//\)$' \| \ | ||
130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
131 | echo X/"$0" | | ||
132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
133 | s//\1/ | ||
134 | q | ||
135 | } | ||
136 | /^X\/\(\/\/\)$/{ | ||
137 | s//\1/ | ||
138 | q | ||
139 | } | ||
140 | /^X\/\(\/\).*/{ | ||
141 | s//\1/ | ||
142 | q | ||
143 | } | ||
144 | s/.*/./; q'` | ||
145 | |||
146 | # CDPATH. | ||
147 | $as_unset CDPATH | ||
148 | |||
149 | |||
150 | if test "x$CONFIG_SHELL" = x; then | ||
151 | if (eval ":") 2>/dev/null; then | ||
152 | as_have_required=yes | ||
153 | else | ||
154 | as_have_required=no | ||
155 | fi | ||
156 | |||
157 | if test $as_have_required = yes && (eval ": | ||
158 | (as_func_return () { | ||
159 | (exit \$1) | ||
160 | } | ||
161 | as_func_success () { | ||
162 | as_func_return 0 | ||
163 | } | ||
164 | as_func_failure () { | ||
165 | as_func_return 1 | ||
166 | } | ||
167 | as_func_ret_success () { | ||
168 | return 0 | ||
169 | } | ||
170 | as_func_ret_failure () { | ||
171 | return 1 | ||
172 | } | ||
173 | |||
174 | exitcode=0 | ||
175 | if as_func_success; then | ||
176 | : | ||
177 | else | ||
178 | exitcode=1 | ||
179 | echo as_func_success failed. | ||
180 | fi | ||
181 | |||
182 | if as_func_failure; then | ||
183 | exitcode=1 | ||
184 | echo as_func_failure succeeded. | ||
185 | fi | ||
186 | |||
187 | if as_func_ret_success; then | ||
188 | : | ||
189 | else | ||
190 | exitcode=1 | ||
191 | echo as_func_ret_success failed. | ||
192 | fi | ||
193 | |||
194 | if as_func_ret_failure; then | ||
195 | exitcode=1 | ||
196 | echo as_func_ret_failure succeeded. | ||
197 | fi | ||
198 | |||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
200 | : | ||
201 | else | ||
202 | exitcode=1 | ||
203 | echo positional parameters were not saved. | ||
204 | fi | ||
205 | |||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
207 | |||
208 | ( | ||
209 | as_lineno_1=\$LINENO | ||
210 | as_lineno_2=\$LINENO | ||
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
213 | ") 2> /dev/null; then | ||
214 | : | ||
215 | else | ||
216 | as_candidate_shells= | ||
217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
219 | do | ||
220 | IFS=$as_save_IFS | ||
221 | test -z "$as_dir" && as_dir=. | ||
222 | case $as_dir in | ||
223 | /*) | ||
224 | for as_base in sh bash ksh sh5; do | ||
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
226 | done;; | ||
227 | esac | ||
228 | done | ||
229 | IFS=$as_save_IFS | ||
230 | |||
231 | |||
232 | for as_shell in $as_candidate_shells $SHELL; do | ||
233 | # Try only shells that exist, to save several forks. | ||
234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
235 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
236 | # Be Bourne compatible | ||
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
238 | emulate sh | ||
239 | NULLCMD=: | ||
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
241 | # is contrary to our usage. Disable this feature. | ||
242 | alias -g '${1+"$@"}'='"$@"' | ||
243 | setopt NO_GLOB_SUBST | ||
244 | else | ||
245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
246 | fi | ||
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
248 | DUALCASE=1; export DUALCASE # for MKS sh | ||
249 | |||
250 | : | ||
251 | _ASEOF | ||
252 | }; then | ||
253 | CONFIG_SHELL=$as_shell | ||
254 | as_have_required=yes | ||
255 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
256 | # Be Bourne compatible | ||
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
258 | emulate sh | ||
259 | NULLCMD=: | ||
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
261 | # is contrary to our usage. Disable this feature. | ||
262 | alias -g '${1+"$@"}'='"$@"' | ||
263 | setopt NO_GLOB_SUBST | ||
264 | else | ||
265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
266 | fi | ||
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
268 | DUALCASE=1; export DUALCASE # for MKS sh | ||
269 | |||
270 | : | ||
271 | (as_func_return () { | ||
272 | (exit $1) | ||
273 | } | ||
274 | as_func_success () { | ||
275 | as_func_return 0 | ||
276 | } | ||
277 | as_func_failure () { | ||
278 | as_func_return 1 | ||
279 | } | ||
280 | as_func_ret_success () { | ||
281 | return 0 | ||
282 | } | ||
283 | as_func_ret_failure () { | ||
284 | return 1 | ||
285 | } | ||
286 | |||
287 | exitcode=0 | ||
288 | if as_func_success; then | ||
289 | : | ||
290 | else | ||
291 | exitcode=1 | ||
292 | echo as_func_success failed. | ||
293 | fi | ||
294 | |||
295 | if as_func_failure; then | ||
296 | exitcode=1 | ||
297 | echo as_func_failure succeeded. | ||
298 | fi | ||
299 | |||
300 | if as_func_ret_success; then | ||
301 | : | ||
302 | else | ||
303 | exitcode=1 | ||
304 | echo as_func_ret_success failed. | ||
305 | fi | ||
306 | |||
307 | if as_func_ret_failure; then | ||
308 | exitcode=1 | ||
309 | echo as_func_ret_failure succeeded. | ||
310 | fi | ||
311 | |||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
313 | : | ||
314 | else | ||
315 | exitcode=1 | ||
316 | echo positional parameters were not saved. | ||
317 | fi | ||
318 | |||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
320 | |||
321 | ( | ||
322 | as_lineno_1=$LINENO | ||
323 | as_lineno_2=$LINENO | ||
324 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
326 | |||
327 | _ASEOF | ||
328 | }; then | ||
329 | break | ||
330 | fi | ||
331 | |||
332 | fi | ||
333 | |||
334 | done | ||
335 | |||
336 | if test "x$CONFIG_SHELL" != x; then | ||
337 | for as_var in BASH_ENV ENV | ||
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
339 | done | ||
340 | export CONFIG_SHELL | ||
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
342 | fi | ||
343 | |||
344 | |||
345 | if test $as_have_required = no; then | ||
346 | echo This script requires a shell more modern than all the | ||
347 | echo shells that I found on your system. Please install a | ||
348 | echo modern shell, or manually run the script under such a | ||
349 | echo shell if you do have one. | ||
350 | { (exit 1); exit 1; } | ||
351 | fi | ||
352 | |||
353 | |||
354 | fi | ||
355 | |||
356 | fi | ||
357 | |||
358 | |||
359 | |||
360 | (eval "as_func_return () { | ||
361 | (exit \$1) | ||
362 | } | ||
363 | as_func_success () { | ||
364 | as_func_return 0 | ||
365 | } | ||
366 | as_func_failure () { | ||
367 | as_func_return 1 | ||
368 | } | ||
369 | as_func_ret_success () { | ||
370 | return 0 | ||
371 | } | ||
372 | as_func_ret_failure () { | ||
373 | return 1 | ||
374 | } | ||
375 | |||
376 | exitcode=0 | ||
377 | if as_func_success; then | ||
378 | : | ||
379 | else | ||
380 | exitcode=1 | ||
381 | echo as_func_success failed. | ||
382 | fi | ||
383 | |||
384 | if as_func_failure; then | ||
385 | exitcode=1 | ||
386 | echo as_func_failure succeeded. | ||
387 | fi | ||
388 | |||
389 | if as_func_ret_success; then | ||
390 | : | ||
391 | else | ||
392 | exitcode=1 | ||
393 | echo as_func_ret_success failed. | ||
394 | fi | ||
395 | |||
396 | if as_func_ret_failure; then | ||
397 | exitcode=1 | ||
398 | echo as_func_ret_failure succeeded. | ||
399 | fi | ||
400 | |||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
402 | : | ||
403 | else | ||
404 | exitcode=1 | ||
405 | echo positional parameters were not saved. | ||
406 | fi | ||
407 | |||
408 | test \$exitcode = 0") || { | ||
409 | echo No shell found that supports shell functions. | ||
410 | echo Please tell autoconf@gnu.org about your system, | ||
411 | echo including any error possibly output before this | ||
412 | echo message | ||
413 | } | ||
414 | |||
415 | |||
416 | |||
417 | as_lineno_1=$LINENO | ||
418 | as_lineno_2=$LINENO | ||
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
421 | |||
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
423 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
424 | # line-number line after each line using $LINENO; the second 'sed' | ||
425 | # does the real work. The second script uses 'N' to pair each | ||
426 | # line-number line with the line containing $LINENO, and appends | ||
427 | # trailing '-' during substitution so that $LINENO is not a special | ||
428 | # case at line end. | ||
429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
430 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
432 | sed -n ' | ||
433 | p | ||
434 | /[$]LINENO/= | ||
435 | ' <$as_myself | | ||
436 | sed ' | ||
437 | s/[$]LINENO.*/&-/ | ||
438 | t lineno | ||
439 | b | ||
440 | :lineno | ||
441 | N | ||
442 | :loop | ||
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
444 | t loop | ||
445 | s/-\n.*// | ||
446 | ' >$as_me.lineno && | ||
447 | chmod +x "$as_me.lineno" || | ||
448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
449 | { (exit 1); exit 1; }; } | ||
450 | |||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
452 | # (the dirname of $[0] is not the place where we might find the | ||
453 | # original and so on. Autoconf is especially sensitive to this). | ||
454 | . "./$as_me.lineno" | ||
455 | # Exit status is that of the last command. | ||
456 | exit | ||
457 | } | ||
458 | |||
459 | |||
460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
461 | as_dirname=dirname | ||
462 | else | ||
463 | as_dirname=false | ||
464 | fi | ||
465 | |||
466 | ECHO_C= ECHO_N= ECHO_T= | ||
467 | case `echo -n x` in | ||
468 | -n*) | ||
469 | case `echo 'x\c'` in | ||
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
471 | *) ECHO_C='\c';; | ||
472 | esac;; | ||
473 | *) | ||
474 | ECHO_N='-n';; | ||
475 | esac | ||
476 | |||
477 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
479 | as_expr=expr | ||
480 | else | ||
481 | as_expr=false | ||
482 | fi | ||
483 | |||
484 | rm -f conf$$ conf$$.exe conf$$.file | ||
485 | if test -d conf$$.dir; then | ||
486 | rm -f conf$$.dir/conf$$.file | ||
487 | else | ||
488 | rm -f conf$$.dir | ||
489 | mkdir conf$$.dir | ||
490 | fi | ||
491 | echo >conf$$.file | ||
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
493 | as_ln_s='ln -s' | ||
494 | # ... but there are two gotchas: | ||
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
497 | # In both cases, we have to default to `cp -p'. | ||
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
499 | as_ln_s='cp -p' | ||
500 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
501 | as_ln_s=ln | ||
502 | else | ||
503 | as_ln_s='cp -p' | ||
504 | fi | ||
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
506 | rmdir conf$$.dir 2>/dev/null | ||
507 | |||
508 | if mkdir -p . 2>/dev/null; then | ||
509 | as_mkdir_p=: | ||
510 | else | ||
511 | test -d ./-p && rmdir ./-p | ||
512 | as_mkdir_p=false | ||
513 | fi | ||
514 | |||
515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
516 | # systems may use methods other than mode bits to determine executability. | ||
517 | cat >conf$$.file <<_ASEOF | ||
518 | #! /bin/sh | ||
519 | exit 0 | ||
520 | _ASEOF | ||
521 | chmod +x conf$$.file | ||
522 | if test -x conf$$.file >/dev/null 2>&1; then | ||
523 | as_executable_p="test -x" | ||
524 | else | ||
525 | as_executable_p=: | ||
526 | fi | ||
527 | rm -f conf$$.file | ||
528 | |||
529 | # Sed expression to map a string onto a valid CPP name. | ||
530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
531 | |||
532 | # Sed expression to map a string onto a valid variable name. | ||
533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
534 | |||
535 | |||
536 | |||
537 | exec 7<&0 </dev/null 6>&1 | ||
538 | |||
539 | # Name of the host. | ||
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
541 | # so uname gets run too. | ||
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
543 | |||
544 | # | ||
545 | # Initializations. | ||
546 | # | ||
547 | ac_default_prefix=/usr/local | ||
548 | ac_clean_files= | ||
549 | ac_config_libobj_dir=. | ||
550 | LIBOBJS= | ||
551 | cross_compiling=no | ||
552 | subdirs= | ||
553 | MFLAGS= | ||
554 | MAKEFLAGS= | ||
555 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
556 | |||
557 | # Identity of this package. | ||
558 | PACKAGE_NAME= | ||
559 | PACKAGE_TARNAME= | ||
560 | PACKAGE_VERSION= | ||
561 | PACKAGE_STRING= | ||
562 | PACKAGE_BUGREPORT= | ||
563 | |||
564 | ac_unique_file="configure.in" | ||
565 | # Factoring default headers for most tests. | ||
566 | ac_includes_default="\ | ||
567 | #include <stdio.h> | ||
568 | #ifdef HAVE_SYS_TYPES_H | ||
569 | # include <sys/types.h> | ||
570 | #endif | ||
571 | #ifdef HAVE_SYS_STAT_H | ||
572 | # include <sys/stat.h> | ||
573 | #endif | ||
574 | #ifdef STDC_HEADERS | ||
575 | # include <stdlib.h> | ||
576 | # include <stddef.h> | ||
577 | #else | ||
578 | # ifdef HAVE_STDLIB_H | ||
579 | # include <stdlib.h> | ||
580 | # endif | ||
581 | #endif | ||
582 | #ifdef HAVE_STRING_H | ||
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
584 | # include <memory.h> | ||
585 | # endif | ||
586 | # include <string.h> | ||
587 | #endif | ||
588 | #ifdef HAVE_STRINGS_H | ||
589 | # include <strings.h> | ||
590 | #endif | ||
591 | #ifdef HAVE_INTTYPES_H | ||
592 | # include <inttypes.h> | ||
593 | #endif | ||
594 | #ifdef HAVE_STDINT_H | ||
595 | # include <stdint.h> | ||
596 | #endif | ||
597 | #ifdef HAVE_UNISTD_H | ||
598 | # include <unistd.h> | ||
599 | #endif" | ||
600 | |||
601 | ac_subst_vars='SHELL | ||
602 | PATH_SEPARATOR | ||
603 | PACKAGE_NAME | ||
604 | PACKAGE_TARNAME | ||
605 | PACKAGE_VERSION | ||
606 | PACKAGE_STRING | ||
607 | PACKAGE_BUGREPORT | ||
608 | exec_prefix | ||
609 | prefix | ||
610 | program_transform_name | ||
611 | bindir | ||
612 | sbindir | ||
613 | libexecdir | ||
614 | datarootdir | ||
615 | datadir | ||
616 | sysconfdir | ||
617 | sharedstatedir | ||
618 | localstatedir | ||
619 | includedir | ||
620 | oldincludedir | ||
621 | docdir | ||
622 | infodir | ||
623 | htmldir | ||
624 | dvidir | ||
625 | pdfdir | ||
626 | psdir | ||
627 | libdir | ||
628 | localedir | ||
629 | mandir | ||
630 | DEFS | ||
631 | ECHO_C | ||
632 | ECHO_N | ||
633 | ECHO_T | ||
634 | LIBS | ||
635 | build_alias | ||
636 | host_alias | ||
637 | target_alias | ||
638 | INSTALL_PROGRAM | ||
639 | INSTALL_SCRIPT | ||
640 | INSTALL_DATA | ||
641 | CYGPATH_W | ||
642 | PACKAGE | ||
643 | VERSION | ||
644 | ACLOCAL | ||
645 | AUTOCONF | ||
646 | AUTOMAKE | ||
647 | AUTOHEADER | ||
648 | MAKEINFO | ||
649 | AMTAR | ||
650 | install_sh | ||
651 | STRIP | ||
652 | INSTALL_STRIP_PROGRAM | ||
653 | AWK | ||
654 | SET_MAKE | ||
655 | am__leading_dot | ||
656 | CC | ||
657 | CFLAGS | ||
658 | LDFLAGS | ||
659 | CPPFLAGS | ||
660 | ac_ct_CC | ||
661 | EXEEXT | ||
662 | OBJEXT | ||
663 | DEPDIR | ||
664 | am__include | ||
665 | am__quote | ||
666 | AMDEP_TRUE | ||
667 | AMDEP_FALSE | ||
668 | AMDEPBACKSLASH | ||
669 | CCDEPMODE | ||
670 | am__fastdepCC_TRUE | ||
671 | am__fastdepCC_FALSE | ||
672 | CPP | ||
673 | GREP | ||
674 | EGREP | ||
675 | USE_NLS | ||
676 | MSGFMT | ||
677 | GMSGFMT | ||
678 | XGETTEXT | ||
679 | CATALOGS | ||
680 | CATOBJEXT | ||
681 | DATADIRNAME | ||
682 | GMOFILES | ||
683 | INSTOBJEXT | ||
684 | INTLLIBS | ||
685 | PO_IN_DATADIR_TRUE | ||
686 | PO_IN_DATADIR_FALSE | ||
687 | POFILES | ||
688 | POSUB | ||
689 | MKINSTALLDIRS | ||
690 | GETTEXT_PACKAGE | ||
691 | PKG_CONFIG | ||
692 | GLIB_CFLAGS | ||
693 | GLIB_LIBS | ||
694 | GLIB_GENMARSHAL | ||
695 | GOBJECT_QUERY | ||
696 | GLIB_MKENUMS | ||
697 | GTK_CFLAGS | ||
698 | GTK_LIBS | ||
699 | LIBGLADE_CFLAGS | ||
700 | LIBGLADE_LIBS | ||
701 | GTKGLEXT_CFLAGS | ||
702 | GTKGLEXT_LIBS | ||
703 | LIBG3D_CFLAGS | ||
704 | LIBG3D_LIBS | ||
705 | XMKMF | ||
706 | X_CFLAGS | ||
707 | X_PRE_LIBS | ||
708 | X_LIBS | ||
709 | X_EXTRA_LIBS | ||
710 | GL_LIBS | ||
711 | DEBUG | ||
712 | DBG_CFLAGS | ||
713 | LIBOBJS | ||
714 | LTLIBOBJS' | ||
715 | ac_subst_files='' | ||
716 | ac_precious_vars='build_alias | ||
717 | host_alias | ||
718 | target_alias | ||
719 | CC | ||
720 | CFLAGS | ||
721 | LDFLAGS | ||
722 | CPPFLAGS | ||
723 | CPP | ||
724 | PKG_CONFIG | ||
725 | LIBGLADE_CFLAGS | ||
726 | LIBGLADE_LIBS | ||
727 | LIBG3D_CFLAGS | ||
728 | LIBG3D_LIBS | ||
729 | XMKMF' | ||
730 | |||
731 | |||
732 | # Initialize some variables set by options. | ||
733 | ac_init_help= | ||
734 | ac_init_version=false | ||
735 | # The variables have the same names as the options, with | ||
736 | # dashes changed to underlines. | ||
737 | cache_file=/dev/null | ||
738 | exec_prefix=NONE | ||
739 | no_create= | ||
740 | no_recursion= | ||
741 | prefix=NONE | ||
742 | program_prefix=NONE | ||
743 | program_suffix=NONE | ||
744 | program_transform_name=s,x,x, | ||
745 | silent= | ||
746 | site= | ||
747 | srcdir= | ||
748 | verbose= | ||
749 | x_includes=NONE | ||
750 | x_libraries=NONE | ||
751 | |||
752 | # Installation directory options. | ||
753 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
754 | # and all the variables that are supposed to be based on exec_prefix | ||
755 | # by default will actually change. | ||
756 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
757 | # (The list follows the same order as the GNU Coding Standards.) | ||
758 | bindir='${exec_prefix}/bin' | ||
759 | sbindir='${exec_prefix}/sbin' | ||
760 | libexecdir='${exec_prefix}/libexec' | ||
761 | datarootdir='${prefix}/share' | ||
762 | datadir='${datarootdir}' | ||
763 | sysconfdir='${prefix}/etc' | ||
764 | sharedstatedir='${prefix}/com' | ||
765 | localstatedir='${prefix}/var' | ||
766 | includedir='${prefix}/include' | ||
767 | oldincludedir='/usr/include' | ||
768 | docdir='${datarootdir}/doc/${PACKAGE}' | ||
769 | infodir='${datarootdir}/info' | ||
770 | htmldir='${docdir}' | ||
771 | dvidir='${docdir}' | ||
772 | pdfdir='${docdir}' | ||
773 | psdir='${docdir}' | ||
774 | libdir='${exec_prefix}/lib' | ||
775 | localedir='${datarootdir}/locale' | ||
776 | mandir='${datarootdir}/man' | ||
777 | |||
778 | ac_prev= | ||
779 | ac_dashdash= | ||
780 | for ac_option | ||
781 | do | ||
782 | # If the previous option needs an argument, assign it. | ||
783 | if test -n "$ac_prev"; then | ||
784 | eval $ac_prev=\$ac_option | ||
785 | ac_prev= | ||
786 | continue | ||
787 | fi | ||
788 | |||
789 | case $ac_option in | ||
790 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
791 | *) ac_optarg=yes ;; | ||
792 | esac | ||
793 | |||
794 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
795 | |||
796 | case $ac_dashdash$ac_option in | ||
797 | --) | ||
798 | ac_dashdash=yes ;; | ||
799 | |||
800 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
801 | ac_prev=bindir ;; | ||
802 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
803 | bindir=$ac_optarg ;; | ||
804 | |||
805 | -build | --build | --buil | --bui | --bu) | ||
806 | ac_prev=build_alias ;; | ||
807 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
808 | build_alias=$ac_optarg ;; | ||
809 | |||
810 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
811 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
812 | ac_prev=cache_file ;; | ||
813 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
814 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
815 | cache_file=$ac_optarg ;; | ||
816 | |||
817 | --config-cache | -C) | ||
818 | cache_file=config.cache ;; | ||
819 | |||
820 | -datadir | --datadir | --datadi | --datad) | ||
821 | ac_prev=datadir ;; | ||
822 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
823 | datadir=$ac_optarg ;; | ||
824 | |||
825 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
826 | | --dataroo | --dataro | --datar) | ||
827 | ac_prev=datarootdir ;; | ||
828 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
829 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
830 | datarootdir=$ac_optarg ;; | ||
831 | |||
832 | -disable-* | --disable-*) | ||
833 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
834 | # Reject names that are not valid shell variable names. | ||
835 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
836 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
837 | { (exit 1); exit 1; }; } | ||
838 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
839 | eval enable_$ac_feature=no ;; | ||
840 | |||
841 | -docdir | --docdir | --docdi | --doc | --do) | ||
842 | ac_prev=docdir ;; | ||
843 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
844 | docdir=$ac_optarg ;; | ||
845 | |||
846 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
847 | ac_prev=dvidir ;; | ||
848 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
849 | dvidir=$ac_optarg ;; | ||
850 | |||
851 | -enable-* | --enable-*) | ||
852 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
853 | # Reject names that are not valid shell variable names. | ||
854 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
855 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
856 | { (exit 1); exit 1; }; } | ||
857 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
858 | eval enable_$ac_feature=\$ac_optarg ;; | ||
859 | |||
860 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
861 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
862 | | --exec | --exe | --ex) | ||
863 | ac_prev=exec_prefix ;; | ||
864 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
865 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
866 | | --exec=* | --exe=* | --ex=*) | ||
867 | exec_prefix=$ac_optarg ;; | ||
868 | |||
869 | -gas | --gas | --ga | --g) | ||
870 | # Obsolete; use --with-gas. | ||
871 | with_gas=yes ;; | ||
872 | |||
873 | -help | --help | --hel | --he | -h) | ||
874 | ac_init_help=long ;; | ||
875 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
876 | ac_init_help=recursive ;; | ||
877 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
878 | ac_init_help=short ;; | ||
879 | |||
880 | -host | --host | --hos | --ho) | ||
881 | ac_prev=host_alias ;; | ||
882 | -host=* | --host=* | --hos=* | --ho=*) | ||
883 | host_alias=$ac_optarg ;; | ||
884 | |||
885 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
886 | ac_prev=htmldir ;; | ||
887 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
888 | | --ht=*) | ||
889 | htmldir=$ac_optarg ;; | ||
890 | |||
891 | -includedir | --includedir | --includedi | --included | --include \ | ||
892 | | --includ | --inclu | --incl | --inc) | ||
893 | ac_prev=includedir ;; | ||
894 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
895 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
896 | includedir=$ac_optarg ;; | ||
897 | |||
898 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
899 | ac_prev=infodir ;; | ||
900 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
901 | infodir=$ac_optarg ;; | ||
902 | |||
903 | -libdir | --libdir | --libdi | --libd) | ||
904 | ac_prev=libdir ;; | ||
905 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
906 | libdir=$ac_optarg ;; | ||
907 | |||
908 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
909 | | --libexe | --libex | --libe) | ||
910 | ac_prev=libexecdir ;; | ||
911 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
912 | | --libexe=* | --libex=* | --libe=*) | ||
913 | libexecdir=$ac_optarg ;; | ||
914 | |||
915 | -localedir | --localedir | --localedi | --localed | --locale) | ||
916 | ac_prev=localedir ;; | ||
917 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
918 | localedir=$ac_optarg ;; | ||
919 | |||
920 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
921 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
922 | ac_prev=localstatedir ;; | ||
923 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
924 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
925 | localstatedir=$ac_optarg ;; | ||
926 | |||
927 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
928 | ac_prev=mandir ;; | ||
929 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
930 | mandir=$ac_optarg ;; | ||
931 | |||
932 | -nfp | --nfp | --nf) | ||
933 | # Obsolete; use --without-fp. | ||
934 | with_fp=no ;; | ||
935 | |||
936 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
937 | | --no-cr | --no-c | -n) | ||
938 | no_create=yes ;; | ||
939 | |||
940 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
941 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
942 | no_recursion=yes ;; | ||
943 | |||
944 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
945 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
946 | | --oldin | --oldi | --old | --ol | --o) | ||
947 | ac_prev=oldincludedir ;; | ||
948 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
949 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
950 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
951 | oldincludedir=$ac_optarg ;; | ||
952 | |||
953 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
954 | ac_prev=prefix ;; | ||
955 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
956 | prefix=$ac_optarg ;; | ||
957 | |||
958 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
959 | | --program-pre | --program-pr | --program-p) | ||
960 | ac_prev=program_prefix ;; | ||
961 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
962 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
963 | program_prefix=$ac_optarg ;; | ||
964 | |||
965 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
966 | | --program-suf | --program-su | --program-s) | ||
967 | ac_prev=program_suffix ;; | ||
968 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
969 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
970 | program_suffix=$ac_optarg ;; | ||
971 | |||
972 | -program-transform-name | --program-transform-name \ | ||
973 | | --program-transform-nam | --program-transform-na \ | ||
974 | | --program-transform-n | --program-transform- \ | ||
975 | | --program-transform | --program-transfor \ | ||
976 | | --program-transfo | --program-transf \ | ||
977 | | --program-trans | --program-tran \ | ||
978 | | --progr-tra | --program-tr | --program-t) | ||
979 | ac_prev=program_transform_name ;; | ||
980 | -program-transform-name=* | --program-transform-name=* \ | ||
981 | | --program-transform-nam=* | --program-transform-na=* \ | ||
982 | | --program-transform-n=* | --program-transform-=* \ | ||
983 | | --program-transform=* | --program-transfor=* \ | ||
984 | | --program-transfo=* | --program-transf=* \ | ||
985 | | --program-trans=* | --program-tran=* \ | ||
986 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
987 | program_transform_name=$ac_optarg ;; | ||
988 | |||
989 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
990 | ac_prev=pdfdir ;; | ||
991 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
992 | pdfdir=$ac_optarg ;; | ||
993 | |||
994 | -psdir | --psdir | --psdi | --psd | --ps) | ||
995 | ac_prev=psdir ;; | ||
996 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
997 | psdir=$ac_optarg ;; | ||
998 | |||
999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1000 | | -silent | --silent | --silen | --sile | --sil) | ||
1001 | silent=yes ;; | ||
1002 | |||
1003 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1004 | ac_prev=sbindir ;; | ||
1005 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1006 | | --sbi=* | --sb=*) | ||
1007 | sbindir=$ac_optarg ;; | ||
1008 | |||
1009 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1010 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1011 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1012 | | --sha | --sh) | ||
1013 | ac_prev=sharedstatedir ;; | ||
1014 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1015 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1016 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1017 | | --sha=* | --sh=*) | ||
1018 | sharedstatedir=$ac_optarg ;; | ||
1019 | |||
1020 | -site | --site | --sit) | ||
1021 | ac_prev=site ;; | ||
1022 | -site=* | --site=* | --sit=*) | ||
1023 | site=$ac_optarg ;; | ||
1024 | |||
1025 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1026 | ac_prev=srcdir ;; | ||
1027 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1028 | srcdir=$ac_optarg ;; | ||
1029 | |||
1030 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1031 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1032 | ac_prev=sysconfdir ;; | ||
1033 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1034 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1035 | sysconfdir=$ac_optarg ;; | ||
1036 | |||
1037 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1038 | ac_prev=target_alias ;; | ||
1039 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1040 | target_alias=$ac_optarg ;; | ||
1041 | |||
1042 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1043 | verbose=yes ;; | ||
1044 | |||
1045 | -version | --version | --versio | --versi | --vers | -V) | ||
1046 | ac_init_version=: ;; | ||
1047 | |||
1048 | -with-* | --with-*) | ||
1049 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1050 | # Reject names that are not valid shell variable names. | ||
1051 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1052 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1053 | { (exit 1); exit 1; }; } | ||
1054 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
1055 | eval with_$ac_package=\$ac_optarg ;; | ||
1056 | |||
1057 | -without-* | --without-*) | ||
1058 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1059 | # Reject names that are not valid shell variable names. | ||
1060 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1062 | { (exit 1); exit 1; }; } | ||
1063 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
1064 | eval with_$ac_package=no ;; | ||
1065 | |||
1066 | --x) | ||
1067 | # Obsolete; use --with-x. | ||
1068 | with_x=yes ;; | ||
1069 | |||
1070 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1071 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1072 | ac_prev=x_includes ;; | ||
1073 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1074 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1075 | x_includes=$ac_optarg ;; | ||
1076 | |||
1077 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1078 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1079 | ac_prev=x_libraries ;; | ||
1080 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1081 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1082 | x_libraries=$ac_optarg ;; | ||
1083 | |||
1084 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1085 | Try \`$0 --help' for more information." >&2 | ||
1086 | { (exit 1); exit 1; }; } | ||
1087 | ;; | ||
1088 | |||
1089 | *=*) | ||
1090 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1091 | # Reject names that are not valid shell variable names. | ||
1092 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1093 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1094 | { (exit 1); exit 1; }; } | ||
1095 | eval $ac_envvar=\$ac_optarg | ||
1096 | export $ac_envvar ;; | ||
1097 | |||
1098 | *) | ||
1099 | # FIXME: should be removed in autoconf 3.0. | ||
1100 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1101 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1102 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1103 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1104 | ;; | ||
1105 | |||
1106 | esac | ||
1107 | done | ||
1108 | |||
1109 | if test -n "$ac_prev"; then | ||
1110 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1111 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1112 | { (exit 1); exit 1; }; } | ||
1113 | fi | ||
1114 | |||
1115 | # Be sure to have absolute directory names. | ||
1116 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1117 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1118 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1119 | libdir localedir mandir | ||
1120 | do | ||
1121 | eval ac_val=\$$ac_var | ||
1122 | case $ac_val in | ||
1123 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1124 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1125 | esac | ||
1126 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1127 | { (exit 1); exit 1; }; } | ||
1128 | done | ||
1129 | |||
1130 | # There might be people who depend on the old broken behavior: `$host' | ||
1131 | # used to hold the argument of --host etc. | ||
1132 | # FIXME: To remove some day. | ||
1133 | build=$build_alias | ||
1134 | host=$host_alias | ||
1135 | target=$target_alias | ||
1136 | |||
1137 | # FIXME: To remove some day. | ||
1138 | if test "x$host_alias" != x; then | ||
1139 | if test "x$build_alias" = x; then | ||
1140 | cross_compiling=maybe | ||
1141 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1142 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1143 | elif test "x$build_alias" != "x$host_alias"; then | ||
1144 | cross_compiling=yes | ||
1145 | fi | ||
1146 | fi | ||
1147 | |||
1148 | ac_tool_prefix= | ||
1149 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1150 | |||
1151 | test "$silent" = yes && exec 6>/dev/null | ||
1152 | |||
1153 | |||
1154 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1155 | ac_ls_di=`ls -di .` && | ||
1156 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1157 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1158 | { (exit 1); exit 1; }; } | ||
1159 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1160 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1161 | { (exit 1); exit 1; }; } | ||
1162 | |||
1163 | |||
1164 | # Find the source files, if location was not specified. | ||
1165 | if test -z "$srcdir"; then | ||
1166 | ac_srcdir_defaulted=yes | ||
1167 | # Try the directory containing this script, then the parent directory. | ||
1168 | ac_confdir=`$as_dirname -- "$0" || | ||
1169 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1170 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1171 | X"$0" : 'X\(//\)$' \| \ | ||
1172 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1173 | echo X"$0" | | ||
1174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1175 | s//\1/ | ||
1176 | q | ||
1177 | } | ||
1178 | /^X\(\/\/\)[^/].*/{ | ||
1179 | s//\1/ | ||
1180 | q | ||
1181 | } | ||
1182 | /^X\(\/\/\)$/{ | ||
1183 | s//\1/ | ||
1184 | q | ||
1185 | } | ||
1186 | /^X\(\/\).*/{ | ||
1187 | s//\1/ | ||
1188 | q | ||
1189 | } | ||
1190 | s/.*/./; q'` | ||
1191 | srcdir=$ac_confdir | ||
1192 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1193 | srcdir=.. | ||
1194 | fi | ||
1195 | else | ||
1196 | ac_srcdir_defaulted=no | ||
1197 | fi | ||
1198 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1199 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1200 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1201 | { (exit 1); exit 1; }; } | ||
1202 | fi | ||
1203 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1204 | ac_abs_confdir=`( | ||
1205 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1206 | { (exit 1); exit 1; }; } | ||
1207 | pwd)` | ||
1208 | # When building in place, set srcdir=. | ||
1209 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1210 | srcdir=. | ||
1211 | fi | ||
1212 | # Remove unnecessary trailing slashes from srcdir. | ||
1213 | # Double slashes in file names in object file debugging info | ||
1214 | # mess up M-x gdb in Emacs. | ||
1215 | case $srcdir in | ||
1216 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1217 | esac | ||
1218 | for ac_var in $ac_precious_vars; do | ||
1219 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1220 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1221 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1222 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1223 | done | ||
1224 | |||
1225 | # | ||
1226 | # Report the --help message. | ||
1227 | # | ||
1228 | if test "$ac_init_help" = "long"; then | ||
1229 | # Omit some internal or obsolete options to make the list less imposing. | ||
1230 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1231 | cat <<_ACEOF | ||
1232 | \`configure' configures this package to adapt to many kinds of systems. | ||
1233 | |||
1234 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1235 | |||
1236 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1237 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1238 | |||
1239 | Defaults for the options are specified in brackets. | ||
1240 | |||
1241 | Configuration: | ||
1242 | -h, --help display this help and exit | ||
1243 | --help=short display options specific to this package | ||
1244 | --help=recursive display the short help of all the included packages | ||
1245 | -V, --version display version information and exit | ||
1246 | -q, --quiet, --silent do not print \`checking...' messages | ||
1247 | --cache-file=FILE cache test results in FILE [disabled] | ||
1248 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1249 | -n, --no-create do not create output files | ||
1250 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1251 | |||
1252 | Installation directories: | ||
1253 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1254 | [$ac_default_prefix] | ||
1255 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1256 | [PREFIX] | ||
1257 | |||
1258 | By default, \`make install' will install all the files in | ||
1259 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1260 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1261 | for instance \`--prefix=\$HOME'. | ||
1262 | |||
1263 | For better control, use the options below. | ||
1264 | |||
1265 | Fine tuning of the installation directories: | ||
1266 | --bindir=DIR user executables [EPREFIX/bin] | ||
1267 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1268 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1269 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1270 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1271 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1272 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1273 | --includedir=DIR C header files [PREFIX/include] | ||
1274 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1275 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1276 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1277 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1278 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1279 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1280 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | ||
1281 | --htmldir=DIR html documentation [DOCDIR] | ||
1282 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1283 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1284 | --psdir=DIR ps documentation [DOCDIR] | ||
1285 | _ACEOF | ||
1286 | |||
1287 | cat <<\_ACEOF | ||
1288 | |||
1289 | Program names: | ||
1290 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1291 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1292 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1293 | |||
1294 | X features: | ||
1295 | --x-includes=DIR X include files are in DIR | ||
1296 | --x-libraries=DIR X library files are in DIR | ||
1297 | _ACEOF | ||
1298 | fi | ||
1299 | |||
1300 | if test -n "$ac_init_help"; then | ||
1301 | |||
1302 | cat <<\_ACEOF | ||
1303 | |||
1304 | Optional Features: | ||
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1307 | --disable-dependency-tracking Speeds up one-time builds | ||
1308 | --enable-dependency-tracking Do not reject slow dependency extractors | ||
1309 | --disable-glibtest do not try to compile and run a test GLIB program | ||
1310 | --disable-gtktest do not try to compile and run a test GTK+ program | ||
1311 | --disable-gtkglext-test do not try to compile and run a test GtkGLExt program | ||
1312 | --enable-debug[=LVL] enable debug level LVL or 1 (default is 0) | ||
1313 | |||
1314 | Optional Packages: | ||
1315 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1316 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1317 | --with-x use the X Window System | ||
1318 | |||
1319 | Some influential environment variables: | ||
1320 | CC C compiler command | ||
1321 | CFLAGS C compiler flags | ||
1322 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1323 | nonstandard directory <lib dir> | ||
1324 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1325 | you have headers in a nonstandard directory <include dir> | ||
1326 | CPP C preprocessor | ||
1327 | PKG_CONFIG path to pkg-config utility | ||
1328 | LIBGLADE_CFLAGS | ||
1329 | C compiler flags for LIBGLADE, overriding pkg-config | ||
1330 | LIBGLADE_LIBS | ||
1331 | linker flags for LIBGLADE, overriding pkg-config | ||
1332 | LIBG3D_CFLAGS | ||
1333 | C compiler flags for LIBG3D, overriding pkg-config | ||
1334 | LIBG3D_LIBS linker flags for LIBG3D, overriding pkg-config | ||
1335 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
1336 | |||
1337 | Use these variables to override the choices made by `configure' or to help | ||
1338 | it to find libraries and programs with nonstandard names/locations. | ||
1339 | |||
1340 | _ACEOF | ||
1341 | ac_status=$? | ||
1342 | fi | ||
1343 | |||
1344 | if test "$ac_init_help" = "recursive"; then | ||
1345 | # If there are subdirs, report their specific --help. | ||
1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1347 | test -d "$ac_dir" || continue | ||
1348 | ac_builddir=. | ||
1349 | |||
1350 | case "$ac_dir" in | ||
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1352 | *) | ||
1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1354 | # A ".." for each directory in $ac_dir_suffix. | ||
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1356 | case $ac_top_builddir_sub in | ||
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1359 | esac ;; | ||
1360 | esac | ||
1361 | ac_abs_top_builddir=$ac_pwd | ||
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1363 | # for backward compatibility: | ||
1364 | ac_top_builddir=$ac_top_build_prefix | ||
1365 | |||
1366 | case $srcdir in | ||
1367 | .) # We are building in place. | ||
1368 | ac_srcdir=. | ||
1369 | ac_top_srcdir=$ac_top_builddir_sub | ||
1370 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1372 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1373 | ac_top_srcdir=$srcdir | ||
1374 | ac_abs_top_srcdir=$srcdir ;; | ||
1375 | *) # Relative name. | ||
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1379 | esac | ||
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1381 | |||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1383 | # Check for guested configure. | ||
1384 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1385 | echo && | ||
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1387 | elif test -f "$ac_srcdir/configure"; then | ||
1388 | echo && | ||
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1390 | else | ||
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1392 | fi || ac_status=$? | ||
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1394 | done | ||
1395 | fi | ||
1396 | |||
1397 | test -n "$ac_init_help" && exit $ac_status | ||
1398 | if $ac_init_version; then | ||
1399 | cat <<\_ACEOF | ||
1400 | configure | ||
1401 | generated by GNU Autoconf 2.60a | ||
1402 | |||
1403 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1404 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1405 | This configure script is free software; the Free Software Foundation | ||
1406 | gives unlimited permission to copy, distribute and modify it. | ||
1407 | _ACEOF | ||
1408 | exit | ||
1409 | fi | ||
1410 | cat >config.log <<_ACEOF | ||
1411 | This file contains any messages produced by compilers while | ||
1412 | running configure, to aid debugging if configure makes a mistake. | ||
1413 | |||
1414 | It was created by $as_me, which was | ||
1415 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
1416 | |||
1417 | $ $0 $@ | ||
1418 | |||
1419 | _ACEOF | ||
1420 | exec 5>>config.log | ||
1421 | { | ||
1422 | cat <<_ASUNAME | ||
1423 | ## --------- ## | ||
1424 | ## Platform. ## | ||
1425 | ## --------- ## | ||
1426 | |||
1427 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1428 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1429 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1430 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1431 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1432 | |||
1433 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1434 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1435 | |||
1436 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1437 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1438 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1439 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1440 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1441 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1442 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1443 | |||
1444 | _ASUNAME | ||
1445 | |||
1446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1447 | for as_dir in $PATH | ||
1448 | do | ||
1449 | IFS=$as_save_IFS | ||
1450 | test -z "$as_dir" && as_dir=. | ||
1451 | echo "PATH: $as_dir" | ||
1452 | done | ||
1453 | IFS=$as_save_IFS | ||
1454 | |||
1455 | } >&5 | ||
1456 | |||
1457 | cat >&5 <<_ACEOF | ||
1458 | |||
1459 | |||
1460 | ## ----------- ## | ||
1461 | ## Core tests. ## | ||
1462 | ## ----------- ## | ||
1463 | |||
1464 | _ACEOF | ||
1465 | |||
1466 | |||
1467 | # Keep a trace of the command line. | ||
1468 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1469 | # Strip out --silent because we don't want to record it for future runs. | ||
1470 | # Also quote any args containing shell meta-characters. | ||
1471 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1472 | ac_configure_args= | ||
1473 | ac_configure_args0= | ||
1474 | ac_configure_args1= | ||
1475 | ac_must_keep_next=false | ||
1476 | for ac_pass in 1 2 | ||
1477 | do | ||
1478 | for ac_arg | ||
1479 | do | ||
1480 | case $ac_arg in | ||
1481 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1482 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1483 | | -silent | --silent | --silen | --sile | --sil) | ||
1484 | continue ;; | ||
1485 | *\'*) | ||
1486 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1487 | esac | ||
1488 | case $ac_pass in | ||
1489 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1490 | 2) | ||
1491 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1492 | if test $ac_must_keep_next = true; then | ||
1493 | ac_must_keep_next=false # Got value, back to normal. | ||
1494 | else | ||
1495 | case $ac_arg in | ||
1496 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1497 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1498 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1499 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1500 | case "$ac_configure_args0 " in | ||
1501 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1502 | esac | ||
1503 | ;; | ||
1504 | -* ) ac_must_keep_next=true ;; | ||
1505 | esac | ||
1506 | fi | ||
1507 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1508 | ;; | ||
1509 | esac | ||
1510 | done | ||
1511 | done | ||
1512 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1513 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1514 | |||
1515 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1516 | # config.log. We remove comments because anyway the quotes in there | ||
1517 | # would cause problems or look ugly. | ||
1518 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1519 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1520 | trap 'exit_status=$? | ||
1521 | # Save into config.log some information that might help in debugging. | ||
1522 | { | ||
1523 | echo | ||
1524 | |||
1525 | cat <<\_ASBOX | ||
1526 | ## ---------------- ## | ||
1527 | ## Cache variables. ## | ||
1528 | ## ---------------- ## | ||
1529 | _ASBOX | ||
1530 | echo | ||
1531 | # The following way of writing the cache mishandles newlines in values, | ||
1532 | ( | ||
1533 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1534 | eval ac_val=\$$ac_var | ||
1535 | case $ac_val in #( | ||
1536 | *${as_nl}*) | ||
1537 | case $ac_var in #( | ||
1538 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1539 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1540 | esac | ||
1541 | case $ac_var in #( | ||
1542 | _ | IFS | as_nl) ;; #( | ||
1543 | *) $as_unset $ac_var ;; | ||
1544 | esac ;; | ||
1545 | esac | ||
1546 | done | ||
1547 | (set) 2>&1 | | ||
1548 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1549 | *${as_nl}ac_space=\ *) | ||
1550 | sed -n \ | ||
1551 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1552 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1553 | ;; #( | ||
1554 | *) | ||
1555 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1556 | ;; | ||
1557 | esac | | ||
1558 | sort | ||
1559 | ) | ||
1560 | echo | ||
1561 | |||
1562 | cat <<\_ASBOX | ||
1563 | ## ----------------- ## | ||
1564 | ## Output variables. ## | ||
1565 | ## ----------------- ## | ||
1566 | _ASBOX | ||
1567 | echo | ||
1568 | for ac_var in $ac_subst_vars | ||
1569 | do | ||
1570 | eval ac_val=\$$ac_var | ||
1571 | case $ac_val in | ||
1572 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1573 | esac | ||
1574 | echo "$ac_var='\''$ac_val'\''" | ||
1575 | done | sort | ||
1576 | echo | ||
1577 | |||
1578 | if test -n "$ac_subst_files"; then | ||
1579 | cat <<\_ASBOX | ||
1580 | ## ------------------- ## | ||
1581 | ## File substitutions. ## | ||
1582 | ## ------------------- ## | ||
1583 | _ASBOX | ||
1584 | echo | ||
1585 | for ac_var in $ac_subst_files | ||
1586 | do | ||
1587 | eval ac_val=\$$ac_var | ||
1588 | case $ac_val in | ||
1589 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1590 | esac | ||
1591 | echo "$ac_var='\''$ac_val'\''" | ||
1592 | done | sort | ||
1593 | echo | ||
1594 | fi | ||
1595 | |||
1596 | if test -s confdefs.h; then | ||
1597 | cat <<\_ASBOX | ||
1598 | ## ----------- ## | ||
1599 | ## confdefs.h. ## | ||
1600 | ## ----------- ## | ||
1601 | _ASBOX | ||
1602 | echo | ||
1603 | cat confdefs.h | ||
1604 | echo | ||
1605 | fi | ||
1606 | test "$ac_signal" != 0 && | ||
1607 | echo "$as_me: caught signal $ac_signal" | ||
1608 | echo "$as_me: exit $exit_status" | ||
1609 | } >&5 | ||
1610 | rm -f core *.core core.conftest.* && | ||
1611 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1612 | exit $exit_status | ||
1613 | ' 0 | ||
1614 | for ac_signal in 1 2 13 15; do | ||
1615 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1616 | done | ||
1617 | ac_signal=0 | ||
1618 | |||
1619 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1620 | rm -f -r conftest* confdefs.h | ||
1621 | |||
1622 | # Predefined preprocessor variables. | ||
1623 | |||
1624 | cat >>confdefs.h <<_ACEOF | ||
1625 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1626 | _ACEOF | ||
1627 | |||
1628 | |||
1629 | cat >>confdefs.h <<_ACEOF | ||
1630 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1631 | _ACEOF | ||
1632 | |||
1633 | |||
1634 | cat >>confdefs.h <<_ACEOF | ||
1635 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1636 | _ACEOF | ||
1637 | |||
1638 | |||
1639 | cat >>confdefs.h <<_ACEOF | ||
1640 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1641 | _ACEOF | ||
1642 | |||
1643 | |||
1644 | cat >>confdefs.h <<_ACEOF | ||
1645 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1646 | _ACEOF | ||
1647 | |||
1648 | |||
1649 | # Let the site file select an alternate cache file if it wants to. | ||
1650 | # Prefer explicitly selected file to automatically selected ones. | ||
1651 | if test -n "$CONFIG_SITE"; then | ||
1652 | set x "$CONFIG_SITE" | ||
1653 | elif test "x$prefix" != xNONE; then | ||
1654 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1655 | else | ||
1656 | set x "$ac_default_prefix/share/config.site" \ | ||
1657 | "$ac_default_prefix/etc/config.site" | ||
1658 | fi | ||
1659 | shift | ||
1660 | for ac_site_file | ||
1661 | do | ||
1662 | if test -r "$ac_site_file"; then | ||
1663 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1664 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1665 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1666 | . "$ac_site_file" | ||
1667 | fi | ||
1668 | done | ||
1669 | |||
1670 | if test -r "$cache_file"; then | ||
1671 | # Some versions of bash will fail to source /dev/null (special | ||
1672 | # files actually), so we avoid doing that. | ||
1673 | if test -f "$cache_file"; then | ||
1674 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1675 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1676 | case $cache_file in | ||
1677 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1678 | *) . "./$cache_file";; | ||
1679 | esac | ||
1680 | fi | ||
1681 | else | ||
1682 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1683 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1684 | >$cache_file | ||
1685 | fi | ||
1686 | |||
1687 | # Check that the precious variables saved in the cache have kept the same | ||
1688 | # value. | ||
1689 | ac_cache_corrupted=false | ||
1690 | for ac_var in $ac_precious_vars; do | ||
1691 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1692 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1693 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1694 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1695 | case $ac_old_set,$ac_new_set in | ||
1696 | set,) | ||
1697 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1698 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1699 | ac_cache_corrupted=: ;; | ||
1700 | ,set) | ||
1701 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1702 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1703 | ac_cache_corrupted=: ;; | ||
1704 | ,);; | ||
1705 | *) | ||
1706 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1707 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1708 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1709 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1710 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1711 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1712 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1713 | ac_cache_corrupted=: | ||
1714 | fi;; | ||
1715 | esac | ||
1716 | # Pass precious variables to config.status. | ||
1717 | if test "$ac_new_set" = set; then | ||
1718 | case $ac_new_val in | ||
1719 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1720 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1721 | esac | ||
1722 | case " $ac_configure_args " in | ||
1723 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1724 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1725 | esac | ||
1726 | fi | ||
1727 | done | ||
1728 | if $ac_cache_corrupted; then | ||
1729 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1730 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1731 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1732 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1733 | { (exit 1); exit 1; }; } | ||
1734 | fi | ||
1735 | |||
1736 | |||
1737 | |||
1738 | |||
1739 | |||
1740 | |||
1741 | |||
1742 | |||
1743 | |||
1744 | |||
1745 | |||
1746 | |||
1747 | |||
1748 | |||
1749 | |||
1750 | |||
1751 | |||
1752 | ac_ext=c | ||
1753 | ac_cpp='$CPP $CPPFLAGS' | ||
1754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1757 | |||
1758 | |||
1759 | |||
1760 | VERSION=0.2.99.4 | ||
1761 | PACKAGE=g3dviewer | ||
1762 | |||
1763 | ac_config_headers="$ac_config_headers config.h" | ||
1764 | |||
1765 | |||
1766 | am__api_version="1.7" | ||
1767 | ac_aux_dir= | ||
1768 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
1769 | if test -f "$ac_dir/install-sh"; then | ||
1770 | ac_aux_dir=$ac_dir | ||
1771 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1772 | break | ||
1773 | elif test -f "$ac_dir/install.sh"; then | ||
1774 | ac_aux_dir=$ac_dir | ||
1775 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1776 | break | ||
1777 | elif test -f "$ac_dir/shtool"; then | ||
1778 | ac_aux_dir=$ac_dir | ||
1779 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1780 | break | ||
1781 | fi | ||
1782 | done | ||
1783 | if test -z "$ac_aux_dir"; then | ||
1784 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
1785 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
1786 | { (exit 1); exit 1; }; } | ||
1787 | fi | ||
1788 | |||
1789 | # These three variables are undocumented and unsupported, | ||
1790 | # and are intended to be withdrawn in a future Autoconf release. | ||
1791 | # They can cause serious problems if a builder's source tree is in a directory | ||
1792 | # whose full name contains unusual characters. | ||
1793 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1794 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1795 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1796 | |||
1797 | |||
1798 | # Find a good install program. We prefer a C program (faster), | ||
1799 | # so one script is as good as another. But avoid the broken or | ||
1800 | # incompatible versions: | ||
1801 | # SysV /etc/install, /usr/sbin/install | ||
1802 | # SunOS /usr/etc/install | ||
1803 | # IRIX /sbin/install | ||
1804 | # AIX /bin/install | ||
1805 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1806 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1807 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1808 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1809 | # OS/2's system install, which has a completely different semantic | ||
1810 | # ./install, which can be erroneously created by make from ./install.sh. | ||
1811 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
1812 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
1813 | if test -z "$INSTALL"; then | ||
1814 | if test "${ac_cv_path_install+set}" = set; then | ||
1815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1816 | else | ||
1817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1818 | for as_dir in $PATH | ||
1819 | do | ||
1820 | IFS=$as_save_IFS | ||
1821 | test -z "$as_dir" && as_dir=. | ||
1822 | # Account for people who put trailing slashes in PATH elements. | ||
1823 | case $as_dir/ in | ||
1824 | ./ | .// | /cC/* | \ | ||
1825 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
1826 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
1827 | /usr/ucb/* ) ;; | ||
1828 | *) | ||
1829 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
1830 | # Don't use installbsd from OSF since it installs stuff as root | ||
1831 | # by default. | ||
1832 | for ac_prog in ginstall scoinst install; do | ||
1833 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1834 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
1835 | if test $ac_prog = install && | ||
1836 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1837 | # AIX install. It has an incompatible calling convention. | ||
1838 | : | ||
1839 | elif test $ac_prog = install && | ||
1840 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1841 | # program-specific install script used by HP pwplus--don't use. | ||
1842 | : | ||
1843 | else | ||
1844 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
1845 | break 3 | ||
1846 | fi | ||
1847 | fi | ||
1848 | done | ||
1849 | done | ||
1850 | ;; | ||
1851 | esac | ||
1852 | done | ||
1853 | IFS=$as_save_IFS | ||
1854 | |||
1855 | |||
1856 | fi | ||
1857 | if test "${ac_cv_path_install+set}" = set; then | ||
1858 | INSTALL=$ac_cv_path_install | ||
1859 | else | ||
1860 | # As a last resort, use the slow shell script. Don't cache a | ||
1861 | # value for INSTALL within a source directory, because that will | ||
1862 | # break other packages using the cache if that directory is | ||
1863 | # removed, or if the value is a relative name. | ||
1864 | INSTALL=$ac_install_sh | ||
1865 | fi | ||
1866 | fi | ||
1867 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
1868 | echo "${ECHO_T}$INSTALL" >&6; } | ||
1869 | |||
1870 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
1871 | # It thinks the first close brace ends the variable substitution. | ||
1872 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
1873 | |||
1874 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
1875 | |||
1876 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
1877 | |||
1878 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
1879 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
1880 | # Just in case | ||
1881 | sleep 1 | ||
1882 | echo timestamp > conftest.file | ||
1883 | # Do `set' in a subshell so we don't clobber the current shell's | ||
1884 | # arguments. Must try -L first in case configure is actually a | ||
1885 | # symlink; some systems play weird games with the mod time of symlinks | ||
1886 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
1887 | # directory). | ||
1888 | if ( | ||
1889 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
1890 | if test "$*" = "X"; then | ||
1891 | # -L didn't work. | ||
1892 | set X `ls -t $srcdir/configure conftest.file` | ||
1893 | fi | ||
1894 | rm -f conftest.file | ||
1895 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
1896 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
1897 | |||
1898 | # If neither matched, then we have a broken ls. This can happen | ||
1899 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
1900 | # broken ls alias from the environment. This has actually | ||
1901 | # happened. Such a system could not be considered "sane". | ||
1902 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
1903 | alias in your environment" >&5 | ||
1904 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
1905 | alias in your environment" >&2;} | ||
1906 | { (exit 1); exit 1; }; } | ||
1907 | fi | ||
1908 | |||
1909 | test "$2" = conftest.file | ||
1910 | ) | ||
1911 | then | ||
1912 | # Ok. | ||
1913 | : | ||
1914 | else | ||
1915 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
1916 | Check your system clock" >&5 | ||
1917 | echo "$as_me: error: newly created file is older than distributed files! | ||
1918 | Check your system clock" >&2;} | ||
1919 | { (exit 1); exit 1; }; } | ||
1920 | fi | ||
1921 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
1922 | echo "${ECHO_T}yes" >&6; } | ||
1923 | test "$program_prefix" != NONE && | ||
1924 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
1925 | # Use a double $ so make ignores it. | ||
1926 | test "$program_suffix" != NONE && | ||
1927 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
1928 | # Double any \ or $. echo might interpret backslashes. | ||
1929 | # By default was `s,x,x', remove it if useless. | ||
1930 | cat <<\_ACEOF >conftest.sed | ||
1931 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
1932 | _ACEOF | ||
1933 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
1934 | rm -f conftest.sed | ||
1935 | |||
1936 | |||
1937 | # expand $ac_aux_dir to an absolute path | ||
1938 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
1939 | |||
1940 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
1941 | # Use eval to expand $SHELL | ||
1942 | if eval "$MISSING --run true"; then | ||
1943 | am_missing_run="$MISSING --run " | ||
1944 | else | ||
1945 | am_missing_run= | ||
1946 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
1947 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
1948 | fi | ||
1949 | |||
1950 | for ac_prog in gawk mawk nawk awk | ||
1951 | do | ||
1952 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1953 | set dummy $ac_prog; ac_word=$2 | ||
1954 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1956 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1958 | else | ||
1959 | if test -n "$AWK"; then | ||
1960 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1961 | else | ||
1962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1963 | for as_dir in $PATH | ||
1964 | do | ||
1965 | IFS=$as_save_IFS | ||
1966 | test -z "$as_dir" && as_dir=. | ||
1967 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1969 | ac_cv_prog_AWK="$ac_prog" | ||
1970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1971 | break 2 | ||
1972 | fi | ||
1973 | done | ||
1974 | done | ||
1975 | IFS=$as_save_IFS | ||
1976 | |||
1977 | fi | ||
1978 | fi | ||
1979 | AWK=$ac_cv_prog_AWK | ||
1980 | if test -n "$AWK"; then | ||
1981 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
1982 | echo "${ECHO_T}$AWK" >&6; } | ||
1983 | else | ||
1984 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1985 | echo "${ECHO_T}no" >&6; } | ||
1986 | fi | ||
1987 | |||
1988 | |||
1989 | test -n "$AWK" && break | ||
1990 | done | ||
1991 | |||
1992 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
1993 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
1994 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
1995 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1997 | else | ||
1998 | cat >conftest.make <<\_ACEOF | ||
1999 | SHELL = /bin/sh | ||
2000 | all: | ||
2001 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2002 | _ACEOF | ||
2003 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2004 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2005 | *@@@%%%=?*=@@@%%%*) | ||
2006 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2007 | *) | ||
2008 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2009 | esac | ||
2010 | rm -f conftest.make | ||
2011 | fi | ||
2012 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2013 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2014 | echo "${ECHO_T}yes" >&6; } | ||
2015 | SET_MAKE= | ||
2016 | else | ||
2017 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2018 | echo "${ECHO_T}no" >&6; } | ||
2019 | SET_MAKE="MAKE=${MAKE-make}" | ||
2020 | fi | ||
2021 | |||
2022 | rm -rf .tst 2>/dev/null | ||
2023 | mkdir .tst 2>/dev/null | ||
2024 | if test -d .tst; then | ||
2025 | am__leading_dot=. | ||
2026 | else | ||
2027 | am__leading_dot=_ | ||
2028 | fi | ||
2029 | rmdir .tst 2>/dev/null | ||
2030 | |||
2031 | # test to see if srcdir already configured | ||
2032 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
2033 | test -f $srcdir/config.status; then | ||
2034 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2035 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2036 | { (exit 1); exit 1; }; } | ||
2037 | fi | ||
2038 | |||
2039 | # test whether we have cygpath | ||
2040 | if test -z "$CYGPATH_W"; then | ||
2041 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2042 | CYGPATH_W='cygpath -w' | ||
2043 | else | ||
2044 | CYGPATH_W=echo | ||
2045 | fi | ||
2046 | fi | ||
2047 | |||
2048 | |||
2049 | # Define the identity of the package. | ||
2050 | PACKAGE=$PACKAGE | ||
2051 | VERSION=$VERSION | ||
2052 | |||
2053 | |||
2054 | # Some tools Automake needs. | ||
2055 | |||
2056 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2057 | |||
2058 | |||
2059 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2060 | |||
2061 | |||
2062 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2063 | |||
2064 | |||
2065 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2066 | |||
2067 | |||
2068 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2069 | |||
2070 | |||
2071 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2072 | |||
2073 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
2074 | |||
2075 | # Installed binaries are usually stripped using `strip' when the user | ||
2076 | # run `make install-strip'. However `strip' might not be the right | ||
2077 | # tool to use in cross-compilation environments, therefore Automake | ||
2078 | # will honor the `STRIP' environment variable to overrule this program. | ||
2079 | if test "$cross_compiling" != no; then | ||
2080 | if test -n "$ac_tool_prefix"; then | ||
2081 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2082 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2085 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2087 | else | ||
2088 | if test -n "$STRIP"; then | ||
2089 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2090 | else | ||
2091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2092 | for as_dir in $PATH | ||
2093 | do | ||
2094 | IFS=$as_save_IFS | ||
2095 | test -z "$as_dir" && as_dir=. | ||
2096 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2098 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2100 | break 2 | ||
2101 | fi | ||
2102 | done | ||
2103 | done | ||
2104 | IFS=$as_save_IFS | ||
2105 | |||
2106 | fi | ||
2107 | fi | ||
2108 | STRIP=$ac_cv_prog_STRIP | ||
2109 | if test -n "$STRIP"; then | ||
2110 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2111 | echo "${ECHO_T}$STRIP" >&6; } | ||
2112 | else | ||
2113 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2114 | echo "${ECHO_T}no" >&6; } | ||
2115 | fi | ||
2116 | |||
2117 | |||
2118 | fi | ||
2119 | if test -z "$ac_cv_prog_STRIP"; then | ||
2120 | ac_ct_STRIP=$STRIP | ||
2121 | # Extract the first word of "strip", so it can be a program name with args. | ||
2122 | set dummy strip; ac_word=$2 | ||
2123 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2125 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2127 | else | ||
2128 | if test -n "$ac_ct_STRIP"; then | ||
2129 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2130 | else | ||
2131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2132 | for as_dir in $PATH | ||
2133 | do | ||
2134 | IFS=$as_save_IFS | ||
2135 | test -z "$as_dir" && as_dir=. | ||
2136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2138 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2140 | break 2 | ||
2141 | fi | ||
2142 | done | ||
2143 | done | ||
2144 | IFS=$as_save_IFS | ||
2145 | |||
2146 | fi | ||
2147 | fi | ||
2148 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2149 | if test -n "$ac_ct_STRIP"; then | ||
2150 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2151 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2152 | else | ||
2153 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2154 | echo "${ECHO_T}no" >&6; } | ||
2155 | fi | ||
2156 | |||
2157 | if test "x$ac_ct_STRIP" = x; then | ||
2158 | STRIP=":" | ||
2159 | else | ||
2160 | case $cross_compiling:$ac_tool_warned in | ||
2161 | yes:) | ||
2162 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2163 | whose name does not start with the host triplet. If you think this | ||
2164 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2165 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2166 | whose name does not start with the host triplet. If you think this | ||
2167 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2168 | ac_tool_warned=yes ;; | ||
2169 | esac | ||
2170 | STRIP=$ac_ct_STRIP | ||
2171 | fi | ||
2172 | else | ||
2173 | STRIP="$ac_cv_prog_STRIP" | ||
2174 | fi | ||
2175 | |||
2176 | fi | ||
2177 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
2178 | |||
2179 | # We need awk for the "check" target. The system "awk" is bad on | ||
2180 | # some platforms. | ||
2181 | |||
2182 | |||
2183 | |||
2184 | |||
2185 | |||
2186 | ac_ext=c | ||
2187 | ac_cpp='$CPP $CPPFLAGS' | ||
2188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2191 | if test -n "$ac_tool_prefix"; then | ||
2192 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2193 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2194 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2196 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2198 | else | ||
2199 | if test -n "$CC"; then | ||
2200 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2201 | else | ||
2202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2203 | for as_dir in $PATH | ||
2204 | do | ||
2205 | IFS=$as_save_IFS | ||
2206 | test -z "$as_dir" && as_dir=. | ||
2207 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2209 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2211 | break 2 | ||
2212 | fi | ||
2213 | done | ||
2214 | done | ||
2215 | IFS=$as_save_IFS | ||
2216 | |||
2217 | fi | ||
2218 | fi | ||
2219 | CC=$ac_cv_prog_CC | ||
2220 | if test -n "$CC"; then | ||
2221 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2222 | echo "${ECHO_T}$CC" >&6; } | ||
2223 | else | ||
2224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2225 | echo "${ECHO_T}no" >&6; } | ||
2226 | fi | ||
2227 | |||
2228 | |||
2229 | fi | ||
2230 | if test -z "$ac_cv_prog_CC"; then | ||
2231 | ac_ct_CC=$CC | ||
2232 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2233 | set dummy gcc; ac_word=$2 | ||
2234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2236 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2238 | else | ||
2239 | if test -n "$ac_ct_CC"; then | ||
2240 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2241 | else | ||
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2243 | for as_dir in $PATH | ||
2244 | do | ||
2245 | IFS=$as_save_IFS | ||
2246 | test -z "$as_dir" && as_dir=. | ||
2247 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2249 | ac_cv_prog_ac_ct_CC="gcc" | ||
2250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2251 | break 2 | ||
2252 | fi | ||
2253 | done | ||
2254 | done | ||
2255 | IFS=$as_save_IFS | ||
2256 | |||
2257 | fi | ||
2258 | fi | ||
2259 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2260 | if test -n "$ac_ct_CC"; then | ||
2261 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2262 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2263 | else | ||
2264 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2265 | echo "${ECHO_T}no" >&6; } | ||
2266 | fi | ||
2267 | |||
2268 | if test "x$ac_ct_CC" = x; then | ||
2269 | CC="" | ||
2270 | else | ||
2271 | case $cross_compiling:$ac_tool_warned in | ||
2272 | yes:) | ||
2273 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2274 | whose name does not start with the host triplet. If you think this | ||
2275 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2276 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2277 | whose name does not start with the host triplet. If you think this | ||
2278 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2279 | ac_tool_warned=yes ;; | ||
2280 | esac | ||
2281 | CC=$ac_ct_CC | ||
2282 | fi | ||
2283 | else | ||
2284 | CC="$ac_cv_prog_CC" | ||
2285 | fi | ||
2286 | |||
2287 | if test -z "$CC"; then | ||
2288 | if test -n "$ac_tool_prefix"; then | ||
2289 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2290 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2293 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2295 | else | ||
2296 | if test -n "$CC"; then | ||
2297 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2298 | else | ||
2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2300 | for as_dir in $PATH | ||
2301 | do | ||
2302 | IFS=$as_save_IFS | ||
2303 | test -z "$as_dir" && as_dir=. | ||
2304 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2306 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2308 | break 2 | ||
2309 | fi | ||
2310 | done | ||
2311 | done | ||
2312 | IFS=$as_save_IFS | ||
2313 | |||
2314 | fi | ||
2315 | fi | ||
2316 | CC=$ac_cv_prog_CC | ||
2317 | if test -n "$CC"; then | ||
2318 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2319 | echo "${ECHO_T}$CC" >&6; } | ||
2320 | else | ||
2321 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2322 | echo "${ECHO_T}no" >&6; } | ||
2323 | fi | ||
2324 | |||
2325 | |||
2326 | fi | ||
2327 | fi | ||
2328 | if test -z "$CC"; then | ||
2329 | # Extract the first word of "cc", so it can be a program name with args. | ||
2330 | set dummy cc; ac_word=$2 | ||
2331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2333 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2335 | else | ||
2336 | if test -n "$CC"; then | ||
2337 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2338 | else | ||
2339 | ac_prog_rejected=no | ||
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2341 | for as_dir in $PATH | ||
2342 | do | ||
2343 | IFS=$as_save_IFS | ||
2344 | test -z "$as_dir" && as_dir=. | ||
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2347 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2348 | ac_prog_rejected=yes | ||
2349 | continue | ||
2350 | fi | ||
2351 | ac_cv_prog_CC="cc" | ||
2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2353 | break 2 | ||
2354 | fi | ||
2355 | done | ||
2356 | done | ||
2357 | IFS=$as_save_IFS | ||
2358 | |||
2359 | if test $ac_prog_rejected = yes; then | ||
2360 | # We found a bogon in the path, so make sure we never use it. | ||
2361 | set dummy $ac_cv_prog_CC | ||
2362 | shift | ||
2363 | if test $# != 0; then | ||
2364 | # We chose a different compiler from the bogus one. | ||
2365 | # However, it has the same basename, so the bogon will be chosen | ||
2366 | # first if we set CC to just the basename; use the full file name. | ||
2367 | shift | ||
2368 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2369 | fi | ||
2370 | fi | ||
2371 | fi | ||
2372 | fi | ||
2373 | CC=$ac_cv_prog_CC | ||
2374 | if test -n "$CC"; then | ||
2375 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2376 | echo "${ECHO_T}$CC" >&6; } | ||
2377 | else | ||
2378 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2379 | echo "${ECHO_T}no" >&6; } | ||
2380 | fi | ||
2381 | |||
2382 | |||
2383 | fi | ||
2384 | if test -z "$CC"; then | ||
2385 | if test -n "$ac_tool_prefix"; then | ||
2386 | for ac_prog in cl.exe | ||
2387 | do | ||
2388 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2389 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2392 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2394 | else | ||
2395 | if test -n "$CC"; then | ||
2396 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2397 | else | ||
2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2399 | for as_dir in $PATH | ||
2400 | do | ||
2401 | IFS=$as_save_IFS | ||
2402 | test -z "$as_dir" && as_dir=. | ||
2403 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2405 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2407 | break 2 | ||
2408 | fi | ||
2409 | done | ||
2410 | done | ||
2411 | IFS=$as_save_IFS | ||
2412 | |||
2413 | fi | ||
2414 | fi | ||
2415 | CC=$ac_cv_prog_CC | ||
2416 | if test -n "$CC"; then | ||
2417 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2418 | echo "${ECHO_T}$CC" >&6; } | ||
2419 | else | ||
2420 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2421 | echo "${ECHO_T}no" >&6; } | ||
2422 | fi | ||
2423 | |||
2424 | |||
2425 | test -n "$CC" && break | ||
2426 | done | ||
2427 | fi | ||
2428 | if test -z "$CC"; then | ||
2429 | ac_ct_CC=$CC | ||
2430 | for ac_prog in cl.exe | ||
2431 | do | ||
2432 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2433 | set dummy $ac_prog; ac_word=$2 | ||
2434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2436 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2438 | else | ||
2439 | if test -n "$ac_ct_CC"; then | ||
2440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2441 | else | ||
2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2443 | for as_dir in $PATH | ||
2444 | do | ||
2445 | IFS=$as_save_IFS | ||
2446 | test -z "$as_dir" && as_dir=. | ||
2447 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2449 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2451 | break 2 | ||
2452 | fi | ||
2453 | done | ||
2454 | done | ||
2455 | IFS=$as_save_IFS | ||
2456 | |||
2457 | fi | ||
2458 | fi | ||
2459 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2460 | if test -n "$ac_ct_CC"; then | ||
2461 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2462 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2463 | else | ||
2464 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2465 | echo "${ECHO_T}no" >&6; } | ||
2466 | fi | ||
2467 | |||
2468 | |||
2469 | test -n "$ac_ct_CC" && break | ||
2470 | done | ||
2471 | |||
2472 | if test "x$ac_ct_CC" = x; then | ||
2473 | CC="" | ||
2474 | else | ||
2475 | case $cross_compiling:$ac_tool_warned in | ||
2476 | yes:) | ||
2477 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2478 | whose name does not start with the host triplet. If you think this | ||
2479 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2480 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2481 | whose name does not start with the host triplet. If you think this | ||
2482 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2483 | ac_tool_warned=yes ;; | ||
2484 | esac | ||
2485 | CC=$ac_ct_CC | ||
2486 | fi | ||
2487 | fi | ||
2488 | |||
2489 | fi | ||
2490 | |||
2491 | |||
2492 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2493 | See \`config.log' for more details." >&5 | ||
2494 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2495 | See \`config.log' for more details." >&2;} | ||
2496 | { (exit 1); exit 1; }; } | ||
2497 | |||
2498 | # Provide some information about the compiler. | ||
2499 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2500 | ac_compiler=`set X $ac_compile; echo $2` | ||
2501 | { (ac_try="$ac_compiler --version >&5" | ||
2502 | case "(($ac_try" in | ||
2503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2504 | *) ac_try_echo=$ac_try;; | ||
2505 | esac | ||
2506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2507 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2508 | ac_status=$? | ||
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2510 | (exit $ac_status); } | ||
2511 | { (ac_try="$ac_compiler -v >&5" | ||
2512 | case "(($ac_try" in | ||
2513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2514 | *) ac_try_echo=$ac_try;; | ||
2515 | esac | ||
2516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2517 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2518 | ac_status=$? | ||
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2520 | (exit $ac_status); } | ||
2521 | { (ac_try="$ac_compiler -V >&5" | ||
2522 | case "(($ac_try" in | ||
2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2524 | *) ac_try_echo=$ac_try;; | ||
2525 | esac | ||
2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2527 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2528 | ac_status=$? | ||
2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2530 | (exit $ac_status); } | ||
2531 | |||
2532 | cat >conftest.$ac_ext <<_ACEOF | ||
2533 | /* confdefs.h. */ | ||
2534 | _ACEOF | ||
2535 | cat confdefs.h >>conftest.$ac_ext | ||
2536 | cat >>conftest.$ac_ext <<_ACEOF | ||
2537 | /* end confdefs.h. */ | ||
2538 | |||
2539 | int | ||
2540 | main () | ||
2541 | { | ||
2542 | |||
2543 | ; | ||
2544 | return 0; | ||
2545 | } | ||
2546 | _ACEOF | ||
2547 | ac_clean_files_save=$ac_clean_files | ||
2548 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2549 | # Try to create an executable without -o first, disregard a.out. | ||
2550 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2551 | # of exeext. | ||
2552 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2553 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2554 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2555 | # | ||
2556 | # List of possible output files, starting from the most likely. | ||
2557 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2558 | # only as a last resort. b.out is created by i960 compilers. | ||
2559 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2560 | # | ||
2561 | # The IRIX 6 linker writes into existing files which may not be | ||
2562 | # executable, retaining their permissions. Remove them first so a | ||
2563 | # subsequent execution test works. | ||
2564 | ac_rmfiles= | ||
2565 | for ac_file in $ac_files | ||
2566 | do | ||
2567 | case $ac_file in | ||
2568 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2569 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2570 | esac | ||
2571 | done | ||
2572 | rm -f $ac_rmfiles | ||
2573 | |||
2574 | if { (ac_try="$ac_link_default" | ||
2575 | case "(($ac_try" in | ||
2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2577 | *) ac_try_echo=$ac_try;; | ||
2578 | esac | ||
2579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2580 | (eval "$ac_link_default") 2>&5 | ||
2581 | ac_status=$? | ||
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2583 | (exit $ac_status); }; then | ||
2584 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2585 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2586 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2587 | # so that the user can short-circuit this test for compilers unknown to | ||
2588 | # Autoconf. | ||
2589 | for ac_file in $ac_files '' | ||
2590 | do | ||
2591 | test -f "$ac_file" || continue | ||
2592 | case $ac_file in | ||
2593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2594 | ;; | ||
2595 | [ab].out ) | ||
2596 | # We found the default executable, but exeext='' is most | ||
2597 | # certainly right. | ||
2598 | break;; | ||
2599 | *.* ) | ||
2600 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2601 | then :; else | ||
2602 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2603 | fi | ||
2604 | # We set ac_cv_exeext here because the later test for it is not | ||
2605 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2606 | # argument, so we may need to know it at that point already. | ||
2607 | # Even if this section looks crufty: it has the advantage of | ||
2608 | # actually working. | ||
2609 | break;; | ||
2610 | * ) | ||
2611 | break;; | ||
2612 | esac | ||
2613 | done | ||
2614 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2615 | |||
2616 | else | ||
2617 | ac_file='' | ||
2618 | fi | ||
2619 | |||
2620 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2621 | echo "${ECHO_T}$ac_file" >&6; } | ||
2622 | if test -z "$ac_file"; then | ||
2623 | echo "$as_me: failed program was:" >&5 | ||
2624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2625 | |||
2626 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2627 | See \`config.log' for more details." >&5 | ||
2628 | echo "$as_me: error: C compiler cannot create executables | ||
2629 | See \`config.log' for more details." >&2;} | ||
2630 | { (exit 77); exit 77; }; } | ||
2631 | fi | ||
2632 | |||
2633 | ac_exeext=$ac_cv_exeext | ||
2634 | |||
2635 | # Check that the compiler produces executables we can run. If not, either | ||
2636 | # the compiler is broken, or we cross compile. | ||
2637 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2638 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2639 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2640 | # If not cross compiling, check that we can run a simple program. | ||
2641 | if test "$cross_compiling" != yes; then | ||
2642 | if { ac_try='./$ac_file' | ||
2643 | { (case "(($ac_try" in | ||
2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2645 | *) ac_try_echo=$ac_try;; | ||
2646 | esac | ||
2647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2648 | (eval "$ac_try") 2>&5 | ||
2649 | ac_status=$? | ||
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2651 | (exit $ac_status); }; }; then | ||
2652 | cross_compiling=no | ||
2653 | else | ||
2654 | if test "$cross_compiling" = maybe; then | ||
2655 | cross_compiling=yes | ||
2656 | else | ||
2657 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2658 | If you meant to cross compile, use \`--host'. | ||
2659 | See \`config.log' for more details." >&5 | ||
2660 | echo "$as_me: error: cannot run C compiled programs. | ||
2661 | If you meant to cross compile, use \`--host'. | ||
2662 | See \`config.log' for more details." >&2;} | ||
2663 | { (exit 1); exit 1; }; } | ||
2664 | fi | ||
2665 | fi | ||
2666 | fi | ||
2667 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2668 | echo "${ECHO_T}yes" >&6; } | ||
2669 | |||
2670 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2671 | ac_clean_files=$ac_clean_files_save | ||
2672 | # Check that the compiler produces executables we can run. If not, either | ||
2673 | # the compiler is broken, or we cross compile. | ||
2674 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2675 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2676 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2677 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2678 | |||
2679 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2680 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2681 | if { (ac_try="$ac_link" | ||
2682 | case "(($ac_try" in | ||
2683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2684 | *) ac_try_echo=$ac_try;; | ||
2685 | esac | ||
2686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2687 | (eval "$ac_link") 2>&5 | ||
2688 | ac_status=$? | ||
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2690 | (exit $ac_status); }; then | ||
2691 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2692 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2693 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2694 | # `rm'. | ||
2695 | for ac_file in conftest.exe conftest conftest.*; do | ||
2696 | test -f "$ac_file" || continue | ||
2697 | case $ac_file in | ||
2698 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2699 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2700 | break;; | ||
2701 | * ) break;; | ||
2702 | esac | ||
2703 | done | ||
2704 | else | ||
2705 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2706 | See \`config.log' for more details." >&5 | ||
2707 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2708 | See \`config.log' for more details." >&2;} | ||
2709 | { (exit 1); exit 1; }; } | ||
2710 | fi | ||
2711 | |||
2712 | rm -f conftest$ac_cv_exeext | ||
2713 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2714 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2715 | |||
2716 | rm -f conftest.$ac_ext | ||
2717 | EXEEXT=$ac_cv_exeext | ||
2718 | ac_exeext=$EXEEXT | ||
2719 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2720 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2721 | if test "${ac_cv_objext+set}" = set; then | ||
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2723 | else | ||
2724 | cat >conftest.$ac_ext <<_ACEOF | ||
2725 | /* confdefs.h. */ | ||
2726 | _ACEOF | ||
2727 | cat confdefs.h >>conftest.$ac_ext | ||
2728 | cat >>conftest.$ac_ext <<_ACEOF | ||
2729 | /* end confdefs.h. */ | ||
2730 | |||
2731 | int | ||
2732 | main () | ||
2733 | { | ||
2734 | |||
2735 | ; | ||
2736 | return 0; | ||
2737 | } | ||
2738 | _ACEOF | ||
2739 | rm -f conftest.o conftest.obj | ||
2740 | if { (ac_try="$ac_compile" | ||
2741 | case "(($ac_try" in | ||
2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2743 | *) ac_try_echo=$ac_try;; | ||
2744 | esac | ||
2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2746 | (eval "$ac_compile") 2>&5 | ||
2747 | ac_status=$? | ||
2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2749 | (exit $ac_status); }; then | ||
2750 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2751 | test -f "$ac_file" || continue; | ||
2752 | case $ac_file in | ||
2753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2754 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2755 | break;; | ||
2756 | esac | ||
2757 | done | ||
2758 | else | ||
2759 | echo "$as_me: failed program was:" >&5 | ||
2760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2761 | |||
2762 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2763 | See \`config.log' for more details." >&5 | ||
2764 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2765 | See \`config.log' for more details." >&2;} | ||
2766 | { (exit 1); exit 1; }; } | ||
2767 | fi | ||
2768 | |||
2769 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2770 | fi | ||
2771 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2772 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2773 | OBJEXT=$ac_cv_objext | ||
2774 | ac_objext=$OBJEXT | ||
2775 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2776 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2777 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2779 | else | ||
2780 | cat >conftest.$ac_ext <<_ACEOF | ||
2781 | /* confdefs.h. */ | ||
2782 | _ACEOF | ||
2783 | cat confdefs.h >>conftest.$ac_ext | ||
2784 | cat >>conftest.$ac_ext <<_ACEOF | ||
2785 | /* end confdefs.h. */ | ||
2786 | |||
2787 | int | ||
2788 | main () | ||
2789 | { | ||
2790 | #ifndef __GNUC__ | ||
2791 | choke me | ||
2792 | #endif | ||
2793 | |||
2794 | ; | ||
2795 | return 0; | ||
2796 | } | ||
2797 | _ACEOF | ||
2798 | rm -f conftest.$ac_objext | ||
2799 | if { (ac_try="$ac_compile" | ||
2800 | case "(($ac_try" in | ||
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2802 | *) ac_try_echo=$ac_try;; | ||
2803 | esac | ||
2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2805 | (eval "$ac_compile") 2>conftest.er1 | ||
2806 | ac_status=$? | ||
2807 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2808 | rm -f conftest.er1 | ||
2809 | cat conftest.err >&5 | ||
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2811 | (exit $ac_status); } && | ||
2812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2813 | { (case "(($ac_try" in | ||
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2815 | *) ac_try_echo=$ac_try;; | ||
2816 | esac | ||
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2818 | (eval "$ac_try") 2>&5 | ||
2819 | ac_status=$? | ||
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2821 | (exit $ac_status); }; } && | ||
2822 | { ac_try='test -s conftest.$ac_objext' | ||
2823 | { (case "(($ac_try" in | ||
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2825 | *) ac_try_echo=$ac_try;; | ||
2826 | esac | ||
2827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2828 | (eval "$ac_try") 2>&5 | ||
2829 | ac_status=$? | ||
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2831 | (exit $ac_status); }; }; then | ||
2832 | ac_compiler_gnu=yes | ||
2833 | else | ||
2834 | echo "$as_me: failed program was:" >&5 | ||
2835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2836 | |||
2837 | ac_compiler_gnu=no | ||
2838 | fi | ||
2839 | |||
2840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2841 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2842 | |||
2843 | fi | ||
2844 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2845 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2846 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2847 | ac_test_CFLAGS=${CFLAGS+set} | ||
2848 | ac_save_CFLAGS=$CFLAGS | ||
2849 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2850 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2851 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2853 | else | ||
2854 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2855 | ac_c_werror_flag=yes | ||
2856 | ac_cv_prog_cc_g=no | ||
2857 | CFLAGS="-g" | ||
2858 | cat >conftest.$ac_ext <<_ACEOF | ||
2859 | /* confdefs.h. */ | ||
2860 | _ACEOF | ||
2861 | cat confdefs.h >>conftest.$ac_ext | ||
2862 | cat >>conftest.$ac_ext <<_ACEOF | ||
2863 | /* end confdefs.h. */ | ||
2864 | |||
2865 | int | ||
2866 | main () | ||
2867 | { | ||
2868 | |||
2869 | ; | ||
2870 | return 0; | ||
2871 | } | ||
2872 | _ACEOF | ||
2873 | rm -f conftest.$ac_objext | ||
2874 | if { (ac_try="$ac_compile" | ||
2875 | case "(($ac_try" in | ||
2876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2877 | *) ac_try_echo=$ac_try;; | ||
2878 | esac | ||
2879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2880 | (eval "$ac_compile") 2>conftest.er1 | ||
2881 | ac_status=$? | ||
2882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2883 | rm -f conftest.er1 | ||
2884 | cat conftest.err >&5 | ||
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2886 | (exit $ac_status); } && | ||
2887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2888 | { (case "(($ac_try" in | ||
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2890 | *) ac_try_echo=$ac_try;; | ||
2891 | esac | ||
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2893 | (eval "$ac_try") 2>&5 | ||
2894 | ac_status=$? | ||
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2896 | (exit $ac_status); }; } && | ||
2897 | { ac_try='test -s conftest.$ac_objext' | ||
2898 | { (case "(($ac_try" in | ||
2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2900 | *) ac_try_echo=$ac_try;; | ||
2901 | esac | ||
2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2903 | (eval "$ac_try") 2>&5 | ||
2904 | ac_status=$? | ||
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2906 | (exit $ac_status); }; }; then | ||
2907 | ac_cv_prog_cc_g=yes | ||
2908 | else | ||
2909 | echo "$as_me: failed program was:" >&5 | ||
2910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2911 | |||
2912 | CFLAGS="" | ||
2913 | cat >conftest.$ac_ext <<_ACEOF | ||
2914 | /* confdefs.h. */ | ||
2915 | _ACEOF | ||
2916 | cat confdefs.h >>conftest.$ac_ext | ||
2917 | cat >>conftest.$ac_ext <<_ACEOF | ||
2918 | /* end confdefs.h. */ | ||
2919 | |||
2920 | int | ||
2921 | main () | ||
2922 | { | ||
2923 | |||
2924 | ; | ||
2925 | return 0; | ||
2926 | } | ||
2927 | _ACEOF | ||
2928 | rm -f conftest.$ac_objext | ||
2929 | if { (ac_try="$ac_compile" | ||
2930 | case "(($ac_try" in | ||
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2932 | *) ac_try_echo=$ac_try;; | ||
2933 | esac | ||
2934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2935 | (eval "$ac_compile") 2>conftest.er1 | ||
2936 | ac_status=$? | ||
2937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2938 | rm -f conftest.er1 | ||
2939 | cat conftest.err >&5 | ||
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2941 | (exit $ac_status); } && | ||
2942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2943 | { (case "(($ac_try" in | ||
2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2945 | *) ac_try_echo=$ac_try;; | ||
2946 | esac | ||
2947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2948 | (eval "$ac_try") 2>&5 | ||
2949 | ac_status=$? | ||
2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2951 | (exit $ac_status); }; } && | ||
2952 | { ac_try='test -s conftest.$ac_objext' | ||
2953 | { (case "(($ac_try" in | ||
2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2955 | *) ac_try_echo=$ac_try;; | ||
2956 | esac | ||
2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2958 | (eval "$ac_try") 2>&5 | ||
2959 | ac_status=$? | ||
2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2961 | (exit $ac_status); }; }; then | ||
2962 | : | ||
2963 | else | ||
2964 | echo "$as_me: failed program was:" >&5 | ||
2965 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2966 | |||
2967 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2968 | CFLAGS="-g" | ||
2969 | cat >conftest.$ac_ext <<_ACEOF | ||
2970 | /* confdefs.h. */ | ||
2971 | _ACEOF | ||
2972 | cat confdefs.h >>conftest.$ac_ext | ||
2973 | cat >>conftest.$ac_ext <<_ACEOF | ||
2974 | /* end confdefs.h. */ | ||
2975 | |||
2976 | int | ||
2977 | main () | ||
2978 | { | ||
2979 | |||
2980 | ; | ||
2981 | return 0; | ||
2982 | } | ||
2983 | _ACEOF | ||
2984 | rm -f conftest.$ac_objext | ||
2985 | if { (ac_try="$ac_compile" | ||
2986 | case "(($ac_try" in | ||
2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2988 | *) ac_try_echo=$ac_try;; | ||
2989 | esac | ||
2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2991 | (eval "$ac_compile") 2>conftest.er1 | ||
2992 | ac_status=$? | ||
2993 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2994 | rm -f conftest.er1 | ||
2995 | cat conftest.err >&5 | ||
2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2997 | (exit $ac_status); } && | ||
2998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2999 | { (case "(($ac_try" in | ||
3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3001 | *) ac_try_echo=$ac_try;; | ||
3002 | esac | ||
3003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3004 | (eval "$ac_try") 2>&5 | ||
3005 | ac_status=$? | ||
3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3007 | (exit $ac_status); }; } && | ||
3008 | { ac_try='test -s conftest.$ac_objext' | ||
3009 | { (case "(($ac_try" in | ||
3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3011 | *) ac_try_echo=$ac_try;; | ||
3012 | esac | ||
3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3014 | (eval "$ac_try") 2>&5 | ||
3015 | ac_status=$? | ||
3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3017 | (exit $ac_status); }; }; then | ||
3018 | ac_cv_prog_cc_g=yes | ||
3019 | else | ||
3020 | echo "$as_me: failed program was:" >&5 | ||
3021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3022 | |||
3023 | |||
3024 | fi | ||
3025 | |||
3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3027 | fi | ||
3028 | |||
3029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3030 | fi | ||
3031 | |||
3032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3033 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3034 | fi | ||
3035 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3036 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3037 | if test "$ac_test_CFLAGS" = set; then | ||
3038 | CFLAGS=$ac_save_CFLAGS | ||
3039 | elif test $ac_cv_prog_cc_g = yes; then | ||
3040 | if test "$GCC" = yes; then | ||
3041 | CFLAGS="-g -O2" | ||
3042 | else | ||
3043 | CFLAGS="-g" | ||
3044 | fi | ||
3045 | else | ||
3046 | if test "$GCC" = yes; then | ||
3047 | CFLAGS="-O2" | ||
3048 | else | ||
3049 | CFLAGS= | ||
3050 | fi | ||
3051 | fi | ||
3052 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3053 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3054 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3056 | else | ||
3057 | ac_cv_prog_cc_c89=no | ||
3058 | ac_save_CC=$CC | ||
3059 | cat >conftest.$ac_ext <<_ACEOF | ||
3060 | /* confdefs.h. */ | ||
3061 | _ACEOF | ||
3062 | cat confdefs.h >>conftest.$ac_ext | ||
3063 | cat >>conftest.$ac_ext <<_ACEOF | ||
3064 | /* end confdefs.h. */ | ||
3065 | #include <stdarg.h> | ||
3066 | #include <stdio.h> | ||
3067 | #include <sys/types.h> | ||
3068 | #include <sys/stat.h> | ||
3069 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3070 | struct buf { int x; }; | ||
3071 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3072 | static char *e (p, i) | ||
3073 | char **p; | ||
3074 | int i; | ||
3075 | { | ||
3076 | return p[i]; | ||
3077 | } | ||
3078 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3079 | { | ||
3080 | char *s; | ||
3081 | va_list v; | ||
3082 | va_start (v,p); | ||
3083 | s = g (p, va_arg (v,int)); | ||
3084 | va_end (v); | ||
3085 | return s; | ||
3086 | } | ||
3087 | |||
3088 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3089 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3090 | These don't provoke an error unfortunately, instead are silently treated | ||
3091 | as 'x'. The following induces an error, until -std is added to get | ||
3092 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3093 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3094 | that's true only with -std. */ | ||
3095 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3096 | |||
3097 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3098 | inside strings and character constants. */ | ||
3099 | #define FOO(x) 'x' | ||
3100 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3101 | |||
3102 | int test (int i, double x); | ||
3103 | struct s1 {int (*f) (int a);}; | ||
3104 | struct s2 {int (*f) (double a);}; | ||
3105 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3106 | int argc; | ||
3107 | char **argv; | ||
3108 | int | ||
3109 | main () | ||
3110 | { | ||
3111 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3112 | ; | ||
3113 | return 0; | ||
3114 | } | ||
3115 | _ACEOF | ||
3116 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3117 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3118 | do | ||
3119 | CC="$ac_save_CC $ac_arg" | ||
3120 | rm -f conftest.$ac_objext | ||
3121 | if { (ac_try="$ac_compile" | ||
3122 | case "(($ac_try" in | ||
3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3124 | *) ac_try_echo=$ac_try;; | ||
3125 | esac | ||
3126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3127 | (eval "$ac_compile") 2>conftest.er1 | ||
3128 | ac_status=$? | ||
3129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3130 | rm -f conftest.er1 | ||
3131 | cat conftest.err >&5 | ||
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3133 | (exit $ac_status); } && | ||
3134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3135 | { (case "(($ac_try" in | ||
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3137 | *) ac_try_echo=$ac_try;; | ||
3138 | esac | ||
3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3140 | (eval "$ac_try") 2>&5 | ||
3141 | ac_status=$? | ||
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3143 | (exit $ac_status); }; } && | ||
3144 | { ac_try='test -s conftest.$ac_objext' | ||
3145 | { (case "(($ac_try" in | ||
3146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3147 | *) ac_try_echo=$ac_try;; | ||
3148 | esac | ||
3149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3150 | (eval "$ac_try") 2>&5 | ||
3151 | ac_status=$? | ||
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3153 | (exit $ac_status); }; }; then | ||
3154 | ac_cv_prog_cc_c89=$ac_arg | ||
3155 | else | ||
3156 | echo "$as_me: failed program was:" >&5 | ||
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3158 | |||
3159 | |||
3160 | fi | ||
3161 | |||
3162 | rm -f core conftest.err conftest.$ac_objext | ||
3163 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3164 | done | ||
3165 | rm -f conftest.$ac_ext | ||
3166 | CC=$ac_save_CC | ||
3167 | |||
3168 | fi | ||
3169 | # AC_CACHE_VAL | ||
3170 | case "x$ac_cv_prog_cc_c89" in | ||
3171 | x) | ||
3172 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3173 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3174 | xno) | ||
3175 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3176 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3177 | *) | ||
3178 | CC="$CC $ac_cv_prog_cc_c89" | ||
3179 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3180 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3181 | esac | ||
3182 | |||
3183 | |||
3184 | ac_ext=c | ||
3185 | ac_cpp='$CPP $CPPFLAGS' | ||
3186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3189 | DEPDIR="${am__leading_dot}deps" | ||
3190 | |||
3191 | ac_config_commands="$ac_config_commands depfiles" | ||
3192 | |||
3193 | |||
3194 | am_make=${MAKE-make} | ||
3195 | cat > confinc << 'END' | ||
3196 | am__doit: | ||
3197 | @echo done | ||
3198 | .PHONY: am__doit | ||
3199 | END | ||
3200 | # If we don't find an include directive, just comment out the code. | ||
3201 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
3202 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
3203 | am__include="#" | ||
3204 | am__quote= | ||
3205 | _am_result=none | ||
3206 | # First try GNU make style include. | ||
3207 | echo "include confinc" > confmf | ||
3208 | # We grep out `Entering directory' and `Leaving directory' | ||
3209 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
3210 | # In particular we don't look at `^make:' because GNU make might | ||
3211 | # be invoked under some other name (usually "gmake"), in which | ||
3212 | # case it prints its new name instead of `make'. | ||
3213 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
3214 | am__include=include | ||
3215 | am__quote= | ||
3216 | _am_result=GNU | ||
3217 | fi | ||
3218 | # Now try BSD make style include. | ||
3219 | if test "$am__include" = "#"; then | ||
3220 | echo '.include "confinc"' > confmf | ||
3221 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
3222 | am__include=.include | ||
3223 | am__quote="\"" | ||
3224 | _am_result=BSD | ||
3225 | fi | ||
3226 | fi | ||
3227 | |||
3228 | |||
3229 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
3230 | echo "${ECHO_T}$_am_result" >&6; } | ||
3231 | rm -f confinc confmf | ||
3232 | |||
3233 | # Check whether --enable-dependency-tracking was given. | ||
3234 | if test "${enable_dependency_tracking+set}" = set; then | ||
3235 | enableval=$enable_dependency_tracking; | ||
3236 | fi | ||
3237 | |||
3238 | if test "x$enable_dependency_tracking" != xno; then | ||
3239 | am_depcomp="$ac_aux_dir/depcomp" | ||
3240 | AMDEPBACKSLASH='\' | ||
3241 | fi | ||
3242 | |||
3243 | |||
3244 | if test "x$enable_dependency_tracking" != xno; then | ||
3245 | AMDEP_TRUE= | ||
3246 | AMDEP_FALSE='#' | ||
3247 | else | ||
3248 | AMDEP_TRUE='#' | ||
3249 | AMDEP_FALSE= | ||
3250 | fi | ||
3251 | |||
3252 | |||
3253 | |||
3254 | |||
3255 | depcc="$CC" am_compiler_list= | ||
3256 | |||
3257 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3258 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3259 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3261 | else | ||
3262 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3263 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3264 | # making bogus files that we don't know about and never remove. For | ||
3265 | # instance it was reported that on HP-UX the gcc test will end up | ||
3266 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3267 | # in D'. | ||
3268 | mkdir conftest.dir | ||
3269 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3270 | # using a relative directory. | ||
3271 | cp "$am_depcomp" conftest.dir | ||
3272 | cd conftest.dir | ||
3273 | # We will build objects and dependencies in a subdirectory because | ||
3274 | # it helps to detect inapplicable dependency modes. For instance | ||
3275 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3276 | # side effect of compilation, but ICC will put the dependencies in | ||
3277 | # the current directory while Tru64 will put them in the object | ||
3278 | # directory. | ||
3279 | mkdir sub | ||
3280 | |||
3281 | am_cv_CC_dependencies_compiler_type=none | ||
3282 | if test "$am_compiler_list" = ""; then | ||
3283 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3284 | fi | ||
3285 | for depmode in $am_compiler_list; do | ||
3286 | # Setup a source with many dependencies, because some compilers | ||
3287 | # like to wrap large dependency lists on column 80 (with \), and | ||
3288 | # we should not choose a depcomp mode which is confused by this. | ||
3289 | # | ||
3290 | # We need to recreate these files for each test, as the compiler may | ||
3291 | # overwrite some of them when testing with obscure command lines. | ||
3292 | # This happens at least with the AIX C compiler. | ||
3293 | : > sub/conftest.c | ||
3294 | for i in 1 2 3 4 5 6; do | ||
3295 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3296 | : > sub/conftst$i.h | ||
3297 | done | ||
3298 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3299 | |||
3300 | case $depmode in | ||
3301 | nosideeffect) | ||
3302 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3303 | # only be used when explicitly requested | ||
3304 | if test "x$enable_dependency_tracking" = xyes; then | ||
3305 | continue | ||
3306 | else | ||
3307 | break | ||
3308 | fi | ||
3309 | ;; | ||
3310 | none) break ;; | ||
3311 | esac | ||
3312 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3313 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3314 | # handle `-M -o', and we need to detect this. | ||
3315 | if depmode=$depmode \ | ||
3316 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3317 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3318 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3319 | >/dev/null 2>conftest.err && | ||
3320 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3321 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3322 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3323 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3324 | # (even with -Werror). So we grep stderr for any message | ||
3325 | # that says an option was ignored. | ||
3326 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | ||
3327 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3328 | break | ||
3329 | fi | ||
3330 | fi | ||
3331 | done | ||
3332 | |||
3333 | cd .. | ||
3334 | rm -rf conftest.dir | ||
3335 | else | ||
3336 | am_cv_CC_dependencies_compiler_type=none | ||
3337 | fi | ||
3338 | |||
3339 | fi | ||
3340 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3341 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3342 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3343 | |||
3344 | |||
3345 | |||
3346 | if | ||
3347 | test "x$enable_dependency_tracking" != xno \ | ||
3348 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3349 | am__fastdepCC_TRUE= | ||
3350 | am__fastdepCC_FALSE='#' | ||
3351 | else | ||
3352 | am__fastdepCC_TRUE='#' | ||
3353 | am__fastdepCC_FALSE= | ||
3354 | fi | ||
3355 | |||
3356 | |||
3357 | |||
3358 | ALL_LINGUAS="de" | ||
3359 | |||
3360 | ac_ext=c | ||
3361 | ac_cpp='$CPP $CPPFLAGS' | ||
3362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3365 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3366 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3367 | # On Suns, sometimes $CPP names a directory. | ||
3368 | if test -n "$CPP" && test -d "$CPP"; then | ||
3369 | CPP= | ||
3370 | fi | ||
3371 | if test -z "$CPP"; then | ||
3372 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3374 | else | ||
3375 | # Double quotes because CPP needs to be expanded | ||
3376 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3377 | do | ||
3378 | ac_preproc_ok=false | ||
3379 | for ac_c_preproc_warn_flag in '' yes | ||
3380 | do | ||
3381 | # Use a header file that comes with gcc, so configuring glibc | ||
3382 | # with a fresh cross-compiler works. | ||
3383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3384 | # <limits.h> exists even on freestanding compilers. | ||
3385 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3386 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3387 | cat >conftest.$ac_ext <<_ACEOF | ||
3388 | /* confdefs.h. */ | ||
3389 | _ACEOF | ||
3390 | cat confdefs.h >>conftest.$ac_ext | ||
3391 | cat >>conftest.$ac_ext <<_ACEOF | ||
3392 | /* end confdefs.h. */ | ||
3393 | #ifdef __STDC__ | ||
3394 | # include <limits.h> | ||
3395 | #else | ||
3396 | # include <assert.h> | ||
3397 | #endif | ||
3398 | Syntax error | ||
3399 | _ACEOF | ||
3400 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3401 | case "(($ac_try" in | ||
3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3403 | *) ac_try_echo=$ac_try;; | ||
3404 | esac | ||
3405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3407 | ac_status=$? | ||
3408 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3409 | rm -f conftest.er1 | ||
3410 | cat conftest.err >&5 | ||
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3412 | (exit $ac_status); } >/dev/null; then | ||
3413 | if test -s conftest.err; then | ||
3414 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3416 | else | ||
3417 | ac_cpp_err= | ||
3418 | fi | ||
3419 | else | ||
3420 | ac_cpp_err=yes | ||
3421 | fi | ||
3422 | if test -z "$ac_cpp_err"; then | ||
3423 | : | ||
3424 | else | ||
3425 | echo "$as_me: failed program was:" >&5 | ||
3426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3427 | |||
3428 | # Broken: fails on valid input. | ||
3429 | continue | ||
3430 | fi | ||
3431 | |||
3432 | rm -f conftest.err conftest.$ac_ext | ||
3433 | |||
3434 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3435 | # can be detected and how. | ||
3436 | cat >conftest.$ac_ext <<_ACEOF | ||
3437 | /* confdefs.h. */ | ||
3438 | _ACEOF | ||
3439 | cat confdefs.h >>conftest.$ac_ext | ||
3440 | cat >>conftest.$ac_ext <<_ACEOF | ||
3441 | /* end confdefs.h. */ | ||
3442 | #include <ac_nonexistent.h> | ||
3443 | _ACEOF | ||
3444 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3445 | case "(($ac_try" in | ||
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3447 | *) ac_try_echo=$ac_try;; | ||
3448 | esac | ||
3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3450 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3451 | ac_status=$? | ||
3452 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3453 | rm -f conftest.er1 | ||
3454 | cat conftest.err >&5 | ||
3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3456 | (exit $ac_status); } >/dev/null; then | ||
3457 | if test -s conftest.err; then | ||
3458 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3460 | else | ||
3461 | ac_cpp_err= | ||
3462 | fi | ||
3463 | else | ||
3464 | ac_cpp_err=yes | ||
3465 | fi | ||
3466 | if test -z "$ac_cpp_err"; then | ||
3467 | # Broken: success on invalid input. | ||
3468 | continue | ||
3469 | else | ||
3470 | echo "$as_me: failed program was:" >&5 | ||
3471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3472 | |||
3473 | # Passes both tests. | ||
3474 | ac_preproc_ok=: | ||
3475 | break | ||
3476 | fi | ||
3477 | |||
3478 | rm -f conftest.err conftest.$ac_ext | ||
3479 | |||
3480 | done | ||
3481 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3482 | rm -f conftest.err conftest.$ac_ext | ||
3483 | if $ac_preproc_ok; then | ||
3484 | break | ||
3485 | fi | ||
3486 | |||
3487 | done | ||
3488 | ac_cv_prog_CPP=$CPP | ||
3489 | |||
3490 | fi | ||
3491 | CPP=$ac_cv_prog_CPP | ||
3492 | else | ||
3493 | ac_cv_prog_CPP=$CPP | ||
3494 | fi | ||
3495 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3496 | echo "${ECHO_T}$CPP" >&6; } | ||
3497 | ac_preproc_ok=false | ||
3498 | for ac_c_preproc_warn_flag in '' yes | ||
3499 | do | ||
3500 | # Use a header file that comes with gcc, so configuring glibc | ||
3501 | # with a fresh cross-compiler works. | ||
3502 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3503 | # <limits.h> exists even on freestanding compilers. | ||
3504 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3505 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3506 | cat >conftest.$ac_ext <<_ACEOF | ||
3507 | /* confdefs.h. */ | ||
3508 | _ACEOF | ||
3509 | cat confdefs.h >>conftest.$ac_ext | ||
3510 | cat >>conftest.$ac_ext <<_ACEOF | ||
3511 | /* end confdefs.h. */ | ||
3512 | #ifdef __STDC__ | ||
3513 | # include <limits.h> | ||
3514 | #else | ||
3515 | # include <assert.h> | ||
3516 | #endif | ||
3517 | Syntax error | ||
3518 | _ACEOF | ||
3519 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3520 | case "(($ac_try" in | ||
3521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3522 | *) ac_try_echo=$ac_try;; | ||
3523 | esac | ||
3524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3526 | ac_status=$? | ||
3527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3528 | rm -f conftest.er1 | ||
3529 | cat conftest.err >&5 | ||
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3531 | (exit $ac_status); } >/dev/null; then | ||
3532 | if test -s conftest.err; then | ||
3533 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3535 | else | ||
3536 | ac_cpp_err= | ||
3537 | fi | ||
3538 | else | ||
3539 | ac_cpp_err=yes | ||
3540 | fi | ||
3541 | if test -z "$ac_cpp_err"; then | ||
3542 | : | ||
3543 | else | ||
3544 | echo "$as_me: failed program was:" >&5 | ||
3545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3546 | |||
3547 | # Broken: fails on valid input. | ||
3548 | continue | ||
3549 | fi | ||
3550 | |||
3551 | rm -f conftest.err conftest.$ac_ext | ||
3552 | |||
3553 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3554 | # can be detected and how. | ||
3555 | cat >conftest.$ac_ext <<_ACEOF | ||
3556 | /* confdefs.h. */ | ||
3557 | _ACEOF | ||
3558 | cat confdefs.h >>conftest.$ac_ext | ||
3559 | cat >>conftest.$ac_ext <<_ACEOF | ||
3560 | /* end confdefs.h. */ | ||
3561 | #include <ac_nonexistent.h> | ||
3562 | _ACEOF | ||
3563 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3564 | case "(($ac_try" in | ||
3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3566 | *) ac_try_echo=$ac_try;; | ||
3567 | esac | ||
3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3569 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3570 | ac_status=$? | ||
3571 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3572 | rm -f conftest.er1 | ||
3573 | cat conftest.err >&5 | ||
3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3575 | (exit $ac_status); } >/dev/null; then | ||
3576 | if test -s conftest.err; then | ||
3577 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3579 | else | ||
3580 | ac_cpp_err= | ||
3581 | fi | ||
3582 | else | ||
3583 | ac_cpp_err=yes | ||
3584 | fi | ||
3585 | if test -z "$ac_cpp_err"; then | ||
3586 | # Broken: success on invalid input. | ||
3587 | continue | ||
3588 | else | ||
3589 | echo "$as_me: failed program was:" >&5 | ||
3590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3591 | |||
3592 | # Passes both tests. | ||
3593 | ac_preproc_ok=: | ||
3594 | break | ||
3595 | fi | ||
3596 | |||
3597 | rm -f conftest.err conftest.$ac_ext | ||
3598 | |||
3599 | done | ||
3600 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3601 | rm -f conftest.err conftest.$ac_ext | ||
3602 | if $ac_preproc_ok; then | ||
3603 | : | ||
3604 | else | ||
3605 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3606 | See \`config.log' for more details." >&5 | ||
3607 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3608 | See \`config.log' for more details." >&2;} | ||
3609 | { (exit 1); exit 1; }; } | ||
3610 | fi | ||
3611 | |||
3612 | ac_ext=c | ||
3613 | ac_cpp='$CPP $CPPFLAGS' | ||
3614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3617 | |||
3618 | |||
3619 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3620 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3621 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3623 | else | ||
3624 | # Extract the first word of "grep ggrep" to use in msg output | ||
3625 | if test -z "$GREP"; then | ||
3626 | set dummy grep ggrep; ac_prog_name=$2 | ||
3627 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3629 | else | ||
3630 | ac_path_GREP_found=false | ||
3631 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3633 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3634 | do | ||
3635 | IFS=$as_save_IFS | ||
3636 | test -z "$as_dir" && as_dir=. | ||
3637 | for ac_prog in grep ggrep; do | ||
3638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3639 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3640 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||
3641 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3642 | # Check for GNU $ac_path_GREP | ||
3643 | case `"$ac_path_GREP" --version 2>&1` in | ||
3644 | *GNU*) | ||
3645 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3646 | *) | ||
3647 | ac_count=0 | ||
3648 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3649 | while : | ||
3650 | do | ||
3651 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3652 | mv "conftest.tmp" "conftest.in" | ||
3653 | cp "conftest.in" "conftest.nl" | ||
3654 | echo 'GREP' >> "conftest.nl" | ||
3655 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3656 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3657 | ac_count=`expr $ac_count + 1` | ||
3658 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3659 | # Best one so far, save it but keep looking for a better one | ||
3660 | ac_cv_path_GREP="$ac_path_GREP" | ||
3661 | ac_path_GREP_max=$ac_count | ||
3662 | fi | ||
3663 | # 10*(2^10) chars as input seems more than enough | ||
3664 | test $ac_count -gt 10 && break | ||
3665 | done | ||
3666 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3667 | esac | ||
3668 | |||
3669 | |||
3670 | $ac_path_GREP_found && break 3 | ||
3671 | done | ||
3672 | done | ||
3673 | |||
3674 | done | ||
3675 | IFS=$as_save_IFS | ||
3676 | |||
3677 | |||
3678 | fi | ||
3679 | |||
3680 | GREP="$ac_cv_path_GREP" | ||
3681 | if test -z "$GREP"; then | ||
3682 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3683 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3684 | { (exit 1); exit 1; }; } | ||
3685 | fi | ||
3686 | |||
3687 | else | ||
3688 | ac_cv_path_GREP=$GREP | ||
3689 | fi | ||
3690 | |||
3691 | |||
3692 | fi | ||
3693 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3694 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3695 | GREP="$ac_cv_path_GREP" | ||
3696 | |||
3697 | |||
3698 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3699 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3700 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3702 | else | ||
3703 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3704 | then ac_cv_path_EGREP="$GREP -E" | ||
3705 | else | ||
3706 | # Extract the first word of "egrep" to use in msg output | ||
3707 | if test -z "$EGREP"; then | ||
3708 | set dummy egrep; ac_prog_name=$2 | ||
3709 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3711 | else | ||
3712 | ac_path_EGREP_found=false | ||
3713 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3715 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3716 | do | ||
3717 | IFS=$as_save_IFS | ||
3718 | test -z "$as_dir" && as_dir=. | ||
3719 | for ac_prog in egrep; do | ||
3720 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3721 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3722 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||
3723 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3724 | # Check for GNU $ac_path_EGREP | ||
3725 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3726 | *GNU*) | ||
3727 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3728 | *) | ||
3729 | ac_count=0 | ||
3730 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3731 | while : | ||
3732 | do | ||
3733 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3734 | mv "conftest.tmp" "conftest.in" | ||
3735 | cp "conftest.in" "conftest.nl" | ||
3736 | echo 'EGREP' >> "conftest.nl" | ||
3737 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3738 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3739 | ac_count=`expr $ac_count + 1` | ||
3740 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3741 | # Best one so far, save it but keep looking for a better one | ||
3742 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3743 | ac_path_EGREP_max=$ac_count | ||
3744 | fi | ||
3745 | # 10*(2^10) chars as input seems more than enough | ||
3746 | test $ac_count -gt 10 && break | ||
3747 | done | ||
3748 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3749 | esac | ||
3750 | |||
3751 | |||
3752 | $ac_path_EGREP_found && break 3 | ||
3753 | done | ||
3754 | done | ||
3755 | |||
3756 | done | ||
3757 | IFS=$as_save_IFS | ||
3758 | |||
3759 | |||
3760 | fi | ||
3761 | |||
3762 | EGREP="$ac_cv_path_EGREP" | ||
3763 | if test -z "$EGREP"; then | ||
3764 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3765 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3766 | { (exit 1); exit 1; }; } | ||
3767 | fi | ||
3768 | |||
3769 | else | ||
3770 | ac_cv_path_EGREP=$EGREP | ||
3771 | fi | ||
3772 | |||
3773 | |||
3774 | fi | ||
3775 | fi | ||
3776 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3777 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3778 | EGREP="$ac_cv_path_EGREP" | ||
3779 | |||
3780 | |||
3781 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3782 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3783 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3785 | else | ||
3786 | cat >conftest.$ac_ext <<_ACEOF | ||
3787 | /* confdefs.h. */ | ||
3788 | _ACEOF | ||
3789 | cat confdefs.h >>conftest.$ac_ext | ||
3790 | cat >>conftest.$ac_ext <<_ACEOF | ||
3791 | /* end confdefs.h. */ | ||
3792 | #include <stdlib.h> | ||
3793 | #include <stdarg.h> | ||
3794 | #include <string.h> | ||
3795 | #include <float.h> | ||
3796 | |||
3797 | int | ||
3798 | main () | ||
3799 | { | ||
3800 | |||
3801 | ; | ||
3802 | return 0; | ||
3803 | } | ||
3804 | _ACEOF | ||
3805 | rm -f conftest.$ac_objext | ||
3806 | if { (ac_try="$ac_compile" | ||
3807 | case "(($ac_try" in | ||
3808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3809 | *) ac_try_echo=$ac_try;; | ||
3810 | esac | ||
3811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3812 | (eval "$ac_compile") 2>conftest.er1 | ||
3813 | ac_status=$? | ||
3814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3815 | rm -f conftest.er1 | ||
3816 | cat conftest.err >&5 | ||
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3818 | (exit $ac_status); } && | ||
3819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3820 | { (case "(($ac_try" in | ||
3821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3822 | *) ac_try_echo=$ac_try;; | ||
3823 | esac | ||
3824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3825 | (eval "$ac_try") 2>&5 | ||
3826 | ac_status=$? | ||
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3828 | (exit $ac_status); }; } && | ||
3829 | { ac_try='test -s conftest.$ac_objext' | ||
3830 | { (case "(($ac_try" in | ||
3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3832 | *) ac_try_echo=$ac_try;; | ||
3833 | esac | ||
3834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3835 | (eval "$ac_try") 2>&5 | ||
3836 | ac_status=$? | ||
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3838 | (exit $ac_status); }; }; then | ||
3839 | ac_cv_header_stdc=yes | ||
3840 | else | ||
3841 | echo "$as_me: failed program was:" >&5 | ||
3842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3843 | |||
3844 | ac_cv_header_stdc=no | ||
3845 | fi | ||
3846 | |||
3847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3848 | |||
3849 | if test $ac_cv_header_stdc = yes; then | ||
3850 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3851 | cat >conftest.$ac_ext <<_ACEOF | ||
3852 | /* confdefs.h. */ | ||
3853 | _ACEOF | ||
3854 | cat confdefs.h >>conftest.$ac_ext | ||
3855 | cat >>conftest.$ac_ext <<_ACEOF | ||
3856 | /* end confdefs.h. */ | ||
3857 | #include <string.h> | ||
3858 | |||
3859 | _ACEOF | ||
3860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3861 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3862 | : | ||
3863 | else | ||
3864 | ac_cv_header_stdc=no | ||
3865 | fi | ||
3866 | rm -f conftest* | ||
3867 | |||
3868 | fi | ||
3869 | |||
3870 | if test $ac_cv_header_stdc = yes; then | ||
3871 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3872 | cat >conftest.$ac_ext <<_ACEOF | ||
3873 | /* confdefs.h. */ | ||
3874 | _ACEOF | ||
3875 | cat confdefs.h >>conftest.$ac_ext | ||
3876 | cat >>conftest.$ac_ext <<_ACEOF | ||
3877 | /* end confdefs.h. */ | ||
3878 | #include <stdlib.h> | ||
3879 | |||
3880 | _ACEOF | ||
3881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3882 | $EGREP "free" >/dev/null 2>&1; then | ||
3883 | : | ||
3884 | else | ||
3885 | ac_cv_header_stdc=no | ||
3886 | fi | ||
3887 | rm -f conftest* | ||
3888 | |||
3889 | fi | ||
3890 | |||
3891 | if test $ac_cv_header_stdc = yes; then | ||
3892 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3893 | if test "$cross_compiling" = yes; then | ||
3894 | : | ||
3895 | else | ||
3896 | cat >conftest.$ac_ext <<_ACEOF | ||
3897 | /* confdefs.h. */ | ||
3898 | _ACEOF | ||
3899 | cat confdefs.h >>conftest.$ac_ext | ||
3900 | cat >>conftest.$ac_ext <<_ACEOF | ||
3901 | /* end confdefs.h. */ | ||
3902 | #include <ctype.h> | ||
3903 | #include <stdlib.h> | ||
3904 | #if ((' ' & 0x0FF) == 0x020) | ||
3905 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3906 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3907 | #else | ||
3908 | # define ISLOWER(c) \ | ||
3909 | (('a' <= (c) && (c) <= 'i') \ | ||
3910 | || ('j' <= (c) && (c) <= 'r') \ | ||
3911 | || ('s' <= (c) && (c) <= 'z')) | ||
3912 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3913 | #endif | ||
3914 | |||
3915 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3916 | int | ||
3917 | main () | ||
3918 | { | ||
3919 | int i; | ||
3920 | for (i = 0; i < 256; i++) | ||
3921 | if (XOR (islower (i), ISLOWER (i)) | ||
3922 | || toupper (i) != TOUPPER (i)) | ||
3923 | return 2; | ||
3924 | return 0; | ||
3925 | } | ||
3926 | _ACEOF | ||
3927 | rm -f conftest$ac_exeext | ||
3928 | if { (ac_try="$ac_link" | ||
3929 | case "(($ac_try" in | ||
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3931 | *) ac_try_echo=$ac_try;; | ||
3932 | esac | ||
3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3934 | (eval "$ac_link") 2>&5 | ||
3935 | ac_status=$? | ||
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3938 | { (case "(($ac_try" in | ||
3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3940 | *) ac_try_echo=$ac_try;; | ||
3941 | esac | ||
3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3943 | (eval "$ac_try") 2>&5 | ||
3944 | ac_status=$? | ||
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3946 | (exit $ac_status); }; }; then | ||
3947 | : | ||
3948 | else | ||
3949 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3950 | echo "$as_me: failed program was:" >&5 | ||
3951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3952 | |||
3953 | ( exit $ac_status ) | ||
3954 | ac_cv_header_stdc=no | ||
3955 | fi | ||
3956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3957 | fi | ||
3958 | |||
3959 | |||
3960 | fi | ||
3961 | fi | ||
3962 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3963 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3964 | if test $ac_cv_header_stdc = yes; then | ||
3965 | |||
3966 | cat >>confdefs.h <<\_ACEOF | ||
3967 | #define STDC_HEADERS 1 | ||
3968 | _ACEOF | ||
3969 | |||
3970 | fi | ||
3971 | |||
3972 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3973 | |||
3974 | |||
3975 | |||
3976 | |||
3977 | |||
3978 | |||
3979 | |||
3980 | |||
3981 | |||
3982 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3983 | inttypes.h stdint.h unistd.h | ||
3984 | do | ||
3985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3986 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3990 | else | ||
3991 | cat >conftest.$ac_ext <<_ACEOF | ||
3992 | /* confdefs.h. */ | ||
3993 | _ACEOF | ||
3994 | cat confdefs.h >>conftest.$ac_ext | ||
3995 | cat >>conftest.$ac_ext <<_ACEOF | ||
3996 | /* end confdefs.h. */ | ||
3997 | $ac_includes_default | ||
3998 | |||
3999 | #include <$ac_header> | ||
4000 | _ACEOF | ||
4001 | rm -f conftest.$ac_objext | ||
4002 | if { (ac_try="$ac_compile" | ||
4003 | case "(($ac_try" in | ||
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4005 | *) ac_try_echo=$ac_try;; | ||
4006 | esac | ||
4007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4008 | (eval "$ac_compile") 2>conftest.er1 | ||
4009 | ac_status=$? | ||
4010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4011 | rm -f conftest.er1 | ||
4012 | cat conftest.err >&5 | ||
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4014 | (exit $ac_status); } && | ||
4015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4016 | { (case "(($ac_try" in | ||
4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4018 | *) ac_try_echo=$ac_try;; | ||
4019 | esac | ||
4020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4021 | (eval "$ac_try") 2>&5 | ||
4022 | ac_status=$? | ||
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4024 | (exit $ac_status); }; } && | ||
4025 | { ac_try='test -s conftest.$ac_objext' | ||
4026 | { (case "(($ac_try" in | ||
4027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4028 | *) ac_try_echo=$ac_try;; | ||
4029 | esac | ||
4030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4031 | (eval "$ac_try") 2>&5 | ||
4032 | ac_status=$? | ||
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4034 | (exit $ac_status); }; }; then | ||
4035 | eval "$as_ac_Header=yes" | ||
4036 | else | ||
4037 | echo "$as_me: failed program was:" >&5 | ||
4038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4039 | |||
4040 | eval "$as_ac_Header=no" | ||
4041 | fi | ||
4042 | |||
4043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4044 | fi | ||
4045 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4046 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4047 | echo "${ECHO_T}$ac_res" >&6; } | ||
4048 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4049 | cat >>confdefs.h <<_ACEOF | ||
4050 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4051 | _ACEOF | ||
4052 | |||
4053 | fi | ||
4054 | |||
4055 | done | ||
4056 | |||
4057 | |||
4058 | |||
4059 | |||
4060 | for ac_header in locale.h | ||
4061 | do | ||
4062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4064 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
4066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4068 | fi | ||
4069 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4071 | echo "${ECHO_T}$ac_res" >&6; } | ||
4072 | else | ||
4073 | # Is the header compilable? | ||
4074 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
4075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
4076 | cat >conftest.$ac_ext <<_ACEOF | ||
4077 | /* confdefs.h. */ | ||
4078 | _ACEOF | ||
4079 | cat confdefs.h >>conftest.$ac_ext | ||
4080 | cat >>conftest.$ac_ext <<_ACEOF | ||
4081 | /* end confdefs.h. */ | ||
4082 | $ac_includes_default | ||
4083 | #include <$ac_header> | ||
4084 | _ACEOF | ||
4085 | rm -f conftest.$ac_objext | ||
4086 | if { (ac_try="$ac_compile" | ||
4087 | case "(($ac_try" in | ||
4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4089 | *) ac_try_echo=$ac_try;; | ||
4090 | esac | ||
4091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4092 | (eval "$ac_compile") 2>conftest.er1 | ||
4093 | ac_status=$? | ||
4094 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4095 | rm -f conftest.er1 | ||
4096 | cat conftest.err >&5 | ||
4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4098 | (exit $ac_status); } && | ||
4099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4100 | { (case "(($ac_try" in | ||
4101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4102 | *) ac_try_echo=$ac_try;; | ||
4103 | esac | ||
4104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4105 | (eval "$ac_try") 2>&5 | ||
4106 | ac_status=$? | ||
4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4108 | (exit $ac_status); }; } && | ||
4109 | { ac_try='test -s conftest.$ac_objext' | ||
4110 | { (case "(($ac_try" in | ||
4111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4112 | *) ac_try_echo=$ac_try;; | ||
4113 | esac | ||
4114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4115 | (eval "$ac_try") 2>&5 | ||
4116 | ac_status=$? | ||
4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4118 | (exit $ac_status); }; }; then | ||
4119 | ac_header_compiler=yes | ||
4120 | else | ||
4121 | echo "$as_me: failed program was:" >&5 | ||
4122 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4123 | |||
4124 | ac_header_compiler=no | ||
4125 | fi | ||
4126 | |||
4127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4128 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4129 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
4130 | |||
4131 | # Is the header present? | ||
4132 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
4133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
4134 | cat >conftest.$ac_ext <<_ACEOF | ||
4135 | /* confdefs.h. */ | ||
4136 | _ACEOF | ||
4137 | cat confdefs.h >>conftest.$ac_ext | ||
4138 | cat >>conftest.$ac_ext <<_ACEOF | ||
4139 | /* end confdefs.h. */ | ||
4140 | #include <$ac_header> | ||
4141 | _ACEOF | ||
4142 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4143 | case "(($ac_try" in | ||
4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4145 | *) ac_try_echo=$ac_try;; | ||
4146 | esac | ||
4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4148 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4149 | ac_status=$? | ||
4150 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4151 | rm -f conftest.er1 | ||
4152 | cat conftest.err >&5 | ||
4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4154 | (exit $ac_status); } >/dev/null; then | ||
4155 | if test -s conftest.err; then | ||
4156 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4157 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4158 | else | ||
4159 | ac_cpp_err= | ||
4160 | fi | ||
4161 | else | ||
4162 | ac_cpp_err=yes | ||
4163 | fi | ||
4164 | if test -z "$ac_cpp_err"; then | ||
4165 | ac_header_preproc=yes | ||
4166 | else | ||
4167 | echo "$as_me: failed program was:" >&5 | ||
4168 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4169 | |||
4170 | ac_header_preproc=no | ||
4171 | fi | ||
4172 | |||
4173 | rm -f conftest.err conftest.$ac_ext | ||
4174 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4175 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
4176 | |||
4177 | # So? What about this header? | ||
4178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4179 | yes:no: ) | ||
4180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
4183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
4184 | ac_header_preproc=yes | ||
4185 | ;; | ||
4186 | no:yes:* ) | ||
4187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
4188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
4189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
4190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
4191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
4192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
4193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
4194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
4197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
4198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
4199 | |||
4200 | ;; | ||
4201 | esac | ||
4202 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
4204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4206 | else | ||
4207 | eval "$as_ac_Header=\$ac_header_preproc" | ||
4208 | fi | ||
4209 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4211 | echo "${ECHO_T}$ac_res" >&6; } | ||
4212 | |||
4213 | fi | ||
4214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4215 | cat >>confdefs.h <<_ACEOF | ||
4216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4217 | _ACEOF | ||
4218 | |||
4219 | fi | ||
4220 | |||
4221 | done | ||
4222 | |||
4223 | if test $ac_cv_header_locale_h = yes; then | ||
4224 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | ||
4225 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } | ||
4226 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | ||
4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4228 | else | ||
4229 | cat >conftest.$ac_ext <<_ACEOF | ||
4230 | /* confdefs.h. */ | ||
4231 | _ACEOF | ||
4232 | cat confdefs.h >>conftest.$ac_ext | ||
4233 | cat >>conftest.$ac_ext <<_ACEOF | ||
4234 | /* end confdefs.h. */ | ||
4235 | #include <locale.h> | ||
4236 | int | ||
4237 | main () | ||
4238 | { | ||
4239 | return LC_MESSAGES | ||
4240 | ; | ||
4241 | return 0; | ||
4242 | } | ||
4243 | _ACEOF | ||
4244 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4245 | if { (ac_try="$ac_link" | ||
4246 | case "(($ac_try" in | ||
4247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4248 | *) ac_try_echo=$ac_try;; | ||
4249 | esac | ||
4250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4251 | (eval "$ac_link") 2>conftest.er1 | ||
4252 | ac_status=$? | ||
4253 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4254 | rm -f conftest.er1 | ||
4255 | cat conftest.err >&5 | ||
4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4257 | (exit $ac_status); } && | ||
4258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4259 | { (case "(($ac_try" in | ||
4260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4261 | *) ac_try_echo=$ac_try;; | ||
4262 | esac | ||
4263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4264 | (eval "$ac_try") 2>&5 | ||
4265 | ac_status=$? | ||
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4267 | (exit $ac_status); }; } && | ||
4268 | { ac_try='test -s conftest$ac_exeext' | ||
4269 | { (case "(($ac_try" in | ||
4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4271 | *) ac_try_echo=$ac_try;; | ||
4272 | esac | ||
4273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4274 | (eval "$ac_try") 2>&5 | ||
4275 | ac_status=$? | ||
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4277 | (exit $ac_status); }; }; then | ||
4278 | am_cv_val_LC_MESSAGES=yes | ||
4279 | else | ||
4280 | echo "$as_me: failed program was:" >&5 | ||
4281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4282 | |||
4283 | am_cv_val_LC_MESSAGES=no | ||
4284 | fi | ||
4285 | |||
4286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4287 | conftest$ac_exeext conftest.$ac_ext | ||
4288 | fi | ||
4289 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | ||
4290 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } | ||
4291 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
4292 | |||
4293 | cat >>confdefs.h <<\_ACEOF | ||
4294 | #define HAVE_LC_MESSAGES 1 | ||
4295 | _ACEOF | ||
4296 | |||
4297 | fi | ||
4298 | fi | ||
4299 | USE_NLS=yes | ||
4300 | |||
4301 | |||
4302 | gt_cv_have_gettext=no | ||
4303 | |||
4304 | CATOBJEXT=NONE | ||
4305 | XGETTEXT=: | ||
4306 | INTLLIBS= | ||
4307 | |||
4308 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4309 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 | ||
4310 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | ||
4311 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4313 | fi | ||
4314 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | ||
4315 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | ||
4316 | else | ||
4317 | # Is the header compilable? | ||
4318 | { echo "$as_me:$LINENO: checking libintl.h usability" >&5 | ||
4319 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } | ||
4320 | cat >conftest.$ac_ext <<_ACEOF | ||
4321 | /* confdefs.h. */ | ||
4322 | _ACEOF | ||
4323 | cat confdefs.h >>conftest.$ac_ext | ||
4324 | cat >>conftest.$ac_ext <<_ACEOF | ||
4325 | /* end confdefs.h. */ | ||
4326 | $ac_includes_default | ||
4327 | #include <libintl.h> | ||
4328 | _ACEOF | ||
4329 | rm -f conftest.$ac_objext | ||
4330 | if { (ac_try="$ac_compile" | ||
4331 | case "(($ac_try" in | ||
4332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4333 | *) ac_try_echo=$ac_try;; | ||
4334 | esac | ||
4335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4336 | (eval "$ac_compile") 2>conftest.er1 | ||
4337 | ac_status=$? | ||
4338 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4339 | rm -f conftest.er1 | ||
4340 | cat conftest.err >&5 | ||
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4342 | (exit $ac_status); } && | ||
4343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4344 | { (case "(($ac_try" in | ||
4345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4346 | *) ac_try_echo=$ac_try;; | ||
4347 | esac | ||
4348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4349 | (eval "$ac_try") 2>&5 | ||
4350 | ac_status=$? | ||
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4352 | (exit $ac_status); }; } && | ||
4353 | { ac_try='test -s conftest.$ac_objext' | ||
4354 | { (case "(($ac_try" in | ||
4355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4356 | *) ac_try_echo=$ac_try;; | ||
4357 | esac | ||
4358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4359 | (eval "$ac_try") 2>&5 | ||
4360 | ac_status=$? | ||
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4362 | (exit $ac_status); }; }; then | ||
4363 | ac_header_compiler=yes | ||
4364 | else | ||
4365 | echo "$as_me: failed program was:" >&5 | ||
4366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4367 | |||
4368 | ac_header_compiler=no | ||
4369 | fi | ||
4370 | |||
4371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4372 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4373 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
4374 | |||
4375 | # Is the header present? | ||
4376 | { echo "$as_me:$LINENO: checking libintl.h presence" >&5 | ||
4377 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } | ||
4378 | cat >conftest.$ac_ext <<_ACEOF | ||
4379 | /* confdefs.h. */ | ||
4380 | _ACEOF | ||
4381 | cat confdefs.h >>conftest.$ac_ext | ||
4382 | cat >>conftest.$ac_ext <<_ACEOF | ||
4383 | /* end confdefs.h. */ | ||
4384 | #include <libintl.h> | ||
4385 | _ACEOF | ||
4386 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4387 | case "(($ac_try" in | ||
4388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4389 | *) ac_try_echo=$ac_try;; | ||
4390 | esac | ||
4391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4392 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4393 | ac_status=$? | ||
4394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4395 | rm -f conftest.er1 | ||
4396 | cat conftest.err >&5 | ||
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4398 | (exit $ac_status); } >/dev/null; then | ||
4399 | if test -s conftest.err; then | ||
4400 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4402 | else | ||
4403 | ac_cpp_err= | ||
4404 | fi | ||
4405 | else | ||
4406 | ac_cpp_err=yes | ||
4407 | fi | ||
4408 | if test -z "$ac_cpp_err"; then | ||
4409 | ac_header_preproc=yes | ||
4410 | else | ||
4411 | echo "$as_me: failed program was:" >&5 | ||
4412 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4413 | |||
4414 | ac_header_preproc=no | ||
4415 | fi | ||
4416 | |||
4417 | rm -f conftest.err conftest.$ac_ext | ||
4418 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4419 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
4420 | |||
4421 | # So? What about this header? | ||
4422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4423 | yes:no: ) | ||
4424 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4425 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4426 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | ||
4427 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | ||
4428 | ac_header_preproc=yes | ||
4429 | ;; | ||
4430 | no:yes:* ) | ||
4431 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | ||
4432 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | ||
4433 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | ||
4434 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | ||
4435 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | ||
4436 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | ||
4437 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
4438 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4439 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | ||
4440 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | ||
4441 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | ||
4442 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | ||
4443 | |||
4444 | ;; | ||
4445 | esac | ||
4446 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 | ||
4447 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | ||
4448 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4450 | else | ||
4451 | ac_cv_header_libintl_h=$ac_header_preproc | ||
4452 | fi | ||
4453 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | ||
4454 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | ||
4455 | |||
4456 | fi | ||
4457 | if test $ac_cv_header_libintl_h = yes; then | ||
4458 | gt_cv_func_dgettext_libintl="no" | ||
4459 | libintl_extra_libs="" | ||
4460 | |||
4461 | # | ||
4462 | # First check in libc | ||
4463 | # | ||
4464 | { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 | ||
4465 | echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } | ||
4466 | if test "${gt_cv_func_ngettext_libc+set}" = set; then | ||
4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4468 | else | ||
4469 | cat >conftest.$ac_ext <<_ACEOF | ||
4470 | /* confdefs.h. */ | ||
4471 | _ACEOF | ||
4472 | cat confdefs.h >>conftest.$ac_ext | ||
4473 | cat >>conftest.$ac_ext <<_ACEOF | ||
4474 | /* end confdefs.h. */ | ||
4475 | |||
4476 | #include <libintl.h> | ||
4477 | |||
4478 | int | ||
4479 | main () | ||
4480 | { | ||
4481 | return !ngettext ("","", 1) | ||
4482 | ; | ||
4483 | return 0; | ||
4484 | } | ||
4485 | _ACEOF | ||
4486 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4487 | if { (ac_try="$ac_link" | ||
4488 | case "(($ac_try" in | ||
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4490 | *) ac_try_echo=$ac_try;; | ||
4491 | esac | ||
4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4493 | (eval "$ac_link") 2>conftest.er1 | ||
4494 | ac_status=$? | ||
4495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4496 | rm -f conftest.er1 | ||
4497 | cat conftest.err >&5 | ||
4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4499 | (exit $ac_status); } && | ||
4500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4501 | { (case "(($ac_try" in | ||
4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4503 | *) ac_try_echo=$ac_try;; | ||
4504 | esac | ||
4505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4506 | (eval "$ac_try") 2>&5 | ||
4507 | ac_status=$? | ||
4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4509 | (exit $ac_status); }; } && | ||
4510 | { ac_try='test -s conftest$ac_exeext' | ||
4511 | { (case "(($ac_try" in | ||
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4513 | *) ac_try_echo=$ac_try;; | ||
4514 | esac | ||
4515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4516 | (eval "$ac_try") 2>&5 | ||
4517 | ac_status=$? | ||
4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4519 | (exit $ac_status); }; }; then | ||
4520 | gt_cv_func_ngettext_libc=yes | ||
4521 | else | ||
4522 | echo "$as_me: failed program was:" >&5 | ||
4523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4524 | |||
4525 | gt_cv_func_ngettext_libc=no | ||
4526 | fi | ||
4527 | |||
4528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4529 | conftest$ac_exeext conftest.$ac_ext | ||
4530 | |||
4531 | fi | ||
4532 | { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 | ||
4533 | echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } | ||
4534 | |||
4535 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
4536 | { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 | ||
4537 | echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } | ||
4538 | if test "${gt_cv_func_dgettext_libc+set}" = set; then | ||
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4540 | else | ||
4541 | cat >conftest.$ac_ext <<_ACEOF | ||
4542 | /* confdefs.h. */ | ||
4543 | _ACEOF | ||
4544 | cat confdefs.h >>conftest.$ac_ext | ||
4545 | cat >>conftest.$ac_ext <<_ACEOF | ||
4546 | /* end confdefs.h. */ | ||
4547 | |||
4548 | #include <libintl.h> | ||
4549 | |||
4550 | int | ||
4551 | main () | ||
4552 | { | ||
4553 | return !dgettext ("","") | ||
4554 | ; | ||
4555 | return 0; | ||
4556 | } | ||
4557 | _ACEOF | ||
4558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4559 | if { (ac_try="$ac_link" | ||
4560 | case "(($ac_try" in | ||
4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4562 | *) ac_try_echo=$ac_try;; | ||
4563 | esac | ||
4564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4565 | (eval "$ac_link") 2>conftest.er1 | ||
4566 | ac_status=$? | ||
4567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4568 | rm -f conftest.er1 | ||
4569 | cat conftest.err >&5 | ||
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4571 | (exit $ac_status); } && | ||
4572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4573 | { (case "(($ac_try" in | ||
4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4575 | *) ac_try_echo=$ac_try;; | ||
4576 | esac | ||
4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4578 | (eval "$ac_try") 2>&5 | ||
4579 | ac_status=$? | ||
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4581 | (exit $ac_status); }; } && | ||
4582 | { ac_try='test -s conftest$ac_exeext' | ||
4583 | { (case "(($ac_try" in | ||
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4585 | *) ac_try_echo=$ac_try;; | ||
4586 | esac | ||
4587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4588 | (eval "$ac_try") 2>&5 | ||
4589 | ac_status=$? | ||
4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4591 | (exit $ac_status); }; }; then | ||
4592 | gt_cv_func_dgettext_libc=yes | ||
4593 | else | ||
4594 | echo "$as_me: failed program was:" >&5 | ||
4595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4596 | |||
4597 | gt_cv_func_dgettext_libc=no | ||
4598 | fi | ||
4599 | |||
4600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4601 | conftest$ac_exeext conftest.$ac_ext | ||
4602 | |||
4603 | fi | ||
4604 | { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 | ||
4605 | echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } | ||
4606 | fi | ||
4607 | |||
4608 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
4609 | |||
4610 | for ac_func in bind_textdomain_codeset | ||
4611 | do | ||
4612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4613 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
4615 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4617 | else | ||
4618 | cat >conftest.$ac_ext <<_ACEOF | ||
4619 | /* confdefs.h. */ | ||
4620 | _ACEOF | ||
4621 | cat confdefs.h >>conftest.$ac_ext | ||
4622 | cat >>conftest.$ac_ext <<_ACEOF | ||
4623 | /* end confdefs.h. */ | ||
4624 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
4625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4626 | #define $ac_func innocuous_$ac_func | ||
4627 | |||
4628 | /* System header to define __stub macros and hopefully few prototypes, | ||
4629 | which can conflict with char $ac_func (); below. | ||
4630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4631 | <limits.h> exists even on freestanding compilers. */ | ||
4632 | |||
4633 | #ifdef __STDC__ | ||
4634 | # include <limits.h> | ||
4635 | #else | ||
4636 | # include <assert.h> | ||
4637 | #endif | ||
4638 | |||
4639 | #undef $ac_func | ||
4640 | |||
4641 | /* Override any GCC internal prototype to avoid an error. | ||
4642 | Use char because int might match the return type of a GCC | ||
4643 | builtin and then its argument prototype would still apply. */ | ||
4644 | #ifdef __cplusplus | ||
4645 | extern "C" | ||
4646 | #endif | ||
4647 | char $ac_func (); | ||
4648 | /* The GNU C library defines this for functions which it implements | ||
4649 | to always fail with ENOSYS. Some functions are actually named | ||
4650 | something starting with __ and the normal name is an alias. */ | ||
4651 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
4652 | choke me | ||
4653 | #endif | ||
4654 | |||
4655 | int | ||
4656 | main () | ||
4657 | { | ||
4658 | return $ac_func (); | ||
4659 | ; | ||
4660 | return 0; | ||
4661 | } | ||
4662 | _ACEOF | ||
4663 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4664 | if { (ac_try="$ac_link" | ||
4665 | case "(($ac_try" in | ||
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4667 | *) ac_try_echo=$ac_try;; | ||
4668 | esac | ||
4669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4670 | (eval "$ac_link") 2>conftest.er1 | ||
4671 | ac_status=$? | ||
4672 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4673 | rm -f conftest.er1 | ||
4674 | cat conftest.err >&5 | ||
4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4676 | (exit $ac_status); } && | ||
4677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4678 | { (case "(($ac_try" in | ||
4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4680 | *) ac_try_echo=$ac_try;; | ||
4681 | esac | ||
4682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4683 | (eval "$ac_try") 2>&5 | ||
4684 | ac_status=$? | ||
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4686 | (exit $ac_status); }; } && | ||
4687 | { ac_try='test -s conftest$ac_exeext' | ||
4688 | { (case "(($ac_try" in | ||
4689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4690 | *) ac_try_echo=$ac_try;; | ||
4691 | esac | ||
4692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4693 | (eval "$ac_try") 2>&5 | ||
4694 | ac_status=$? | ||
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4696 | (exit $ac_status); }; }; then | ||
4697 | eval "$as_ac_var=yes" | ||
4698 | else | ||
4699 | echo "$as_me: failed program was:" >&5 | ||
4700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4701 | |||
4702 | eval "$as_ac_var=no" | ||
4703 | fi | ||
4704 | |||
4705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4706 | conftest$ac_exeext conftest.$ac_ext | ||
4707 | fi | ||
4708 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
4709 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4710 | echo "${ECHO_T}$ac_res" >&6; } | ||
4711 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4712 | cat >>confdefs.h <<_ACEOF | ||
4713 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4714 | _ACEOF | ||
4715 | |||
4716 | fi | ||
4717 | done | ||
4718 | |||
4719 | fi | ||
4720 | |||
4721 | # | ||
4722 | # If we don't have everything we want, check in libintl | ||
4723 | # | ||
4724 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
4725 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
4726 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
4727 | |||
4728 | { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | ||
4729 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } | ||
4730 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | ||
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4732 | else | ||
4733 | ac_check_lib_save_LIBS=$LIBS | ||
4734 | LIBS="-lintl $LIBS" | ||
4735 | cat >conftest.$ac_ext <<_ACEOF | ||
4736 | /* confdefs.h. */ | ||
4737 | _ACEOF | ||
4738 | cat confdefs.h >>conftest.$ac_ext | ||
4739 | cat >>conftest.$ac_ext <<_ACEOF | ||
4740 | /* end confdefs.h. */ | ||
4741 | |||
4742 | /* Override any GCC internal prototype to avoid an error. | ||
4743 | Use char because int might match the return type of a GCC | ||
4744 | builtin and then its argument prototype would still apply. */ | ||
4745 | #ifdef __cplusplus | ||
4746 | extern "C" | ||
4747 | #endif | ||
4748 | char bindtextdomain (); | ||
4749 | int | ||
4750 | main () | ||
4751 | { | ||
4752 | return bindtextdomain (); | ||
4753 | ; | ||
4754 | return 0; | ||
4755 | } | ||
4756 | _ACEOF | ||
4757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4758 | if { (ac_try="$ac_link" | ||
4759 | case "(($ac_try" in | ||
4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4761 | *) ac_try_echo=$ac_try;; | ||
4762 | esac | ||
4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4764 | (eval "$ac_link") 2>conftest.er1 | ||
4765 | ac_status=$? | ||
4766 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4767 | rm -f conftest.er1 | ||
4768 | cat conftest.err >&5 | ||
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4770 | (exit $ac_status); } && | ||
4771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4772 | { (case "(($ac_try" in | ||
4773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4774 | *) ac_try_echo=$ac_try;; | ||
4775 | esac | ||
4776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4777 | (eval "$ac_try") 2>&5 | ||
4778 | ac_status=$? | ||
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4780 | (exit $ac_status); }; } && | ||
4781 | { ac_try='test -s conftest$ac_exeext' | ||
4782 | { (case "(($ac_try" in | ||
4783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4784 | *) ac_try_echo=$ac_try;; | ||
4785 | esac | ||
4786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4787 | (eval "$ac_try") 2>&5 | ||
4788 | ac_status=$? | ||
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4790 | (exit $ac_status); }; }; then | ||
4791 | ac_cv_lib_intl_bindtextdomain=yes | ||
4792 | else | ||
4793 | echo "$as_me: failed program was:" >&5 | ||
4794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4795 | |||
4796 | ac_cv_lib_intl_bindtextdomain=no | ||
4797 | fi | ||
4798 | |||
4799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4800 | conftest$ac_exeext conftest.$ac_ext | ||
4801 | LIBS=$ac_check_lib_save_LIBS | ||
4802 | fi | ||
4803 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | ||
4804 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } | ||
4805 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | ||
4806 | { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 | ||
4807 | echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } | ||
4808 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then | ||
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4810 | else | ||
4811 | ac_check_lib_save_LIBS=$LIBS | ||
4812 | LIBS="-lintl $LIBS" | ||
4813 | cat >conftest.$ac_ext <<_ACEOF | ||
4814 | /* confdefs.h. */ | ||
4815 | _ACEOF | ||
4816 | cat confdefs.h >>conftest.$ac_ext | ||
4817 | cat >>conftest.$ac_ext <<_ACEOF | ||
4818 | /* end confdefs.h. */ | ||
4819 | |||
4820 | /* Override any GCC internal prototype to avoid an error. | ||
4821 | Use char because int might match the return type of a GCC | ||
4822 | builtin and then its argument prototype would still apply. */ | ||
4823 | #ifdef __cplusplus | ||
4824 | extern "C" | ||
4825 | #endif | ||
4826 | char ngettext (); | ||
4827 | int | ||
4828 | main () | ||
4829 | { | ||
4830 | return ngettext (); | ||
4831 | ; | ||
4832 | return 0; | ||
4833 | } | ||
4834 | _ACEOF | ||
4835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4836 | if { (ac_try="$ac_link" | ||
4837 | case "(($ac_try" in | ||
4838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4839 | *) ac_try_echo=$ac_try;; | ||
4840 | esac | ||
4841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4842 | (eval "$ac_link") 2>conftest.er1 | ||
4843 | ac_status=$? | ||
4844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4845 | rm -f conftest.er1 | ||
4846 | cat conftest.err >&5 | ||
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4848 | (exit $ac_status); } && | ||
4849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4850 | { (case "(($ac_try" in | ||
4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4852 | *) ac_try_echo=$ac_try;; | ||
4853 | esac | ||
4854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4855 | (eval "$ac_try") 2>&5 | ||
4856 | ac_status=$? | ||
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4858 | (exit $ac_status); }; } && | ||
4859 | { ac_try='test -s conftest$ac_exeext' | ||
4860 | { (case "(($ac_try" in | ||
4861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4862 | *) ac_try_echo=$ac_try;; | ||
4863 | esac | ||
4864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4865 | (eval "$ac_try") 2>&5 | ||
4866 | ac_status=$? | ||
4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4868 | (exit $ac_status); }; }; then | ||
4869 | ac_cv_lib_intl_ngettext=yes | ||
4870 | else | ||
4871 | echo "$as_me: failed program was:" >&5 | ||
4872 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4873 | |||
4874 | ac_cv_lib_intl_ngettext=no | ||
4875 | fi | ||
4876 | |||
4877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4878 | conftest$ac_exeext conftest.$ac_ext | ||
4879 | LIBS=$ac_check_lib_save_LIBS | ||
4880 | fi | ||
4881 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 | ||
4882 | echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } | ||
4883 | if test $ac_cv_lib_intl_ngettext = yes; then | ||
4884 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 | ||
4885 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | ||
4886 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | ||
4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4888 | else | ||
4889 | ac_check_lib_save_LIBS=$LIBS | ||
4890 | LIBS="-lintl $LIBS" | ||
4891 | cat >conftest.$ac_ext <<_ACEOF | ||
4892 | /* confdefs.h. */ | ||
4893 | _ACEOF | ||
4894 | cat confdefs.h >>conftest.$ac_ext | ||
4895 | cat >>conftest.$ac_ext <<_ACEOF | ||
4896 | /* end confdefs.h. */ | ||
4897 | |||
4898 | /* Override any GCC internal prototype to avoid an error. | ||
4899 | Use char because int might match the return type of a GCC | ||
4900 | builtin and then its argument prototype would still apply. */ | ||
4901 | #ifdef __cplusplus | ||
4902 | extern "C" | ||
4903 | #endif | ||
4904 | char dgettext (); | ||
4905 | int | ||
4906 | main () | ||
4907 | { | ||
4908 | return dgettext (); | ||
4909 | ; | ||
4910 | return 0; | ||
4911 | } | ||
4912 | _ACEOF | ||
4913 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4914 | if { (ac_try="$ac_link" | ||
4915 | case "(($ac_try" in | ||
4916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4917 | *) ac_try_echo=$ac_try;; | ||
4918 | esac | ||
4919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4920 | (eval "$ac_link") 2>conftest.er1 | ||
4921 | ac_status=$? | ||
4922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4923 | rm -f conftest.er1 | ||
4924 | cat conftest.err >&5 | ||
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4926 | (exit $ac_status); } && | ||
4927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4928 | { (case "(($ac_try" in | ||
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4930 | *) ac_try_echo=$ac_try;; | ||
4931 | esac | ||
4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4933 | (eval "$ac_try") 2>&5 | ||
4934 | ac_status=$? | ||
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4936 | (exit $ac_status); }; } && | ||
4937 | { ac_try='test -s conftest$ac_exeext' | ||
4938 | { (case "(($ac_try" in | ||
4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4940 | *) ac_try_echo=$ac_try;; | ||
4941 | esac | ||
4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4943 | (eval "$ac_try") 2>&5 | ||
4944 | ac_status=$? | ||
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4946 | (exit $ac_status); }; }; then | ||
4947 | ac_cv_lib_intl_dgettext=yes | ||
4948 | else | ||
4949 | echo "$as_me: failed program was:" >&5 | ||
4950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4951 | |||
4952 | ac_cv_lib_intl_dgettext=no | ||
4953 | fi | ||
4954 | |||
4955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4956 | conftest$ac_exeext conftest.$ac_ext | ||
4957 | LIBS=$ac_check_lib_save_LIBS | ||
4958 | fi | ||
4959 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 | ||
4960 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | ||
4961 | if test $ac_cv_lib_intl_dgettext = yes; then | ||
4962 | gt_cv_func_dgettext_libintl=yes | ||
4963 | fi | ||
4964 | |||
4965 | fi | ||
4966 | |||
4967 | fi | ||
4968 | |||
4969 | |||
4970 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
4971 | { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 | ||
4972 | echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } | ||
4973 | { echo "$as_me:$LINENO: result: " >&5 | ||
4974 | echo "${ECHO_T}" >&6; } | ||
4975 | { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 | ||
4976 | echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } | ||
4977 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then | ||
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4979 | else | ||
4980 | ac_check_lib_save_LIBS=$LIBS | ||
4981 | LIBS="-lintl -liconv $LIBS" | ||
4982 | cat >conftest.$ac_ext <<_ACEOF | ||
4983 | /* confdefs.h. */ | ||
4984 | _ACEOF | ||
4985 | cat confdefs.h >>conftest.$ac_ext | ||
4986 | cat >>conftest.$ac_ext <<_ACEOF | ||
4987 | /* end confdefs.h. */ | ||
4988 | |||
4989 | /* Override any GCC internal prototype to avoid an error. | ||
4990 | Use char because int might match the return type of a GCC | ||
4991 | builtin and then its argument prototype would still apply. */ | ||
4992 | #ifdef __cplusplus | ||
4993 | extern "C" | ||
4994 | #endif | ||
4995 | char ngettext (); | ||
4996 | int | ||
4997 | main () | ||
4998 | { | ||
4999 | return ngettext (); | ||
5000 | ; | ||
5001 | return 0; | ||
5002 | } | ||
5003 | _ACEOF | ||
5004 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5005 | if { (ac_try="$ac_link" | ||
5006 | case "(($ac_try" in | ||
5007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5008 | *) ac_try_echo=$ac_try;; | ||
5009 | esac | ||
5010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5011 | (eval "$ac_link") 2>conftest.er1 | ||
5012 | ac_status=$? | ||
5013 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5014 | rm -f conftest.er1 | ||
5015 | cat conftest.err >&5 | ||
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5017 | (exit $ac_status); } && | ||
5018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5019 | { (case "(($ac_try" in | ||
5020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5021 | *) ac_try_echo=$ac_try;; | ||
5022 | esac | ||
5023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5024 | (eval "$ac_try") 2>&5 | ||
5025 | ac_status=$? | ||
5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5027 | (exit $ac_status); }; } && | ||
5028 | { ac_try='test -s conftest$ac_exeext' | ||
5029 | { (case "(($ac_try" in | ||
5030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5031 | *) ac_try_echo=$ac_try;; | ||
5032 | esac | ||
5033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5034 | (eval "$ac_try") 2>&5 | ||
5035 | ac_status=$? | ||
5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5037 | (exit $ac_status); }; }; then | ||
5038 | ac_cv_lib_intl_ngettext=yes | ||
5039 | else | ||
5040 | echo "$as_me: failed program was:" >&5 | ||
5041 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5042 | |||
5043 | ac_cv_lib_intl_ngettext=no | ||
5044 | fi | ||
5045 | |||
5046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5047 | conftest$ac_exeext conftest.$ac_ext | ||
5048 | LIBS=$ac_check_lib_save_LIBS | ||
5049 | fi | ||
5050 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 | ||
5051 | echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } | ||
5052 | if test $ac_cv_lib_intl_ngettext = yes; then | ||
5053 | { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 | ||
5054 | echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } | ||
5055 | if test "${ac_cv_lib_intl_dcgettext+set}" = set; then | ||
5056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5057 | else | ||
5058 | ac_check_lib_save_LIBS=$LIBS | ||
5059 | LIBS="-lintl -liconv $LIBS" | ||
5060 | cat >conftest.$ac_ext <<_ACEOF | ||
5061 | /* confdefs.h. */ | ||
5062 | _ACEOF | ||
5063 | cat confdefs.h >>conftest.$ac_ext | ||
5064 | cat >>conftest.$ac_ext <<_ACEOF | ||
5065 | /* end confdefs.h. */ | ||
5066 | |||
5067 | /* Override any GCC internal prototype to avoid an error. | ||
5068 | Use char because int might match the return type of a GCC | ||
5069 | builtin and then its argument prototype would still apply. */ | ||
5070 | #ifdef __cplusplus | ||
5071 | extern "C" | ||
5072 | #endif | ||
5073 | char dcgettext (); | ||
5074 | int | ||
5075 | main () | ||
5076 | { | ||
5077 | return dcgettext (); | ||
5078 | ; | ||
5079 | return 0; | ||
5080 | } | ||
5081 | _ACEOF | ||
5082 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5083 | if { (ac_try="$ac_link" | ||
5084 | case "(($ac_try" in | ||
5085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5086 | *) ac_try_echo=$ac_try;; | ||
5087 | esac | ||
5088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5089 | (eval "$ac_link") 2>conftest.er1 | ||
5090 | ac_status=$? | ||
5091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5092 | rm -f conftest.er1 | ||
5093 | cat conftest.err >&5 | ||
5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5095 | (exit $ac_status); } && | ||
5096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5097 | { (case "(($ac_try" in | ||
5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5099 | *) ac_try_echo=$ac_try;; | ||
5100 | esac | ||
5101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5102 | (eval "$ac_try") 2>&5 | ||
5103 | ac_status=$? | ||
5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5105 | (exit $ac_status); }; } && | ||
5106 | { ac_try='test -s conftest$ac_exeext' | ||
5107 | { (case "(($ac_try" in | ||
5108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5109 | *) ac_try_echo=$ac_try;; | ||
5110 | esac | ||
5111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5112 | (eval "$ac_try") 2>&5 | ||
5113 | ac_status=$? | ||
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5115 | (exit $ac_status); }; }; then | ||
5116 | ac_cv_lib_intl_dcgettext=yes | ||
5117 | else | ||
5118 | echo "$as_me: failed program was:" >&5 | ||
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5120 | |||
5121 | ac_cv_lib_intl_dcgettext=no | ||
5122 | fi | ||
5123 | |||
5124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5125 | conftest$ac_exeext conftest.$ac_ext | ||
5126 | LIBS=$ac_check_lib_save_LIBS | ||
5127 | fi | ||
5128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 | ||
5129 | echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } | ||
5130 | if test $ac_cv_lib_intl_dcgettext = yes; then | ||
5131 | gt_cv_func_dgettext_libintl=yes | ||
5132 | libintl_extra_libs=-liconv | ||
5133 | else | ||
5134 | : | ||
5135 | fi | ||
5136 | |||
5137 | else | ||
5138 | : | ||
5139 | fi | ||
5140 | |||
5141 | fi | ||
5142 | |||
5143 | # | ||
5144 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
5145 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
5146 | # and both have dgettext and ngettext | ||
5147 | # | ||
5148 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
5149 | glib_save_LIBS="$LIBS" | ||
5150 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
5151 | unset ac_cv_func_bind_textdomain_codeset | ||
5152 | |||
5153 | for ac_func in bind_textdomain_codeset | ||
5154 | do | ||
5155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5156 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
5158 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5160 | else | ||
5161 | cat >conftest.$ac_ext <<_ACEOF | ||
5162 | /* confdefs.h. */ | ||
5163 | _ACEOF | ||
5164 | cat confdefs.h >>conftest.$ac_ext | ||
5165 | cat >>conftest.$ac_ext <<_ACEOF | ||
5166 | /* end confdefs.h. */ | ||
5167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5169 | #define $ac_func innocuous_$ac_func | ||
5170 | |||
5171 | /* System header to define __stub macros and hopefully few prototypes, | ||
5172 | which can conflict with char $ac_func (); below. | ||
5173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5174 | <limits.h> exists even on freestanding compilers. */ | ||
5175 | |||
5176 | #ifdef __STDC__ | ||
5177 | # include <limits.h> | ||
5178 | #else | ||
5179 | # include <assert.h> | ||
5180 | #endif | ||
5181 | |||
5182 | #undef $ac_func | ||
5183 | |||
5184 | /* Override any GCC internal prototype to avoid an error. | ||
5185 | Use char because int might match the return type of a GCC | ||
5186 | builtin and then its argument prototype would still apply. */ | ||
5187 | #ifdef __cplusplus | ||
5188 | extern "C" | ||
5189 | #endif | ||
5190 | char $ac_func (); | ||
5191 | /* The GNU C library defines this for functions which it implements | ||
5192 | to always fail with ENOSYS. Some functions are actually named | ||
5193 | something starting with __ and the normal name is an alias. */ | ||
5194 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
5195 | choke me | ||
5196 | #endif | ||
5197 | |||
5198 | int | ||
5199 | main () | ||
5200 | { | ||
5201 | return $ac_func (); | ||
5202 | ; | ||
5203 | return 0; | ||
5204 | } | ||
5205 | _ACEOF | ||
5206 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5207 | if { (ac_try="$ac_link" | ||
5208 | case "(($ac_try" in | ||
5209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5210 | *) ac_try_echo=$ac_try;; | ||
5211 | esac | ||
5212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5213 | (eval "$ac_link") 2>conftest.er1 | ||
5214 | ac_status=$? | ||
5215 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5216 | rm -f conftest.er1 | ||
5217 | cat conftest.err >&5 | ||
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5219 | (exit $ac_status); } && | ||
5220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5221 | { (case "(($ac_try" in | ||
5222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5223 | *) ac_try_echo=$ac_try;; | ||
5224 | esac | ||
5225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5226 | (eval "$ac_try") 2>&5 | ||
5227 | ac_status=$? | ||
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5229 | (exit $ac_status); }; } && | ||
5230 | { ac_try='test -s conftest$ac_exeext' | ||
5231 | { (case "(($ac_try" in | ||
5232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5233 | *) ac_try_echo=$ac_try;; | ||
5234 | esac | ||
5235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5236 | (eval "$ac_try") 2>&5 | ||
5237 | ac_status=$? | ||
5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5239 | (exit $ac_status); }; }; then | ||
5240 | eval "$as_ac_var=yes" | ||
5241 | else | ||
5242 | echo "$as_me: failed program was:" >&5 | ||
5243 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5244 | |||
5245 | eval "$as_ac_var=no" | ||
5246 | fi | ||
5247 | |||
5248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5249 | conftest$ac_exeext conftest.$ac_ext | ||
5250 | fi | ||
5251 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
5252 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5253 | echo "${ECHO_T}$ac_res" >&6; } | ||
5254 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5255 | cat >>confdefs.h <<_ACEOF | ||
5256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5257 | _ACEOF | ||
5258 | |||
5259 | fi | ||
5260 | done | ||
5261 | |||
5262 | LIBS="$glib_save_LIBS" | ||
5263 | |||
5264 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
5265 | gt_cv_func_dgettext_libc=no | ||
5266 | else | ||
5267 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
5268 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
5269 | gt_cv_func_dgettext_libintl=no | ||
5270 | fi | ||
5271 | fi | ||
5272 | fi | ||
5273 | fi | ||
5274 | |||
5275 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
5276 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
5277 | gt_cv_have_gettext=yes | ||
5278 | fi | ||
5279 | |||
5280 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
5281 | INTLLIBS="-lintl $libintl_extra_libs" | ||
5282 | fi | ||
5283 | |||
5284 | if test "$gt_cv_have_gettext" = "yes"; then | ||
5285 | |||
5286 | cat >>confdefs.h <<\_ACEOF | ||
5287 | #define HAVE_GETTEXT 1 | ||
5288 | _ACEOF | ||
5289 | |||
5290 | # Extract the first word of "msgfmt", so it can be a program name with args. | ||
5291 | set dummy msgfmt; ac_word=$2 | ||
5292 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5294 | if test "${ac_cv_path_MSGFMT+set}" = set; then | ||
5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5296 | else | ||
5297 | case "$MSGFMT" in | ||
5298 | /*) | ||
5299 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | ||
5300 | ;; | ||
5301 | *) | ||
5302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
5303 | for ac_dir in $PATH; do | ||
5304 | test -z "$ac_dir" && ac_dir=. | ||
5305 | if test -f $ac_dir/$ac_word; then | ||
5306 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | ||
5307 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | ||
5308 | break | ||
5309 | fi | ||
5310 | fi | ||
5311 | done | ||
5312 | IFS="$ac_save_ifs" | ||
5313 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | ||
5314 | ;; | ||
5315 | esac | ||
5316 | fi | ||
5317 | MSGFMT="$ac_cv_path_MSGFMT" | ||
5318 | if test "$MSGFMT" != "no"; then | ||
5319 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 | ||
5320 | echo "${ECHO_T}$MSGFMT" >&6; } | ||
5321 | else | ||
5322 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5323 | echo "${ECHO_T}no" >&6; } | ||
5324 | fi | ||
5325 | if test "$MSGFMT" != "no"; then | ||
5326 | glib_save_LIBS="$LIBS" | ||
5327 | LIBS="$LIBS $INTLLIBS" | ||
5328 | |||
5329 | for ac_func in dcgettext | ||
5330 | do | ||
5331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5332 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
5334 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5336 | else | ||
5337 | cat >conftest.$ac_ext <<_ACEOF | ||
5338 | /* confdefs.h. */ | ||
5339 | _ACEOF | ||
5340 | cat confdefs.h >>conftest.$ac_ext | ||
5341 | cat >>conftest.$ac_ext <<_ACEOF | ||
5342 | /* end confdefs.h. */ | ||
5343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5345 | #define $ac_func innocuous_$ac_func | ||
5346 | |||
5347 | /* System header to define __stub macros and hopefully few prototypes, | ||
5348 | which can conflict with char $ac_func (); below. | ||
5349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5350 | <limits.h> exists even on freestanding compilers. */ | ||
5351 | |||
5352 | #ifdef __STDC__ | ||
5353 | # include <limits.h> | ||
5354 | #else | ||
5355 | # include <assert.h> | ||
5356 | #endif | ||
5357 | |||
5358 | #undef $ac_func | ||
5359 | |||
5360 | /* Override any GCC internal prototype to avoid an error. | ||
5361 | Use char because int might match the return type of a GCC | ||
5362 | builtin and then its argument prototype would still apply. */ | ||
5363 | #ifdef __cplusplus | ||
5364 | extern "C" | ||
5365 | #endif | ||
5366 | char $ac_func (); | ||
5367 | /* The GNU C library defines this for functions which it implements | ||
5368 | to always fail with ENOSYS. Some functions are actually named | ||
5369 | something starting with __ and the normal name is an alias. */ | ||
5370 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
5371 | choke me | ||
5372 | #endif | ||
5373 | |||
5374 | int | ||
5375 | main () | ||
5376 | { | ||
5377 | return $ac_func (); | ||
5378 | ; | ||
5379 | return 0; | ||
5380 | } | ||
5381 | _ACEOF | ||
5382 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5383 | if { (ac_try="$ac_link" | ||
5384 | case "(($ac_try" in | ||
5385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5386 | *) ac_try_echo=$ac_try;; | ||
5387 | esac | ||
5388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5389 | (eval "$ac_link") 2>conftest.er1 | ||
5390 | ac_status=$? | ||
5391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5392 | rm -f conftest.er1 | ||
5393 | cat conftest.err >&5 | ||
5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5395 | (exit $ac_status); } && | ||
5396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5397 | { (case "(($ac_try" in | ||
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5399 | *) ac_try_echo=$ac_try;; | ||
5400 | esac | ||
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5402 | (eval "$ac_try") 2>&5 | ||
5403 | ac_status=$? | ||
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5405 | (exit $ac_status); }; } && | ||
5406 | { ac_try='test -s conftest$ac_exeext' | ||
5407 | { (case "(($ac_try" in | ||
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5409 | *) ac_try_echo=$ac_try;; | ||
5410 | esac | ||
5411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5412 | (eval "$ac_try") 2>&5 | ||
5413 | ac_status=$? | ||
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5415 | (exit $ac_status); }; }; then | ||
5416 | eval "$as_ac_var=yes" | ||
5417 | else | ||
5418 | echo "$as_me: failed program was:" >&5 | ||
5419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5420 | |||
5421 | eval "$as_ac_var=no" | ||
5422 | fi | ||
5423 | |||
5424 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5425 | conftest$ac_exeext conftest.$ac_ext | ||
5426 | fi | ||
5427 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
5428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5429 | echo "${ECHO_T}$ac_res" >&6; } | ||
5430 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5431 | cat >>confdefs.h <<_ACEOF | ||
5432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5433 | _ACEOF | ||
5434 | |||
5435 | fi | ||
5436 | done | ||
5437 | |||
5438 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | ||
5439 | set dummy gmsgfmt; ac_word=$2 | ||
5440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5442 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | ||
5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5444 | else | ||
5445 | case $GMSGFMT in | ||
5446 | [\\/]* | ?:[\\/]*) | ||
5447 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | ||
5448 | ;; | ||
5449 | *) | ||
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5451 | for as_dir in $PATH | ||
5452 | do | ||
5453 | IFS=$as_save_IFS | ||
5454 | test -z "$as_dir" && as_dir=. | ||
5455 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5457 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | ||
5458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5459 | break 2 | ||
5460 | fi | ||
5461 | done | ||
5462 | done | ||
5463 | IFS=$as_save_IFS | ||
5464 | |||
5465 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | ||
5466 | ;; | ||
5467 | esac | ||
5468 | fi | ||
5469 | GMSGFMT=$ac_cv_path_GMSGFMT | ||
5470 | if test -n "$GMSGFMT"; then | ||
5471 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | ||
5472 | echo "${ECHO_T}$GMSGFMT" >&6; } | ||
5473 | else | ||
5474 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5475 | echo "${ECHO_T}no" >&6; } | ||
5476 | fi | ||
5477 | |||
5478 | |||
5479 | # Extract the first word of "xgettext", so it can be a program name with args. | ||
5480 | set dummy xgettext; ac_word=$2 | ||
5481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5483 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | ||
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5485 | else | ||
5486 | case "$XGETTEXT" in | ||
5487 | /*) | ||
5488 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | ||
5489 | ;; | ||
5490 | *) | ||
5491 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
5492 | for ac_dir in $PATH; do | ||
5493 | test -z "$ac_dir" && ac_dir=. | ||
5494 | if test -f $ac_dir/$ac_word; then | ||
5495 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | ||
5496 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | ||
5497 | break | ||
5498 | fi | ||
5499 | fi | ||
5500 | done | ||
5501 | IFS="$ac_save_ifs" | ||
5502 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | ||
5503 | ;; | ||
5504 | esac | ||
5505 | fi | ||
5506 | XGETTEXT="$ac_cv_path_XGETTEXT" | ||
5507 | if test "$XGETTEXT" != ":"; then | ||
5508 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | ||
5509 | echo "${ECHO_T}$XGETTEXT" >&6; } | ||
5510 | else | ||
5511 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5512 | echo "${ECHO_T}no" >&6; } | ||
5513 | fi | ||
5514 | |||
5515 | cat >conftest.$ac_ext <<_ACEOF | ||
5516 | /* confdefs.h. */ | ||
5517 | _ACEOF | ||
5518 | cat confdefs.h >>conftest.$ac_ext | ||
5519 | cat >>conftest.$ac_ext <<_ACEOF | ||
5520 | /* end confdefs.h. */ | ||
5521 | |||
5522 | int | ||
5523 | main () | ||
5524 | { | ||
5525 | extern int _nl_msg_cat_cntr; | ||
5526 | return _nl_msg_cat_cntr | ||
5527 | ; | ||
5528 | return 0; | ||
5529 | } | ||
5530 | _ACEOF | ||
5531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5532 | if { (ac_try="$ac_link" | ||
5533 | case "(($ac_try" in | ||
5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5535 | *) ac_try_echo=$ac_try;; | ||
5536 | esac | ||
5537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5538 | (eval "$ac_link") 2>conftest.er1 | ||
5539 | ac_status=$? | ||
5540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5541 | rm -f conftest.er1 | ||
5542 | cat conftest.err >&5 | ||
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5544 | (exit $ac_status); } && | ||
5545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5546 | { (case "(($ac_try" in | ||
5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5548 | *) ac_try_echo=$ac_try;; | ||
5549 | esac | ||
5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5551 | (eval "$ac_try") 2>&5 | ||
5552 | ac_status=$? | ||
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5554 | (exit $ac_status); }; } && | ||
5555 | { ac_try='test -s conftest$ac_exeext' | ||
5556 | { (case "(($ac_try" in | ||
5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5558 | *) ac_try_echo=$ac_try;; | ||
5559 | esac | ||
5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5561 | (eval "$ac_try") 2>&5 | ||
5562 | ac_status=$? | ||
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5564 | (exit $ac_status); }; }; then | ||
5565 | CATOBJEXT=.gmo | ||
5566 | DATADIRNAME=share | ||
5567 | else | ||
5568 | echo "$as_me: failed program was:" >&5 | ||
5569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5570 | |||
5571 | case $host in | ||
5572 | *-*-solaris*) | ||
5573 | { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 | ||
5574 | echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } | ||
5575 | if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then | ||
5576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5577 | else | ||
5578 | cat >conftest.$ac_ext <<_ACEOF | ||
5579 | /* confdefs.h. */ | ||
5580 | _ACEOF | ||
5581 | cat confdefs.h >>conftest.$ac_ext | ||
5582 | cat >>conftest.$ac_ext <<_ACEOF | ||
5583 | /* end confdefs.h. */ | ||
5584 | /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. | ||
5585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5586 | #define bind_textdomain_codeset innocuous_bind_textdomain_codeset | ||
5587 | |||
5588 | /* System header to define __stub macros and hopefully few prototypes, | ||
5589 | which can conflict with char bind_textdomain_codeset (); below. | ||
5590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5591 | <limits.h> exists even on freestanding compilers. */ | ||
5592 | |||
5593 | #ifdef __STDC__ | ||
5594 | # include <limits.h> | ||
5595 | #else | ||
5596 | # include <assert.h> | ||
5597 | #endif | ||
5598 | |||
5599 | #undef bind_textdomain_codeset | ||
5600 | |||
5601 | /* Override any GCC internal prototype to avoid an error. | ||
5602 | Use char because int might match the return type of a GCC | ||
5603 | builtin and then its argument prototype would still apply. */ | ||
5604 | #ifdef __cplusplus | ||
5605 | extern "C" | ||
5606 | #endif | ||
5607 | char bind_textdomain_codeset (); | ||
5608 | /* The GNU C library defines this for functions which it implements | ||
5609 | to always fail with ENOSYS. Some functions are actually named | ||
5610 | something starting with __ and the normal name is an alias. */ | ||
5611 | #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset | ||
5612 | choke me | ||
5613 | #endif | ||
5614 | |||
5615 | int | ||
5616 | main () | ||
5617 | { | ||
5618 | return bind_textdomain_codeset (); | ||
5619 | ; | ||
5620 | return 0; | ||
5621 | } | ||
5622 | _ACEOF | ||
5623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5624 | if { (ac_try="$ac_link" | ||
5625 | case "(($ac_try" in | ||
5626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5627 | *) ac_try_echo=$ac_try;; | ||
5628 | esac | ||
5629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5630 | (eval "$ac_link") 2>conftest.er1 | ||
5631 | ac_status=$? | ||
5632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5633 | rm -f conftest.er1 | ||
5634 | cat conftest.err >&5 | ||
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5636 | (exit $ac_status); } && | ||
5637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5638 | { (case "(($ac_try" in | ||
5639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5640 | *) ac_try_echo=$ac_try;; | ||
5641 | esac | ||
5642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5643 | (eval "$ac_try") 2>&5 | ||
5644 | ac_status=$? | ||
5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5646 | (exit $ac_status); }; } && | ||
5647 | { ac_try='test -s conftest$ac_exeext' | ||
5648 | { (case "(($ac_try" in | ||
5649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5650 | *) ac_try_echo=$ac_try;; | ||
5651 | esac | ||
5652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5653 | (eval "$ac_try") 2>&5 | ||
5654 | ac_status=$? | ||
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5656 | (exit $ac_status); }; }; then | ||
5657 | ac_cv_func_bind_textdomain_codeset=yes | ||
5658 | else | ||
5659 | echo "$as_me: failed program was:" >&5 | ||
5660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5661 | |||
5662 | ac_cv_func_bind_textdomain_codeset=no | ||
5663 | fi | ||
5664 | |||
5665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5666 | conftest$ac_exeext conftest.$ac_ext | ||
5667 | fi | ||
5668 | { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 | ||
5669 | echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } | ||
5670 | if test $ac_cv_func_bind_textdomain_codeset = yes; then | ||
5671 | CATOBJEXT=.gmo | ||
5672 | DATADIRNAME=share | ||
5673 | else | ||
5674 | CATOBJEXT=.mo | ||
5675 | DATADIRNAME=lib | ||
5676 | fi | ||
5677 | |||
5678 | ;; | ||
5679 | *) | ||
5680 | CATOBJEXT=.mo | ||
5681 | DATADIRNAME=lib | ||
5682 | ;; | ||
5683 | esac | ||
5684 | fi | ||
5685 | |||
5686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5687 | conftest$ac_exeext conftest.$ac_ext | ||
5688 | LIBS="$glib_save_LIBS" | ||
5689 | INSTOBJEXT=.mo | ||
5690 | else | ||
5691 | gt_cv_have_gettext=no | ||
5692 | fi | ||
5693 | fi | ||
5694 | |||
5695 | fi | ||
5696 | |||
5697 | |||
5698 | |||
5699 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
5700 | |||
5701 | cat >>confdefs.h <<\_ACEOF | ||
5702 | #define ENABLE_NLS 1 | ||
5703 | _ACEOF | ||
5704 | |||
5705 | fi | ||
5706 | |||
5707 | if test "$XGETTEXT" != ":"; then | ||
5708 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
5709 | : ; | ||
5710 | else | ||
5711 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | ||
5712 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } | ||
5713 | XGETTEXT=":" | ||
5714 | fi | ||
5715 | fi | ||
5716 | |||
5717 | # We need to process the po/ directory. | ||
5718 | POSUB=po | ||
5719 | |||
5720 | ac_config_commands="$ac_config_commands default-1" | ||
5721 | |||
5722 | |||
5723 | for lang in $ALL_LINGUAS; do | ||
5724 | GMOFILES="$GMOFILES $lang.gmo" | ||
5725 | POFILES="$POFILES $lang.po" | ||
5726 | done | ||
5727 | |||
5728 | |||
5729 | |||
5730 | |||
5731 | |||
5732 | |||
5733 | |||
5734 | |||
5735 | |||
5736 | |||
5737 | |||
5738 | |||
5739 | |||
5740 | if test "$gt_cv_have_gettext" = "yes"; then | ||
5741 | if test "x$ALL_LINGUAS" = "x"; then | ||
5742 | LINGUAS= | ||
5743 | else | ||
5744 | { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | ||
5745 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } | ||
5746 | NEW_LINGUAS= | ||
5747 | for presentlang in $ALL_LINGUAS; do | ||
5748 | useit=no | ||
5749 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
5750 | desiredlanguages="$LINGUAS" | ||
5751 | else | ||
5752 | desiredlanguages="$ALL_LINGUAS" | ||
5753 | fi | ||
5754 | for desiredlang in $desiredlanguages; do | ||
5755 | # Use the presentlang catalog if desiredlang is | ||
5756 | # a. equal to presentlang, or | ||
5757 | # b. a variant of presentlang (because in this case, | ||
5758 | # presentlang can be used as a fallback for messages | ||
5759 | # which are not translated in the desiredlang catalog). | ||
5760 | case "$desiredlang" in | ||
5761 | "$presentlang"*) useit=yes;; | ||
5762 | esac | ||
5763 | done | ||
5764 | if test $useit = yes; then | ||
5765 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
5766 | fi | ||
5767 | done | ||
5768 | LINGUAS=$NEW_LINGUAS | ||
5769 | { echo "$as_me:$LINENO: result: $LINGUAS" >&5 | ||
5770 | echo "${ECHO_T}$LINGUAS" >&6; } | ||
5771 | fi | ||
5772 | |||
5773 | if test -n "$LINGUAS"; then | ||
5774 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
5775 | fi | ||
5776 | fi | ||
5777 | |||
5778 | MKINSTALLDIRS= | ||
5779 | if test -n "$ac_aux_dir"; then | ||
5780 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
5781 | fi | ||
5782 | if test -z "$MKINSTALLDIRS"; then | ||
5783 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
5784 | fi | ||
5785 | |||
5786 | |||
5787 | test -d po || mkdir po | ||
5788 | if test "x$srcdir" != "x."; then | ||
5789 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
5790 | posrcprefix="$srcdir/" | ||
5791 | else | ||
5792 | posrcprefix="../$srcdir/" | ||
5793 | fi | ||
5794 | else | ||
5795 | posrcprefix="../" | ||
5796 | fi | ||
5797 | rm -f po/POTFILES | ||
5798 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
5799 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
5800 | |||
5801 | |||
5802 | GETTEXT_PACKAGE=$PACKAGE | ||
5803 | |||
5804 | |||
5805 | # glib 2.0 | ||
5806 | # Check whether --enable-glibtest was given. | ||
5807 | if test "${enable_glibtest+set}" = set; then | ||
5808 | enableval=$enable_glibtest; | ||
5809 | else | ||
5810 | enable_glibtest=yes | ||
5811 | fi | ||
5812 | |||
5813 | |||
5814 | pkg_config_args=glib-2.0 | ||
5815 | for module in . | ||
5816 | do | ||
5817 | case "$module" in | ||
5818 | gmodule) | ||
5819 | pkg_config_args="$pkg_config_args gmodule-2.0" | ||
5820 | ;; | ||
5821 | gmodule-no-export) | ||
5822 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" | ||
5823 | ;; | ||
5824 | gobject) | ||
5825 | pkg_config_args="$pkg_config_args gobject-2.0" | ||
5826 | ;; | ||
5827 | gthread) | ||
5828 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
5829 | ;; | ||
5830 | esac | ||
5831 | done | ||
5832 | |||
5833 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
5834 | set dummy pkg-config; ac_word=$2 | ||
5835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5837 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5839 | else | ||
5840 | case $PKG_CONFIG in | ||
5841 | [\\/]* | ?:[\\/]*) | ||
5842 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
5843 | ;; | ||
5844 | *) | ||
5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5846 | for as_dir in $PATH | ||
5847 | do | ||
5848 | IFS=$as_save_IFS | ||
5849 | test -z "$as_dir" && as_dir=. | ||
5850 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5852 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
5853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5854 | break 2 | ||
5855 | fi | ||
5856 | done | ||
5857 | done | ||
5858 | IFS=$as_save_IFS | ||
5859 | |||
5860 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
5861 | ;; | ||
5862 | esac | ||
5863 | fi | ||
5864 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
5865 | if test -n "$PKG_CONFIG"; then | ||
5866 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
5867 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
5868 | else | ||
5869 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5870 | echo "${ECHO_T}no" >&6; } | ||
5871 | fi | ||
5872 | |||
5873 | |||
5874 | |||
5875 | no_glib="" | ||
5876 | |||
5877 | if test x$PKG_CONFIG != xno ; then | ||
5878 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | ||
5879 | : | ||
5880 | else | ||
5881 | echo *** pkg-config too old; version 0.7 or better required. | ||
5882 | no_glib=yes | ||
5883 | PKG_CONFIG=no | ||
5884 | fi | ||
5885 | else | ||
5886 | no_glib=yes | ||
5887 | fi | ||
5888 | |||
5889 | min_glib_version=2.4.0 | ||
5890 | { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 | ||
5891 | echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } | ||
5892 | |||
5893 | if test x$PKG_CONFIG != xno ; then | ||
5894 | ## don't try to run the test against uninstalled libtool libs | ||
5895 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
5896 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" | ||
5897 | enable_glibtest=no | ||
5898 | fi | ||
5899 | |||
5900 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then | ||
5901 | : | ||
5902 | else | ||
5903 | no_glib=yes | ||
5904 | fi | ||
5905 | fi | ||
5906 | |||
5907 | if test x"$no_glib" = x ; then | ||
5908 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` | ||
5909 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` | ||
5910 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
5911 | |||
5912 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` | ||
5913 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` | ||
5914 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
5916 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
5918 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5919 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
5920 | if test "x$enable_glibtest" = "xyes" ; then | ||
5921 | ac_save_CFLAGS="$CFLAGS" | ||
5922 | ac_save_LIBS="$LIBS" | ||
5923 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
5924 | LIBS="$GLIB_LIBS $LIBS" | ||
5925 | rm -f conf.glibtest | ||
5926 | if test "$cross_compiling" = yes; then | ||
5927 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
5928 | else | ||
5929 | cat >conftest.$ac_ext <<_ACEOF | ||
5930 | /* confdefs.h. */ | ||
5931 | _ACEOF | ||
5932 | cat confdefs.h >>conftest.$ac_ext | ||
5933 | cat >>conftest.$ac_ext <<_ACEOF | ||
5934 | /* end confdefs.h. */ | ||
5935 | |||
5936 | #include <glib.h> | ||
5937 | #include <stdio.h> | ||
5938 | #include <stdlib.h> | ||
5939 | |||
5940 | int | ||
5941 | main () | ||
5942 | { | ||
5943 | int major, minor, micro; | ||
5944 | char *tmp_version; | ||
5945 | |||
5946 | system ("touch conf.glibtest"); | ||
5947 | |||
5948 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
5949 | tmp_version = g_strdup("$min_glib_version"); | ||
5950 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
5951 | printf("%s, bad version string\n", "$min_glib_version"); | ||
5952 | exit(1); | ||
5953 | } | ||
5954 | |||
5955 | if ((glib_major_version != $glib_config_major_version) || | ||
5956 | (glib_minor_version != $glib_config_minor_version) || | ||
5957 | (glib_micro_version != $glib_config_micro_version)) | ||
5958 | { | ||
5959 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
5960 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
5961 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5962 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
5963 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); | ||
5964 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
5965 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
5966 | printf("*** required on your system.\n"); | ||
5967 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
5968 | printf("*** to point to the correct configuration files\n"); | ||
5969 | } | ||
5970 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
5971 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
5972 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
5973 | { | ||
5974 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
5975 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
5976 | printf("*** library (version %d.%d.%d)\n", | ||
5977 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5978 | } | ||
5979 | else | ||
5980 | { | ||
5981 | if ((glib_major_version > major) || | ||
5982 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
5983 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
5984 | { | ||
5985 | return 0; | ||
5986 | } | ||
5987 | else | ||
5988 | { | ||
5989 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
5990 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5991 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
5992 | major, minor, micro); | ||
5993 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
5994 | printf("***\n"); | ||
5995 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
5996 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
5997 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
5998 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
5999 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
6000 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6001 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
6002 | } | ||
6003 | } | ||
6004 | return 1; | ||
6005 | } | ||
6006 | |||
6007 | _ACEOF | ||
6008 | rm -f conftest$ac_exeext | ||
6009 | if { (ac_try="$ac_link" | ||
6010 | case "(($ac_try" in | ||
6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6012 | *) ac_try_echo=$ac_try;; | ||
6013 | esac | ||
6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6015 | (eval "$ac_link") 2>&5 | ||
6016 | ac_status=$? | ||
6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6019 | { (case "(($ac_try" in | ||
6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6021 | *) ac_try_echo=$ac_try;; | ||
6022 | esac | ||
6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6024 | (eval "$ac_try") 2>&5 | ||
6025 | ac_status=$? | ||
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6027 | (exit $ac_status); }; }; then | ||
6028 | : | ||
6029 | else | ||
6030 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6031 | echo "$as_me: failed program was:" >&5 | ||
6032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6033 | |||
6034 | ( exit $ac_status ) | ||
6035 | no_glib=yes | ||
6036 | fi | ||
6037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6038 | fi | ||
6039 | |||
6040 | |||
6041 | CFLAGS="$ac_save_CFLAGS" | ||
6042 | LIBS="$ac_save_LIBS" | ||
6043 | fi | ||
6044 | fi | ||
6045 | if test "x$no_glib" = x ; then | ||
6046 | { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 | ||
6047 | echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } | ||
6048 | : | ||
6049 | else | ||
6050 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6051 | echo "${ECHO_T}no" >&6; } | ||
6052 | if test "$PKG_CONFIG" = "no" ; then | ||
6053 | echo "*** A new enough version of pkg-config was not found." | ||
6054 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" | ||
6055 | else | ||
6056 | if test -f conf.glibtest ; then | ||
6057 | : | ||
6058 | else | ||
6059 | echo "*** Could not run GLIB test program, checking why..." | ||
6060 | ac_save_CFLAGS="$CFLAGS" | ||
6061 | ac_save_LIBS="$LIBS" | ||
6062 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
6063 | LIBS="$LIBS $GLIB_LIBS" | ||
6064 | cat >conftest.$ac_ext <<_ACEOF | ||
6065 | /* confdefs.h. */ | ||
6066 | _ACEOF | ||
6067 | cat confdefs.h >>conftest.$ac_ext | ||
6068 | cat >>conftest.$ac_ext <<_ACEOF | ||
6069 | /* end confdefs.h. */ | ||
6070 | |||
6071 | #include <glib.h> | ||
6072 | #include <stdio.h> | ||
6073 | |||
6074 | int | ||
6075 | main () | ||
6076 | { | ||
6077 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ||
6078 | ; | ||
6079 | return 0; | ||
6080 | } | ||
6081 | _ACEOF | ||
6082 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6083 | if { (ac_try="$ac_link" | ||
6084 | case "(($ac_try" in | ||
6085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6086 | *) ac_try_echo=$ac_try;; | ||
6087 | esac | ||
6088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6089 | (eval "$ac_link") 2>conftest.er1 | ||
6090 | ac_status=$? | ||
6091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6092 | rm -f conftest.er1 | ||
6093 | cat conftest.err >&5 | ||
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6095 | (exit $ac_status); } && | ||
6096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6097 | { (case "(($ac_try" in | ||
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6099 | *) ac_try_echo=$ac_try;; | ||
6100 | esac | ||
6101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6102 | (eval "$ac_try") 2>&5 | ||
6103 | ac_status=$? | ||
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6105 | (exit $ac_status); }; } && | ||
6106 | { ac_try='test -s conftest$ac_exeext' | ||
6107 | { (case "(($ac_try" in | ||
6108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6109 | *) ac_try_echo=$ac_try;; | ||
6110 | esac | ||
6111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6112 | (eval "$ac_try") 2>&5 | ||
6113 | ac_status=$? | ||
6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6115 | (exit $ac_status); }; }; then | ||
6116 | echo "*** The test program compiled, but did not run. This usually means" | ||
6117 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
6118 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
6119 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6120 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6121 | echo "*** is required on your system" | ||
6122 | echo "***" | ||
6123 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6124 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6125 | else | ||
6126 | echo "$as_me: failed program was:" >&5 | ||
6127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6128 | |||
6129 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6130 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed." | ||
6131 | fi | ||
6132 | |||
6133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6134 | conftest$ac_exeext conftest.$ac_ext | ||
6135 | CFLAGS="$ac_save_CFLAGS" | ||
6136 | LIBS="$ac_save_LIBS" | ||
6137 | fi | ||
6138 | fi | ||
6139 | GLIB_CFLAGS="" | ||
6140 | GLIB_LIBS="" | ||
6141 | GLIB_GENMARSHAL="" | ||
6142 | GOBJECT_QUERY="" | ||
6143 | GLIB_MKENUMS="" | ||
6144 | { { echo "$as_me:$LINENO: error: GLib >= 2.4.0 is required" >&5 | ||
6145 | echo "$as_me: error: GLib >= 2.4.0 is required" >&2;} | ||
6146 | { (exit 1); exit 1; }; } | ||
6147 | fi | ||
6148 | |||
6149 | |||
6150 | |||
6151 | |||
6152 | |||
6153 | rm -f conf.glibtest | ||
6154 | |||
6155 | |||
6156 | # gtk+ 2.0 | ||
6157 | # Check whether --enable-gtktest was given. | ||
6158 | if test "${enable_gtktest+set}" = set; then | ||
6159 | enableval=$enable_gtktest; | ||
6160 | else | ||
6161 | enable_gtktest=yes | ||
6162 | fi | ||
6163 | |||
6164 | |||
6165 | pkg_config_args=gtk+-2.0 | ||
6166 | for module in . | ||
6167 | do | ||
6168 | case "$module" in | ||
6169 | gthread) | ||
6170 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
6171 | ;; | ||
6172 | esac | ||
6173 | done | ||
6174 | |||
6175 | no_gtk="" | ||
6176 | |||
6177 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6178 | set dummy pkg-config; ac_word=$2 | ||
6179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6181 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6183 | else | ||
6184 | case $PKG_CONFIG in | ||
6185 | [\\/]* | ?:[\\/]*) | ||
6186 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6187 | ;; | ||
6188 | *) | ||
6189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6190 | for as_dir in $PATH | ||
6191 | do | ||
6192 | IFS=$as_save_IFS | ||
6193 | test -z "$as_dir" && as_dir=. | ||
6194 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6196 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6198 | break 2 | ||
6199 | fi | ||
6200 | done | ||
6201 | done | ||
6202 | IFS=$as_save_IFS | ||
6203 | |||
6204 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
6205 | ;; | ||
6206 | esac | ||
6207 | fi | ||
6208 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6209 | if test -n "$PKG_CONFIG"; then | ||
6210 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6211 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6212 | else | ||
6213 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6214 | echo "${ECHO_T}no" >&6; } | ||
6215 | fi | ||
6216 | |||
6217 | |||
6218 | |||
6219 | if test x$PKG_CONFIG != xno ; then | ||
6220 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | ||
6221 | : | ||
6222 | else | ||
6223 | echo "*** pkg-config too old; version 0.7 or better required." | ||
6224 | no_gtk=yes | ||
6225 | PKG_CONFIG=no | ||
6226 | fi | ||
6227 | else | ||
6228 | no_gtk=yes | ||
6229 | fi | ||
6230 | |||
6231 | min_gtk_version=2.4.0 | ||
6232 | { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | ||
6233 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } | ||
6234 | |||
6235 | if test x$PKG_CONFIG != xno ; then | ||
6236 | ## don't try to run the test against uninstalled libtool libs | ||
6237 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
6238 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | ||
6239 | enable_gtktest=no | ||
6240 | fi | ||
6241 | |||
6242 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | ||
6243 | : | ||
6244 | else | ||
6245 | no_gtk=yes | ||
6246 | fi | ||
6247 | fi | ||
6248 | |||
6249 | if test x"$no_gtk" = x ; then | ||
6250 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | ||
6251 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | ||
6252 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
6254 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6255 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
6256 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6257 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
6258 | if test "x$enable_gtktest" = "xyes" ; then | ||
6259 | ac_save_CFLAGS="$CFLAGS" | ||
6260 | ac_save_LIBS="$LIBS" | ||
6261 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
6262 | LIBS="$GTK_LIBS $LIBS" | ||
6263 | rm -f conf.gtktest | ||
6264 | if test "$cross_compiling" = yes; then | ||
6265 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
6266 | else | ||
6267 | cat >conftest.$ac_ext <<_ACEOF | ||
6268 | /* confdefs.h. */ | ||
6269 | _ACEOF | ||
6270 | cat confdefs.h >>conftest.$ac_ext | ||
6271 | cat >>conftest.$ac_ext <<_ACEOF | ||
6272 | /* end confdefs.h. */ | ||
6273 | |||
6274 | #include <gtk/gtk.h> | ||
6275 | #include <stdio.h> | ||
6276 | #include <stdlib.h> | ||
6277 | |||
6278 | int | ||
6279 | main () | ||
6280 | { | ||
6281 | int major, minor, micro; | ||
6282 | char *tmp_version; | ||
6283 | |||
6284 | system ("touch conf.gtktest"); | ||
6285 | |||
6286 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
6287 | tmp_version = g_strdup("$min_gtk_version"); | ||
6288 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
6289 | printf("%s, bad version string\n", "$min_gtk_version"); | ||
6290 | exit(1); | ||
6291 | } | ||
6292 | |||
6293 | if ((gtk_major_version != $gtk_config_major_version) || | ||
6294 | (gtk_minor_version != $gtk_config_minor_version) || | ||
6295 | (gtk_micro_version != $gtk_config_micro_version)) | ||
6296 | { | ||
6297 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | ||
6298 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | ||
6299 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6300 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
6301 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | ||
6302 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
6303 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
6304 | printf("*** required on your system.\n"); | ||
6305 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
6306 | printf("*** to point to the correct configuration files\n"); | ||
6307 | } | ||
6308 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | ||
6309 | (gtk_minor_version != GTK_MINOR_VERSION) || | ||
6310 | (gtk_micro_version != GTK_MICRO_VERSION)) | ||
6311 | { | ||
6312 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | ||
6313 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | ||
6314 | printf("*** library (version %d.%d.%d)\n", | ||
6315 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6316 | } | ||
6317 | else | ||
6318 | { | ||
6319 | if ((gtk_major_version > major) || | ||
6320 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | ||
6321 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | ||
6322 | { | ||
6323 | return 0; | ||
6324 | } | ||
6325 | else | ||
6326 | { | ||
6327 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | ||
6328 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6329 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | ||
6330 | major, minor, micro); | ||
6331 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | ||
6332 | printf("***\n"); | ||
6333 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
6334 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
6335 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
6336 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
6337 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
6338 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6339 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
6340 | } | ||
6341 | } | ||
6342 | return 1; | ||
6343 | } | ||
6344 | |||
6345 | _ACEOF | ||
6346 | rm -f conftest$ac_exeext | ||
6347 | if { (ac_try="$ac_link" | ||
6348 | case "(($ac_try" in | ||
6349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6350 | *) ac_try_echo=$ac_try;; | ||
6351 | esac | ||
6352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6353 | (eval "$ac_link") 2>&5 | ||
6354 | ac_status=$? | ||
6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6357 | { (case "(($ac_try" in | ||
6358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6359 | *) ac_try_echo=$ac_try;; | ||
6360 | esac | ||
6361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6362 | (eval "$ac_try") 2>&5 | ||
6363 | ac_status=$? | ||
6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6365 | (exit $ac_status); }; }; then | ||
6366 | : | ||
6367 | else | ||
6368 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6369 | echo "$as_me: failed program was:" >&5 | ||
6370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6371 | |||
6372 | ( exit $ac_status ) | ||
6373 | no_gtk=yes | ||
6374 | fi | ||
6375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6376 | fi | ||
6377 | |||
6378 | |||
6379 | CFLAGS="$ac_save_CFLAGS" | ||
6380 | LIBS="$ac_save_LIBS" | ||
6381 | fi | ||
6382 | fi | ||
6383 | if test "x$no_gtk" = x ; then | ||
6384 | { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | ||
6385 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | ||
6386 | : | ||
6387 | else | ||
6388 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6389 | echo "${ECHO_T}no" >&6; } | ||
6390 | if test "$PKG_CONFIG" = "no" ; then | ||
6391 | echo "*** A new enough version of pkg-config was not found." | ||
6392 | echo "*** See http://pkgconfig.sourceforge.net" | ||
6393 | else | ||
6394 | if test -f conf.gtktest ; then | ||
6395 | : | ||
6396 | else | ||
6397 | echo "*** Could not run GTK+ test program, checking why..." | ||
6398 | ac_save_CFLAGS="$CFLAGS" | ||
6399 | ac_save_LIBS="$LIBS" | ||
6400 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
6401 | LIBS="$LIBS $GTK_LIBS" | ||
6402 | cat >conftest.$ac_ext <<_ACEOF | ||
6403 | /* confdefs.h. */ | ||
6404 | _ACEOF | ||
6405 | cat confdefs.h >>conftest.$ac_ext | ||
6406 | cat >>conftest.$ac_ext <<_ACEOF | ||
6407 | /* end confdefs.h. */ | ||
6408 | |||
6409 | #include <gtk/gtk.h> | ||
6410 | #include <stdio.h> | ||
6411 | |||
6412 | int | ||
6413 | main () | ||
6414 | { | ||
6415 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | ||
6416 | ; | ||
6417 | return 0; | ||
6418 | } | ||
6419 | _ACEOF | ||
6420 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6421 | if { (ac_try="$ac_link" | ||
6422 | case "(($ac_try" in | ||
6423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6424 | *) ac_try_echo=$ac_try;; | ||
6425 | esac | ||
6426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6427 | (eval "$ac_link") 2>conftest.er1 | ||
6428 | ac_status=$? | ||
6429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6430 | rm -f conftest.er1 | ||
6431 | cat conftest.err >&5 | ||
6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6433 | (exit $ac_status); } && | ||
6434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6435 | { (case "(($ac_try" in | ||
6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6437 | *) ac_try_echo=$ac_try;; | ||
6438 | esac | ||
6439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6440 | (eval "$ac_try") 2>&5 | ||
6441 | ac_status=$? | ||
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6443 | (exit $ac_status); }; } && | ||
6444 | { ac_try='test -s conftest$ac_exeext' | ||
6445 | { (case "(($ac_try" in | ||
6446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6447 | *) ac_try_echo=$ac_try;; | ||
6448 | esac | ||
6449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6450 | (eval "$ac_try") 2>&5 | ||
6451 | ac_status=$? | ||
6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6453 | (exit $ac_status); }; }; then | ||
6454 | echo "*** The test program compiled, but did not run. This usually means" | ||
6455 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | ||
6456 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | ||
6457 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6458 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6459 | echo "*** is required on your system" | ||
6460 | echo "***" | ||
6461 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6462 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6463 | else | ||
6464 | echo "$as_me: failed program was:" >&5 | ||
6465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6466 | |||
6467 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6468 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | ||
6469 | fi | ||
6470 | |||
6471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6472 | conftest$ac_exeext conftest.$ac_ext | ||
6473 | CFLAGS="$ac_save_CFLAGS" | ||
6474 | LIBS="$ac_save_LIBS" | ||
6475 | fi | ||
6476 | fi | ||
6477 | GTK_CFLAGS="" | ||
6478 | GTK_LIBS="" | ||
6479 | { { echo "$as_me:$LINENO: error: GTK+ >= 2.4.0 is required" >&5 | ||
6480 | echo "$as_me: error: GTK+ >= 2.4.0 is required" >&2;} | ||
6481 | { (exit 1); exit 1; }; } | ||
6482 | fi | ||
6483 | |||
6484 | |||
6485 | rm -f conf.gtktest | ||
6486 | |||
6487 | |||
6488 | # libglade 2.0 | ||
6489 | |||
6490 | |||
6491 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
6492 | if test -n "$ac_tool_prefix"; then | ||
6493 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
6494 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
6495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6497 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6499 | else | ||
6500 | case $PKG_CONFIG in | ||
6501 | [\\/]* | ?:[\\/]*) | ||
6502 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6503 | ;; | ||
6504 | *) | ||
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6506 | for as_dir in $PATH | ||
6507 | do | ||
6508 | IFS=$as_save_IFS | ||
6509 | test -z "$as_dir" && as_dir=. | ||
6510 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6512 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6514 | break 2 | ||
6515 | fi | ||
6516 | done | ||
6517 | done | ||
6518 | IFS=$as_save_IFS | ||
6519 | |||
6520 | ;; | ||
6521 | esac | ||
6522 | fi | ||
6523 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6524 | if test -n "$PKG_CONFIG"; then | ||
6525 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6526 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6527 | else | ||
6528 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6529 | echo "${ECHO_T}no" >&6; } | ||
6530 | fi | ||
6531 | |||
6532 | |||
6533 | fi | ||
6534 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
6535 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
6536 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6537 | set dummy pkg-config; ac_word=$2 | ||
6538 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6540 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | ||
6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6542 | else | ||
6543 | case $ac_pt_PKG_CONFIG in | ||
6544 | [\\/]* | ?:[\\/]*) | ||
6545 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
6546 | ;; | ||
6547 | *) | ||
6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6549 | for as_dir in $PATH | ||
6550 | do | ||
6551 | IFS=$as_save_IFS | ||
6552 | test -z "$as_dir" && as_dir=. | ||
6553 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6555 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6557 | break 2 | ||
6558 | fi | ||
6559 | done | ||
6560 | done | ||
6561 | IFS=$as_save_IFS | ||
6562 | |||
6563 | ;; | ||
6564 | esac | ||
6565 | fi | ||
6566 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
6567 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
6568 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | ||
6569 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | ||
6570 | else | ||
6571 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6572 | echo "${ECHO_T}no" >&6; } | ||
6573 | fi | ||
6574 | |||
6575 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
6576 | PKG_CONFIG="" | ||
6577 | else | ||
6578 | case $cross_compiling:$ac_tool_warned in | ||
6579 | yes:) | ||
6580 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6581 | whose name does not start with the host triplet. If you think this | ||
6582 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6583 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6584 | whose name does not start with the host triplet. If you think this | ||
6585 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6586 | ac_tool_warned=yes ;; | ||
6587 | esac | ||
6588 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
6589 | fi | ||
6590 | else | ||
6591 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
6592 | fi | ||
6593 | |||
6594 | fi | ||
6595 | if test -n "$PKG_CONFIG"; then | ||
6596 | _pkg_min_version=0.9.0 | ||
6597 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
6598 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | ||
6599 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
6600 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6601 | echo "${ECHO_T}yes" >&6; } | ||
6602 | else | ||
6603 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6604 | echo "${ECHO_T}no" >&6; } | ||
6605 | PKG_CONFIG="" | ||
6606 | fi | ||
6607 | |||
6608 | fi | ||
6609 | |||
6610 | pkg_failed=no | ||
6611 | { echo "$as_me:$LINENO: checking for LIBGLADE" >&5 | ||
6612 | echo $ECHO_N "checking for LIBGLADE... $ECHO_C" >&6; } | ||
6613 | |||
6614 | if test -n "$PKG_CONFIG"; then | ||
6615 | if test -n "$PKG_CONFIG" && \ | ||
6616 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5 | ||
6617 | ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5 | ||
6618 | ac_status=$? | ||
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6620 | (exit $ac_status); }; then | ||
6621 | pkg_cv_LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.4.0" 2>/dev/null` | ||
6622 | else | ||
6623 | pkg_failed=yes | ||
6624 | fi | ||
6625 | else | ||
6626 | pkg_failed=untried | ||
6627 | fi | ||
6628 | if test -n "$PKG_CONFIG"; then | ||
6629 | if test -n "$PKG_CONFIG" && \ | ||
6630 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5 | ||
6631 | ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5 | ||
6632 | ac_status=$? | ||
6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6634 | (exit $ac_status); }; then | ||
6635 | pkg_cv_LIBGLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.4.0" 2>/dev/null` | ||
6636 | else | ||
6637 | pkg_failed=yes | ||
6638 | fi | ||
6639 | else | ||
6640 | pkg_failed=untried | ||
6641 | fi | ||
6642 | |||
6643 | if test $pkg_failed = yes; then | ||
6644 | LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 2.4.0"` | ||
6645 | # Put the nasty error message in config.log where it belongs | ||
6646 | echo "$LIBGLADE_PKG_ERRORS" 1>&5 | ||
6647 | |||
6648 | { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5 | ||
6649 | echo "$as_me: error: libglade >= 2.4.0 is required" >&2;} | ||
6650 | { (exit 1); exit 1; }; } | ||
6651 | elif test $pkg_failed = untried; then | ||
6652 | { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5 | ||
6653 | echo "$as_me: error: libglade >= 2.4.0 is required" >&2;} | ||
6654 | { (exit 1); exit 1; }; } | ||
6655 | else | ||
6656 | LIBGLADE_CFLAGS=$pkg_cv_LIBGLADE_CFLAGS | ||
6657 | LIBGLADE_LIBS=$pkg_cv_LIBGLADE_LIBS | ||
6658 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6659 | echo "${ECHO_T}yes" >&6; } | ||
6660 | : | ||
6661 | fi | ||
6662 | |||
6663 | # gtkglext | ||
6664 | no_gtkglext="" | ||
6665 | GTKGLEXT_CFLAGS="" | ||
6666 | GTKGLEXT_LIBS="" | ||
6667 | |||
6668 | # GtkGLExt pkg-config module | ||
6669 | gtkglext_module=gtkglext-1.0 | ||
6670 | |||
6671 | # minimum GtkGLExt version | ||
6672 | gtkglext_min_version=1.0.0 | ||
6673 | |||
6674 | # minimum pkg-config version | ||
6675 | pkgconfig_min_version=0.7 | ||
6676 | |||
6677 | # Check whether --enable-gtkglext-test was given. | ||
6678 | if test "${enable_gtkglext_test+set}" = set; then | ||
6679 | enableval=$enable_gtkglext_test; | ||
6680 | else | ||
6681 | enable_gtkglext_test=yes | ||
6682 | fi | ||
6683 | |||
6684 | |||
6685 | pkg_config_modules=$gtkglext_module | ||
6686 | |||
6687 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6688 | set dummy pkg-config; ac_word=$2 | ||
6689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6691 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6693 | else | ||
6694 | case $PKG_CONFIG in | ||
6695 | [\\/]* | ?:[\\/]*) | ||
6696 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6697 | ;; | ||
6698 | *) | ||
6699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6700 | for as_dir in $PATH | ||
6701 | do | ||
6702 | IFS=$as_save_IFS | ||
6703 | test -z "$as_dir" && as_dir=. | ||
6704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6706 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6708 | break 2 | ||
6709 | fi | ||
6710 | done | ||
6711 | done | ||
6712 | IFS=$as_save_IFS | ||
6713 | |||
6714 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
6715 | ;; | ||
6716 | esac | ||
6717 | fi | ||
6718 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6719 | if test -n "$PKG_CONFIG"; then | ||
6720 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6721 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6722 | else | ||
6723 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6724 | echo "${ECHO_T}no" >&6; } | ||
6725 | fi | ||
6726 | |||
6727 | |||
6728 | |||
6729 | if test x$PKG_CONFIG != xno ; then | ||
6730 | if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then | ||
6731 | : | ||
6732 | else | ||
6733 | echo "" | ||
6734 | echo "*** pkg-config too old; version $pkgconfig_min_version or better required." | ||
6735 | no_gtkglext=yes | ||
6736 | PKG_CONFIG=no | ||
6737 | fi | ||
6738 | else | ||
6739 | no_gtkglext=yes | ||
6740 | fi | ||
6741 | |||
6742 | { echo "$as_me:$LINENO: checking for GtkGLExt - version >= $gtkglext_min_version" >&5 | ||
6743 | echo $ECHO_N "checking for GtkGLExt - version >= $gtkglext_min_version... $ECHO_C" >&6; } | ||
6744 | |||
6745 | if test x$PKG_CONFIG != xno ; then | ||
6746 | ## don't try to run the test against uninstalled libtool libs | ||
6747 | if $PKG_CONFIG --uninstalled $pkg_config_modules; then | ||
6748 | echo "" | ||
6749 | echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" | ||
6750 | enable_gtkglext_test=no | ||
6751 | fi | ||
6752 | |||
6753 | if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then | ||
6754 | : | ||
6755 | else | ||
6756 | echo "" | ||
6757 | echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" | ||
6758 | echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" | ||
6759 | echo "*** configuration files." | ||
6760 | no_gtkglext=yes | ||
6761 | enable_gtkglext_test=no | ||
6762 | fi | ||
6763 | fi | ||
6764 | |||
6765 | if test x"$no_gtkglext" = x ; then | ||
6766 | GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` | ||
6767 | GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` | ||
6768 | gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6769 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
6770 | gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6771 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
6772 | gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6773 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
6774 | if test "x$enable_gtkglext_test" = "xyes" ; then | ||
6775 | ac_save_CFLAGS="$CFLAGS" | ||
6776 | ac_save_LIBS="$LIBS" | ||
6777 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
6778 | LIBS="$GTKGLEXT_LIBS $LIBS" | ||
6779 | rm -f conf.gtkgltest | ||
6780 | if test "$cross_compiling" = yes; then | ||
6781 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
6782 | else | ||
6783 | cat >conftest.$ac_ext <<_ACEOF | ||
6784 | /* confdefs.h. */ | ||
6785 | _ACEOF | ||
6786 | cat confdefs.h >>conftest.$ac_ext | ||
6787 | cat >>conftest.$ac_ext <<_ACEOF | ||
6788 | /* end confdefs.h. */ | ||
6789 | |||
6790 | #include <gtk/gtk.h> | ||
6791 | #include <gtk/gtkgl.h> | ||
6792 | #include <stdio.h> | ||
6793 | #include <stdlib.h> | ||
6794 | |||
6795 | int | ||
6796 | main () | ||
6797 | { | ||
6798 | int major, minor, micro; | ||
6799 | char *tmp_version; | ||
6800 | |||
6801 | system ("touch conf.gtkgltest"); | ||
6802 | |||
6803 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
6804 | tmp_version = g_strdup ("$gtkglext_min_version"); | ||
6805 | if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) | ||
6806 | { | ||
6807 | printf ("%s, bad version string\n", "$gtkglext_min_version"); | ||
6808 | exit (1); | ||
6809 | } | ||
6810 | |||
6811 | if ((gtkglext_major_version != $gtkglext_config_major_version) || | ||
6812 | (gtkglext_minor_version != $gtkglext_config_minor_version) || | ||
6813 | (gtkglext_micro_version != $gtkglext_config_micro_version)) | ||
6814 | { | ||
6815 | printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", | ||
6816 | $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); | ||
6817 | printf ("*** library %d.%d.%d was found!\n", | ||
6818 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6819 | printf ("***\n"); | ||
6820 | printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); | ||
6821 | printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); | ||
6822 | printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); | ||
6823 | printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); | ||
6824 | printf ("***\n"); | ||
6825 | printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
6826 | printf ("*** to point to the correct configuration files.\n"); | ||
6827 | } | ||
6828 | else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || | ||
6829 | (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || | ||
6830 | (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) | ||
6831 | { | ||
6832 | printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", | ||
6833 | GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, | ||
6834 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6835 | } | ||
6836 | else | ||
6837 | { | ||
6838 | if ((gtkglext_major_version > major) || | ||
6839 | ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || | ||
6840 | ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) | ||
6841 | { | ||
6842 | return 0; | ||
6843 | } | ||
6844 | else | ||
6845 | { | ||
6846 | printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", | ||
6847 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6848 | printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", | ||
6849 | major, minor, micro); | ||
6850 | printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); | ||
6851 | printf ("***\n"); | ||
6852 | printf ("*** If you have already installed a sufficiently new version, this error\n"); | ||
6853 | printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
6854 | printf ("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
6855 | printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); | ||
6856 | printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); | ||
6857 | printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6858 | printf ("*** so that the correct libraries are found at run-time)\n"); | ||
6859 | } | ||
6860 | } | ||
6861 | return 1; | ||
6862 | } | ||
6863 | |||
6864 | _ACEOF | ||
6865 | rm -f conftest$ac_exeext | ||
6866 | if { (ac_try="$ac_link" | ||
6867 | case "(($ac_try" in | ||
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6869 | *) ac_try_echo=$ac_try;; | ||
6870 | esac | ||
6871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6872 | (eval "$ac_link") 2>&5 | ||
6873 | ac_status=$? | ||
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6876 | { (case "(($ac_try" in | ||
6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6878 | *) ac_try_echo=$ac_try;; | ||
6879 | esac | ||
6880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6881 | (eval "$ac_try") 2>&5 | ||
6882 | ac_status=$? | ||
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6884 | (exit $ac_status); }; }; then | ||
6885 | : | ||
6886 | else | ||
6887 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6888 | echo "$as_me: failed program was:" >&5 | ||
6889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6890 | |||
6891 | ( exit $ac_status ) | ||
6892 | no_gtkglext=yes | ||
6893 | fi | ||
6894 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6895 | fi | ||
6896 | |||
6897 | |||
6898 | CFLAGS="$ac_save_CFLAGS" | ||
6899 | LIBS="$ac_save_LIBS" | ||
6900 | fi | ||
6901 | fi | ||
6902 | if test "x$no_gtkglext" = x ; then | ||
6903 | { echo "$as_me:$LINENO: result: yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&5 | ||
6904 | echo "${ECHO_T}yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&6; } | ||
6905 | : | ||
6906 | else | ||
6907 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6908 | echo "${ECHO_T}no" >&6; } | ||
6909 | if test "$PKG_CONFIG" = "no" ; then | ||
6910 | echo "*** A new enough version of pkg-config was not found." | ||
6911 | echo "*** See http://www.freedesktop.org/software/pkgconfig/." | ||
6912 | elif test "x$enable_gtkglext_test" = "xyes" ; then | ||
6913 | if test -f conf.gtkgltest ; then | ||
6914 | : | ||
6915 | else | ||
6916 | echo "*** Could not run GtkGLExt test program, checking why..." | ||
6917 | ac_save_CFLAGS="$CFLAGS" | ||
6918 | ac_save_LIBS="$LIBS" | ||
6919 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
6920 | LIBS="$LIBS $GTKGLEXT_LIBS" | ||
6921 | cat >conftest.$ac_ext <<_ACEOF | ||
6922 | /* confdefs.h. */ | ||
6923 | _ACEOF | ||
6924 | cat confdefs.h >>conftest.$ac_ext | ||
6925 | cat >>conftest.$ac_ext <<_ACEOF | ||
6926 | /* end confdefs.h. */ | ||
6927 | |||
6928 | #include <gtk/gtk.h> | ||
6929 | #include <gtk/gtkgl.h> | ||
6930 | #include <stdio.h> | ||
6931 | |||
6932 | int | ||
6933 | main () | ||
6934 | { | ||
6935 | return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); | ||
6936 | ; | ||
6937 | return 0; | ||
6938 | } | ||
6939 | _ACEOF | ||
6940 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6941 | if { (ac_try="$ac_link" | ||
6942 | case "(($ac_try" in | ||
6943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6944 | *) ac_try_echo=$ac_try;; | ||
6945 | esac | ||
6946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6947 | (eval "$ac_link") 2>conftest.er1 | ||
6948 | ac_status=$? | ||
6949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6950 | rm -f conftest.er1 | ||
6951 | cat conftest.err >&5 | ||
6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6953 | (exit $ac_status); } && | ||
6954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6955 | { (case "(($ac_try" in | ||
6956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6957 | *) ac_try_echo=$ac_try;; | ||
6958 | esac | ||
6959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6960 | (eval "$ac_try") 2>&5 | ||
6961 | ac_status=$? | ||
6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6963 | (exit $ac_status); }; } && | ||
6964 | { ac_try='test -s conftest$ac_exeext' | ||
6965 | { (case "(($ac_try" in | ||
6966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6967 | *) ac_try_echo=$ac_try;; | ||
6968 | esac | ||
6969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6970 | (eval "$ac_try") 2>&5 | ||
6971 | ac_status=$? | ||
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6973 | (exit $ac_status); }; }; then | ||
6974 | echo "*** The test program compiled, but did not run. This usually means" | ||
6975 | echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" | ||
6976 | echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" | ||
6977 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6978 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6979 | echo "*** is required on your system" | ||
6980 | echo "***" | ||
6981 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6982 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6983 | else | ||
6984 | echo "$as_me: failed program was:" >&5 | ||
6985 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6986 | |||
6987 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6988 | echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed." | ||
6989 | fi | ||
6990 | |||
6991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6992 | conftest$ac_exeext conftest.$ac_ext | ||
6993 | CFLAGS="$ac_save_CFLAGS" | ||
6994 | LIBS="$ac_save_LIBS" | ||
6995 | fi | ||
6996 | fi | ||
6997 | GTKGLEXT_CFLAGS="" | ||
6998 | GTKGLEXT_LIBS="" | ||
6999 | { { echo "$as_me:$LINENO: error: GtkGlExt >= 1.0.0 is required" >&5 | ||
7000 | echo "$as_me: error: GtkGlExt >= 1.0.0 is required" >&2;} | ||
7001 | { (exit 1); exit 1; }; } | ||
7002 | fi | ||
7003 | |||
7004 | |||
7005 | rm -f conf.gtkgltest | ||
7006 | |||
7007 | |||
7008 | # libg3d | ||
7009 | |||
7010 | pkg_failed=no | ||
7011 | { echo "$as_me:$LINENO: checking for LIBG3D" >&5 | ||
7012 | echo $ECHO_N "checking for LIBG3D... $ECHO_C" >&6; } | ||
7013 | |||
7014 | if test -n "$PKG_CONFIG"; then | ||
7015 | if test -n "$PKG_CONFIG" && \ | ||
7016 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5 | ||
7017 | ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5 | ||
7018 | ac_status=$? | ||
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7020 | (exit $ac_status); }; then | ||
7021 | pkg_cv_LIBG3D_CFLAGS=`$PKG_CONFIG --cflags "libg3d >= 0.0.5" 2>/dev/null` | ||
7022 | else | ||
7023 | pkg_failed=yes | ||
7024 | fi | ||
7025 | else | ||
7026 | pkg_failed=untried | ||
7027 | fi | ||
7028 | if test -n "$PKG_CONFIG"; then | ||
7029 | if test -n "$PKG_CONFIG" && \ | ||
7030 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5 | ||
7031 | ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5 | ||
7032 | ac_status=$? | ||
7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7034 | (exit $ac_status); }; then | ||
7035 | pkg_cv_LIBG3D_LIBS=`$PKG_CONFIG --libs "libg3d >= 0.0.5" 2>/dev/null` | ||
7036 | else | ||
7037 | pkg_failed=yes | ||
7038 | fi | ||
7039 | else | ||
7040 | pkg_failed=untried | ||
7041 | fi | ||
7042 | |||
7043 | if test $pkg_failed = yes; then | ||
7044 | LIBG3D_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libg3d >= 0.0.5"` | ||
7045 | # Put the nasty error message in config.log where it belongs | ||
7046 | echo "$LIBG3D_PKG_ERRORS" 1>&5 | ||
7047 | |||
7048 | { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5 | ||
7049 | echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;} | ||
7050 | { (exit 1); exit 1; }; } | ||
7051 | elif test $pkg_failed = untried; then | ||
7052 | { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5 | ||
7053 | echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;} | ||
7054 | { (exit 1); exit 1; }; } | ||
7055 | else | ||
7056 | LIBG3D_CFLAGS=$pkg_cv_LIBG3D_CFLAGS | ||
7057 | LIBG3D_LIBS=$pkg_cv_LIBG3D_LIBS | ||
7058 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7059 | echo "${ECHO_T}yes" >&6; } | ||
7060 | : | ||
7061 | fi | ||
7062 | |||
7063 | # Check OpenGL stuff | ||
7064 | { echo "$as_me:$LINENO: checking for X" >&5 | ||
7065 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | ||
7066 | |||
7067 | |||
7068 | # Check whether --with-x was given. | ||
7069 | if test "${with_x+set}" = set; then | ||
7070 | withval=$with_x; | ||
7071 | fi | ||
7072 | |||
7073 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
7074 | if test "x$with_x" = xno; then | ||
7075 | # The user explicitly disabled X. | ||
7076 | have_x=disabled | ||
7077 | else | ||
7078 | case $x_includes,$x_libraries in #( | ||
7079 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | ||
7080 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | ||
7081 | { (exit 1); exit 1; }; };; #( | ||
7082 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | ||
7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7084 | else | ||
7085 | # One or both of the vars are not set, and there is no cached value. | ||
7086 | ac_x_includes=no ac_x_libraries=no | ||
7087 | rm -f -r conftest.dir | ||
7088 | if mkdir conftest.dir; then | ||
7089 | cd conftest.dir | ||
7090 | cat >Imakefile <<'_ACEOF' | ||
7091 | incroot: | ||
7092 | @echo incroot='${INCROOT}' | ||
7093 | usrlibdir: | ||
7094 | @echo usrlibdir='${USRLIBDIR}' | ||
7095 | libdir: | ||
7096 | @echo libdir='${LIBDIR}' | ||
7097 | _ACEOF | ||
7098 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
7099 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
7100 | for ac_var in incroot usrlibdir libdir; do | ||
7101 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
7102 | done | ||
7103 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
7104 | for ac_extension in a so sl; do | ||
7105 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
7106 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
7107 | ac_im_usrlibdir=$ac_im_libdir; break | ||
7108 | fi | ||
7109 | done | ||
7110 | # Screen out bogus values from the imake configuration. They are | ||
7111 | # bogus both because they are the default anyway, and because | ||
7112 | # using them would break gcc on systems where it needs fixed includes. | ||
7113 | case $ac_im_incroot in | ||
7114 | /usr/include) ac_x_includes= ;; | ||
7115 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
7116 | esac | ||
7117 | case $ac_im_usrlibdir in | ||
7118 | /usr/lib | /lib) ;; | ||
7119 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
7120 | esac | ||
7121 | fi | ||
7122 | cd .. | ||
7123 | rm -f -r conftest.dir | ||
7124 | fi | ||
7125 | |||
7126 | # Standard set of common directories for X headers. | ||
7127 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
7128 | ac_x_header_dirs=' | ||
7129 | /usr/X11/include | ||
7130 | /usr/X11R6/include | ||
7131 | /usr/X11R5/include | ||
7132 | /usr/X11R4/include | ||
7133 | |||
7134 | /usr/include/X11 | ||
7135 | /usr/include/X11R6 | ||
7136 | /usr/include/X11R5 | ||
7137 | /usr/include/X11R4 | ||
7138 | |||
7139 | /usr/local/X11/include | ||
7140 | /usr/local/X11R6/include | ||
7141 | /usr/local/X11R5/include | ||
7142 | /usr/local/X11R4/include | ||
7143 | |||
7144 | /usr/local/include/X11 | ||
7145 | /usr/local/include/X11R6 | ||
7146 | /usr/local/include/X11R5 | ||
7147 | /usr/local/include/X11R4 | ||
7148 | |||
7149 | /usr/X386/include | ||
7150 | /usr/x386/include | ||
7151 | /usr/XFree86/include/X11 | ||
7152 | |||
7153 | /usr/include | ||
7154 | /usr/local/include | ||
7155 | /usr/unsupported/include | ||
7156 | /usr/athena/include | ||
7157 | /usr/local/x11r5/include | ||
7158 | /usr/lpp/Xamples/include | ||
7159 | |||
7160 | /usr/openwin/include | ||
7161 | /usr/openwin/share/include' | ||
7162 | |||
7163 | if test "$ac_x_includes" = no; then | ||
7164 | # Guess where to find include files, by looking for Xlib.h. | ||
7165 | # First, try using that file with no special directory specified. | ||
7166 | cat >conftest.$ac_ext <<_ACEOF | ||
7167 | /* confdefs.h. */ | ||
7168 | _ACEOF | ||
7169 | cat confdefs.h >>conftest.$ac_ext | ||
7170 | cat >>conftest.$ac_ext <<_ACEOF | ||
7171 | /* end confdefs.h. */ | ||
7172 | #include <X11/Xlib.h> | ||
7173 | _ACEOF | ||
7174 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7175 | case "(($ac_try" in | ||
7176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7177 | *) ac_try_echo=$ac_try;; | ||
7178 | esac | ||
7179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7180 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7181 | ac_status=$? | ||
7182 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7183 | rm -f conftest.er1 | ||
7184 | cat conftest.err >&5 | ||
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7186 | (exit $ac_status); } >/dev/null; then | ||
7187 | if test -s conftest.err; then | ||
7188 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7190 | else | ||
7191 | ac_cpp_err= | ||
7192 | fi | ||
7193 | else | ||
7194 | ac_cpp_err=yes | ||
7195 | fi | ||
7196 | if test -z "$ac_cpp_err"; then | ||
7197 | # We can compile using X headers with no special include directory. | ||
7198 | ac_x_includes= | ||
7199 | else | ||
7200 | echo "$as_me: failed program was:" >&5 | ||
7201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7202 | |||
7203 | for ac_dir in $ac_x_header_dirs; do | ||
7204 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
7205 | ac_x_includes=$ac_dir | ||
7206 | break | ||
7207 | fi | ||
7208 | done | ||
7209 | fi | ||
7210 | |||
7211 | rm -f conftest.err conftest.$ac_ext | ||
7212 | fi # $ac_x_includes = no | ||
7213 | |||
7214 | if test "$ac_x_libraries" = no; then | ||
7215 | # Check for the libraries. | ||
7216 | # See if we find them without any special options. | ||
7217 | # Don't add to $LIBS permanently. | ||
7218 | ac_save_LIBS=$LIBS | ||
7219 | LIBS="-lX11 $LIBS" | ||
7220 | cat >conftest.$ac_ext <<_ACEOF | ||
7221 | /* confdefs.h. */ | ||
7222 | _ACEOF | ||
7223 | cat confdefs.h >>conftest.$ac_ext | ||
7224 | cat >>conftest.$ac_ext <<_ACEOF | ||
7225 | /* end confdefs.h. */ | ||
7226 | #include <X11/Xlib.h> | ||
7227 | int | ||
7228 | main () | ||
7229 | { | ||
7230 | XrmInitialize () | ||
7231 | ; | ||
7232 | return 0; | ||
7233 | } | ||
7234 | _ACEOF | ||
7235 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7236 | if { (ac_try="$ac_link" | ||
7237 | case "(($ac_try" in | ||
7238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7239 | *) ac_try_echo=$ac_try;; | ||
7240 | esac | ||
7241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7242 | (eval "$ac_link") 2>conftest.er1 | ||
7243 | ac_status=$? | ||
7244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7245 | rm -f conftest.er1 | ||
7246 | cat conftest.err >&5 | ||
7247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7248 | (exit $ac_status); } && | ||
7249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7250 | { (case "(($ac_try" in | ||
7251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7252 | *) ac_try_echo=$ac_try;; | ||
7253 | esac | ||
7254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7255 | (eval "$ac_try") 2>&5 | ||
7256 | ac_status=$? | ||
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7258 | (exit $ac_status); }; } && | ||
7259 | { ac_try='test -s conftest$ac_exeext' | ||
7260 | { (case "(($ac_try" in | ||
7261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7262 | *) ac_try_echo=$ac_try;; | ||
7263 | esac | ||
7264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7265 | (eval "$ac_try") 2>&5 | ||
7266 | ac_status=$? | ||
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7268 | (exit $ac_status); }; }; then | ||
7269 | LIBS=$ac_save_LIBS | ||
7270 | # We can link X programs with no special library path. | ||
7271 | ac_x_libraries= | ||
7272 | else | ||
7273 | echo "$as_me: failed program was:" >&5 | ||
7274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7275 | |||
7276 | LIBS=$ac_save_LIBS | ||
7277 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
7278 | do | ||
7279 | # Don't even attempt the hair of trying to link an X program! | ||
7280 | for ac_extension in a so sl; do | ||
7281 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
7282 | ac_x_libraries=$ac_dir | ||
7283 | break 2 | ||
7284 | fi | ||
7285 | done | ||
7286 | done | ||
7287 | fi | ||
7288 | |||
7289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7290 | conftest$ac_exeext conftest.$ac_ext | ||
7291 | fi # $ac_x_libraries = no | ||
7292 | |||
7293 | case $ac_x_includes,$ac_x_libraries in #( | ||
7294 | no,* | *,no | *\'*) | ||
7295 | # Didn't find X, or a directory has "'" in its name. | ||
7296 | ac_cv_have_x="have_x=no";; #( | ||
7297 | *) | ||
7298 | # Record where we found X for the cache. | ||
7299 | ac_cv_have_x="have_x=yes\ | ||
7300 | ac_x_includes='$ac_x_includes'\ | ||
7301 | ac_x_libraries='$ac_x_libraries'" | ||
7302 | esac | ||
7303 | fi | ||
7304 | ;; #( | ||
7305 | *) have_x=yes;; | ||
7306 | esac | ||
7307 | eval "$ac_cv_have_x" | ||
7308 | fi # $with_x != no | ||
7309 | |||
7310 | if test "$have_x" != yes; then | ||
7311 | { echo "$as_me:$LINENO: result: $have_x" >&5 | ||
7312 | echo "${ECHO_T}$have_x" >&6; } | ||
7313 | no_x=yes | ||
7314 | else | ||
7315 | # If each of the values was on the command line, it overrides each guess. | ||
7316 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
7317 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
7318 | # Update the cache value to reflect the command line values. | ||
7319 | ac_cv_have_x="have_x=yes\ | ||
7320 | ac_x_includes='$x_includes'\ | ||
7321 | ac_x_libraries='$x_libraries'" | ||
7322 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | ||
7323 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | ||
7324 | fi | ||
7325 | |||
7326 | if test "$no_x" = yes; then | ||
7327 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
7328 | |||
7329 | cat >>confdefs.h <<\_ACEOF | ||
7330 | #define X_DISPLAY_MISSING 1 | ||
7331 | _ACEOF | ||
7332 | |||
7333 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
7334 | else | ||
7335 | if test -n "$x_includes"; then | ||
7336 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
7337 | fi | ||
7338 | |||
7339 | # It would also be nice to do this for all -L options, not just this one. | ||
7340 | if test -n "$x_libraries"; then | ||
7341 | X_LIBS="$X_LIBS -L$x_libraries" | ||
7342 | # For Solaris; some versions of Sun CC require a space after -R and | ||
7343 | # others require no space. Words are not sufficient . . . . | ||
7344 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | ||
7345 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } | ||
7346 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
7347 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
7348 | ac_c_werror_flag=yes | ||
7349 | cat >conftest.$ac_ext <<_ACEOF | ||
7350 | /* confdefs.h. */ | ||
7351 | _ACEOF | ||
7352 | cat confdefs.h >>conftest.$ac_ext | ||
7353 | cat >>conftest.$ac_ext <<_ACEOF | ||
7354 | /* end confdefs.h. */ | ||
7355 | |||
7356 | int | ||
7357 | main () | ||
7358 | { | ||
7359 | |||
7360 | ; | ||
7361 | return 0; | ||
7362 | } | ||
7363 | _ACEOF | ||
7364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7365 | if { (ac_try="$ac_link" | ||
7366 | case "(($ac_try" in | ||
7367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7368 | *) ac_try_echo=$ac_try;; | ||
7369 | esac | ||
7370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7371 | (eval "$ac_link") 2>conftest.er1 | ||
7372 | ac_status=$? | ||
7373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7374 | rm -f conftest.er1 | ||
7375 | cat conftest.err >&5 | ||
7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7377 | (exit $ac_status); } && | ||
7378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7379 | { (case "(($ac_try" in | ||
7380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7381 | *) ac_try_echo=$ac_try;; | ||
7382 | esac | ||
7383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7384 | (eval "$ac_try") 2>&5 | ||
7385 | ac_status=$? | ||
7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7387 | (exit $ac_status); }; } && | ||
7388 | { ac_try='test -s conftest$ac_exeext' | ||
7389 | { (case "(($ac_try" in | ||
7390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7391 | *) ac_try_echo=$ac_try;; | ||
7392 | esac | ||
7393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7394 | (eval "$ac_try") 2>&5 | ||
7395 | ac_status=$? | ||
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7397 | (exit $ac_status); }; }; then | ||
7398 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7399 | echo "${ECHO_T}no" >&6; } | ||
7400 | X_LIBS="$X_LIBS -R$x_libraries" | ||
7401 | else | ||
7402 | echo "$as_me: failed program was:" >&5 | ||
7403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7404 | |||
7405 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
7406 | cat >conftest.$ac_ext <<_ACEOF | ||
7407 | /* confdefs.h. */ | ||
7408 | _ACEOF | ||
7409 | cat confdefs.h >>conftest.$ac_ext | ||
7410 | cat >>conftest.$ac_ext <<_ACEOF | ||
7411 | /* end confdefs.h. */ | ||
7412 | |||
7413 | int | ||
7414 | main () | ||
7415 | { | ||
7416 | |||
7417 | ; | ||
7418 | return 0; | ||
7419 | } | ||
7420 | _ACEOF | ||
7421 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7422 | if { (ac_try="$ac_link" | ||
7423 | case "(($ac_try" in | ||
7424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7425 | *) ac_try_echo=$ac_try;; | ||
7426 | esac | ||
7427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7428 | (eval "$ac_link") 2>conftest.er1 | ||
7429 | ac_status=$? | ||
7430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7431 | rm -f conftest.er1 | ||
7432 | cat conftest.err >&5 | ||
7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7434 | (exit $ac_status); } && | ||
7435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7436 | { (case "(($ac_try" in | ||
7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7438 | *) ac_try_echo=$ac_try;; | ||
7439 | esac | ||
7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7441 | (eval "$ac_try") 2>&5 | ||
7442 | ac_status=$? | ||
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7444 | (exit $ac_status); }; } && | ||
7445 | { ac_try='test -s conftest$ac_exeext' | ||
7446 | { (case "(($ac_try" in | ||
7447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7448 | *) ac_try_echo=$ac_try;; | ||
7449 | esac | ||
7450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7451 | (eval "$ac_try") 2>&5 | ||
7452 | ac_status=$? | ||
7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7454 | (exit $ac_status); }; }; then | ||
7455 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7456 | echo "${ECHO_T}yes" >&6; } | ||
7457 | X_LIBS="$X_LIBS -R $x_libraries" | ||
7458 | else | ||
7459 | echo "$as_me: failed program was:" >&5 | ||
7460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7461 | |||
7462 | { echo "$as_me:$LINENO: result: neither works" >&5 | ||
7463 | echo "${ECHO_T}neither works" >&6; } | ||
7464 | fi | ||
7465 | |||
7466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7467 | conftest$ac_exeext conftest.$ac_ext | ||
7468 | fi | ||
7469 | |||
7470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7471 | conftest$ac_exeext conftest.$ac_ext | ||
7472 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
7473 | LIBS=$ac_xsave_LIBS | ||
7474 | fi | ||
7475 | |||
7476 | # Check for system-dependent libraries X programs must link with. | ||
7477 | # Do this before checking for the system-independent R6 libraries | ||
7478 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
7479 | |||
7480 | if test "$ISC" = yes; then | ||
7481 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
7482 | else | ||
7483 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
7484 | # libraries were built with DECnet support. And Karl Berry says | ||
7485 | # the Alpha needs dnet_stub (dnet does not exist). | ||
7486 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
7487 | cat >conftest.$ac_ext <<_ACEOF | ||
7488 | /* confdefs.h. */ | ||
7489 | _ACEOF | ||
7490 | cat confdefs.h >>conftest.$ac_ext | ||
7491 | cat >>conftest.$ac_ext <<_ACEOF | ||
7492 | /* end confdefs.h. */ | ||
7493 | |||
7494 | /* Override any GCC internal prototype to avoid an error. | ||
7495 | Use char because int might match the return type of a GCC | ||
7496 | builtin and then its argument prototype would still apply. */ | ||
7497 | #ifdef __cplusplus | ||
7498 | extern "C" | ||
7499 | #endif | ||
7500 | char XOpenDisplay (); | ||
7501 | int | ||
7502 | main () | ||
7503 | { | ||
7504 | return XOpenDisplay (); | ||
7505 | ; | ||
7506 | return 0; | ||
7507 | } | ||
7508 | _ACEOF | ||
7509 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7510 | if { (ac_try="$ac_link" | ||
7511 | case "(($ac_try" in | ||
7512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7513 | *) ac_try_echo=$ac_try;; | ||
7514 | esac | ||
7515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7516 | (eval "$ac_link") 2>conftest.er1 | ||
7517 | ac_status=$? | ||
7518 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7519 | rm -f conftest.er1 | ||
7520 | cat conftest.err >&5 | ||
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7522 | (exit $ac_status); } && | ||
7523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7524 | { (case "(($ac_try" in | ||
7525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7526 | *) ac_try_echo=$ac_try;; | ||
7527 | esac | ||
7528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7529 | (eval "$ac_try") 2>&5 | ||
7530 | ac_status=$? | ||
7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7532 | (exit $ac_status); }; } && | ||
7533 | { ac_try='test -s conftest$ac_exeext' | ||
7534 | { (case "(($ac_try" in | ||
7535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7536 | *) ac_try_echo=$ac_try;; | ||
7537 | esac | ||
7538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7539 | (eval "$ac_try") 2>&5 | ||
7540 | ac_status=$? | ||
7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7542 | (exit $ac_status); }; }; then | ||
7543 | : | ||
7544 | else | ||
7545 | echo "$as_me: failed program was:" >&5 | ||
7546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7547 | |||
7548 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | ||
7549 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | ||
7550 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | ||
7551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7552 | else | ||
7553 | ac_check_lib_save_LIBS=$LIBS | ||
7554 | LIBS="-ldnet $LIBS" | ||
7555 | cat >conftest.$ac_ext <<_ACEOF | ||
7556 | /* confdefs.h. */ | ||
7557 | _ACEOF | ||
7558 | cat confdefs.h >>conftest.$ac_ext | ||
7559 | cat >>conftest.$ac_ext <<_ACEOF | ||
7560 | /* end confdefs.h. */ | ||
7561 | |||
7562 | /* Override any GCC internal prototype to avoid an error. | ||
7563 | Use char because int might match the return type of a GCC | ||
7564 | builtin and then its argument prototype would still apply. */ | ||
7565 | #ifdef __cplusplus | ||
7566 | extern "C" | ||
7567 | #endif | ||
7568 | char dnet_ntoa (); | ||
7569 | int | ||
7570 | main () | ||
7571 | { | ||
7572 | return dnet_ntoa (); | ||
7573 | ; | ||
7574 | return 0; | ||
7575 | } | ||
7576 | _ACEOF | ||
7577 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7578 | if { (ac_try="$ac_link" | ||
7579 | case "(($ac_try" in | ||
7580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7581 | *) ac_try_echo=$ac_try;; | ||
7582 | esac | ||
7583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7584 | (eval "$ac_link") 2>conftest.er1 | ||
7585 | ac_status=$? | ||
7586 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7587 | rm -f conftest.er1 | ||
7588 | cat conftest.err >&5 | ||
7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7590 | (exit $ac_status); } && | ||
7591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7592 | { (case "(($ac_try" in | ||
7593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7594 | *) ac_try_echo=$ac_try;; | ||
7595 | esac | ||
7596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7597 | (eval "$ac_try") 2>&5 | ||
7598 | ac_status=$? | ||
7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7600 | (exit $ac_status); }; } && | ||
7601 | { ac_try='test -s conftest$ac_exeext' | ||
7602 | { (case "(($ac_try" in | ||
7603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7604 | *) ac_try_echo=$ac_try;; | ||
7605 | esac | ||
7606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7607 | (eval "$ac_try") 2>&5 | ||
7608 | ac_status=$? | ||
7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7610 | (exit $ac_status); }; }; then | ||
7611 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
7612 | else | ||
7613 | echo "$as_me: failed program was:" >&5 | ||
7614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7615 | |||
7616 | ac_cv_lib_dnet_dnet_ntoa=no | ||
7617 | fi | ||
7618 | |||
7619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7620 | conftest$ac_exeext conftest.$ac_ext | ||
7621 | LIBS=$ac_check_lib_save_LIBS | ||
7622 | fi | ||
7623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
7624 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
7625 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | ||
7626 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
7627 | fi | ||
7628 | |||
7629 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
7630 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
7631 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | ||
7632 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | ||
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7634 | else | ||
7635 | ac_check_lib_save_LIBS=$LIBS | ||
7636 | LIBS="-ldnet_stub $LIBS" | ||
7637 | cat >conftest.$ac_ext <<_ACEOF | ||
7638 | /* confdefs.h. */ | ||
7639 | _ACEOF | ||
7640 | cat confdefs.h >>conftest.$ac_ext | ||
7641 | cat >>conftest.$ac_ext <<_ACEOF | ||
7642 | /* end confdefs.h. */ | ||
7643 | |||
7644 | /* Override any GCC internal prototype to avoid an error. | ||
7645 | Use char because int might match the return type of a GCC | ||
7646 | builtin and then its argument prototype would still apply. */ | ||
7647 | #ifdef __cplusplus | ||
7648 | extern "C" | ||
7649 | #endif | ||
7650 | char dnet_ntoa (); | ||
7651 | int | ||
7652 | main () | ||
7653 | { | ||
7654 | return dnet_ntoa (); | ||
7655 | ; | ||
7656 | return 0; | ||
7657 | } | ||
7658 | _ACEOF | ||
7659 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7660 | if { (ac_try="$ac_link" | ||
7661 | case "(($ac_try" in | ||
7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7663 | *) ac_try_echo=$ac_try;; | ||
7664 | esac | ||
7665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7666 | (eval "$ac_link") 2>conftest.er1 | ||
7667 | ac_status=$? | ||
7668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7669 | rm -f conftest.er1 | ||
7670 | cat conftest.err >&5 | ||
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7672 | (exit $ac_status); } && | ||
7673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7674 | { (case "(($ac_try" in | ||
7675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7676 | *) ac_try_echo=$ac_try;; | ||
7677 | esac | ||
7678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7679 | (eval "$ac_try") 2>&5 | ||
7680 | ac_status=$? | ||
7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7682 | (exit $ac_status); }; } && | ||
7683 | { ac_try='test -s conftest$ac_exeext' | ||
7684 | { (case "(($ac_try" in | ||
7685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7686 | *) ac_try_echo=$ac_try;; | ||
7687 | esac | ||
7688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7689 | (eval "$ac_try") 2>&5 | ||
7690 | ac_status=$? | ||
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7692 | (exit $ac_status); }; }; then | ||
7693 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
7694 | else | ||
7695 | echo "$as_me: failed program was:" >&5 | ||
7696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7697 | |||
7698 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
7699 | fi | ||
7700 | |||
7701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7702 | conftest$ac_exeext conftest.$ac_ext | ||
7703 | LIBS=$ac_check_lib_save_LIBS | ||
7704 | fi | ||
7705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
7706 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
7707 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | ||
7708 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
7709 | fi | ||
7710 | |||
7711 | fi | ||
7712 | fi | ||
7713 | |||
7714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7715 | conftest$ac_exeext conftest.$ac_ext | ||
7716 | LIBS="$ac_xsave_LIBS" | ||
7717 | |||
7718 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
7719 | # to get the SysV transport functions. | ||
7720 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
7721 | # needs -lnsl. | ||
7722 | # The nsl library prevents programs from opening the X display | ||
7723 | # on Irix 5.2, according to T.E. Dickey. | ||
7724 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
7725 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
7726 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 | ||
7727 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | ||
7728 | if test "${ac_cv_func_gethostbyname+set}" = set; then | ||
7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7730 | else | ||
7731 | cat >conftest.$ac_ext <<_ACEOF | ||
7732 | /* confdefs.h. */ | ||
7733 | _ACEOF | ||
7734 | cat confdefs.h >>conftest.$ac_ext | ||
7735 | cat >>conftest.$ac_ext <<_ACEOF | ||
7736 | /* end confdefs.h. */ | ||
7737 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | ||
7738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7739 | #define gethostbyname innocuous_gethostbyname | ||
7740 | |||
7741 | /* System header to define __stub macros and hopefully few prototypes, | ||
7742 | which can conflict with char gethostbyname (); below. | ||
7743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7744 | <limits.h> exists even on freestanding compilers. */ | ||
7745 | |||
7746 | #ifdef __STDC__ | ||
7747 | # include <limits.h> | ||
7748 | #else | ||
7749 | # include <assert.h> | ||
7750 | #endif | ||
7751 | |||
7752 | #undef gethostbyname | ||
7753 | |||
7754 | /* Override any GCC internal prototype to avoid an error. | ||
7755 | Use char because int might match the return type of a GCC | ||
7756 | builtin and then its argument prototype would still apply. */ | ||
7757 | #ifdef __cplusplus | ||
7758 | extern "C" | ||
7759 | #endif | ||
7760 | char gethostbyname (); | ||
7761 | /* The GNU C library defines this for functions which it implements | ||
7762 | to always fail with ENOSYS. Some functions are actually named | ||
7763 | something starting with __ and the normal name is an alias. */ | ||
7764 | #if defined __stub_gethostbyname || defined __stub___gethostbyname | ||
7765 | choke me | ||
7766 | #endif | ||
7767 | |||
7768 | int | ||
7769 | main () | ||
7770 | { | ||
7771 | return gethostbyname (); | ||
7772 | ; | ||
7773 | return 0; | ||
7774 | } | ||
7775 | _ACEOF | ||
7776 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7777 | if { (ac_try="$ac_link" | ||
7778 | case "(($ac_try" in | ||
7779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7780 | *) ac_try_echo=$ac_try;; | ||
7781 | esac | ||
7782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7783 | (eval "$ac_link") 2>conftest.er1 | ||
7784 | ac_status=$? | ||
7785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7786 | rm -f conftest.er1 | ||
7787 | cat conftest.err >&5 | ||
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7789 | (exit $ac_status); } && | ||
7790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7791 | { (case "(($ac_try" in | ||
7792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7793 | *) ac_try_echo=$ac_try;; | ||
7794 | esac | ||
7795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7796 | (eval "$ac_try") 2>&5 | ||
7797 | ac_status=$? | ||
7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7799 | (exit $ac_status); }; } && | ||
7800 | { ac_try='test -s conftest$ac_exeext' | ||
7801 | { (case "(($ac_try" in | ||
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7803 | *) ac_try_echo=$ac_try;; | ||
7804 | esac | ||
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7806 | (eval "$ac_try") 2>&5 | ||
7807 | ac_status=$? | ||
7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7809 | (exit $ac_status); }; }; then | ||
7810 | ac_cv_func_gethostbyname=yes | ||
7811 | else | ||
7812 | echo "$as_me: failed program was:" >&5 | ||
7813 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7814 | |||
7815 | ac_cv_func_gethostbyname=no | ||
7816 | fi | ||
7817 | |||
7818 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7819 | conftest$ac_exeext conftest.$ac_ext | ||
7820 | fi | ||
7821 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | ||
7822 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | ||
7823 | |||
7824 | if test $ac_cv_func_gethostbyname = no; then | ||
7825 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | ||
7826 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | ||
7827 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | ||
7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7829 | else | ||
7830 | ac_check_lib_save_LIBS=$LIBS | ||
7831 | LIBS="-lnsl $LIBS" | ||
7832 | cat >conftest.$ac_ext <<_ACEOF | ||
7833 | /* confdefs.h. */ | ||
7834 | _ACEOF | ||
7835 | cat confdefs.h >>conftest.$ac_ext | ||
7836 | cat >>conftest.$ac_ext <<_ACEOF | ||
7837 | /* end confdefs.h. */ | ||
7838 | |||
7839 | /* Override any GCC internal prototype to avoid an error. | ||
7840 | Use char because int might match the return type of a GCC | ||
7841 | builtin and then its argument prototype would still apply. */ | ||
7842 | #ifdef __cplusplus | ||
7843 | extern "C" | ||
7844 | #endif | ||
7845 | char gethostbyname (); | ||
7846 | int | ||
7847 | main () | ||
7848 | { | ||
7849 | return gethostbyname (); | ||
7850 | ; | ||
7851 | return 0; | ||
7852 | } | ||
7853 | _ACEOF | ||
7854 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7855 | if { (ac_try="$ac_link" | ||
7856 | case "(($ac_try" in | ||
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7858 | *) ac_try_echo=$ac_try;; | ||
7859 | esac | ||
7860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7861 | (eval "$ac_link") 2>conftest.er1 | ||
7862 | ac_status=$? | ||
7863 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7864 | rm -f conftest.er1 | ||
7865 | cat conftest.err >&5 | ||
7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7867 | (exit $ac_status); } && | ||
7868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7869 | { (case "(($ac_try" in | ||
7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7871 | *) ac_try_echo=$ac_try;; | ||
7872 | esac | ||
7873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7874 | (eval "$ac_try") 2>&5 | ||
7875 | ac_status=$? | ||
7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7877 | (exit $ac_status); }; } && | ||
7878 | { ac_try='test -s conftest$ac_exeext' | ||
7879 | { (case "(($ac_try" in | ||
7880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7881 | *) ac_try_echo=$ac_try;; | ||
7882 | esac | ||
7883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7884 | (eval "$ac_try") 2>&5 | ||
7885 | ac_status=$? | ||
7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7887 | (exit $ac_status); }; }; then | ||
7888 | ac_cv_lib_nsl_gethostbyname=yes | ||
7889 | else | ||
7890 | echo "$as_me: failed program was:" >&5 | ||
7891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7892 | |||
7893 | ac_cv_lib_nsl_gethostbyname=no | ||
7894 | fi | ||
7895 | |||
7896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7897 | conftest$ac_exeext conftest.$ac_ext | ||
7898 | LIBS=$ac_check_lib_save_LIBS | ||
7899 | fi | ||
7900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
7901 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
7902 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | ||
7903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
7904 | fi | ||
7905 | |||
7906 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
7907 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | ||
7908 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | ||
7909 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | ||
7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7911 | else | ||
7912 | ac_check_lib_save_LIBS=$LIBS | ||
7913 | LIBS="-lbsd $LIBS" | ||
7914 | cat >conftest.$ac_ext <<_ACEOF | ||
7915 | /* confdefs.h. */ | ||
7916 | _ACEOF | ||
7917 | cat confdefs.h >>conftest.$ac_ext | ||
7918 | cat >>conftest.$ac_ext <<_ACEOF | ||
7919 | /* end confdefs.h. */ | ||
7920 | |||
7921 | /* Override any GCC internal prototype to avoid an error. | ||
7922 | Use char because int might match the return type of a GCC | ||
7923 | builtin and then its argument prototype would still apply. */ | ||
7924 | #ifdef __cplusplus | ||
7925 | extern "C" | ||
7926 | #endif | ||
7927 | char gethostbyname (); | ||
7928 | int | ||
7929 | main () | ||
7930 | { | ||
7931 | return gethostbyname (); | ||
7932 | ; | ||
7933 | return 0; | ||
7934 | } | ||
7935 | _ACEOF | ||
7936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7937 | if { (ac_try="$ac_link" | ||
7938 | case "(($ac_try" in | ||
7939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7940 | *) ac_try_echo=$ac_try;; | ||
7941 | esac | ||
7942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7943 | (eval "$ac_link") 2>conftest.er1 | ||
7944 | ac_status=$? | ||
7945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7946 | rm -f conftest.er1 | ||
7947 | cat conftest.err >&5 | ||
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7949 | (exit $ac_status); } && | ||
7950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7951 | { (case "(($ac_try" in | ||
7952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7953 | *) ac_try_echo=$ac_try;; | ||
7954 | esac | ||
7955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7956 | (eval "$ac_try") 2>&5 | ||
7957 | ac_status=$? | ||
7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7959 | (exit $ac_status); }; } && | ||
7960 | { ac_try='test -s conftest$ac_exeext' | ||
7961 | { (case "(($ac_try" in | ||
7962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7963 | *) ac_try_echo=$ac_try;; | ||
7964 | esac | ||
7965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7966 | (eval "$ac_try") 2>&5 | ||
7967 | ac_status=$? | ||
7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7969 | (exit $ac_status); }; }; then | ||
7970 | ac_cv_lib_bsd_gethostbyname=yes | ||
7971 | else | ||
7972 | echo "$as_me: failed program was:" >&5 | ||
7973 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7974 | |||
7975 | ac_cv_lib_bsd_gethostbyname=no | ||
7976 | fi | ||
7977 | |||
7978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7979 | conftest$ac_exeext conftest.$ac_ext | ||
7980 | LIBS=$ac_check_lib_save_LIBS | ||
7981 | fi | ||
7982 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
7983 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
7984 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | ||
7985 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
7986 | fi | ||
7987 | |||
7988 | fi | ||
7989 | fi | ||
7990 | |||
7991 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
7992 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
7993 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
7994 | # on later versions), says Simon Leinen: it contains gethostby* | ||
7995 | # variants that don't use the name server (or something). -lsocket | ||
7996 | # must be given before -lnsl if both are needed. We assume that | ||
7997 | # if connect needs -lnsl, so does gethostbyname. | ||
7998 | { echo "$as_me:$LINENO: checking for connect" >&5 | ||
7999 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | ||
8000 | if test "${ac_cv_func_connect+set}" = set; then | ||
8001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8002 | else | ||
8003 | cat >conftest.$ac_ext <<_ACEOF | ||
8004 | /* confdefs.h. */ | ||
8005 | _ACEOF | ||
8006 | cat confdefs.h >>conftest.$ac_ext | ||
8007 | cat >>conftest.$ac_ext <<_ACEOF | ||
8008 | /* end confdefs.h. */ | ||
8009 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | ||
8010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8011 | #define connect innocuous_connect | ||
8012 | |||
8013 | /* System header to define __stub macros and hopefully few prototypes, | ||
8014 | which can conflict with char connect (); below. | ||
8015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8016 | <limits.h> exists even on freestanding compilers. */ | ||
8017 | |||
8018 | #ifdef __STDC__ | ||
8019 | # include <limits.h> | ||
8020 | #else | ||
8021 | # include <assert.h> | ||
8022 | #endif | ||
8023 | |||
8024 | #undef connect | ||
8025 | |||
8026 | /* Override any GCC internal prototype to avoid an error. | ||
8027 | Use char because int might match the return type of a GCC | ||
8028 | builtin and then its argument prototype would still apply. */ | ||
8029 | #ifdef __cplusplus | ||
8030 | extern "C" | ||
8031 | #endif | ||
8032 | char connect (); | ||
8033 | /* The GNU C library defines this for functions which it implements | ||
8034 | to always fail with ENOSYS. Some functions are actually named | ||
8035 | something starting with __ and the normal name is an alias. */ | ||
8036 | #if defined __stub_connect || defined __stub___connect | ||
8037 | choke me | ||
8038 | #endif | ||
8039 | |||
8040 | int | ||
8041 | main () | ||
8042 | { | ||
8043 | return connect (); | ||
8044 | ; | ||
8045 | return 0; | ||
8046 | } | ||
8047 | _ACEOF | ||
8048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8049 | if { (ac_try="$ac_link" | ||
8050 | case "(($ac_try" in | ||
8051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8052 | *) ac_try_echo=$ac_try;; | ||
8053 | esac | ||
8054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8055 | (eval "$ac_link") 2>conftest.er1 | ||
8056 | ac_status=$? | ||
8057 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8058 | rm -f conftest.er1 | ||
8059 | cat conftest.err >&5 | ||
8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8061 | (exit $ac_status); } && | ||
8062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8063 | { (case "(($ac_try" in | ||
8064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8065 | *) ac_try_echo=$ac_try;; | ||
8066 | esac | ||
8067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8068 | (eval "$ac_try") 2>&5 | ||
8069 | ac_status=$? | ||
8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8071 | (exit $ac_status); }; } && | ||
8072 | { ac_try='test -s conftest$ac_exeext' | ||
8073 | { (case "(($ac_try" in | ||
8074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8075 | *) ac_try_echo=$ac_try;; | ||
8076 | esac | ||
8077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8078 | (eval "$ac_try") 2>&5 | ||
8079 | ac_status=$? | ||
8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8081 | (exit $ac_status); }; }; then | ||
8082 | ac_cv_func_connect=yes | ||
8083 | else | ||
8084 | echo "$as_me: failed program was:" >&5 | ||
8085 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8086 | |||
8087 | ac_cv_func_connect=no | ||
8088 | fi | ||
8089 | |||
8090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8091 | conftest$ac_exeext conftest.$ac_ext | ||
8092 | fi | ||
8093 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | ||
8094 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | ||
8095 | |||
8096 | if test $ac_cv_func_connect = no; then | ||
8097 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | ||
8098 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | ||
8099 | if test "${ac_cv_lib_socket_connect+set}" = set; then | ||
8100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8101 | else | ||
8102 | ac_check_lib_save_LIBS=$LIBS | ||
8103 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
8104 | cat >conftest.$ac_ext <<_ACEOF | ||
8105 | /* confdefs.h. */ | ||
8106 | _ACEOF | ||
8107 | cat confdefs.h >>conftest.$ac_ext | ||
8108 | cat >>conftest.$ac_ext <<_ACEOF | ||
8109 | /* end confdefs.h. */ | ||
8110 | |||
8111 | /* Override any GCC internal prototype to avoid an error. | ||
8112 | Use char because int might match the return type of a GCC | ||
8113 | builtin and then its argument prototype would still apply. */ | ||
8114 | #ifdef __cplusplus | ||
8115 | extern "C" | ||
8116 | #endif | ||
8117 | char connect (); | ||
8118 | int | ||
8119 | main () | ||
8120 | { | ||
8121 | return connect (); | ||
8122 | ; | ||
8123 | return 0; | ||
8124 | } | ||
8125 | _ACEOF | ||
8126 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8127 | if { (ac_try="$ac_link" | ||
8128 | case "(($ac_try" in | ||
8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8130 | *) ac_try_echo=$ac_try;; | ||
8131 | esac | ||
8132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8133 | (eval "$ac_link") 2>conftest.er1 | ||
8134 | ac_status=$? | ||
8135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8136 | rm -f conftest.er1 | ||
8137 | cat conftest.err >&5 | ||
8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8139 | (exit $ac_status); } && | ||
8140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8141 | { (case "(($ac_try" in | ||
8142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8143 | *) ac_try_echo=$ac_try;; | ||
8144 | esac | ||
8145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8146 | (eval "$ac_try") 2>&5 | ||
8147 | ac_status=$? | ||
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8149 | (exit $ac_status); }; } && | ||
8150 | { ac_try='test -s conftest$ac_exeext' | ||
8151 | { (case "(($ac_try" in | ||
8152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8153 | *) ac_try_echo=$ac_try;; | ||
8154 | esac | ||
8155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8156 | (eval "$ac_try") 2>&5 | ||
8157 | ac_status=$? | ||
8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8159 | (exit $ac_status); }; }; then | ||
8160 | ac_cv_lib_socket_connect=yes | ||
8161 | else | ||
8162 | echo "$as_me: failed program was:" >&5 | ||
8163 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8164 | |||
8165 | ac_cv_lib_socket_connect=no | ||
8166 | fi | ||
8167 | |||
8168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8169 | conftest$ac_exeext conftest.$ac_ext | ||
8170 | LIBS=$ac_check_lib_save_LIBS | ||
8171 | fi | ||
8172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | ||
8173 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | ||
8174 | if test $ac_cv_lib_socket_connect = yes; then | ||
8175 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
8176 | fi | ||
8177 | |||
8178 | fi | ||
8179 | |||
8180 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
8181 | { echo "$as_me:$LINENO: checking for remove" >&5 | ||
8182 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | ||
8183 | if test "${ac_cv_func_remove+set}" = set; then | ||
8184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8185 | else | ||
8186 | cat >conftest.$ac_ext <<_ACEOF | ||
8187 | /* confdefs.h. */ | ||
8188 | _ACEOF | ||
8189 | cat confdefs.h >>conftest.$ac_ext | ||
8190 | cat >>conftest.$ac_ext <<_ACEOF | ||
8191 | /* end confdefs.h. */ | ||
8192 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. | ||
8193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8194 | #define remove innocuous_remove | ||
8195 | |||
8196 | /* System header to define __stub macros and hopefully few prototypes, | ||
8197 | which can conflict with char remove (); below. | ||
8198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8199 | <limits.h> exists even on freestanding compilers. */ | ||
8200 | |||
8201 | #ifdef __STDC__ | ||
8202 | # include <limits.h> | ||
8203 | #else | ||
8204 | # include <assert.h> | ||
8205 | #endif | ||
8206 | |||
8207 | #undef remove | ||
8208 | |||
8209 | /* Override any GCC internal prototype to avoid an error. | ||
8210 | Use char because int might match the return type of a GCC | ||
8211 | builtin and then its argument prototype would still apply. */ | ||
8212 | #ifdef __cplusplus | ||
8213 | extern "C" | ||
8214 | #endif | ||
8215 | char remove (); | ||
8216 | /* The GNU C library defines this for functions which it implements | ||
8217 | to always fail with ENOSYS. Some functions are actually named | ||
8218 | something starting with __ and the normal name is an alias. */ | ||
8219 | #if defined __stub_remove || defined __stub___remove | ||
8220 | choke me | ||
8221 | #endif | ||
8222 | |||
8223 | int | ||
8224 | main () | ||
8225 | { | ||
8226 | return remove (); | ||
8227 | ; | ||
8228 | return 0; | ||
8229 | } | ||
8230 | _ACEOF | ||
8231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8232 | if { (ac_try="$ac_link" | ||
8233 | case "(($ac_try" in | ||
8234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8235 | *) ac_try_echo=$ac_try;; | ||
8236 | esac | ||
8237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8238 | (eval "$ac_link") 2>conftest.er1 | ||
8239 | ac_status=$? | ||
8240 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8241 | rm -f conftest.er1 | ||
8242 | cat conftest.err >&5 | ||
8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8244 | (exit $ac_status); } && | ||
8245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8246 | { (case "(($ac_try" in | ||
8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8248 | *) ac_try_echo=$ac_try;; | ||
8249 | esac | ||
8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8251 | (eval "$ac_try") 2>&5 | ||
8252 | ac_status=$? | ||
8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8254 | (exit $ac_status); }; } && | ||
8255 | { ac_try='test -s conftest$ac_exeext' | ||
8256 | { (case "(($ac_try" in | ||
8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8258 | *) ac_try_echo=$ac_try;; | ||
8259 | esac | ||
8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8261 | (eval "$ac_try") 2>&5 | ||
8262 | ac_status=$? | ||
8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8264 | (exit $ac_status); }; }; then | ||
8265 | ac_cv_func_remove=yes | ||
8266 | else | ||
8267 | echo "$as_me: failed program was:" >&5 | ||
8268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8269 | |||
8270 | ac_cv_func_remove=no | ||
8271 | fi | ||
8272 | |||
8273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8274 | conftest$ac_exeext conftest.$ac_ext | ||
8275 | fi | ||
8276 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | ||
8277 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | ||
8278 | |||
8279 | if test $ac_cv_func_remove = no; then | ||
8280 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | ||
8281 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | ||
8282 | if test "${ac_cv_lib_posix_remove+set}" = set; then | ||
8283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8284 | else | ||
8285 | ac_check_lib_save_LIBS=$LIBS | ||
8286 | LIBS="-lposix $LIBS" | ||
8287 | cat >conftest.$ac_ext <<_ACEOF | ||
8288 | /* confdefs.h. */ | ||
8289 | _ACEOF | ||
8290 | cat confdefs.h >>conftest.$ac_ext | ||
8291 | cat >>conftest.$ac_ext <<_ACEOF | ||
8292 | /* end confdefs.h. */ | ||
8293 | |||
8294 | /* Override any GCC internal prototype to avoid an error. | ||
8295 | Use char because int might match the return type of a GCC | ||
8296 | builtin and then its argument prototype would still apply. */ | ||
8297 | #ifdef __cplusplus | ||
8298 | extern "C" | ||
8299 | #endif | ||
8300 | char remove (); | ||
8301 | int | ||
8302 | main () | ||
8303 | { | ||
8304 | return remove (); | ||
8305 | ; | ||
8306 | return 0; | ||
8307 | } | ||
8308 | _ACEOF | ||
8309 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8310 | if { (ac_try="$ac_link" | ||
8311 | case "(($ac_try" in | ||
8312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8313 | *) ac_try_echo=$ac_try;; | ||
8314 | esac | ||
8315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8316 | (eval "$ac_link") 2>conftest.er1 | ||
8317 | ac_status=$? | ||
8318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8319 | rm -f conftest.er1 | ||
8320 | cat conftest.err >&5 | ||
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8322 | (exit $ac_status); } && | ||
8323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8324 | { (case "(($ac_try" in | ||
8325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8326 | *) ac_try_echo=$ac_try;; | ||
8327 | esac | ||
8328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8329 | (eval "$ac_try") 2>&5 | ||
8330 | ac_status=$? | ||
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8332 | (exit $ac_status); }; } && | ||
8333 | { ac_try='test -s conftest$ac_exeext' | ||
8334 | { (case "(($ac_try" in | ||
8335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8336 | *) ac_try_echo=$ac_try;; | ||
8337 | esac | ||
8338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8339 | (eval "$ac_try") 2>&5 | ||
8340 | ac_status=$? | ||
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8342 | (exit $ac_status); }; }; then | ||
8343 | ac_cv_lib_posix_remove=yes | ||
8344 | else | ||
8345 | echo "$as_me: failed program was:" >&5 | ||
8346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8347 | |||
8348 | ac_cv_lib_posix_remove=no | ||
8349 | fi | ||
8350 | |||
8351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8352 | conftest$ac_exeext conftest.$ac_ext | ||
8353 | LIBS=$ac_check_lib_save_LIBS | ||
8354 | fi | ||
8355 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | ||
8356 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | ||
8357 | if test $ac_cv_lib_posix_remove = yes; then | ||
8358 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
8359 | fi | ||
8360 | |||
8361 | fi | ||
8362 | |||
8363 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
8364 | { echo "$as_me:$LINENO: checking for shmat" >&5 | ||
8365 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | ||
8366 | if test "${ac_cv_func_shmat+set}" = set; then | ||
8367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8368 | else | ||
8369 | cat >conftest.$ac_ext <<_ACEOF | ||
8370 | /* confdefs.h. */ | ||
8371 | _ACEOF | ||
8372 | cat confdefs.h >>conftest.$ac_ext | ||
8373 | cat >>conftest.$ac_ext <<_ACEOF | ||
8374 | /* end confdefs.h. */ | ||
8375 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | ||
8376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8377 | #define shmat innocuous_shmat | ||
8378 | |||
8379 | /* System header to define __stub macros and hopefully few prototypes, | ||
8380 | which can conflict with char shmat (); below. | ||
8381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8382 | <limits.h> exists even on freestanding compilers. */ | ||
8383 | |||
8384 | #ifdef __STDC__ | ||
8385 | # include <limits.h> | ||
8386 | #else | ||
8387 | # include <assert.h> | ||
8388 | #endif | ||
8389 | |||
8390 | #undef shmat | ||
8391 | |||
8392 | /* Override any GCC internal prototype to avoid an error. | ||
8393 | Use char because int might match the return type of a GCC | ||
8394 | builtin and then its argument prototype would still apply. */ | ||
8395 | #ifdef __cplusplus | ||
8396 | extern "C" | ||
8397 | #endif | ||
8398 | char shmat (); | ||
8399 | /* The GNU C library defines this for functions which it implements | ||
8400 | to always fail with ENOSYS. Some functions are actually named | ||
8401 | something starting with __ and the normal name is an alias. */ | ||
8402 | #if defined __stub_shmat || defined __stub___shmat | ||
8403 | choke me | ||
8404 | #endif | ||
8405 | |||
8406 | int | ||
8407 | main () | ||
8408 | { | ||
8409 | return shmat (); | ||
8410 | ; | ||
8411 | return 0; | ||
8412 | } | ||
8413 | _ACEOF | ||
8414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8415 | if { (ac_try="$ac_link" | ||
8416 | case "(($ac_try" in | ||
8417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8418 | *) ac_try_echo=$ac_try;; | ||
8419 | esac | ||
8420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8421 | (eval "$ac_link") 2>conftest.er1 | ||
8422 | ac_status=$? | ||
8423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8424 | rm -f conftest.er1 | ||
8425 | cat conftest.err >&5 | ||
8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8427 | (exit $ac_status); } && | ||
8428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8429 | { (case "(($ac_try" in | ||
8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8431 | *) ac_try_echo=$ac_try;; | ||
8432 | esac | ||
8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8434 | (eval "$ac_try") 2>&5 | ||
8435 | ac_status=$? | ||
8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8437 | (exit $ac_status); }; } && | ||
8438 | { ac_try='test -s conftest$ac_exeext' | ||
8439 | { (case "(($ac_try" in | ||
8440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8441 | *) ac_try_echo=$ac_try;; | ||
8442 | esac | ||
8443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8444 | (eval "$ac_try") 2>&5 | ||
8445 | ac_status=$? | ||
8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8447 | (exit $ac_status); }; }; then | ||
8448 | ac_cv_func_shmat=yes | ||
8449 | else | ||
8450 | echo "$as_me: failed program was:" >&5 | ||
8451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8452 | |||
8453 | ac_cv_func_shmat=no | ||
8454 | fi | ||
8455 | |||
8456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8457 | conftest$ac_exeext conftest.$ac_ext | ||
8458 | fi | ||
8459 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | ||
8460 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | ||
8461 | |||
8462 | if test $ac_cv_func_shmat = no; then | ||
8463 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | ||
8464 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | ||
8465 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | ||
8466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8467 | else | ||
8468 | ac_check_lib_save_LIBS=$LIBS | ||
8469 | LIBS="-lipc $LIBS" | ||
8470 | cat >conftest.$ac_ext <<_ACEOF | ||
8471 | /* confdefs.h. */ | ||
8472 | _ACEOF | ||
8473 | cat confdefs.h >>conftest.$ac_ext | ||
8474 | cat >>conftest.$ac_ext <<_ACEOF | ||
8475 | /* end confdefs.h. */ | ||
8476 | |||
8477 | /* Override any GCC internal prototype to avoid an error. | ||
8478 | Use char because int might match the return type of a GCC | ||
8479 | builtin and then its argument prototype would still apply. */ | ||
8480 | #ifdef __cplusplus | ||
8481 | extern "C" | ||
8482 | #endif | ||
8483 | char shmat (); | ||
8484 | int | ||
8485 | main () | ||
8486 | { | ||
8487 | return shmat (); | ||
8488 | ; | ||
8489 | return 0; | ||
8490 | } | ||
8491 | _ACEOF | ||
8492 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8493 | if { (ac_try="$ac_link" | ||
8494 | case "(($ac_try" in | ||
8495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8496 | *) ac_try_echo=$ac_try;; | ||
8497 | esac | ||
8498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8499 | (eval "$ac_link") 2>conftest.er1 | ||
8500 | ac_status=$? | ||
8501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8502 | rm -f conftest.er1 | ||
8503 | cat conftest.err >&5 | ||
8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8505 | (exit $ac_status); } && | ||
8506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8507 | { (case "(($ac_try" in | ||
8508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8509 | *) ac_try_echo=$ac_try;; | ||
8510 | esac | ||
8511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8512 | (eval "$ac_try") 2>&5 | ||
8513 | ac_status=$? | ||
8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8515 | (exit $ac_status); }; } && | ||
8516 | { ac_try='test -s conftest$ac_exeext' | ||
8517 | { (case "(($ac_try" in | ||
8518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8519 | *) ac_try_echo=$ac_try;; | ||
8520 | esac | ||
8521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8522 | (eval "$ac_try") 2>&5 | ||
8523 | ac_status=$? | ||
8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8525 | (exit $ac_status); }; }; then | ||
8526 | ac_cv_lib_ipc_shmat=yes | ||
8527 | else | ||
8528 | echo "$as_me: failed program was:" >&5 | ||
8529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8530 | |||
8531 | ac_cv_lib_ipc_shmat=no | ||
8532 | fi | ||
8533 | |||
8534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8535 | conftest$ac_exeext conftest.$ac_ext | ||
8536 | LIBS=$ac_check_lib_save_LIBS | ||
8537 | fi | ||
8538 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | ||
8539 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | ||
8540 | if test $ac_cv_lib_ipc_shmat = yes; then | ||
8541 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
8542 | fi | ||
8543 | |||
8544 | fi | ||
8545 | fi | ||
8546 | |||
8547 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
8548 | ac_save_LDFLAGS=$LDFLAGS | ||
8549 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
8550 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
8551 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
8552 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
8553 | # These have to be linked with before -lX11, unlike the other | ||
8554 | # libraries we check for below, so use a different variable. | ||
8555 | # John Interrante, Karl Berry | ||
8556 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | ||
8557 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | ||
8558 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | ||
8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8560 | else | ||
8561 | ac_check_lib_save_LIBS=$LIBS | ||
8562 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
8563 | cat >conftest.$ac_ext <<_ACEOF | ||
8564 | /* confdefs.h. */ | ||
8565 | _ACEOF | ||
8566 | cat confdefs.h >>conftest.$ac_ext | ||
8567 | cat >>conftest.$ac_ext <<_ACEOF | ||
8568 | /* end confdefs.h. */ | ||
8569 | |||
8570 | /* Override any GCC internal prototype to avoid an error. | ||
8571 | Use char because int might match the return type of a GCC | ||
8572 | builtin and then its argument prototype would still apply. */ | ||
8573 | #ifdef __cplusplus | ||
8574 | extern "C" | ||
8575 | #endif | ||
8576 | char IceConnectionNumber (); | ||
8577 | int | ||
8578 | main () | ||
8579 | { | ||
8580 | return IceConnectionNumber (); | ||
8581 | ; | ||
8582 | return 0; | ||
8583 | } | ||
8584 | _ACEOF | ||
8585 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8586 | if { (ac_try="$ac_link" | ||
8587 | case "(($ac_try" in | ||
8588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8589 | *) ac_try_echo=$ac_try;; | ||
8590 | esac | ||
8591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8592 | (eval "$ac_link") 2>conftest.er1 | ||
8593 | ac_status=$? | ||
8594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8595 | rm -f conftest.er1 | ||
8596 | cat conftest.err >&5 | ||
8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8598 | (exit $ac_status); } && | ||
8599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8600 | { (case "(($ac_try" in | ||
8601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8602 | *) ac_try_echo=$ac_try;; | ||
8603 | esac | ||
8604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8605 | (eval "$ac_try") 2>&5 | ||
8606 | ac_status=$? | ||
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8608 | (exit $ac_status); }; } && | ||
8609 | { ac_try='test -s conftest$ac_exeext' | ||
8610 | { (case "(($ac_try" in | ||
8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8612 | *) ac_try_echo=$ac_try;; | ||
8613 | esac | ||
8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8615 | (eval "$ac_try") 2>&5 | ||
8616 | ac_status=$? | ||
8617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8618 | (exit $ac_status); }; }; then | ||
8619 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
8620 | else | ||
8621 | echo "$as_me: failed program was:" >&5 | ||
8622 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8623 | |||
8624 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
8625 | fi | ||
8626 | |||
8627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8628 | conftest$ac_exeext conftest.$ac_ext | ||
8629 | LIBS=$ac_check_lib_save_LIBS | ||
8630 | fi | ||
8631 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
8632 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
8633 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | ||
8634 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
8635 | fi | ||
8636 | |||
8637 | LDFLAGS=$ac_save_LDFLAGS | ||
8638 | |||
8639 | fi | ||
8640 | |||
8641 | |||
8642 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
8643 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | ||
8644 | |||
8645 | ac_save_LIBS="$LIBS" | ||
8646 | LIBS="$LIBS $X_LIBS" | ||
8647 | |||
8648 | |||
8649 | |||
8650 | for ac_header in GL/gl.h GL/glu.h | ||
8651 | do | ||
8652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8653 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8657 | else | ||
8658 | cat >conftest.$ac_ext <<_ACEOF | ||
8659 | /* confdefs.h. */ | ||
8660 | _ACEOF | ||
8661 | cat confdefs.h >>conftest.$ac_ext | ||
8662 | cat >>conftest.$ac_ext <<_ACEOF | ||
8663 | /* end confdefs.h. */ | ||
8664 | #include <GL/gl.h> | ||
8665 | |||
8666 | #include <$ac_header> | ||
8667 | _ACEOF | ||
8668 | rm -f conftest.$ac_objext | ||
8669 | if { (ac_try="$ac_compile" | ||
8670 | case "(($ac_try" in | ||
8671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8672 | *) ac_try_echo=$ac_try;; | ||
8673 | esac | ||
8674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8675 | (eval "$ac_compile") 2>conftest.er1 | ||
8676 | ac_status=$? | ||
8677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8678 | rm -f conftest.er1 | ||
8679 | cat conftest.err >&5 | ||
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8681 | (exit $ac_status); } && | ||
8682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8683 | { (case "(($ac_try" in | ||
8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8685 | *) ac_try_echo=$ac_try;; | ||
8686 | esac | ||
8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8688 | (eval "$ac_try") 2>&5 | ||
8689 | ac_status=$? | ||
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8691 | (exit $ac_status); }; } && | ||
8692 | { ac_try='test -s conftest.$ac_objext' | ||
8693 | { (case "(($ac_try" in | ||
8694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8695 | *) ac_try_echo=$ac_try;; | ||
8696 | esac | ||
8697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8698 | (eval "$ac_try") 2>&5 | ||
8699 | ac_status=$? | ||
8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8701 | (exit $ac_status); }; }; then | ||
8702 | eval "$as_ac_Header=yes" | ||
8703 | else | ||
8704 | echo "$as_me: failed program was:" >&5 | ||
8705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8706 | |||
8707 | eval "$as_ac_Header=no" | ||
8708 | fi | ||
8709 | |||
8710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8711 | fi | ||
8712 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8714 | echo "${ECHO_T}$ac_res" >&6; } | ||
8715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8716 | cat >>confdefs.h <<_ACEOF | ||
8717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8718 | _ACEOF | ||
8719 | |||
8720 | else | ||
8721 | { { echo "$as_me:$LINENO: error: some OpenGL headers missing" >&5 | ||
8722 | echo "$as_me: error: some OpenGL headers missing" >&2;} | ||
8723 | { (exit 1); exit 1; }; } | ||
8724 | fi | ||
8725 | |||
8726 | done | ||
8727 | |||
8728 | |||
8729 | { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5 | ||
8730 | echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; } | ||
8731 | if test "${ac_cv_lib_GL_glBegin+set}" = set; then | ||
8732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8733 | else | ||
8734 | ac_check_lib_save_LIBS=$LIBS | ||
8735 | LIBS="-lGL $LIBS" | ||
8736 | cat >conftest.$ac_ext <<_ACEOF | ||
8737 | /* confdefs.h. */ | ||
8738 | _ACEOF | ||
8739 | cat confdefs.h >>conftest.$ac_ext | ||
8740 | cat >>conftest.$ac_ext <<_ACEOF | ||
8741 | /* end confdefs.h. */ | ||
8742 | |||
8743 | /* Override any GCC internal prototype to avoid an error. | ||
8744 | Use char because int might match the return type of a GCC | ||
8745 | builtin and then its argument prototype would still apply. */ | ||
8746 | #ifdef __cplusplus | ||
8747 | extern "C" | ||
8748 | #endif | ||
8749 | char glBegin (); | ||
8750 | int | ||
8751 | main () | ||
8752 | { | ||
8753 | return glBegin (); | ||
8754 | ; | ||
8755 | return 0; | ||
8756 | } | ||
8757 | _ACEOF | ||
8758 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8759 | if { (ac_try="$ac_link" | ||
8760 | case "(($ac_try" in | ||
8761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8762 | *) ac_try_echo=$ac_try;; | ||
8763 | esac | ||
8764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8765 | (eval "$ac_link") 2>conftest.er1 | ||
8766 | ac_status=$? | ||
8767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8768 | rm -f conftest.er1 | ||
8769 | cat conftest.err >&5 | ||
8770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8771 | (exit $ac_status); } && | ||
8772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8773 | { (case "(($ac_try" in | ||
8774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8775 | *) ac_try_echo=$ac_try;; | ||
8776 | esac | ||
8777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8778 | (eval "$ac_try") 2>&5 | ||
8779 | ac_status=$? | ||
8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8781 | (exit $ac_status); }; } && | ||
8782 | { ac_try='test -s conftest$ac_exeext' | ||
8783 | { (case "(($ac_try" in | ||
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8785 | *) ac_try_echo=$ac_try;; | ||
8786 | esac | ||
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8788 | (eval "$ac_try") 2>&5 | ||
8789 | ac_status=$? | ||
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8791 | (exit $ac_status); }; }; then | ||
8792 | ac_cv_lib_GL_glBegin=yes | ||
8793 | else | ||
8794 | echo "$as_me: failed program was:" >&5 | ||
8795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8796 | |||
8797 | ac_cv_lib_GL_glBegin=no | ||
8798 | fi | ||
8799 | |||
8800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8801 | conftest$ac_exeext conftest.$ac_ext | ||
8802 | LIBS=$ac_check_lib_save_LIBS | ||
8803 | fi | ||
8804 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5 | ||
8805 | echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; } | ||
8806 | if test $ac_cv_lib_GL_glBegin = yes; then | ||
8807 | have_gl=yes | ||
8808 | else | ||
8809 | have_gl=no | ||
8810 | fi | ||
8811 | |||
8812 | { echo "$as_me:$LINENO: checking for gluPerspective in -lGLU" >&5 | ||
8813 | echo $ECHO_N "checking for gluPerspective in -lGLU... $ECHO_C" >&6; } | ||
8814 | if test "${ac_cv_lib_GLU_gluPerspective+set}" = set; then | ||
8815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8816 | else | ||
8817 | ac_check_lib_save_LIBS=$LIBS | ||
8818 | LIBS="-lGLU -lGL $GTK_LIBS $LIBS" | ||
8819 | cat >conftest.$ac_ext <<_ACEOF | ||
8820 | /* confdefs.h. */ | ||
8821 | _ACEOF | ||
8822 | cat confdefs.h >>conftest.$ac_ext | ||
8823 | cat >>conftest.$ac_ext <<_ACEOF | ||
8824 | /* end confdefs.h. */ | ||
8825 | |||
8826 | /* Override any GCC internal prototype to avoid an error. | ||
8827 | Use char because int might match the return type of a GCC | ||
8828 | builtin and then its argument prototype would still apply. */ | ||
8829 | #ifdef __cplusplus | ||
8830 | extern "C" | ||
8831 | #endif | ||
8832 | char gluPerspective (); | ||
8833 | int | ||
8834 | main () | ||
8835 | { | ||
8836 | return gluPerspective (); | ||
8837 | ; | ||
8838 | return 0; | ||
8839 | } | ||
8840 | _ACEOF | ||
8841 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8842 | if { (ac_try="$ac_link" | ||
8843 | case "(($ac_try" in | ||
8844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8845 | *) ac_try_echo=$ac_try;; | ||
8846 | esac | ||
8847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8848 | (eval "$ac_link") 2>conftest.er1 | ||
8849 | ac_status=$? | ||
8850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8851 | rm -f conftest.er1 | ||
8852 | cat conftest.err >&5 | ||
8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8854 | (exit $ac_status); } && | ||
8855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8856 | { (case "(($ac_try" in | ||
8857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8858 | *) ac_try_echo=$ac_try;; | ||
8859 | esac | ||
8860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8861 | (eval "$ac_try") 2>&5 | ||
8862 | ac_status=$? | ||
8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8864 | (exit $ac_status); }; } && | ||
8865 | { ac_try='test -s conftest$ac_exeext' | ||
8866 | { (case "(($ac_try" in | ||
8867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8868 | *) ac_try_echo=$ac_try;; | ||
8869 | esac | ||
8870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8871 | (eval "$ac_try") 2>&5 | ||
8872 | ac_status=$? | ||
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8874 | (exit $ac_status); }; }; then | ||
8875 | ac_cv_lib_GLU_gluPerspective=yes | ||
8876 | else | ||
8877 | echo "$as_me: failed program was:" >&5 | ||
8878 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8879 | |||
8880 | ac_cv_lib_GLU_gluPerspective=no | ||
8881 | fi | ||
8882 | |||
8883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8884 | conftest$ac_exeext conftest.$ac_ext | ||
8885 | LIBS=$ac_check_lib_save_LIBS | ||
8886 | fi | ||
8887 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluPerspective" >&5 | ||
8888 | echo "${ECHO_T}$ac_cv_lib_GLU_gluPerspective" >&6; } | ||
8889 | if test $ac_cv_lib_GLU_gluPerspective = yes; then | ||
8890 | have_glu=yes | ||
8891 | else | ||
8892 | have_glu=no | ||
8893 | fi | ||
8894 | |||
8895 | if test $have_gl = no || test $have_glu = no; then | ||
8896 | { { echo "$as_me:$LINENO: error: libgl or libglu missing" >&5 | ||
8897 | echo "$as_me: error: libgl or libglu missing" >&2;} | ||
8898 | { (exit 1); exit 1; }; } | ||
8899 | else | ||
8900 | GL_LIBS="-lGL -lGLU $GTK_LIBS" | ||
8901 | |||
8902 | fi | ||
8903 | |||
8904 | # Check some UNIX headers | ||
8905 | |||
8906 | |||
8907 | |||
8908 | for ac_header in dirent.h sys/stat.h unistd.h | ||
8909 | do | ||
8910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8911 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8915 | else | ||
8916 | cat >conftest.$ac_ext <<_ACEOF | ||
8917 | /* confdefs.h. */ | ||
8918 | _ACEOF | ||
8919 | cat confdefs.h >>conftest.$ac_ext | ||
8920 | cat >>conftest.$ac_ext <<_ACEOF | ||
8921 | /* end confdefs.h. */ | ||
8922 | #include <sys/types.h> | ||
8923 | |||
8924 | #include <$ac_header> | ||
8925 | _ACEOF | ||
8926 | rm -f conftest.$ac_objext | ||
8927 | if { (ac_try="$ac_compile" | ||
8928 | case "(($ac_try" in | ||
8929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8930 | *) ac_try_echo=$ac_try;; | ||
8931 | esac | ||
8932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8933 | (eval "$ac_compile") 2>conftest.er1 | ||
8934 | ac_status=$? | ||
8935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8936 | rm -f conftest.er1 | ||
8937 | cat conftest.err >&5 | ||
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8939 | (exit $ac_status); } && | ||
8940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8941 | { (case "(($ac_try" in | ||
8942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8943 | *) ac_try_echo=$ac_try;; | ||
8944 | esac | ||
8945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8946 | (eval "$ac_try") 2>&5 | ||
8947 | ac_status=$? | ||
8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8949 | (exit $ac_status); }; } && | ||
8950 | { ac_try='test -s conftest.$ac_objext' | ||
8951 | { (case "(($ac_try" in | ||
8952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8953 | *) ac_try_echo=$ac_try;; | ||
8954 | esac | ||
8955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8956 | (eval "$ac_try") 2>&5 | ||
8957 | ac_status=$? | ||
8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8959 | (exit $ac_status); }; }; then | ||
8960 | eval "$as_ac_Header=yes" | ||
8961 | else | ||
8962 | echo "$as_me: failed program was:" >&5 | ||
8963 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8964 | |||
8965 | eval "$as_ac_Header=no" | ||
8966 | fi | ||
8967 | |||
8968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8969 | fi | ||
8970 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8971 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8972 | echo "${ECHO_T}$ac_res" >&6; } | ||
8973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8974 | cat >>confdefs.h <<_ACEOF | ||
8975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8976 | _ACEOF | ||
8977 | |||
8978 | else | ||
8979 | { { echo "$as_me:$LINENO: error: missing header file" >&5 | ||
8980 | echo "$as_me: error: missing header file" >&2;} | ||
8981 | { (exit 1); exit 1; }; } | ||
8982 | fi | ||
8983 | |||
8984 | done | ||
8985 | |||
8986 | |||
8987 | # Look for snprintf (optional) | ||
8988 | { echo "$as_me:$LINENO: checking for snprintf" >&5 | ||
8989 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; } | ||
8990 | if test "${ac_cv_func_snprintf+set}" = set; then | ||
8991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8992 | else | ||
8993 | cat >conftest.$ac_ext <<_ACEOF | ||
8994 | /* confdefs.h. */ | ||
8995 | _ACEOF | ||
8996 | cat confdefs.h >>conftest.$ac_ext | ||
8997 | cat >>conftest.$ac_ext <<_ACEOF | ||
8998 | /* end confdefs.h. */ | ||
8999 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. | ||
9000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9001 | #define snprintf innocuous_snprintf | ||
9002 | |||
9003 | /* System header to define __stub macros and hopefully few prototypes, | ||
9004 | which can conflict with char snprintf (); below. | ||
9005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9006 | <limits.h> exists even on freestanding compilers. */ | ||
9007 | |||
9008 | #ifdef __STDC__ | ||
9009 | # include <limits.h> | ||
9010 | #else | ||
9011 | # include <assert.h> | ||
9012 | #endif | ||
9013 | |||
9014 | #undef snprintf | ||
9015 | |||
9016 | /* Override any GCC internal prototype to avoid an error. | ||
9017 | Use char because int might match the return type of a GCC | ||
9018 | builtin and then its argument prototype would still apply. */ | ||
9019 | #ifdef __cplusplus | ||
9020 | extern "C" | ||
9021 | #endif | ||
9022 | char snprintf (); | ||
9023 | /* The GNU C library defines this for functions which it implements | ||
9024 | to always fail with ENOSYS. Some functions are actually named | ||
9025 | something starting with __ and the normal name is an alias. */ | ||
9026 | #if defined __stub_snprintf || defined __stub___snprintf | ||
9027 | choke me | ||
9028 | #endif | ||
9029 | |||
9030 | int | ||
9031 | main () | ||
9032 | { | ||
9033 | return snprintf (); | ||
9034 | ; | ||
9035 | return 0; | ||
9036 | } | ||
9037 | _ACEOF | ||
9038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9039 | if { (ac_try="$ac_link" | ||
9040 | case "(($ac_try" in | ||
9041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9042 | *) ac_try_echo=$ac_try;; | ||
9043 | esac | ||
9044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9045 | (eval "$ac_link") 2>conftest.er1 | ||
9046 | ac_status=$? | ||
9047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9048 | rm -f conftest.er1 | ||
9049 | cat conftest.err >&5 | ||
9050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9051 | (exit $ac_status); } && | ||
9052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9053 | { (case "(($ac_try" in | ||
9054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9055 | *) ac_try_echo=$ac_try;; | ||
9056 | esac | ||
9057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9058 | (eval "$ac_try") 2>&5 | ||
9059 | ac_status=$? | ||
9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9061 | (exit $ac_status); }; } && | ||
9062 | { ac_try='test -s conftest$ac_exeext' | ||
9063 | { (case "(($ac_try" in | ||
9064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9065 | *) ac_try_echo=$ac_try;; | ||
9066 | esac | ||
9067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9068 | (eval "$ac_try") 2>&5 | ||
9069 | ac_status=$? | ||
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9071 | (exit $ac_status); }; }; then | ||
9072 | ac_cv_func_snprintf=yes | ||
9073 | else | ||
9074 | echo "$as_me: failed program was:" >&5 | ||
9075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9076 | |||
9077 | ac_cv_func_snprintf=no | ||
9078 | fi | ||
9079 | |||
9080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9081 | conftest$ac_exeext conftest.$ac_ext | ||
9082 | fi | ||
9083 | { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 | ||
9084 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6; } | ||
9085 | if test $ac_cv_func_snprintf = yes; then | ||
9086 | |||
9087 | cat >>confdefs.h <<\_ACEOF | ||
9088 | #define HAVE_SNPRINTF 1 | ||
9089 | _ACEOF | ||
9090 | |||
9091 | fi | ||
9092 | |||
9093 | |||
9094 | # Look for fstat (required) | ||
9095 | { echo "$as_me:$LINENO: checking for fstat" >&5 | ||
9096 | echo $ECHO_N "checking for fstat... $ECHO_C" >&6; } | ||
9097 | if test "${ac_cv_func_fstat+set}" = set; then | ||
9098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9099 | else | ||
9100 | cat >conftest.$ac_ext <<_ACEOF | ||
9101 | /* confdefs.h. */ | ||
9102 | _ACEOF | ||
9103 | cat confdefs.h >>conftest.$ac_ext | ||
9104 | cat >>conftest.$ac_ext <<_ACEOF | ||
9105 | /* end confdefs.h. */ | ||
9106 | /* Define fstat to an innocuous variant, in case <limits.h> declares fstat. | ||
9107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9108 | #define fstat innocuous_fstat | ||
9109 | |||
9110 | /* System header to define __stub macros and hopefully few prototypes, | ||
9111 | which can conflict with char fstat (); below. | ||
9112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9113 | <limits.h> exists even on freestanding compilers. */ | ||
9114 | |||
9115 | #ifdef __STDC__ | ||
9116 | # include <limits.h> | ||
9117 | #else | ||
9118 | # include <assert.h> | ||
9119 | #endif | ||
9120 | |||
9121 | #undef fstat | ||
9122 | |||
9123 | /* Override any GCC internal prototype to avoid an error. | ||
9124 | Use char because int might match the return type of a GCC | ||
9125 | builtin and then its argument prototype would still apply. */ | ||
9126 | #ifdef __cplusplus | ||
9127 | extern "C" | ||
9128 | #endif | ||
9129 | char fstat (); | ||
9130 | /* The GNU C library defines this for functions which it implements | ||
9131 | to always fail with ENOSYS. Some functions are actually named | ||
9132 | something starting with __ and the normal name is an alias. */ | ||
9133 | #if defined __stub_fstat || defined __stub___fstat | ||
9134 | choke me | ||
9135 | #endif | ||
9136 | |||
9137 | int | ||
9138 | main () | ||
9139 | { | ||
9140 | return fstat (); | ||
9141 | ; | ||
9142 | return 0; | ||
9143 | } | ||
9144 | _ACEOF | ||
9145 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9146 | if { (ac_try="$ac_link" | ||
9147 | case "(($ac_try" in | ||
9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9149 | *) ac_try_echo=$ac_try;; | ||
9150 | esac | ||
9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9152 | (eval "$ac_link") 2>conftest.er1 | ||
9153 | ac_status=$? | ||
9154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9155 | rm -f conftest.er1 | ||
9156 | cat conftest.err >&5 | ||
9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9158 | (exit $ac_status); } && | ||
9159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9160 | { (case "(($ac_try" in | ||
9161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9162 | *) ac_try_echo=$ac_try;; | ||
9163 | esac | ||
9164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9165 | (eval "$ac_try") 2>&5 | ||
9166 | ac_status=$? | ||
9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9168 | (exit $ac_status); }; } && | ||
9169 | { ac_try='test -s conftest$ac_exeext' | ||
9170 | { (case "(($ac_try" in | ||
9171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9172 | *) ac_try_echo=$ac_try;; | ||
9173 | esac | ||
9174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9175 | (eval "$ac_try") 2>&5 | ||
9176 | ac_status=$? | ||
9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9178 | (exit $ac_status); }; }; then | ||
9179 | ac_cv_func_fstat=yes | ||
9180 | else | ||
9181 | echo "$as_me: failed program was:" >&5 | ||
9182 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9183 | |||
9184 | ac_cv_func_fstat=no | ||
9185 | fi | ||
9186 | |||
9187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9188 | conftest$ac_exeext conftest.$ac_ext | ||
9189 | fi | ||
9190 | { echo "$as_me:$LINENO: result: $ac_cv_func_fstat" >&5 | ||
9191 | echo "${ECHO_T}$ac_cv_func_fstat" >&6; } | ||
9192 | if test $ac_cv_func_fstat = yes; then | ||
9193 | have_fstat=yes | ||
9194 | else | ||
9195 | have_fstat=no | ||
9196 | fi | ||
9197 | |||
9198 | if test $have_fstat = no; then | ||
9199 | { { echo "$as_me:$LINENO: error: fstat function not found" >&5 | ||
9200 | echo "$as_me: error: fstat function not found" >&2;} | ||
9201 | { (exit 1); exit 1; }; } | ||
9202 | fi | ||
9203 | |||
9204 | # Debug level (verbosity & optimization) | ||
9205 | { echo "$as_me:$LINENO: checking for debug level" >&5 | ||
9206 | echo $ECHO_N "checking for debug level... $ECHO_C" >&6; } | ||
9207 | # Check whether --enable-debug was given. | ||
9208 | if test "${enable_debug+set}" = set; then | ||
9209 | enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi | ||
9210 | else | ||
9211 | DEBUG=0 | ||
9212 | fi | ||
9213 | |||
9214 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 | ||
9215 | echo "${ECHO_T}$DEBUG" >&6; } | ||
9216 | |||
9217 | |||
9218 | if test "$DEBUG" = "0"; then | ||
9219 | DBG_CFLAGS="-O2" | ||
9220 | else | ||
9221 | DBG_CFLAGS="-g -DGLIB_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED" | ||
9222 | fi | ||
9223 | |||
9224 | |||
9225 | # Data & plugin directories | ||
9226 | |||
9227 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
9228 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
9229 | ac_define_dir=`eval echo $datadir/$PACKAGE` | ||
9230 | ac_define_dir=`eval echo $ac_define_dir` | ||
9231 | |||
9232 | cat >>confdefs.h <<_ACEOF | ||
9233 | #define DATA_DIR "$ac_define_dir" | ||
9234 | _ACEOF | ||
9235 | |||
9236 | |||
9237 | |||
9238 | # Create the files | ||
9239 | ac_config_files="$ac_config_files Makefile m4/Makefile man/Makefile src/Makefile thumbnailer/Makefile pixmaps/Makefile glade/Makefile po/Makefile.in" | ||
9240 | |||
9241 | cat >confcache <<\_ACEOF | ||
9242 | # This file is a shell script that caches the results of configure | ||
9243 | # tests run on this system so they can be shared between configure | ||
9244 | # scripts and configure runs, see configure's option --config-cache. | ||
9245 | # It is not useful on other systems. If it contains results you don't | ||
9246 | # want to keep, you may remove or edit it. | ||
9247 | # | ||
9248 | # config.status only pays attention to the cache file if you give it | ||
9249 | # the --recheck option to rerun configure. | ||
9250 | # | ||
9251 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
9252 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
9253 | # following values. | ||
9254 | |||
9255 | _ACEOF | ||
9256 | |||
9257 | # The following way of writing the cache mishandles newlines in values, | ||
9258 | # but we know of no workaround that is simple, portable, and efficient. | ||
9259 | # So, we kill variables containing newlines. | ||
9260 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
9261 | # and sets the high bit in the cache file unless we assign to the vars. | ||
9262 | ( | ||
9263 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
9264 | eval ac_val=\$$ac_var | ||
9265 | case $ac_val in #( | ||
9266 | *${as_nl}*) | ||
9267 | case $ac_var in #( | ||
9268 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
9269 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
9270 | esac | ||
9271 | case $ac_var in #( | ||
9272 | _ | IFS | as_nl) ;; #( | ||
9273 | *) $as_unset $ac_var ;; | ||
9274 | esac ;; | ||
9275 | esac | ||
9276 | done | ||
9277 | |||
9278 | (set) 2>&1 | | ||
9279 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
9280 | *${as_nl}ac_space=\ *) | ||
9281 | # `set' does not quote correctly, so add quotes (double-quote | ||
9282 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
9283 | sed -n \ | ||
9284 | "s/'/'\\\\''/g; | ||
9285 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
9286 | ;; #( | ||
9287 | *) | ||
9288 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
9289 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
9290 | ;; | ||
9291 | esac | | ||
9292 | sort | ||
9293 | ) | | ||
9294 | sed ' | ||
9295 | /^ac_cv_env_/b end | ||
9296 | t clear | ||
9297 | :clear | ||
9298 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
9299 | t end | ||
9300 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
9301 | :end' >>confcache | ||
9302 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
9303 | if test -w "$cache_file"; then | ||
9304 | test "x$cache_file" != "x/dev/null" && | ||
9305 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
9306 | echo "$as_me: updating cache $cache_file" >&6;} | ||
9307 | cat confcache >$cache_file | ||
9308 | else | ||
9309 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
9310 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
9311 | fi | ||
9312 | fi | ||
9313 | rm -f confcache | ||
9314 | |||
9315 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
9316 | # Let make expand exec_prefix. | ||
9317 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
9318 | |||
9319 | DEFS=-DHAVE_CONFIG_H | ||
9320 | |||
9321 | ac_libobjs= | ||
9322 | ac_ltlibobjs= | ||
9323 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
9324 | # 1. Remove the extension, and $U if already installed. | ||
9325 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
9326 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
9327 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
9328 | # will be set to the directory where LIBOBJS objects are built. | ||
9329 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
9330 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
9331 | done | ||
9332 | LIBOBJS=$ac_libobjs | ||
9333 | |||
9334 | LTLIBOBJS=$ac_ltlibobjs | ||
9335 | |||
9336 | |||
9337 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
9338 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
9339 | Usually this means the macro was only invoked conditionally." >&5 | ||
9340 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
9341 | Usually this means the macro was only invoked conditionally." >&2;} | ||
9342 | { (exit 1); exit 1; }; } | ||
9343 | fi | ||
9344 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
9345 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
9346 | Usually this means the macro was only invoked conditionally." >&5 | ||
9347 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
9348 | Usually this means the macro was only invoked conditionally." >&2;} | ||
9349 | { (exit 1); exit 1; }; } | ||
9350 | fi | ||
9351 | |||
9352 | : ${CONFIG_STATUS=./config.status} | ||
9353 | ac_clean_files_save=$ac_clean_files | ||
9354 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
9355 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
9356 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
9357 | cat >$CONFIG_STATUS <<_ACEOF | ||
9358 | #! $SHELL | ||
9359 | # Generated by $as_me. | ||
9360 | # Run this file to recreate the current configuration. | ||
9361 | # Compiler output produced by configure, useful for debugging | ||
9362 | # configure, is in config.log if it exists. | ||
9363 | |||
9364 | debug=false | ||
9365 | ac_cs_recheck=false | ||
9366 | ac_cs_silent=false | ||
9367 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
9368 | _ACEOF | ||
9369 | |||
9370 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9371 | ## --------------------- ## | ||
9372 | ## M4sh Initialization. ## | ||
9373 | ## --------------------- ## | ||
9374 | |||
9375 | # Be Bourne compatible | ||
9376 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
9377 | emulate sh | ||
9378 | NULLCMD=: | ||
9379 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
9380 | # is contrary to our usage. Disable this feature. | ||
9381 | alias -g '${1+"$@"}'='"$@"' | ||
9382 | setopt NO_GLOB_SUBST | ||
9383 | else | ||
9384 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
9385 | fi | ||
9386 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
9387 | DUALCASE=1; export DUALCASE # for MKS sh | ||
9388 | |||
9389 | |||
9390 | # PATH needs CR | ||
9391 | # Avoid depending upon Character Ranges. | ||
9392 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
9393 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
9394 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
9395 | as_cr_digits='0123456789' | ||
9396 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
9397 | |||
9398 | # The user is always right. | ||
9399 | if test "${PATH_SEPARATOR+set}" != set; then | ||
9400 | echo "#! /bin/sh" >conf$$.sh | ||
9401 | echo "exit 0" >>conf$$.sh | ||
9402 | chmod +x conf$$.sh | ||
9403 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
9404 | PATH_SEPARATOR=';' | ||
9405 | else | ||
9406 | PATH_SEPARATOR=: | ||
9407 | fi | ||
9408 | rm -f conf$$.sh | ||
9409 | fi | ||
9410 | |||
9411 | # Support unset when possible. | ||
9412 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
9413 | as_unset=unset | ||
9414 | else | ||
9415 | as_unset=false | ||
9416 | fi | ||
9417 | |||
9418 | |||
9419 | # IFS | ||
9420 | # We need space, tab and new line, in precisely that order. Quoting is | ||
9421 | # there to prevent editors from complaining about space-tab. | ||
9422 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
9423 | # splitting by setting IFS to empty value.) | ||
9424 | as_nl=' | ||
9425 | ' | ||
9426 | IFS=" "" $as_nl" | ||
9427 | |||
9428 | # Find who we are. Look in the path if we contain no directory separator. | ||
9429 | case $0 in | ||
9430 | *[\\/]* ) as_myself=$0 ;; | ||
9431 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9432 | for as_dir in $PATH | ||
9433 | do | ||
9434 | IFS=$as_save_IFS | ||
9435 | test -z "$as_dir" && as_dir=. | ||
9436 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
9437 | done | ||
9438 | IFS=$as_save_IFS | ||
9439 | |||
9440 | ;; | ||
9441 | esac | ||
9442 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
9443 | # in which case we are not to be found in the path. | ||
9444 | if test "x$as_myself" = x; then | ||
9445 | as_myself=$0 | ||
9446 | fi | ||
9447 | if test ! -f "$as_myself"; then | ||
9448 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
9449 | { (exit 1); exit 1; } | ||
9450 | fi | ||
9451 | |||
9452 | # Work around bugs in pre-3.0 UWIN ksh. | ||
9453 | for as_var in ENV MAIL MAILPATH | ||
9454 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
9455 | done | ||
9456 | PS1='$ ' | ||
9457 | PS2='> ' | ||
9458 | PS4='+ ' | ||
9459 | |||
9460 | # NLS nuisances. | ||
9461 | for as_var in \ | ||
9462 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
9463 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
9464 | LC_TELEPHONE LC_TIME | ||
9465 | do | ||
9466 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
9467 | eval $as_var=C; export $as_var | ||
9468 | else | ||
9469 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
9470 | fi | ||
9471 | done | ||
9472 | |||
9473 | # Required to use basename. | ||
9474 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
9475 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
9476 | as_expr=expr | ||
9477 | else | ||
9478 | as_expr=false | ||
9479 | fi | ||
9480 | |||
9481 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
9482 | as_basename=basename | ||
9483 | else | ||
9484 | as_basename=false | ||
9485 | fi | ||
9486 | |||
9487 | |||
9488 | # Name of the executable. | ||
9489 | as_me=`$as_basename -- "$0" || | ||
9490 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
9491 | X"$0" : 'X\(//\)$' \| \ | ||
9492 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
9493 | echo X/"$0" | | ||
9494 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
9495 | s//\1/ | ||
9496 | q | ||
9497 | } | ||
9498 | /^X\/\(\/\/\)$/{ | ||
9499 | s//\1/ | ||
9500 | q | ||
9501 | } | ||
9502 | /^X\/\(\/\).*/{ | ||
9503 | s//\1/ | ||
9504 | q | ||
9505 | } | ||
9506 | s/.*/./; q'` | ||
9507 | |||
9508 | # CDPATH. | ||
9509 | $as_unset CDPATH | ||
9510 | |||
9511 | |||
9512 | |||
9513 | as_lineno_1=$LINENO | ||
9514 | as_lineno_2=$LINENO | ||
9515 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
9516 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
9517 | |||
9518 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
9519 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
9520 | # line-number line after each line using $LINENO; the second 'sed' | ||
9521 | # does the real work. The second script uses 'N' to pair each | ||
9522 | # line-number line with the line containing $LINENO, and appends | ||
9523 | # trailing '-' during substitution so that $LINENO is not a special | ||
9524 | # case at line end. | ||
9525 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
9526 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
9527 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
9528 | sed -n ' | ||
9529 | p | ||
9530 | /[$]LINENO/= | ||
9531 | ' <$as_myself | | ||
9532 | sed ' | ||
9533 | s/[$]LINENO.*/&-/ | ||
9534 | t lineno | ||
9535 | b | ||
9536 | :lineno | ||
9537 | N | ||
9538 | :loop | ||
9539 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
9540 | t loop | ||
9541 | s/-\n.*// | ||
9542 | ' >$as_me.lineno && | ||
9543 | chmod +x "$as_me.lineno" || | ||
9544 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
9545 | { (exit 1); exit 1; }; } | ||
9546 | |||
9547 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
9548 | # (the dirname of $[0] is not the place where we might find the | ||
9549 | # original and so on. Autoconf is especially sensitive to this). | ||
9550 | . "./$as_me.lineno" | ||
9551 | # Exit status is that of the last command. | ||
9552 | exit | ||
9553 | } | ||
9554 | |||
9555 | |||
9556 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
9557 | as_dirname=dirname | ||
9558 | else | ||
9559 | as_dirname=false | ||
9560 | fi | ||
9561 | |||
9562 | ECHO_C= ECHO_N= ECHO_T= | ||
9563 | case `echo -n x` in | ||
9564 | -n*) | ||
9565 | case `echo 'x\c'` in | ||
9566 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
9567 | *) ECHO_C='\c';; | ||
9568 | esac;; | ||
9569 | *) | ||
9570 | ECHO_N='-n';; | ||
9571 | esac | ||
9572 | |||
9573 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
9574 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
9575 | as_expr=expr | ||
9576 | else | ||
9577 | as_expr=false | ||
9578 | fi | ||
9579 | |||
9580 | rm -f conf$$ conf$$.exe conf$$.file | ||
9581 | if test -d conf$$.dir; then | ||
9582 | rm -f conf$$.dir/conf$$.file | ||
9583 | else | ||
9584 | rm -f conf$$.dir | ||
9585 | mkdir conf$$.dir | ||
9586 | fi | ||
9587 | echo >conf$$.file | ||
9588 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
9589 | as_ln_s='ln -s' | ||
9590 | # ... but there are two gotchas: | ||
9591 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
9592 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
9593 | # In both cases, we have to default to `cp -p'. | ||
9594 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
9595 | as_ln_s='cp -p' | ||
9596 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
9597 | as_ln_s=ln | ||
9598 | else | ||
9599 | as_ln_s='cp -p' | ||
9600 | fi | ||
9601 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
9602 | rmdir conf$$.dir 2>/dev/null | ||
9603 | |||
9604 | if mkdir -p . 2>/dev/null; then | ||
9605 | as_mkdir_p=: | ||
9606 | else | ||
9607 | test -d ./-p && rmdir ./-p | ||
9608 | as_mkdir_p=false | ||
9609 | fi | ||
9610 | |||
9611 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
9612 | # systems may use methods other than mode bits to determine executability. | ||
9613 | cat >conf$$.file <<_ASEOF | ||
9614 | #! /bin/sh | ||
9615 | exit 0 | ||
9616 | _ASEOF | ||
9617 | chmod +x conf$$.file | ||
9618 | if test -x conf$$.file >/dev/null 2>&1; then | ||
9619 | as_executable_p="test -x" | ||
9620 | else | ||
9621 | as_executable_p=: | ||
9622 | fi | ||
9623 | rm -f conf$$.file | ||
9624 | |||
9625 | # Sed expression to map a string onto a valid CPP name. | ||
9626 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
9627 | |||
9628 | # Sed expression to map a string onto a valid variable name. | ||
9629 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
9630 | |||
9631 | |||
9632 | exec 6>&1 | ||
9633 | |||
9634 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
9635 | # report actual input values of CONFIG_FILES etc. instead of their | ||
9636 | # values after options handling. | ||
9637 | ac_log=" | ||
9638 | This file was extended by $as_me, which was | ||
9639 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
9640 | |||
9641 | CONFIG_FILES = $CONFIG_FILES | ||
9642 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
9643 | CONFIG_LINKS = $CONFIG_LINKS | ||
9644 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
9645 | $ $0 $@ | ||
9646 | |||
9647 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
9648 | " | ||
9649 | |||
9650 | _ACEOF | ||
9651 | |||
9652 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9653 | # Files that config.status was made for. | ||
9654 | config_files="$ac_config_files" | ||
9655 | config_headers="$ac_config_headers" | ||
9656 | config_commands="$ac_config_commands" | ||
9657 | |||
9658 | _ACEOF | ||
9659 | |||
9660 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9661 | ac_cs_usage="\ | ||
9662 | \`$as_me' instantiates files from templates according to the | ||
9663 | current configuration. | ||
9664 | |||
9665 | Usage: $0 [OPTIONS] [FILE]... | ||
9666 | |||
9667 | -h, --help print this help, then exit | ||
9668 | -V, --version print version number and configuration settings, then exit | ||
9669 | -q, --quiet do not print progress messages | ||
9670 | -d, --debug don't remove temporary files | ||
9671 | --recheck update $as_me by reconfiguring in the same conditions | ||
9672 | --file=FILE[:TEMPLATE] | ||
9673 | instantiate the configuration file FILE | ||
9674 | --header=FILE[:TEMPLATE] | ||
9675 | instantiate the configuration header FILE | ||
9676 | |||
9677 | Configuration files: | ||
9678 | $config_files | ||
9679 | |||
9680 | Configuration headers: | ||
9681 | $config_headers | ||
9682 | |||
9683 | Configuration commands: | ||
9684 | $config_commands | ||
9685 | |||
9686 | Report bugs to <bug-autoconf@gnu.org>." | ||
9687 | |||
9688 | _ACEOF | ||
9689 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9690 | ac_cs_version="\\ | ||
9691 | config.status | ||
9692 | configured by $0, generated by GNU Autoconf 2.60a, | ||
9693 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
9694 | |||
9695 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
9696 | This config.status script is free software; the Free Software Foundation | ||
9697 | gives unlimited permission to copy, distribute and modify it." | ||
9698 | |||
9699 | ac_pwd='$ac_pwd' | ||
9700 | srcdir='$srcdir' | ||
9701 | INSTALL='$INSTALL' | ||
9702 | _ACEOF | ||
9703 | |||
9704 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9705 | # If no file are specified by the user, then we need to provide default | ||
9706 | # value. By we need to know if files were specified by the user. | ||
9707 | ac_need_defaults=: | ||
9708 | while test $# != 0 | ||
9709 | do | ||
9710 | case $1 in | ||
9711 | --*=*) | ||
9712 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
9713 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
9714 | ac_shift=: | ||
9715 | ;; | ||
9716 | *) | ||
9717 | ac_option=$1 | ||
9718 | ac_optarg=$2 | ||
9719 | ac_shift=shift | ||
9720 | ;; | ||
9721 | esac | ||
9722 | |||
9723 | case $ac_option in | ||
9724 | # Handling of the options. | ||
9725 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
9726 | ac_cs_recheck=: ;; | ||
9727 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
9728 | echo "$ac_cs_version"; exit ;; | ||
9729 | --debug | --debu | --deb | --de | --d | -d ) | ||
9730 | debug=: ;; | ||
9731 | --file | --fil | --fi | --f ) | ||
9732 | $ac_shift | ||
9733 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
9734 | ac_need_defaults=false;; | ||
9735 | --header | --heade | --head | --hea ) | ||
9736 | $ac_shift | ||
9737 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
9738 | ac_need_defaults=false;; | ||
9739 | --he | --h) | ||
9740 | # Conflict between --help and --header | ||
9741 | { echo "$as_me: error: ambiguous option: $1 | ||
9742 | Try \`$0 --help' for more information." >&2 | ||
9743 | { (exit 1); exit 1; }; };; | ||
9744 | --help | --hel | -h ) | ||
9745 | echo "$ac_cs_usage"; exit ;; | ||
9746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
9747 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
9748 | ac_cs_silent=: ;; | ||
9749 | |||
9750 | # This is an error. | ||
9751 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
9752 | Try \`$0 --help' for more information." >&2 | ||
9753 | { (exit 1); exit 1; }; } ;; | ||
9754 | |||
9755 | *) ac_config_targets="$ac_config_targets $1" | ||
9756 | ac_need_defaults=false ;; | ||
9757 | |||
9758 | esac | ||
9759 | shift | ||
9760 | done | ||
9761 | |||
9762 | ac_configure_extra_args= | ||
9763 | |||
9764 | if $ac_cs_silent; then | ||
9765 | exec 6>/dev/null | ||
9766 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
9767 | fi | ||
9768 | |||
9769 | _ACEOF | ||
9770 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9771 | if \$ac_cs_recheck; then | ||
9772 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
9773 | CONFIG_SHELL=$SHELL | ||
9774 | export CONFIG_SHELL | ||
9775 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
9776 | fi | ||
9777 | |||
9778 | _ACEOF | ||
9779 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9780 | exec 5>>config.log | ||
9781 | { | ||
9782 | echo | ||
9783 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
9784 | ## Running $as_me. ## | ||
9785 | _ASBOX | ||
9786 | echo "$ac_log" | ||
9787 | } >&5 | ||
9788 | |||
9789 | _ACEOF | ||
9790 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9791 | # | ||
9792 | # INIT-COMMANDS | ||
9793 | # | ||
9794 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
9795 | |||
9796 | |||
9797 | _ACEOF | ||
9798 | |||
9799 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9800 | |||
9801 | # Handling of arguments. | ||
9802 | for ac_config_target in $ac_config_targets | ||
9803 | do | ||
9804 | case $ac_config_target in | ||
9805 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
9806 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
9807 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | ||
9808 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
9809 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | ||
9810 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | ||
9811 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
9812 | "thumbnailer/Makefile") CONFIG_FILES="$CONFIG_FILES thumbnailer/Makefile" ;; | ||
9813 | "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; | ||
9814 | "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;; | ||
9815 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | ||
9816 | |||
9817 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
9818 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
9819 | { (exit 1); exit 1; }; };; | ||
9820 | esac | ||
9821 | done | ||
9822 | |||
9823 | |||
9824 | # If the user did not use the arguments to specify the items to instantiate, | ||
9825 | # then the envvar interface is used. Set only those that are not. | ||
9826 | # We use the long form for the default assignment because of an extremely | ||
9827 | # bizarre bug on SunOS 4.1.3. | ||
9828 | if $ac_need_defaults; then | ||
9829 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
9830 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
9831 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
9832 | fi | ||
9833 | |||
9834 | # Have a temporary directory for convenience. Make it in the build tree | ||
9835 | # simply because there is no reason against having it here, and in addition, | ||
9836 | # creating and moving files from /tmp can sometimes cause problems. | ||
9837 | # Hook for its removal unless debugging. | ||
9838 | # Note that there is a small window in which the directory will not be cleaned: | ||
9839 | # after its creation but before its name has been assigned to `$tmp'. | ||
9840 | $debug || | ||
9841 | { | ||
9842 | tmp= | ||
9843 | trap 'exit_status=$? | ||
9844 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
9845 | ' 0 | ||
9846 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
9847 | } | ||
9848 | # Create a (secure) tmp directory for tmp files. | ||
9849 | |||
9850 | { | ||
9851 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
9852 | test -n "$tmp" && test -d "$tmp" | ||
9853 | } || | ||
9854 | { | ||
9855 | tmp=./conf$$-$RANDOM | ||
9856 | (umask 077 && mkdir "$tmp") | ||
9857 | } || | ||
9858 | { | ||
9859 | echo "$me: cannot create a temporary directory in ." >&2 | ||
9860 | { (exit 1); exit 1; } | ||
9861 | } | ||
9862 | |||
9863 | # | ||
9864 | # Set up the sed scripts for CONFIG_FILES section. | ||
9865 | # | ||
9866 | |||
9867 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
9868 | # This happens for instance when ./config.status config.h | ||
9869 | if test -n "$CONFIG_FILES"; then | ||
9870 | |||
9871 | _ACEOF | ||
9872 | |||
9873 | |||
9874 | |||
9875 | ac_delim='%!_!# ' | ||
9876 | for ac_last_try in false false false false false :; do | ||
9877 | cat >conf$$subs.sed <<_ACEOF | ||
9878 | SHELL!$SHELL$ac_delim | ||
9879 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
9880 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
9881 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
9882 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
9883 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
9884 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
9885 | exec_prefix!$exec_prefix$ac_delim | ||
9886 | prefix!$prefix$ac_delim | ||
9887 | program_transform_name!$program_transform_name$ac_delim | ||
9888 | bindir!$bindir$ac_delim | ||
9889 | sbindir!$sbindir$ac_delim | ||
9890 | libexecdir!$libexecdir$ac_delim | ||
9891 | datarootdir!$datarootdir$ac_delim | ||
9892 | datadir!$datadir$ac_delim | ||
9893 | sysconfdir!$sysconfdir$ac_delim | ||
9894 | sharedstatedir!$sharedstatedir$ac_delim | ||
9895 | localstatedir!$localstatedir$ac_delim | ||
9896 | includedir!$includedir$ac_delim | ||
9897 | oldincludedir!$oldincludedir$ac_delim | ||
9898 | docdir!$docdir$ac_delim | ||
9899 | infodir!$infodir$ac_delim | ||
9900 | htmldir!$htmldir$ac_delim | ||
9901 | dvidir!$dvidir$ac_delim | ||
9902 | pdfdir!$pdfdir$ac_delim | ||
9903 | psdir!$psdir$ac_delim | ||
9904 | libdir!$libdir$ac_delim | ||
9905 | localedir!$localedir$ac_delim | ||
9906 | mandir!$mandir$ac_delim | ||
9907 | DEFS!$DEFS$ac_delim | ||
9908 | ECHO_C!$ECHO_C$ac_delim | ||
9909 | ECHO_N!$ECHO_N$ac_delim | ||
9910 | ECHO_T!$ECHO_T$ac_delim | ||
9911 | LIBS!$LIBS$ac_delim | ||
9912 | build_alias!$build_alias$ac_delim | ||
9913 | host_alias!$host_alias$ac_delim | ||
9914 | target_alias!$target_alias$ac_delim | ||
9915 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
9916 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
9917 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
9918 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
9919 | PACKAGE!$PACKAGE$ac_delim | ||
9920 | VERSION!$VERSION$ac_delim | ||
9921 | ACLOCAL!$ACLOCAL$ac_delim | ||
9922 | AUTOCONF!$AUTOCONF$ac_delim | ||
9923 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
9924 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
9925 | MAKEINFO!$MAKEINFO$ac_delim | ||
9926 | AMTAR!$AMTAR$ac_delim | ||
9927 | install_sh!$install_sh$ac_delim | ||
9928 | STRIP!$STRIP$ac_delim | ||
9929 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
9930 | AWK!$AWK$ac_delim | ||
9931 | SET_MAKE!$SET_MAKE$ac_delim | ||
9932 | am__leading_dot!$am__leading_dot$ac_delim | ||
9933 | CC!$CC$ac_delim | ||
9934 | CFLAGS!$CFLAGS$ac_delim | ||
9935 | LDFLAGS!$LDFLAGS$ac_delim | ||
9936 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
9937 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
9938 | EXEEXT!$EXEEXT$ac_delim | ||
9939 | OBJEXT!$OBJEXT$ac_delim | ||
9940 | DEPDIR!$DEPDIR$ac_delim | ||
9941 | am__include!$am__include$ac_delim | ||
9942 | am__quote!$am__quote$ac_delim | ||
9943 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
9944 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
9945 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
9946 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
9947 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
9948 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
9949 | CPP!$CPP$ac_delim | ||
9950 | GREP!$GREP$ac_delim | ||
9951 | EGREP!$EGREP$ac_delim | ||
9952 | USE_NLS!$USE_NLS$ac_delim | ||
9953 | MSGFMT!$MSGFMT$ac_delim | ||
9954 | GMSGFMT!$GMSGFMT$ac_delim | ||
9955 | XGETTEXT!$XGETTEXT$ac_delim | ||
9956 | CATALOGS!$CATALOGS$ac_delim | ||
9957 | CATOBJEXT!$CATOBJEXT$ac_delim | ||
9958 | DATADIRNAME!$DATADIRNAME$ac_delim | ||
9959 | GMOFILES!$GMOFILES$ac_delim | ||
9960 | INSTOBJEXT!$INSTOBJEXT$ac_delim | ||
9961 | INTLLIBS!$INTLLIBS$ac_delim | ||
9962 | PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim | ||
9963 | PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim | ||
9964 | POFILES!$POFILES$ac_delim | ||
9965 | POSUB!$POSUB$ac_delim | ||
9966 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim | ||
9967 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim | ||
9968 | PKG_CONFIG!$PKG_CONFIG$ac_delim | ||
9969 | GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim | ||
9970 | GLIB_LIBS!$GLIB_LIBS$ac_delim | ||
9971 | GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim | ||
9972 | GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim | ||
9973 | GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim | ||
9974 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim | ||
9975 | _ACEOF | ||
9976 | |||
9977 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
9978 | break | ||
9979 | elif $ac_last_try; then | ||
9980 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
9981 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
9982 | { (exit 1); exit 1; }; } | ||
9983 | else | ||
9984 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
9985 | fi | ||
9986 | done | ||
9987 | |||
9988 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
9989 | if test -n "$ac_eof"; then | ||
9990 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
9991 | ac_eof=`expr $ac_eof + 1` | ||
9992 | fi | ||
9993 | |||
9994 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9995 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
9996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
9997 | _ACEOF | ||
9998 | sed ' | ||
9999 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
10000 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
10001 | :n | ||
10002 | t n | ||
10003 | s/'"$ac_delim"'$/,g/; t | ||
10004 | s/$/\\/; p | ||
10005 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
10006 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
10007 | rm -f conf$$subs.sed | ||
10008 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10009 | CEOF$ac_eof | ||
10010 | _ACEOF | ||
10011 | |||
10012 | |||
10013 | ac_delim='%!_!# ' | ||
10014 | for ac_last_try in false false false false false :; do | ||
10015 | cat >conf$$subs.sed <<_ACEOF | ||
10016 | GTK_LIBS!$GTK_LIBS$ac_delim | ||
10017 | LIBGLADE_CFLAGS!$LIBGLADE_CFLAGS$ac_delim | ||
10018 | LIBGLADE_LIBS!$LIBGLADE_LIBS$ac_delim | ||
10019 | GTKGLEXT_CFLAGS!$GTKGLEXT_CFLAGS$ac_delim | ||
10020 | GTKGLEXT_LIBS!$GTKGLEXT_LIBS$ac_delim | ||
10021 | LIBG3D_CFLAGS!$LIBG3D_CFLAGS$ac_delim | ||
10022 | LIBG3D_LIBS!$LIBG3D_LIBS$ac_delim | ||
10023 | XMKMF!$XMKMF$ac_delim | ||
10024 | X_CFLAGS!$X_CFLAGS$ac_delim | ||
10025 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | ||
10026 | X_LIBS!$X_LIBS$ac_delim | ||
10027 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | ||
10028 | GL_LIBS!$GL_LIBS$ac_delim | ||
10029 | DEBUG!$DEBUG$ac_delim | ||
10030 | DBG_CFLAGS!$DBG_CFLAGS$ac_delim | ||
10031 | LIBOBJS!$LIBOBJS$ac_delim | ||
10032 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
10033 | _ACEOF | ||
10034 | |||
10035 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then | ||
10036 | break | ||
10037 | elif $ac_last_try; then | ||
10038 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
10039 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
10040 | { (exit 1); exit 1; }; } | ||
10041 | else | ||
10042 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
10043 | fi | ||
10044 | done | ||
10045 | |||
10046 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
10047 | if test -n "$ac_eof"; then | ||
10048 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
10049 | ac_eof=`expr $ac_eof + 1` | ||
10050 | fi | ||
10051 | |||
10052 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10053 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
10054 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
10055 | _ACEOF | ||
10056 | sed ' | ||
10057 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
10058 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
10059 | :n | ||
10060 | t n | ||
10061 | s/'"$ac_delim"'$/,g/; t | ||
10062 | s/$/\\/; p | ||
10063 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
10064 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
10065 | rm -f conf$$subs.sed | ||
10066 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10067 | :end | ||
10068 | s/|#_!!_#|//g | ||
10069 | CEOF$ac_eof | ||
10070 | _ACEOF | ||
10071 | |||
10072 | |||
10073 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
10074 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
10075 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
10076 | # (actually we leave an empty line to preserve line numbers). | ||
10077 | if test "x$srcdir" = x.; then | ||
10078 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
10079 | s/:*\$(srcdir):*/:/ | ||
10080 | s/:*\${srcdir}:*/:/ | ||
10081 | s/:*@srcdir@:*/:/ | ||
10082 | s/^\([^=]*=[ ]*\):*/\1/ | ||
10083 | s/:*$// | ||
10084 | s/^[^=]*=[ ]*$// | ||
10085 | }' | ||
10086 | fi | ||
10087 | |||
10088 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10089 | fi # test -n "$CONFIG_FILES" | ||
10090 | |||
10091 | |||
10092 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | ||
10093 | do | ||
10094 | case $ac_tag in | ||
10095 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
10096 | esac | ||
10097 | case $ac_mode$ac_tag in | ||
10098 | :[FHL]*:*);; | ||
10099 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
10100 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
10101 | { (exit 1); exit 1; }; };; | ||
10102 | :[FH]-) ac_tag=-:-;; | ||
10103 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
10104 | esac | ||
10105 | ac_save_IFS=$IFS | ||
10106 | IFS=: | ||
10107 | set x $ac_tag | ||
10108 | IFS=$ac_save_IFS | ||
10109 | shift | ||
10110 | ac_file=$1 | ||
10111 | shift | ||
10112 | |||
10113 | case $ac_mode in | ||
10114 | :L) ac_source=$1;; | ||
10115 | :[FH]) | ||
10116 | ac_file_inputs= | ||
10117 | for ac_f | ||
10118 | do | ||
10119 | case $ac_f in | ||
10120 | -) ac_f="$tmp/stdin";; | ||
10121 | *) # Look for the file first in the build tree, then in the source tree | ||
10122 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
10123 | # because $ac_f cannot contain `:'. | ||
10124 | test -f "$ac_f" || | ||
10125 | case $ac_f in | ||
10126 | [\\/$]*) false;; | ||
10127 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
10128 | esac || | ||
10129 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
10130 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
10131 | { (exit 1); exit 1; }; };; | ||
10132 | esac | ||
10133 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
10134 | done | ||
10135 | |||
10136 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
10137 | # use $as_me), people would be surprised to read: | ||
10138 | # /* config.h. Generated by config.status. */ | ||
10139 | configure_input="Generated from "`IFS=: | ||
10140 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
10141 | if test x"$ac_file" != x-; then | ||
10142 | configure_input="$ac_file. $configure_input" | ||
10143 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
10144 | echo "$as_me: creating $ac_file" >&6;} | ||
10145 | fi | ||
10146 | |||
10147 | case $ac_tag in | ||
10148 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
10149 | esac | ||
10150 | ;; | ||
10151 | esac | ||
10152 | |||
10153 | ac_dir=`$as_dirname -- "$ac_file" || | ||
10154 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10155 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
10156 | X"$ac_file" : 'X\(//\)$' \| \ | ||
10157 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
10158 | echo X"$ac_file" | | ||
10159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10160 | s//\1/ | ||
10161 | q | ||
10162 | } | ||
10163 | /^X\(\/\/\)[^/].*/{ | ||
10164 | s//\1/ | ||
10165 | q | ||
10166 | } | ||
10167 | /^X\(\/\/\)$/{ | ||
10168 | s//\1/ | ||
10169 | q | ||
10170 | } | ||
10171 | /^X\(\/\).*/{ | ||
10172 | s//\1/ | ||
10173 | q | ||
10174 | } | ||
10175 | s/.*/./; q'` | ||
10176 | { as_dir="$ac_dir" | ||
10177 | case $as_dir in #( | ||
10178 | -*) as_dir=./$as_dir;; | ||
10179 | esac | ||
10180 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
10181 | as_dirs= | ||
10182 | while :; do | ||
10183 | case $as_dir in #( | ||
10184 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
10185 | *) as_qdir=$as_dir;; | ||
10186 | esac | ||
10187 | as_dirs="'$as_qdir' $as_dirs" | ||
10188 | as_dir=`$as_dirname -- "$as_dir" || | ||
10189 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10190 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
10191 | X"$as_dir" : 'X\(//\)$' \| \ | ||
10192 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
10193 | echo X"$as_dir" | | ||
10194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10195 | s//\1/ | ||
10196 | q | ||
10197 | } | ||
10198 | /^X\(\/\/\)[^/].*/{ | ||
10199 | s//\1/ | ||
10200 | q | ||
10201 | } | ||
10202 | /^X\(\/\/\)$/{ | ||
10203 | s//\1/ | ||
10204 | q | ||
10205 | } | ||
10206 | /^X\(\/\).*/{ | ||
10207 | s//\1/ | ||
10208 | q | ||
10209 | } | ||
10210 | s/.*/./; q'` | ||
10211 | test -d "$as_dir" && break | ||
10212 | done | ||
10213 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
10214 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
10215 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
10216 | { (exit 1); exit 1; }; }; } | ||
10217 | ac_builddir=. | ||
10218 | |||
10219 | case "$ac_dir" in | ||
10220 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
10221 | *) | ||
10222 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
10223 | # A ".." for each directory in $ac_dir_suffix. | ||
10224 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
10225 | case $ac_top_builddir_sub in | ||
10226 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
10227 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
10228 | esac ;; | ||
10229 | esac | ||
10230 | ac_abs_top_builddir=$ac_pwd | ||
10231 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
10232 | # for backward compatibility: | ||
10233 | ac_top_builddir=$ac_top_build_prefix | ||
10234 | |||
10235 | case $srcdir in | ||
10236 | .) # We are building in place. | ||
10237 | ac_srcdir=. | ||
10238 | ac_top_srcdir=$ac_top_builddir_sub | ||
10239 | ac_abs_top_srcdir=$ac_pwd ;; | ||
10240 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
10241 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
10242 | ac_top_srcdir=$srcdir | ||
10243 | ac_abs_top_srcdir=$srcdir ;; | ||
10244 | *) # Relative name. | ||
10245 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
10246 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
10247 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
10248 | esac | ||
10249 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
10250 | |||
10251 | |||
10252 | case $ac_mode in | ||
10253 | :F) | ||
10254 | # | ||
10255 | # CONFIG_FILE | ||
10256 | # | ||
10257 | |||
10258 | case $INSTALL in | ||
10259 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
10260 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
10261 | esac | ||
10262 | _ACEOF | ||
10263 | |||
10264 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10265 | # If the template does not know about datarootdir, expand it. | ||
10266 | # FIXME: This hack should be removed a few years after 2.60. | ||
10267 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
10268 | |||
10269 | case `sed -n '/datarootdir/ { | ||
10270 | p | ||
10271 | q | ||
10272 | } | ||
10273 | /@datadir@/p | ||
10274 | /@docdir@/p | ||
10275 | /@infodir@/p | ||
10276 | /@localedir@/p | ||
10277 | /@mandir@/p | ||
10278 | ' $ac_file_inputs` in | ||
10279 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
10280 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
10281 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
10282 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
10283 | _ACEOF | ||
10284 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10285 | ac_datarootdir_hack=' | ||
10286 | s&@datadir@&$datadir&g | ||
10287 | s&@docdir@&$docdir&g | ||
10288 | s&@infodir@&$infodir&g | ||
10289 | s&@localedir@&$localedir&g | ||
10290 | s&@mandir@&$mandir&g | ||
10291 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
10292 | esac | ||
10293 | _ACEOF | ||
10294 | |||
10295 | # Neutralize VPATH when `$srcdir' = `.'. | ||
10296 | # Shell code in configure.ac might set extrasub. | ||
10297 | # FIXME: do we really want to maintain this feature? | ||
10298 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10299 | sed "$ac_vpsub | ||
10300 | $extrasub | ||
10301 | _ACEOF | ||
10302 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10303 | :t | ||
10304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
10305 | s&@configure_input@&$configure_input&;t t | ||
10306 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
10307 | s&@srcdir@&$ac_srcdir&;t t | ||
10308 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
10309 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
10310 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
10311 | s&@builddir@&$ac_builddir&;t t | ||
10312 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
10313 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
10314 | s&@INSTALL@&$ac_INSTALL&;t t | ||
10315 | $ac_datarootdir_hack | ||
10316 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
10317 | |||
10318 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
10319 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
10320 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
10321 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
10322 | which seems to be undefined. Please make sure it is defined." >&5 | ||
10323 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
10324 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
10325 | |||
10326 | rm -f "$tmp/stdin" | ||
10327 | case $ac_file in | ||
10328 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
10329 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
10330 | esac | ||
10331 | ;; | ||
10332 | :H) | ||
10333 | # | ||
10334 | # CONFIG_HEADER | ||
10335 | # | ||
10336 | _ACEOF | ||
10337 | |||
10338 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
10339 | # substitutes the proper values into config.h.in to produce config.h. | ||
10340 | rm -f conftest.defines conftest.tail | ||
10341 | # First, append a space to every undef/define line, to ease matching. | ||
10342 | echo 's/$/ /' >conftest.defines | ||
10343 | # Then, protect against being on the right side of a sed subst, or in | ||
10344 | # an unquoted here document, in config.status. If some macros were | ||
10345 | # called several times there might be several #defines for the same | ||
10346 | # symbol, which is useless. But do not sort them, since the last | ||
10347 | # AC_DEFINE must be honored. | ||
10348 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
10349 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
10350 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
10351 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
10352 | # just an empty string. | ||
10353 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
10354 | ac_dB='\\)[ (].*,\\1define\\2' | ||
10355 | ac_dC=' ' | ||
10356 | ac_dD=' ,' | ||
10357 | |||
10358 | uniq confdefs.h | | ||
10359 | sed -n ' | ||
10360 | t rset | ||
10361 | :rset | ||
10362 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
10363 | t ok | ||
10364 | d | ||
10365 | :ok | ||
10366 | s/[\\&,]/\\&/g | ||
10367 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
10368 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
10369 | ' >>conftest.defines | ||
10370 | |||
10371 | # Remove the space that was appended to ease matching. | ||
10372 | # Then replace #undef with comments. This is necessary, for | ||
10373 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
10374 | # on some systems where configure will not decide to define it. | ||
10375 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
10376 | echo 's/ $// | ||
10377 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
10378 | |||
10379 | # Break up conftest.defines: | ||
10380 | ac_max_sed_lines=50 | ||
10381 | |||
10382 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
10383 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
10384 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
10385 | # et cetera. | ||
10386 | ac_in='$ac_file_inputs' | ||
10387 | ac_out='"$tmp/out1"' | ||
10388 | ac_nxt='"$tmp/out2"' | ||
10389 | |||
10390 | while : | ||
10391 | do | ||
10392 | # Write a here document: | ||
10393 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10394 | # First, check the format of the line: | ||
10395 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
10396 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
10397 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
10398 | b | ||
10399 | :def | ||
10400 | _ACEOF | ||
10401 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
10402 | echo 'CEOF | ||
10403 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
10404 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
10405 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
10406 | grep . conftest.tail >/dev/null || break | ||
10407 | rm -f conftest.defines | ||
10408 | mv conftest.tail conftest.defines | ||
10409 | done | ||
10410 | rm -f conftest.defines conftest.tail | ||
10411 | |||
10412 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
10413 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10414 | if test x"$ac_file" != x-; then | ||
10415 | echo "/* $configure_input */" >"$tmp/config.h" | ||
10416 | cat "$ac_result" >>"$tmp/config.h" | ||
10417 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
10418 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
10419 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
10420 | else | ||
10421 | rm -f $ac_file | ||
10422 | mv "$tmp/config.h" $ac_file | ||
10423 | fi | ||
10424 | else | ||
10425 | echo "/* $configure_input */" | ||
10426 | cat "$ac_result" | ||
10427 | fi | ||
10428 | rm -f "$tmp/out12" | ||
10429 | # Compute $ac_file's index in $config_headers. | ||
10430 | _am_stamp_count=1 | ||
10431 | for _am_header in $config_headers :; do | ||
10432 | case $_am_header in | ||
10433 | $ac_file | $ac_file:* ) | ||
10434 | break ;; | ||
10435 | * ) | ||
10436 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
10437 | esac | ||
10438 | done | ||
10439 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | ||
10440 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10441 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
10442 | X$ac_file : 'X\(//\)$' \| \ | ||
10443 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | ||
10444 | echo X$ac_file | | ||
10445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10446 | s//\1/ | ||
10447 | q | ||
10448 | } | ||
10449 | /^X\(\/\/\)[^/].*/{ | ||
10450 | s//\1/ | ||
10451 | q | ||
10452 | } | ||
10453 | /^X\(\/\/\)$/{ | ||
10454 | s//\1/ | ||
10455 | q | ||
10456 | } | ||
10457 | /^X\(\/\).*/{ | ||
10458 | s//\1/ | ||
10459 | q | ||
10460 | } | ||
10461 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
10462 | ;; | ||
10463 | |||
10464 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | ||
10465 | echo "$as_me: executing $ac_file commands" >&6;} | ||
10466 | ;; | ||
10467 | esac | ||
10468 | |||
10469 | |||
10470 | case $ac_file$ac_mode in | ||
10471 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
10472 | # Strip MF so we end up with the name of the file. | ||
10473 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
10474 | # Check whether this is an Automake generated Makefile or not. | ||
10475 | # We used to match only the files named `Makefile.in', but | ||
10476 | # some people rename them; so instead we look at the file content. | ||
10477 | # Grep'ing the first line is not enough: some people post-process | ||
10478 | # each Makefile.in and add a new line on top of each file to say so. | ||
10479 | # So let's grep whole file. | ||
10480 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
10481 | dirpart=`$as_dirname -- "$mf" || | ||
10482 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10483 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
10484 | X"$mf" : 'X\(//\)$' \| \ | ||
10485 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
10486 | echo X"$mf" | | ||
10487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10488 | s//\1/ | ||
10489 | q | ||
10490 | } | ||
10491 | /^X\(\/\/\)[^/].*/{ | ||
10492 | s//\1/ | ||
10493 | q | ||
10494 | } | ||
10495 | /^X\(\/\/\)$/{ | ||
10496 | s//\1/ | ||
10497 | q | ||
10498 | } | ||
10499 | /^X\(\/\).*/{ | ||
10500 | s//\1/ | ||
10501 | q | ||
10502 | } | ||
10503 | s/.*/./; q'` | ||
10504 | else | ||
10505 | continue | ||
10506 | fi | ||
10507 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | ||
10508 | # Extract the definition of DEP_FILES from the Makefile without | ||
10509 | # running `make'. | ||
10510 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | ||
10511 | test -z "$DEPDIR" && continue | ||
10512 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
10513 | U=`sed -n -e '/^U = / s///p' < "$mf"` | ||
10514 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | ||
10515 | # We invoke sed twice because it is the simplest approach to | ||
10516 | # changing $(DEPDIR) to its actual value in the expansion. | ||
10517 | for file in `sed -n -e ' | ||
10518 | /^DEP_FILES = .*\\\\$/ { | ||
10519 | s/^DEP_FILES = // | ||
10520 | :loop | ||
10521 | s/\\\\$// | ||
10522 | p | ||
10523 | n | ||
10524 | /\\\\$/ b loop | ||
10525 | p | ||
10526 | } | ||
10527 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | ||
10528 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
10529 | # Make sure the directory exists. | ||
10530 | test -f "$dirpart/$file" && continue | ||
10531 | fdir=`$as_dirname -- "$file" || | ||
10532 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10533 | X"$file" : 'X\(//\)[^/]' \| \ | ||
10534 | X"$file" : 'X\(//\)$' \| \ | ||
10535 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
10536 | echo X"$file" | | ||
10537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10538 | s//\1/ | ||
10539 | q | ||
10540 | } | ||
10541 | /^X\(\/\/\)[^/].*/{ | ||
10542 | s//\1/ | ||
10543 | q | ||
10544 | } | ||
10545 | /^X\(\/\/\)$/{ | ||
10546 | s//\1/ | ||
10547 | q | ||
10548 | } | ||
10549 | /^X\(\/\).*/{ | ||
10550 | s//\1/ | ||
10551 | q | ||
10552 | } | ||
10553 | s/.*/./; q'` | ||
10554 | { as_dir=$dirpart/$fdir | ||
10555 | case $as_dir in #( | ||
10556 | -*) as_dir=./$as_dir;; | ||
10557 | esac | ||
10558 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
10559 | as_dirs= | ||
10560 | while :; do | ||
10561 | case $as_dir in #( | ||
10562 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
10563 | *) as_qdir=$as_dir;; | ||
10564 | esac | ||
10565 | as_dirs="'$as_qdir' $as_dirs" | ||
10566 | as_dir=`$as_dirname -- "$as_dir" || | ||
10567 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10568 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
10569 | X"$as_dir" : 'X\(//\)$' \| \ | ||
10570 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
10571 | echo X"$as_dir" | | ||
10572 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10573 | s//\1/ | ||
10574 | q | ||
10575 | } | ||
10576 | /^X\(\/\/\)[^/].*/{ | ||
10577 | s//\1/ | ||
10578 | q | ||
10579 | } | ||
10580 | /^X\(\/\/\)$/{ | ||
10581 | s//\1/ | ||
10582 | q | ||
10583 | } | ||
10584 | /^X\(\/\).*/{ | ||
10585 | s//\1/ | ||
10586 | q | ||
10587 | } | ||
10588 | s/.*/./; q'` | ||
10589 | test -d "$as_dir" && break | ||
10590 | done | ||
10591 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
10592 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
10593 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
10594 | { (exit 1); exit 1; }; }; } | ||
10595 | # echo "creating $dirpart/$file" | ||
10596 | echo '# dummy' > "$dirpart/$file" | ||
10597 | done | ||
10598 | done | ||
10599 | ;; | ||
10600 | "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) | ||
10601 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
10602 | esac ;; | ||
10603 | |||
10604 | esac | ||
10605 | done # for ac_tag | ||
10606 | |||
10607 | |||
10608 | { (exit 0); exit 0; } | ||
10609 | _ACEOF | ||
10610 | chmod +x $CONFIG_STATUS | ||
10611 | ac_clean_files=$ac_clean_files_save | ||
10612 | |||
10613 | |||
10614 | # configure is writing to config.log, and then calls config.status. | ||
10615 | # config.status does its own redirection, appending to config.log. | ||
10616 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
10617 | # by configure, so config.status won't be able to write to it; its | ||
10618 | # output is simply discarded. So we exec the FD to /dev/null, | ||
10619 | # effectively closing config.log, so it can be properly (re)opened and | ||
10620 | # appended to by config.status. When coming back to configure, we | ||
10621 | # need to make the FD available again. | ||
10622 | if test "$no_create" != yes; then | ||
10623 | ac_cs_success=: | ||
10624 | ac_config_status_args= | ||
10625 | test "$silent" = yes && | ||
10626 | ac_config_status_args="$ac_config_status_args --quiet" | ||
10627 | exec 5>/dev/null | ||
10628 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
10629 | exec 5>>config.log | ||
10630 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
10631 | # would make configure fail if this is the last instruction. | ||
10632 | $ac_cs_success || { (exit 1); exit 1; } | ||
10633 | fi | ||
10634 | |||
10635 | |||
10636 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/configure.in b/src/others/mimesh/g3dviewer-0.2.99.4/configure.in new file mode 100644 index 0000000..fc69654 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/configure.in | |||
@@ -0,0 +1,102 @@ | |||
1 | AC_INIT(configure.in) | ||
2 | |||
3 | VERSION=0.2.99.4 | ||
4 | PACKAGE=g3dviewer | ||
5 | |||
6 | AM_CONFIG_HEADER(config.h) | ||
7 | |||
8 | AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) | ||
9 | AC_SUBST(VERSION) | ||
10 | |||
11 | AC_PROG_CC | ||
12 | |||
13 | ALL_LINGUAS="de" | ||
14 | AM_GLIB_GNU_GETTEXT | ||
15 | |||
16 | GETTEXT_PACKAGE=$PACKAGE | ||
17 | AC_SUBST(GETTEXT_PACKAGE) | ||
18 | |||
19 | # glib 2.0 | ||
20 | AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR([GLib >= 2.4.0 is required])) | ||
21 | |||
22 | # gtk+ 2.0 | ||
23 | AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR([GTK+ >= 2.4.0 is required])) | ||
24 | |||
25 | # libglade 2.0 | ||
26 | PKG_CHECK_MODULES(LIBGLADE, libglade-2.0 >= 2.4.0,, | ||
27 | AC_MSG_ERROR([libglade >= 2.4.0 is required])) | ||
28 | |||
29 | # gtkglext | ||
30 | AM_PATH_GTKGLEXT_1_0(1.0.0,,AC_MSG_ERROR([GtkGlExt >= 1.0.0 is required])) | ||
31 | |||
32 | # libg3d | ||
33 | PKG_CHECK_MODULES(LIBG3D, libg3d >= 0.0.5,, | ||
34 | AC_MSG_ERROR([libg3d >= 0.0.5 is required])) | ||
35 | |||
36 | # Check OpenGL stuff | ||
37 | AC_PATH_XTRA | ||
38 | |||
39 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
40 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | ||
41 | |||
42 | ac_save_LIBS="$LIBS" | ||
43 | LIBS="$LIBS $X_LIBS" | ||
44 | |||
45 | AC_CHECK_HEADERS(GL/gl.h GL/glu.h,, | ||
46 | AC_MSG_ERROR([some OpenGL headers missing]), | ||
47 | [#include <GL/gl.h>]) | ||
48 | |||
49 | AC_CHECK_LIB(GL, glBegin, have_gl=yes, have_gl=no) | ||
50 | AC_CHECK_LIB(GLU, gluPerspective, have_glu=yes, have_glu=no, -lGL $GTK_LIBS) | ||
51 | if test $have_gl = no || test $have_glu = no; then | ||
52 | AC_MSG_ERROR([libgl or libglu missing]) | ||
53 | else | ||
54 | GL_LIBS="-lGL -lGLU $GTK_LIBS" | ||
55 | AC_SUBST(GL_LIBS) | ||
56 | fi | ||
57 | |||
58 | # Check some UNIX headers | ||
59 | AC_CHECK_HEADERS(dirent.h sys/stat.h unistd.h,, | ||
60 | AC_MSG_ERROR([missing header file]), | ||
61 | [#include <sys/types.h>]) | ||
62 | |||
63 | # Look for snprintf (optional) | ||
64 | AC_CHECK_FUNC(snprintf,[AC_DEFINE(HAVE_SNPRINTF,1,[snprintf])],,stdio.h) | ||
65 | |||
66 | # Look for fstat (required) | ||
67 | AC_CHECK_FUNC(fstat, have_fstat=yes, have_fstat=no, [unistd.h sys/types.h]) | ||
68 | if test $have_fstat = no; then | ||
69 | AC_MSG_ERROR([fstat function not found]) | ||
70 | fi | ||
71 | |||
72 | # Debug level (verbosity & optimization) | ||
73 | AC_MSG_CHECKING([for debug level]) | ||
74 | AC_ARG_ENABLE(debug, | ||
75 | [[ --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)]], | ||
76 | [if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi], | ||
77 | DEBUG=0) | ||
78 | AC_MSG_RESULT($DEBUG) | ||
79 | AC_SUBST(DEBUG) | ||
80 | |||
81 | if test "$DEBUG" = "0"; then | ||
82 | DBG_CFLAGS="-O2" | ||
83 | else | ||
84 | DBG_CFLAGS="-g -DGLIB_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED" | ||
85 | fi | ||
86 | AC_SUBST(DBG_CFLAGS) | ||
87 | |||
88 | # Data & plugin directories | ||
89 | AC_DEFINE_DIR(DATA_DIR, datadir/$PACKAGE, [Data directory]) | ||
90 | |||
91 | # Create the files | ||
92 | AC_OUTPUT(Makefile | ||
93 | m4/Makefile | ||
94 | man/Makefile | ||
95 | src/Makefile | ||
96 | thumbnailer/Makefile | ||
97 | pixmaps/Makefile | ||
98 | glade/Makefile | ||
99 | po/Makefile.in | ||
100 | ) | ||
101 | |||
102 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/depcomp b/src/others/mimesh/g3dviewer-0.2.99.4/depcomp new file mode 100755 index 0000000..edb5d38 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/depcomp | |||
@@ -0,0 +1,479 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # depcomp - compile a program generating dependencies as side-effects | ||
4 | # Copyright 1999, 2000, 2003 Free Software Foundation, Inc. | ||
5 | |||
6 | # This program is free software; you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation; either version 2, or (at your option) | ||
9 | # any later version. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | |||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with this program; if not, write to the Free Software | ||
18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
19 | # 02111-1307, USA. | ||
20 | |||
21 | # As a special exception to the GNU General Public License, if you | ||
22 | # distribute this file as part of a program that contains a | ||
23 | # configuration script generated by Autoconf, you may include it under | ||
24 | # the same distribution terms that you use for the rest of that program. | ||
25 | |||
26 | # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | ||
27 | |||
28 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then | ||
29 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 | ||
30 | exit 1 | ||
31 | fi | ||
32 | # `libtool' can also be set to `yes' or `no'. | ||
33 | |||
34 | if test -z "$depfile"; then | ||
35 | base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` | ||
36 | dir=`echo "$object" | sed 's,/.*$,/,'` | ||
37 | if test "$dir" = "$object"; then | ||
38 | dir= | ||
39 | fi | ||
40 | # FIXME: should be _deps on DOS. | ||
41 | depfile="$dir.deps/$base" | ||
42 | fi | ||
43 | |||
44 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | ||
45 | |||
46 | rm -f "$tmpdepfile" | ||
47 | |||
48 | # Some modes work just like other modes, but use different flags. We | ||
49 | # parameterize here, but still list the modes in the big case below, | ||
50 | # to make depend.m4 easier to write. Note that we *cannot* use a case | ||
51 | # here, because this file can only contain one case statement. | ||
52 | if test "$depmode" = hp; then | ||
53 | # HP compiler uses -M and no extra arg. | ||
54 | gccflag=-M | ||
55 | depmode=gcc | ||
56 | fi | ||
57 | |||
58 | if test "$depmode" = dashXmstdout; then | ||
59 | # This is just like dashmstdout with a different argument. | ||
60 | dashmflag=-xM | ||
61 | depmode=dashmstdout | ||
62 | fi | ||
63 | |||
64 | case "$depmode" in | ||
65 | gcc3) | ||
66 | ## gcc 3 implements dependency tracking that does exactly what | ||
67 | ## we want. Yay! Note: for some reason libtool 1.4 doesn't like | ||
68 | ## it if -MD -MP comes after the -MF stuff. Hmm. | ||
69 | "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" | ||
70 | stat=$? | ||
71 | if test $stat -eq 0; then : | ||
72 | else | ||
73 | rm -f "$tmpdepfile" | ||
74 | exit $stat | ||
75 | fi | ||
76 | mv "$tmpdepfile" "$depfile" | ||
77 | ;; | ||
78 | |||
79 | gcc) | ||
80 | ## There are various ways to get dependency output from gcc. Here's | ||
81 | ## why we pick this rather obscure method: | ||
82 | ## - Don't want to use -MD because we'd like the dependencies to end | ||
83 | ## up in a subdir. Having to rename by hand is ugly. | ||
84 | ## (We might end up doing this anyway to support other compilers.) | ||
85 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | ||
86 | ## -MM, not -M (despite what the docs say). | ||
87 | ## - Using -M directly means running the compiler twice (even worse | ||
88 | ## than renaming). | ||
89 | if test -z "$gccflag"; then | ||
90 | gccflag=-MD, | ||
91 | fi | ||
92 | "$@" -Wp,"$gccflag$tmpdepfile" | ||
93 | stat=$? | ||
94 | if test $stat -eq 0; then : | ||
95 | else | ||
96 | rm -f "$tmpdepfile" | ||
97 | exit $stat | ||
98 | fi | ||
99 | rm -f "$depfile" | ||
100 | echo "$object : \\" > "$depfile" | ||
101 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | ||
102 | ## The second -e expression handles DOS-style file names with drive letters. | ||
103 | sed -e 's/^[^:]*: / /' \ | ||
104 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | ||
105 | ## This next piece of magic avoids the `deleted header file' problem. | ||
106 | ## The problem is that when a header file which appears in a .P file | ||
107 | ## is deleted, the dependency causes make to die (because there is | ||
108 | ## typically no way to rebuild the header). We avoid this by adding | ||
109 | ## dummy dependencies for each header file. Too bad gcc doesn't do | ||
110 | ## this for us directly. | ||
111 | tr ' ' ' | ||
112 | ' < "$tmpdepfile" | | ||
113 | ## Some versions of gcc put a space before the `:'. On the theory | ||
114 | ## that the space means something, we add a space to the output as | ||
115 | ## well. | ||
116 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
117 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
118 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
119 | rm -f "$tmpdepfile" | ||
120 | ;; | ||
121 | |||
122 | hp) | ||
123 | # This case exists only to let depend.m4 do its work. It works by | ||
124 | # looking at the text of this script. This case will never be run, | ||
125 | # since it is checked for above. | ||
126 | exit 1 | ||
127 | ;; | ||
128 | |||
129 | sgi) | ||
130 | if test "$libtool" = yes; then | ||
131 | "$@" "-Wp,-MDupdate,$tmpdepfile" | ||
132 | else | ||
133 | "$@" -MDupdate "$tmpdepfile" | ||
134 | fi | ||
135 | stat=$? | ||
136 | if test $stat -eq 0; then : | ||
137 | else | ||
138 | rm -f "$tmpdepfile" | ||
139 | exit $stat | ||
140 | fi | ||
141 | rm -f "$depfile" | ||
142 | |||
143 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | ||
144 | echo "$object : \\" > "$depfile" | ||
145 | |||
146 | # Clip off the initial element (the dependent). Don't try to be | ||
147 | # clever and replace this with sed code, as IRIX sed won't handle | ||
148 | # lines with more than a fixed number of characters (4096 in | ||
149 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | ||
150 | # the IRIX cc adds comments like `#:fec' to the end of the | ||
151 | # dependency line. | ||
152 | tr ' ' ' | ||
153 | ' < "$tmpdepfile" \ | ||
154 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | ||
155 | tr ' | ||
156 | ' ' ' >> $depfile | ||
157 | echo >> $depfile | ||
158 | |||
159 | # The second pass generates a dummy entry for each header file. | ||
160 | tr ' ' ' | ||
161 | ' < "$tmpdepfile" \ | ||
162 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | ||
163 | >> $depfile | ||
164 | else | ||
165 | # The sourcefile does not contain any dependencies, so just | ||
166 | # store a dummy comment line, to avoid errors with the Makefile | ||
167 | # "include basename.Plo" scheme. | ||
168 | echo "#dummy" > "$depfile" | ||
169 | fi | ||
170 | rm -f "$tmpdepfile" | ||
171 | ;; | ||
172 | |||
173 | aix) | ||
174 | # The C for AIX Compiler uses -M and outputs the dependencies | ||
175 | # in a .u file. In older versions, this file always lives in the | ||
176 | # current directory. Also, the AIX compiler puts `$object:' at the | ||
177 | # start of each line; $object doesn't have directory information. | ||
178 | # Version 6 uses the directory in both cases. | ||
179 | stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` | ||
180 | tmpdepfile="$stripped.u" | ||
181 | if test "$libtool" = yes; then | ||
182 | "$@" -Wc,-M | ||
183 | else | ||
184 | "$@" -M | ||
185 | fi | ||
186 | stat=$? | ||
187 | |||
188 | if test -f "$tmpdepfile"; then : | ||
189 | else | ||
190 | stripped=`echo "$stripped" | sed 's,^.*/,,'` | ||
191 | tmpdepfile="$stripped.u" | ||
192 | fi | ||
193 | |||
194 | if test $stat -eq 0; then : | ||
195 | else | ||
196 | rm -f "$tmpdepfile" | ||
197 | exit $stat | ||
198 | fi | ||
199 | |||
200 | if test -f "$tmpdepfile"; then | ||
201 | outname="$stripped.o" | ||
202 | # Each line is of the form `foo.o: dependent.h'. | ||
203 | # Do two passes, one to just change these to | ||
204 | # `$object: dependent.h' and one to simply `dependent.h:'. | ||
205 | sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" | ||
206 | sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" | ||
207 | else | ||
208 | # The sourcefile does not contain any dependencies, so just | ||
209 | # store a dummy comment line, to avoid errors with the Makefile | ||
210 | # "include basename.Plo" scheme. | ||
211 | echo "#dummy" > "$depfile" | ||
212 | fi | ||
213 | rm -f "$tmpdepfile" | ||
214 | ;; | ||
215 | |||
216 | icc) | ||
217 | # Intel's C compiler understands `-MD -MF file'. However on | ||
218 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | ||
219 | # ICC 7.0 will fill foo.d with something like | ||
220 | # foo.o: sub/foo.c | ||
221 | # foo.o: sub/foo.h | ||
222 | # which is wrong. We want: | ||
223 | # sub/foo.o: sub/foo.c | ||
224 | # sub/foo.o: sub/foo.h | ||
225 | # sub/foo.c: | ||
226 | # sub/foo.h: | ||
227 | # ICC 7.1 will output | ||
228 | # foo.o: sub/foo.c sub/foo.h | ||
229 | # and will wrap long lines using \ : | ||
230 | # foo.o: sub/foo.c ... \ | ||
231 | # sub/foo.h ... \ | ||
232 | # ... | ||
233 | |||
234 | "$@" -MD -MF "$tmpdepfile" | ||
235 | stat=$? | ||
236 | if test $stat -eq 0; then : | ||
237 | else | ||
238 | rm -f "$tmpdepfile" | ||
239 | exit $stat | ||
240 | fi | ||
241 | rm -f "$depfile" | ||
242 | # Each line is of the form `foo.o: dependent.h', | ||
243 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | ||
244 | # Do two passes, one to just change these to | ||
245 | # `$object: dependent.h' and one to simply `dependent.h:'. | ||
246 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | ||
247 | # Some versions of the HPUX 10.20 sed can't process this invocation | ||
248 | # correctly. Breaking it into two sed invocations is a workaround. | ||
249 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | ||
250 | sed -e 's/$/ :/' >> "$depfile" | ||
251 | rm -f "$tmpdepfile" | ||
252 | ;; | ||
253 | |||
254 | tru64) | ||
255 | # The Tru64 compiler uses -MD to generate dependencies as a side | ||
256 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | ||
257 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | ||
258 | # dependencies in `foo.d' instead, so we check for that too. | ||
259 | # Subdirectories are respected. | ||
260 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
261 | test "x$dir" = "x$object" && dir= | ||
262 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
263 | |||
264 | if test "$libtool" = yes; then | ||
265 | tmpdepfile1="$dir.libs/$base.lo.d" | ||
266 | tmpdepfile2="$dir.libs/$base.d" | ||
267 | "$@" -Wc,-MD | ||
268 | else | ||
269 | tmpdepfile1="$dir$base.o.d" | ||
270 | tmpdepfile2="$dir$base.d" | ||
271 | "$@" -MD | ||
272 | fi | ||
273 | |||
274 | stat=$? | ||
275 | if test $stat -eq 0; then : | ||
276 | else | ||
277 | rm -f "$tmpdepfile1" "$tmpdepfile2" | ||
278 | exit $stat | ||
279 | fi | ||
280 | |||
281 | if test -f "$tmpdepfile1"; then | ||
282 | tmpdepfile="$tmpdepfile1" | ||
283 | else | ||
284 | tmpdepfile="$tmpdepfile2" | ||
285 | fi | ||
286 | if test -f "$tmpdepfile"; then | ||
287 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||
288 | # That's a tab and a space in the []. | ||
289 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
290 | else | ||
291 | echo "#dummy" > "$depfile" | ||
292 | fi | ||
293 | rm -f "$tmpdepfile" | ||
294 | ;; | ||
295 | |||
296 | #nosideeffect) | ||
297 | # This comment above is used by automake to tell side-effect | ||
298 | # dependency tracking mechanisms from slower ones. | ||
299 | |||
300 | dashmstdout) | ||
301 | # Important note: in order to support this mode, a compiler *must* | ||
302 | # always write the preprocessed file to stdout, regardless of -o. | ||
303 | "$@" || exit $? | ||
304 | |||
305 | # Remove the call to Libtool. | ||
306 | if test "$libtool" = yes; then | ||
307 | while test $1 != '--mode=compile'; do | ||
308 | shift | ||
309 | done | ||
310 | shift | ||
311 | fi | ||
312 | |||
313 | # Remove `-o $object'. | ||
314 | IFS=" " | ||
315 | for arg | ||
316 | do | ||
317 | case $arg in | ||
318 | -o) | ||
319 | shift | ||
320 | ;; | ||
321 | $object) | ||
322 | shift | ||
323 | ;; | ||
324 | *) | ||
325 | set fnord "$@" "$arg" | ||
326 | shift # fnord | ||
327 | shift # $arg | ||
328 | ;; | ||
329 | esac | ||
330 | done | ||
331 | |||
332 | test -z "$dashmflag" && dashmflag=-M | ||
333 | # Require at least two characters before searching for `:' | ||
334 | # in the target name. This is to cope with DOS-style filenames: | ||
335 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | ||
336 | "$@" $dashmflag | | ||
337 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | ||
338 | rm -f "$depfile" | ||
339 | cat < "$tmpdepfile" > "$depfile" | ||
340 | tr ' ' ' | ||
341 | ' < "$tmpdepfile" | \ | ||
342 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
343 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
344 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
345 | rm -f "$tmpdepfile" | ||
346 | ;; | ||
347 | |||
348 | dashXmstdout) | ||
349 | # This case only exists to satisfy depend.m4. It is never actually | ||
350 | # run, as this mode is specially recognized in the preamble. | ||
351 | exit 1 | ||
352 | ;; | ||
353 | |||
354 | makedepend) | ||
355 | "$@" || exit $? | ||
356 | # Remove any Libtool call | ||
357 | if test "$libtool" = yes; then | ||
358 | while test $1 != '--mode=compile'; do | ||
359 | shift | ||
360 | done | ||
361 | shift | ||
362 | fi | ||
363 | # X makedepend | ||
364 | shift | ||
365 | cleared=no | ||
366 | for arg in "$@"; do | ||
367 | case $cleared in | ||
368 | no) | ||
369 | set ""; shift | ||
370 | cleared=yes ;; | ||
371 | esac | ||
372 | case "$arg" in | ||
373 | -D*|-I*) | ||
374 | set fnord "$@" "$arg"; shift ;; | ||
375 | # Strip any option that makedepend may not understand. Remove | ||
376 | # the object too, otherwise makedepend will parse it as a source file. | ||
377 | -*|$object) | ||
378 | ;; | ||
379 | *) | ||
380 | set fnord "$@" "$arg"; shift ;; | ||
381 | esac | ||
382 | done | ||
383 | obj_suffix="`echo $object | sed 's/^.*\././'`" | ||
384 | touch "$tmpdepfile" | ||
385 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | ||
386 | rm -f "$depfile" | ||
387 | cat < "$tmpdepfile" > "$depfile" | ||
388 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | ||
389 | ' | \ | ||
390 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
391 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
392 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
393 | rm -f "$tmpdepfile" "$tmpdepfile".bak | ||
394 | ;; | ||
395 | |||
396 | cpp) | ||
397 | # Important note: in order to support this mode, a compiler *must* | ||
398 | # always write the preprocessed file to stdout. | ||
399 | "$@" || exit $? | ||
400 | |||
401 | # Remove the call to Libtool. | ||
402 | if test "$libtool" = yes; then | ||
403 | while test $1 != '--mode=compile'; do | ||
404 | shift | ||
405 | done | ||
406 | shift | ||
407 | fi | ||
408 | |||
409 | # Remove `-o $object'. | ||
410 | IFS=" " | ||
411 | for arg | ||
412 | do | ||
413 | case $arg in | ||
414 | -o) | ||
415 | shift | ||
416 | ;; | ||
417 | $object) | ||
418 | shift | ||
419 | ;; | ||
420 | *) | ||
421 | set fnord "$@" "$arg" | ||
422 | shift # fnord | ||
423 | shift # $arg | ||
424 | ;; | ||
425 | esac | ||
426 | done | ||
427 | |||
428 | "$@" -E | | ||
429 | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | ||
430 | sed '$ s: \\$::' > "$tmpdepfile" | ||
431 | rm -f "$depfile" | ||
432 | echo "$object : \\" > "$depfile" | ||
433 | cat < "$tmpdepfile" >> "$depfile" | ||
434 | sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | ||
435 | rm -f "$tmpdepfile" | ||
436 | ;; | ||
437 | |||
438 | msvisualcpp) | ||
439 | # Important note: in order to support this mode, a compiler *must* | ||
440 | # always write the preprocessed file to stdout, regardless of -o, | ||
441 | # because we must use -o when running libtool. | ||
442 | "$@" || exit $? | ||
443 | IFS=" " | ||
444 | for arg | ||
445 | do | ||
446 | case "$arg" in | ||
447 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | ||
448 | set fnord "$@" | ||
449 | shift | ||
450 | shift | ||
451 | ;; | ||
452 | *) | ||
453 | set fnord "$@" "$arg" | ||
454 | shift | ||
455 | shift | ||
456 | ;; | ||
457 | esac | ||
458 | done | ||
459 | "$@" -E | | ||
460 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" | ||
461 | rm -f "$depfile" | ||
462 | echo "$object : \\" > "$depfile" | ||
463 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | ||
464 | echo " " >> "$depfile" | ||
465 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" | ||
466 | rm -f "$tmpdepfile" | ||
467 | ;; | ||
468 | |||
469 | none) | ||
470 | exec "$@" | ||
471 | ;; | ||
472 | |||
473 | *) | ||
474 | echo "Unknown depmode $depmode" 1>&2 | ||
475 | exit 1 | ||
476 | ;; | ||
477 | esac | ||
478 | |||
479 | exit 0 | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile new file mode 100644 index 0000000..3fe3ff0 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile | |||
@@ -0,0 +1,317 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # glade/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | ICONS = g3d32.png g3d48.png | ||
152 | GLADE_FILES = g3dviewer.glade | ||
153 | |||
154 | gladedir = $(pkgdatadir)/glade | ||
155 | |||
156 | glade_DATA = ${GLADE_FILES} ${ICONS} | ||
157 | EXTRA_DIST = ${GLADE_FILES} ${ICONS} | ||
158 | subdir = glade | ||
159 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
160 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
161 | CONFIG_HEADER = $(top_builddir)/config.h | ||
162 | CONFIG_CLEAN_FILES = | ||
163 | DIST_SOURCES = | ||
164 | DATA = $(glade_DATA) | ||
165 | |||
166 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
167 | all: all-am | ||
168 | |||
169 | .SUFFIXES: | ||
170 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
171 | cd $(top_srcdir) && \ | ||
172 | $(AUTOMAKE) --gnu glade/Makefile | ||
173 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
174 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
175 | uninstall-info-am: | ||
176 | gladeDATA_INSTALL = $(INSTALL_DATA) | ||
177 | install-gladeDATA: $(glade_DATA) | ||
178 | @$(NORMAL_INSTALL) | ||
179 | $(mkinstalldirs) $(DESTDIR)$(gladedir) | ||
180 | @list='$(glade_DATA)'; for p in $$list; do \ | ||
181 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
182 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
183 | echo " $(gladeDATA_INSTALL) $$d$$p $(DESTDIR)$(gladedir)/$$f"; \ | ||
184 | $(gladeDATA_INSTALL) $$d$$p $(DESTDIR)$(gladedir)/$$f; \ | ||
185 | done | ||
186 | |||
187 | uninstall-gladeDATA: | ||
188 | @$(NORMAL_UNINSTALL) | ||
189 | @list='$(glade_DATA)'; for p in $$list; do \ | ||
190 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
191 | echo " rm -f $(DESTDIR)$(gladedir)/$$f"; \ | ||
192 | rm -f $(DESTDIR)$(gladedir)/$$f; \ | ||
193 | done | ||
194 | tags: TAGS | ||
195 | TAGS: | ||
196 | |||
197 | ctags: CTAGS | ||
198 | CTAGS: | ||
199 | |||
200 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
201 | |||
202 | top_distdir = .. | ||
203 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
204 | |||
205 | distdir: $(DISTFILES) | ||
206 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
207 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
208 | list='$(DISTFILES)'; for file in $$list; do \ | ||
209 | case $$file in \ | ||
210 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
211 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
212 | esac; \ | ||
213 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
214 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
215 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
216 | dir="/$$dir"; \ | ||
217 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
218 | else \ | ||
219 | dir=''; \ | ||
220 | fi; \ | ||
221 | if test -d $$d/$$file; then \ | ||
222 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
223 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
224 | fi; \ | ||
225 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
226 | else \ | ||
227 | test -f $(distdir)/$$file \ | ||
228 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
229 | || exit 1; \ | ||
230 | fi; \ | ||
231 | done | ||
232 | check-am: all-am | ||
233 | check: check-am | ||
234 | all-am: Makefile $(DATA) | ||
235 | |||
236 | installdirs: | ||
237 | $(mkinstalldirs) $(DESTDIR)$(gladedir) | ||
238 | install: install-am | ||
239 | install-exec: install-exec-am | ||
240 | install-data: install-data-am | ||
241 | uninstall: uninstall-am | ||
242 | |||
243 | install-am: all-am | ||
244 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
245 | |||
246 | installcheck: installcheck-am | ||
247 | install-strip: | ||
248 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
249 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
250 | `test -z '$(STRIP)' || \ | ||
251 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
252 | mostlyclean-generic: | ||
253 | |||
254 | clean-generic: | ||
255 | |||
256 | distclean-generic: | ||
257 | -rm -f $(CONFIG_CLEAN_FILES) | ||
258 | |||
259 | maintainer-clean-generic: | ||
260 | @echo "This command is intended for maintainers to use" | ||
261 | @echo "it deletes files that may require special tools to rebuild." | ||
262 | clean: clean-am | ||
263 | |||
264 | clean-am: clean-generic mostlyclean-am | ||
265 | |||
266 | distclean: distclean-am | ||
267 | -rm -f Makefile | ||
268 | distclean-am: clean-am distclean-generic | ||
269 | |||
270 | dvi: dvi-am | ||
271 | |||
272 | dvi-am: | ||
273 | |||
274 | info: info-am | ||
275 | |||
276 | info-am: | ||
277 | |||
278 | install-data-am: install-gladeDATA | ||
279 | |||
280 | install-exec-am: | ||
281 | |||
282 | install-info: install-info-am | ||
283 | |||
284 | install-man: | ||
285 | |||
286 | installcheck-am: | ||
287 | |||
288 | maintainer-clean: maintainer-clean-am | ||
289 | -rm -f Makefile | ||
290 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
291 | |||
292 | mostlyclean: mostlyclean-am | ||
293 | |||
294 | mostlyclean-am: mostlyclean-generic | ||
295 | |||
296 | pdf: pdf-am | ||
297 | |||
298 | pdf-am: | ||
299 | |||
300 | ps: ps-am | ||
301 | |||
302 | ps-am: | ||
303 | |||
304 | uninstall-am: uninstall-gladeDATA uninstall-info-am | ||
305 | |||
306 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
307 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
308 | install-am install-data install-data-am install-exec \ | ||
309 | install-exec-am install-gladeDATA install-info install-info-am \ | ||
310 | install-man install-strip installcheck installcheck-am \ | ||
311 | installdirs maintainer-clean maintainer-clean-generic \ | ||
312 | mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ | ||
313 | uninstall-am uninstall-gladeDATA uninstall-info-am | ||
314 | |||
315 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
316 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
317 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.am new file mode 100644 index 0000000..279dcb0 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.am | |||
@@ -0,0 +1,7 @@ | |||
1 | ICONS = g3d32.png g3d48.png | ||
2 | GLADE_FILES = g3dviewer.glade | ||
3 | |||
4 | gladedir = $(pkgdatadir)/glade | ||
5 | |||
6 | glade_DATA = ${GLADE_FILES} ${ICONS} | ||
7 | EXTRA_DIST = ${GLADE_FILES} ${ICONS} | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.in new file mode 100644 index 0000000..0d8672c --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/Makefile.in | |||
@@ -0,0 +1,317 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | ICONS = g3d32.png g3d48.png | ||
152 | GLADE_FILES = g3dviewer.glade | ||
153 | |||
154 | gladedir = $(pkgdatadir)/glade | ||
155 | |||
156 | glade_DATA = ${GLADE_FILES} ${ICONS} | ||
157 | EXTRA_DIST = ${GLADE_FILES} ${ICONS} | ||
158 | subdir = glade | ||
159 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
160 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
161 | CONFIG_HEADER = $(top_builddir)/config.h | ||
162 | CONFIG_CLEAN_FILES = | ||
163 | DIST_SOURCES = | ||
164 | DATA = $(glade_DATA) | ||
165 | |||
166 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
167 | all: all-am | ||
168 | |||
169 | .SUFFIXES: | ||
170 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
171 | cd $(top_srcdir) && \ | ||
172 | $(AUTOMAKE) --gnu glade/Makefile | ||
173 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
174 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
175 | uninstall-info-am: | ||
176 | gladeDATA_INSTALL = $(INSTALL_DATA) | ||
177 | install-gladeDATA: $(glade_DATA) | ||
178 | @$(NORMAL_INSTALL) | ||
179 | $(mkinstalldirs) $(DESTDIR)$(gladedir) | ||
180 | @list='$(glade_DATA)'; for p in $$list; do \ | ||
181 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
182 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
183 | echo " $(gladeDATA_INSTALL) $$d$$p $(DESTDIR)$(gladedir)/$$f"; \ | ||
184 | $(gladeDATA_INSTALL) $$d$$p $(DESTDIR)$(gladedir)/$$f; \ | ||
185 | done | ||
186 | |||
187 | uninstall-gladeDATA: | ||
188 | @$(NORMAL_UNINSTALL) | ||
189 | @list='$(glade_DATA)'; for p in $$list; do \ | ||
190 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
191 | echo " rm -f $(DESTDIR)$(gladedir)/$$f"; \ | ||
192 | rm -f $(DESTDIR)$(gladedir)/$$f; \ | ||
193 | done | ||
194 | tags: TAGS | ||
195 | TAGS: | ||
196 | |||
197 | ctags: CTAGS | ||
198 | CTAGS: | ||
199 | |||
200 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
201 | |||
202 | top_distdir = .. | ||
203 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
204 | |||
205 | distdir: $(DISTFILES) | ||
206 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
207 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
208 | list='$(DISTFILES)'; for file in $$list; do \ | ||
209 | case $$file in \ | ||
210 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
211 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
212 | esac; \ | ||
213 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
214 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
215 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
216 | dir="/$$dir"; \ | ||
217 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
218 | else \ | ||
219 | dir=''; \ | ||
220 | fi; \ | ||
221 | if test -d $$d/$$file; then \ | ||
222 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
223 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
224 | fi; \ | ||
225 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
226 | else \ | ||
227 | test -f $(distdir)/$$file \ | ||
228 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
229 | || exit 1; \ | ||
230 | fi; \ | ||
231 | done | ||
232 | check-am: all-am | ||
233 | check: check-am | ||
234 | all-am: Makefile $(DATA) | ||
235 | |||
236 | installdirs: | ||
237 | $(mkinstalldirs) $(DESTDIR)$(gladedir) | ||
238 | install: install-am | ||
239 | install-exec: install-exec-am | ||
240 | install-data: install-data-am | ||
241 | uninstall: uninstall-am | ||
242 | |||
243 | install-am: all-am | ||
244 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
245 | |||
246 | installcheck: installcheck-am | ||
247 | install-strip: | ||
248 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
249 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
250 | `test -z '$(STRIP)' || \ | ||
251 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
252 | mostlyclean-generic: | ||
253 | |||
254 | clean-generic: | ||
255 | |||
256 | distclean-generic: | ||
257 | -rm -f $(CONFIG_CLEAN_FILES) | ||
258 | |||
259 | maintainer-clean-generic: | ||
260 | @echo "This command is intended for maintainers to use" | ||
261 | @echo "it deletes files that may require special tools to rebuild." | ||
262 | clean: clean-am | ||
263 | |||
264 | clean-am: clean-generic mostlyclean-am | ||
265 | |||
266 | distclean: distclean-am | ||
267 | -rm -f Makefile | ||
268 | distclean-am: clean-am distclean-generic | ||
269 | |||
270 | dvi: dvi-am | ||
271 | |||
272 | dvi-am: | ||
273 | |||
274 | info: info-am | ||
275 | |||
276 | info-am: | ||
277 | |||
278 | install-data-am: install-gladeDATA | ||
279 | |||
280 | install-exec-am: | ||
281 | |||
282 | install-info: install-info-am | ||
283 | |||
284 | install-man: | ||
285 | |||
286 | installcheck-am: | ||
287 | |||
288 | maintainer-clean: maintainer-clean-am | ||
289 | -rm -f Makefile | ||
290 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
291 | |||
292 | mostlyclean: mostlyclean-am | ||
293 | |||
294 | mostlyclean-am: mostlyclean-generic | ||
295 | |||
296 | pdf: pdf-am | ||
297 | |||
298 | pdf-am: | ||
299 | |||
300 | ps: ps-am | ||
301 | |||
302 | ps-am: | ||
303 | |||
304 | uninstall-am: uninstall-gladeDATA uninstall-info-am | ||
305 | |||
306 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
307 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
308 | install-am install-data install-data-am install-exec \ | ||
309 | install-exec-am install-gladeDATA install-info install-info-am \ | ||
310 | install-man install-strip installcheck installcheck-am \ | ||
311 | installdirs maintainer-clean maintainer-clean-generic \ | ||
312 | mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ | ||
313 | uninstall-am uninstall-gladeDATA uninstall-info-am | ||
314 | |||
315 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
316 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
317 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d32.png b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d32.png new file mode 100644 index 0000000..8d346fd --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d32.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d48.png b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d48.png new file mode 100644 index 0000000..79216ee --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3d48.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3dviewer.glade b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3dviewer.glade new file mode 100644 index 0000000..58c7fb1 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/glade/g3dviewer.glade | |||
@@ -0,0 +1,979 @@ | |||
1 | <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> | ||
2 | <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> | ||
3 | |||
4 | <glade-interface> | ||
5 | |||
6 | <widget class="GtkWindow" id="main_window"> | ||
7 | <property name="visible">True</property> | ||
8 | <property name="title" translatable="yes">G3DViewer</property> | ||
9 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
10 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
11 | <property name="modal">False</property> | ||
12 | <property name="default_width">300</property> | ||
13 | <property name="default_height">400</property> | ||
14 | <property name="resizable">True</property> | ||
15 | <property name="destroy_with_parent">False</property> | ||
16 | <property name="icon_name">stock_draw-pyramid</property> | ||
17 | <property name="decorated">True</property> | ||
18 | <property name="skip_taskbar_hint">False</property> | ||
19 | <property name="skip_pager_hint">False</property> | ||
20 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> | ||
21 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
22 | <property name="focus_on_map">True</property> | ||
23 | <property name="urgency_hint">False</property> | ||
24 | <signal name="delete_event" handler="gtk_main_quit" last_modification_time="Sat, 21 Jan 2006 12:15:37 GMT"/> | ||
25 | <signal name="window_state_event" handler="gui_on_window_state_event" last_modification_time="Sun, 05 Nov 2006 18:34:46 GMT"/> | ||
26 | |||
27 | <child> | ||
28 | <widget class="GtkVBox" id="vbox1"> | ||
29 | <property name="visible">True</property> | ||
30 | <property name="homogeneous">False</property> | ||
31 | <property name="spacing">0</property> | ||
32 | |||
33 | <child> | ||
34 | <widget class="GtkMenuBar" id="menu_main"> | ||
35 | <property name="visible">True</property> | ||
36 | <property name="pack_direction">GTK_PACK_DIRECTION_LTR</property> | ||
37 | <property name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property> | ||
38 | |||
39 | <child> | ||
40 | <widget class="GtkMenuItem" id="menuitem1"> | ||
41 | <property name="visible">True</property> | ||
42 | <property name="label" translatable="yes">_File</property> | ||
43 | <property name="use_underline">True</property> | ||
44 | |||
45 | <child> | ||
46 | <widget class="GtkMenu" id="menuitem1_menu"> | ||
47 | |||
48 | <child> | ||
49 | <widget class="GtkImageMenuItem" id="mi_file_open"> | ||
50 | <property name="visible">True</property> | ||
51 | <property name="label">gtk-open</property> | ||
52 | <property name="use_stock">True</property> | ||
53 | <signal name="activate" handler="gui_on_open_cb" last_modification_time="Sat, 21 Jan 2006 09:48:18 GMT"/> | ||
54 | </widget> | ||
55 | </child> | ||
56 | |||
57 | <child> | ||
58 | <widget class="GtkImageMenuItem" id="mi_properties"> | ||
59 | <property name="visible">True</property> | ||
60 | <property name="label">gtk-properties</property> | ||
61 | <property name="use_stock">True</property> | ||
62 | <signal name="activate" handler="gui_on_properties_cb" last_modification_time="Sun, 22 Jan 2006 11:56:42 GMT"/> | ||
63 | </widget> | ||
64 | </child> | ||
65 | |||
66 | <child> | ||
67 | <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> | ||
68 | <property name="visible">True</property> | ||
69 | </widget> | ||
70 | </child> | ||
71 | |||
72 | <child> | ||
73 | <widget class="GtkImageMenuItem" id="mi_screenshot"> | ||
74 | <property name="visible">True</property> | ||
75 | <property name="label" translatable="yes">_Screenshot</property> | ||
76 | <property name="use_underline">True</property> | ||
77 | <signal name="activate" handler="gui_on_screenshot_cb" last_modification_time="Thu, 04 May 2006 08:28:06 GMT"/> | ||
78 | |||
79 | <child internal-child="image"> | ||
80 | <widget class="GtkImage" id="image9"> | ||
81 | <property name="visible">True</property> | ||
82 | <property name="stock">gtk-media-record</property> | ||
83 | <property name="icon_size">1</property> | ||
84 | <property name="xalign">0.5</property> | ||
85 | <property name="yalign">0.5</property> | ||
86 | <property name="xpad">0</property> | ||
87 | <property name="ypad">0</property> | ||
88 | </widget> | ||
89 | </child> | ||
90 | </widget> | ||
91 | </child> | ||
92 | |||
93 | <child> | ||
94 | <widget class="GtkSeparatorMenuItem" id="trennlinie5"> | ||
95 | <property name="visible">True</property> | ||
96 | </widget> | ||
97 | </child> | ||
98 | |||
99 | <child> | ||
100 | <widget class="GtkImageMenuItem" id="mi_quit"> | ||
101 | <property name="visible">True</property> | ||
102 | <property name="label">gtk-quit</property> | ||
103 | <property name="use_stock">True</property> | ||
104 | <signal name="activate" handler="gtk_main_quit" last_modification_time="Sun, 22 Jan 2006 11:56:54 GMT"/> | ||
105 | </widget> | ||
106 | </child> | ||
107 | </widget> | ||
108 | </child> | ||
109 | </widget> | ||
110 | </child> | ||
111 | |||
112 | <child> | ||
113 | <widget class="GtkMenuItem" id="menuitem3"> | ||
114 | <property name="visible">True</property> | ||
115 | <property name="label" translatable="yes">_View</property> | ||
116 | <property name="use_underline">True</property> | ||
117 | |||
118 | <child> | ||
119 | <widget class="GtkMenu" id="menuitem3_menu"> | ||
120 | |||
121 | <child> | ||
122 | <widget class="GtkCheckMenuItem" id="mi_show_menubar"> | ||
123 | <property name="visible">True</property> | ||
124 | <property name="label" translatable="yes">Show _menu bar</property> | ||
125 | <property name="use_underline">True</property> | ||
126 | <property name="active">True</property> | ||
127 | <signal name="activate" handler="gui_on_show_menubar_cb" last_modification_time="Sun, 22 Jan 2006 11:54:57 GMT"/> | ||
128 | </widget> | ||
129 | </child> | ||
130 | |||
131 | <child> | ||
132 | <widget class="GtkCheckMenuItem" id="mi_show_toolbar"> | ||
133 | <property name="visible">True</property> | ||
134 | <property name="label" translatable="yes">Show t_ool bar</property> | ||
135 | <property name="use_underline">True</property> | ||
136 | <property name="active">True</property> | ||
137 | <signal name="activate" handler="gui_on_show_toolbar_cb" last_modification_time="Sun, 22 Jan 2006 11:55:08 GMT"/> | ||
138 | </widget> | ||
139 | </child> | ||
140 | |||
141 | <child> | ||
142 | <widget class="GtkCheckMenuItem" id="mi_fullscreen"> | ||
143 | <property name="visible">True</property> | ||
144 | <property name="label" translatable="yes">_Fullscreen</property> | ||
145 | <property name="use_underline">True</property> | ||
146 | <property name="active">False</property> | ||
147 | <signal name="activate" handler="gui_on_fullscreen_cb" last_modification_time="Sun, 05 Nov 2006 18:36:53 GMT"/> | ||
148 | <accelerator key="F11" modifiers="0" signal="activate"/> | ||
149 | </widget> | ||
150 | </child> | ||
151 | |||
152 | <child> | ||
153 | <widget class="GtkSeparatorMenuItem" id="trennlinie2"> | ||
154 | <property name="visible">True</property> | ||
155 | </widget> | ||
156 | </child> | ||
157 | |||
158 | <child> | ||
159 | <widget class="GtkImageMenuItem" id="mi_zoomfit"> | ||
160 | <property name="visible">True</property> | ||
161 | <property name="label">gtk-zoom-fit</property> | ||
162 | <property name="use_stock">True</property> | ||
163 | <signal name="activate" handler="gui_on_zoomfit_cb" last_modification_time="Sun, 12 Feb 2006 09:43:29 GMT"/> | ||
164 | </widget> | ||
165 | </child> | ||
166 | |||
167 | <child> | ||
168 | <widget class="GtkSeparatorMenuItem" id="trennlinie3"> | ||
169 | <property name="visible">True</property> | ||
170 | </widget> | ||
171 | </child> | ||
172 | |||
173 | <child> | ||
174 | <widget class="GtkCheckMenuItem" id="mi_wireframe"> | ||
175 | <property name="visible">True</property> | ||
176 | <property name="label" translatable="yes">_Wireframe</property> | ||
177 | <property name="use_underline">True</property> | ||
178 | <property name="active">False</property> | ||
179 | <signal name="activate" handler="gui_on_wireframe_cb" last_modification_time="Sun, 22 Jan 2006 11:55:21 GMT"/> | ||
180 | </widget> | ||
181 | </child> | ||
182 | |||
183 | <child> | ||
184 | <widget class="GtkCheckMenuItem" id="mi_specular"> | ||
185 | <property name="visible">True</property> | ||
186 | <property name="label" translatable="yes">_Specular lighting</property> | ||
187 | <property name="use_underline">True</property> | ||
188 | <property name="active">False</property> | ||
189 | <signal name="activate" handler="gui_on_specular_cb" last_modification_time="Sun, 22 Jan 2006 11:55:32 GMT"/> | ||
190 | </widget> | ||
191 | </child> | ||
192 | |||
193 | <child> | ||
194 | <widget class="GtkCheckMenuItem" id="mi_shininess"> | ||
195 | <property name="visible">True</property> | ||
196 | <property name="label" translatable="yes">S_hininess</property> | ||
197 | <property name="use_underline">True</property> | ||
198 | <property name="active">True</property> | ||
199 | <signal name="activate" handler="gui_on_shininess_cb" last_modification_time="Sun, 22 Jan 2006 11:55:44 GMT"/> | ||
200 | </widget> | ||
201 | </child> | ||
202 | |||
203 | <child> | ||
204 | <widget class="GtkCheckMenuItem" id="mi_twosided"> | ||
205 | <property name="visible">True</property> | ||
206 | <property name="label" translatable="yes">T_wo-sided faces</property> | ||
207 | <property name="use_underline">True</property> | ||
208 | <property name="active">True</property> | ||
209 | <signal name="activate" handler="gui_on_twosided_cb" last_modification_time="Sun, 22 Jan 2006 11:55:57 GMT"/> | ||
210 | </widget> | ||
211 | </child> | ||
212 | |||
213 | <child> | ||
214 | <widget class="GtkCheckMenuItem" id="mi_textures"> | ||
215 | <property name="visible">True</property> | ||
216 | <property name="label" translatable="yes">_Textures</property> | ||
217 | <property name="use_underline">True</property> | ||
218 | <property name="active">True</property> | ||
219 | <signal name="activate" handler="gui_on_textures_cb" last_modification_time="Sun, 22 Jan 2006 11:56:07 GMT"/> | ||
220 | </widget> | ||
221 | </child> | ||
222 | |||
223 | <child> | ||
224 | <widget class="GtkSeparatorMenuItem" id="trennlinie1"> | ||
225 | <property name="visible">True</property> | ||
226 | </widget> | ||
227 | </child> | ||
228 | |||
229 | <child> | ||
230 | <widget class="GtkImageMenuItem" id="mi_bgcolor"> | ||
231 | <property name="visible">True</property> | ||
232 | <property name="label" translatable="yes">_Background color</property> | ||
233 | <property name="use_underline">True</property> | ||
234 | <signal name="activate" handler="gui_on_bgcolor_cb" last_modification_time="Sun, 22 Jan 2006 11:56:27 GMT"/> | ||
235 | |||
236 | <child internal-child="image"> | ||
237 | <widget class="GtkImage" id="image10"> | ||
238 | <property name="visible">True</property> | ||
239 | <property name="stock">gtk-select-color</property> | ||
240 | <property name="icon_size">1</property> | ||
241 | <property name="xalign">0.5</property> | ||
242 | <property name="yalign">0.5</property> | ||
243 | <property name="xpad">0</property> | ||
244 | <property name="ypad">0</property> | ||
245 | </widget> | ||
246 | </child> | ||
247 | </widget> | ||
248 | </child> | ||
249 | </widget> | ||
250 | </child> | ||
251 | </widget> | ||
252 | </child> | ||
253 | |||
254 | <child> | ||
255 | <widget class="GtkMenuItem" id="menuitem4"> | ||
256 | <property name="visible">True</property> | ||
257 | <property name="label" translatable="yes">_Help</property> | ||
258 | <property name="use_underline">True</property> | ||
259 | |||
260 | <child> | ||
261 | <widget class="GtkMenu" id="menuitem4_menu"> | ||
262 | |||
263 | <child> | ||
264 | <widget class="GtkMenuItem" id="mi_info"> | ||
265 | <property name="visible">True</property> | ||
266 | <property name="label" translatable="yes">_Info</property> | ||
267 | <property name="use_underline">True</property> | ||
268 | <signal name="activate" handler="gui_on_help_info_cb" last_modification_time="Sat, 22 Apr 2006 17:46:31 GMT"/> | ||
269 | </widget> | ||
270 | </child> | ||
271 | </widget> | ||
272 | </child> | ||
273 | </widget> | ||
274 | </child> | ||
275 | </widget> | ||
276 | <packing> | ||
277 | <property name="padding">0</property> | ||
278 | <property name="expand">False</property> | ||
279 | <property name="fill">False</property> | ||
280 | </packing> | ||
281 | </child> | ||
282 | |||
283 | <child> | ||
284 | <widget class="GtkToolbar" id="toolbar_main"> | ||
285 | <property name="visible">True</property> | ||
286 | <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property> | ||
287 | <property name="toolbar_style">GTK_TOOLBAR_ICONS</property> | ||
288 | <property name="tooltips">True</property> | ||
289 | <property name="show_arrow">True</property> | ||
290 | |||
291 | <child> | ||
292 | <widget class="GtkToolButton" id="tb_file_open"> | ||
293 | <property name="visible">True</property> | ||
294 | <property name="stock_id">gtk-open</property> | ||
295 | <property name="visible_horizontal">True</property> | ||
296 | <property name="visible_vertical">True</property> | ||
297 | <property name="is_important">False</property> | ||
298 | <signal name="clicked" handler="gui_on_open_cb" last_modification_time="Sat, 21 Jan 2006 09:55:47 GMT"/> | ||
299 | </widget> | ||
300 | <packing> | ||
301 | <property name="expand">False</property> | ||
302 | <property name="homogeneous">True</property> | ||
303 | </packing> | ||
304 | </child> | ||
305 | |||
306 | <child> | ||
307 | <widget class="GtkToolButton" id="tb_properties"> | ||
308 | <property name="visible">True</property> | ||
309 | <property name="stock_id">gtk-properties</property> | ||
310 | <property name="visible_horizontal">True</property> | ||
311 | <property name="visible_vertical">True</property> | ||
312 | <property name="is_important">False</property> | ||
313 | <signal name="clicked" handler="gui_on_properties_cb" last_modification_time="Sat, 21 Jan 2006 09:56:34 GMT"/> | ||
314 | </widget> | ||
315 | <packing> | ||
316 | <property name="expand">False</property> | ||
317 | <property name="homogeneous">True</property> | ||
318 | </packing> | ||
319 | </child> | ||
320 | |||
321 | <child> | ||
322 | <widget class="GtkSeparatorToolItem" id="separatortoolitem1"> | ||
323 | <property name="visible">True</property> | ||
324 | <property name="draw">True</property> | ||
325 | <property name="visible_horizontal">True</property> | ||
326 | <property name="visible_vertical">True</property> | ||
327 | </widget> | ||
328 | <packing> | ||
329 | <property name="expand">False</property> | ||
330 | <property name="homogeneous">False</property> | ||
331 | </packing> | ||
332 | </child> | ||
333 | |||
334 | <child> | ||
335 | <widget class="GtkToolButton" id="tb_zoomfit"> | ||
336 | <property name="visible">True</property> | ||
337 | <property name="stock_id">gtk-zoom-fit</property> | ||
338 | <property name="visible_horizontal">True</property> | ||
339 | <property name="visible_vertical">True</property> | ||
340 | <property name="is_important">False</property> | ||
341 | <signal name="clicked" handler="gui_on_zoomfit_cb" last_modification_time="Sun, 12 Feb 2006 09:41:56 GMT"/> | ||
342 | </widget> | ||
343 | <packing> | ||
344 | <property name="expand">False</property> | ||
345 | <property name="homogeneous">True</property> | ||
346 | </packing> | ||
347 | </child> | ||
348 | |||
349 | <child> | ||
350 | <widget class="GtkToolButton" id="tb_screenshot"> | ||
351 | <property name="visible">True</property> | ||
352 | <property name="stock_id">gtk-media-record</property> | ||
353 | <property name="visible_horizontal">True</property> | ||
354 | <property name="visible_vertical">True</property> | ||
355 | <property name="is_important">False</property> | ||
356 | <signal name="clicked" handler="gui_on_screenshot_cb" last_modification_time="Sun, 12 Feb 2006 10:52:45 GMT"/> | ||
357 | </widget> | ||
358 | <packing> | ||
359 | <property name="expand">False</property> | ||
360 | <property name="homogeneous">True</property> | ||
361 | </packing> | ||
362 | </child> | ||
363 | </widget> | ||
364 | <packing> | ||
365 | <property name="padding">0</property> | ||
366 | <property name="expand">False</property> | ||
367 | <property name="fill">False</property> | ||
368 | </packing> | ||
369 | </child> | ||
370 | |||
371 | <child> | ||
372 | <widget class="Custom" id="gtkglext1"> | ||
373 | <property name="visible">True</property> | ||
374 | <property name="creation_function">gui_glade_create_glwidget</property> | ||
375 | <property name="int1">0</property> | ||
376 | <property name="int2">0</property> | ||
377 | <property name="last_modification_time">Sun, 18 Dec 2005 17:23:20 GMT</property> | ||
378 | </widget> | ||
379 | <packing> | ||
380 | <property name="padding">0</property> | ||
381 | <property name="expand">True</property> | ||
382 | <property name="fill">True</property> | ||
383 | </packing> | ||
384 | </child> | ||
385 | |||
386 | <child> | ||
387 | <widget class="GtkHBox" id="hbox1"> | ||
388 | <property name="visible">True</property> | ||
389 | <property name="homogeneous">False</property> | ||
390 | <property name="spacing">0</property> | ||
391 | |||
392 | <child> | ||
393 | <widget class="GtkStatusbar" id="statusbar"> | ||
394 | <property name="visible">True</property> | ||
395 | <property name="has_resize_grip">False</property> | ||
396 | </widget> | ||
397 | <packing> | ||
398 | <property name="padding">0</property> | ||
399 | <property name="expand">True</property> | ||
400 | <property name="fill">True</property> | ||
401 | </packing> | ||
402 | </child> | ||
403 | |||
404 | <child> | ||
405 | <widget class="GtkProgressBar" id="main_progressbar"> | ||
406 | <property name="visible">True</property> | ||
407 | <property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property> | ||
408 | <property name="fraction">0.5</property> | ||
409 | <property name="pulse_step">0.10000000149</property> | ||
410 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
411 | </widget> | ||
412 | <packing> | ||
413 | <property name="padding">0</property> | ||
414 | <property name="expand">False</property> | ||
415 | <property name="fill">False</property> | ||
416 | </packing> | ||
417 | </child> | ||
418 | </widget> | ||
419 | <packing> | ||
420 | <property name="padding">0</property> | ||
421 | <property name="expand">False</property> | ||
422 | <property name="fill">False</property> | ||
423 | </packing> | ||
424 | </child> | ||
425 | </widget> | ||
426 | </child> | ||
427 | </widget> | ||
428 | |||
429 | <widget class="GtkWindow" id="properties_window"> | ||
430 | <property name="title" translatable="yes">Model Properties</property> | ||
431 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
432 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
433 | <property name="modal">False</property> | ||
434 | <property name="default_width">400</property> | ||
435 | <property name="default_height">300</property> | ||
436 | <property name="resizable">True</property> | ||
437 | <property name="destroy_with_parent">False</property> | ||
438 | <property name="icon_name">gtk-properties</property> | ||
439 | <property name="decorated">True</property> | ||
440 | <property name="skip_taskbar_hint">False</property> | ||
441 | <property name="skip_pager_hint">False</property> | ||
442 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> | ||
443 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
444 | <property name="focus_on_map">True</property> | ||
445 | <property name="urgency_hint">False</property> | ||
446 | <signal name="delete_event" handler="gtk_widget_hide" object="properties_window" last_modification_time="Sun, 22 Jan 2006 14:00:19 GMT"/> | ||
447 | |||
448 | <child> | ||
449 | <widget class="GtkVBox" id="vbox2"> | ||
450 | <property name="visible">True</property> | ||
451 | <property name="homogeneous">False</property> | ||
452 | <property name="spacing">0</property> | ||
453 | |||
454 | <child> | ||
455 | <widget class="GtkNotebook" id="notebook1"> | ||
456 | <property name="border_width">5</property> | ||
457 | <property name="visible">True</property> | ||
458 | <property name="can_focus">True</property> | ||
459 | <property name="show_tabs">True</property> | ||
460 | <property name="show_border">True</property> | ||
461 | <property name="tab_pos">GTK_POS_TOP</property> | ||
462 | <property name="scrollable">False</property> | ||
463 | <property name="enable_popup">False</property> | ||
464 | |||
465 | <child> | ||
466 | <widget class="GtkScrolledWindow" id="scrolledwindow1"> | ||
467 | <property name="border_width">5</property> | ||
468 | <property name="visible">True</property> | ||
469 | <property name="can_focus">True</property> | ||
470 | <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | ||
471 | <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | ||
472 | <property name="shadow_type">GTK_SHADOW_IN</property> | ||
473 | <property name="window_placement">GTK_CORNER_TOP_LEFT</property> | ||
474 | |||
475 | <child> | ||
476 | <widget class="GtkTreeView" id="proptree"> | ||
477 | <property name="visible">True</property> | ||
478 | <property name="can_focus">True</property> | ||
479 | <property name="headers_visible">True</property> | ||
480 | <property name="rules_hint">False</property> | ||
481 | <property name="reorderable">False</property> | ||
482 | <property name="enable_search">True</property> | ||
483 | <property name="fixed_height_mode">False</property> | ||
484 | <property name="hover_selection">False</property> | ||
485 | <property name="hover_expand">False</property> | ||
486 | </widget> | ||
487 | </child> | ||
488 | </widget> | ||
489 | <packing> | ||
490 | <property name="tab_expand">False</property> | ||
491 | <property name="tab_fill">True</property> | ||
492 | </packing> | ||
493 | </child> | ||
494 | |||
495 | <child> | ||
496 | <widget class="GtkHBox" id="hbox3"> | ||
497 | <property name="visible">True</property> | ||
498 | <property name="homogeneous">False</property> | ||
499 | <property name="spacing">0</property> | ||
500 | |||
501 | <child> | ||
502 | <widget class="GtkImage" id="image2"> | ||
503 | <property name="visible">True</property> | ||
504 | <property name="stock">gtk-index</property> | ||
505 | <property name="icon_size">1</property> | ||
506 | <property name="xalign">0.5</property> | ||
507 | <property name="yalign">0.5</property> | ||
508 | <property name="xpad">0</property> | ||
509 | <property name="ypad">0</property> | ||
510 | </widget> | ||
511 | <packing> | ||
512 | <property name="padding">0</property> | ||
513 | <property name="expand">True</property> | ||
514 | <property name="fill">True</property> | ||
515 | </packing> | ||
516 | </child> | ||
517 | |||
518 | <child> | ||
519 | <widget class="GtkLabel" id="label3"> | ||
520 | <property name="visible">True</property> | ||
521 | <property name="label" translatable="yes">Parts</property> | ||
522 | <property name="use_underline">False</property> | ||
523 | <property name="use_markup">False</property> | ||
524 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
525 | <property name="wrap">False</property> | ||
526 | <property name="selectable">False</property> | ||
527 | <property name="xalign">0.5</property> | ||
528 | <property name="yalign">0.5</property> | ||
529 | <property name="xpad">0</property> | ||
530 | <property name="ypad">0</property> | ||
531 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
532 | <property name="width_chars">-1</property> | ||
533 | <property name="single_line_mode">False</property> | ||
534 | <property name="angle">0</property> | ||
535 | </widget> | ||
536 | <packing> | ||
537 | <property name="padding">0</property> | ||
538 | <property name="expand">False</property> | ||
539 | <property name="fill">False</property> | ||
540 | </packing> | ||
541 | </child> | ||
542 | </widget> | ||
543 | <packing> | ||
544 | <property name="type">tab</property> | ||
545 | </packing> | ||
546 | </child> | ||
547 | |||
548 | <child> | ||
549 | <widget class="GtkVBox" id="vbox3"> | ||
550 | <property name="border_width">5</property> | ||
551 | <property name="visible">True</property> | ||
552 | <property name="homogeneous">False</property> | ||
553 | <property name="spacing">0</property> | ||
554 | |||
555 | <child> | ||
556 | <widget class="GtkToolbar" id="toolbar1"> | ||
557 | <property name="visible">True</property> | ||
558 | <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property> | ||
559 | <property name="toolbar_style">GTK_TOOLBAR_ICONS</property> | ||
560 | <property name="tooltips">True</property> | ||
561 | <property name="show_arrow">True</property> | ||
562 | |||
563 | <child> | ||
564 | <widget class="GtkToolButton" id="tb_log_clear"> | ||
565 | <property name="visible">True</property> | ||
566 | <property name="stock_id">gtk-clear</property> | ||
567 | <property name="visible_horizontal">True</property> | ||
568 | <property name="visible_vertical">True</property> | ||
569 | <property name="is_important">False</property> | ||
570 | </widget> | ||
571 | <packing> | ||
572 | <property name="expand">False</property> | ||
573 | <property name="homogeneous">True</property> | ||
574 | </packing> | ||
575 | </child> | ||
576 | |||
577 | <child> | ||
578 | <widget class="GtkToolButton" id="tb_log_save"> | ||
579 | <property name="visible">True</property> | ||
580 | <property name="stock_id">gtk-save-as</property> | ||
581 | <property name="visible_horizontal">True</property> | ||
582 | <property name="visible_vertical">True</property> | ||
583 | <property name="is_important">False</property> | ||
584 | </widget> | ||
585 | <packing> | ||
586 | <property name="expand">False</property> | ||
587 | <property name="homogeneous">True</property> | ||
588 | </packing> | ||
589 | </child> | ||
590 | </widget> | ||
591 | <packing> | ||
592 | <property name="padding">0</property> | ||
593 | <property name="expand">False</property> | ||
594 | <property name="fill">False</property> | ||
595 | </packing> | ||
596 | </child> | ||
597 | |||
598 | <child> | ||
599 | <widget class="GtkScrolledWindow" id="scrolledwindow2"> | ||
600 | <property name="visible">True</property> | ||
601 | <property name="can_focus">True</property> | ||
602 | <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | ||
603 | <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | ||
604 | <property name="shadow_type">GTK_SHADOW_IN</property> | ||
605 | <property name="window_placement">GTK_CORNER_TOP_LEFT</property> | ||
606 | |||
607 | <child> | ||
608 | <widget class="GtkTreeView" id="logtree"> | ||
609 | <property name="visible">True</property> | ||
610 | <property name="can_focus">True</property> | ||
611 | <property name="headers_visible">False</property> | ||
612 | <property name="rules_hint">False</property> | ||
613 | <property name="reorderable">False</property> | ||
614 | <property name="enable_search">True</property> | ||
615 | <property name="fixed_height_mode">False</property> | ||
616 | <property name="hover_selection">False</property> | ||
617 | <property name="hover_expand">False</property> | ||
618 | </widget> | ||
619 | </child> | ||
620 | </widget> | ||
621 | <packing> | ||
622 | <property name="padding">0</property> | ||
623 | <property name="expand">True</property> | ||
624 | <property name="fill">True</property> | ||
625 | </packing> | ||
626 | </child> | ||
627 | </widget> | ||
628 | <packing> | ||
629 | <property name="tab_expand">False</property> | ||
630 | <property name="tab_fill">True</property> | ||
631 | </packing> | ||
632 | </child> | ||
633 | |||
634 | <child> | ||
635 | <widget class="GtkHBox" id="hbox4"> | ||
636 | <property name="visible">True</property> | ||
637 | <property name="homogeneous">False</property> | ||
638 | <property name="spacing">0</property> | ||
639 | |||
640 | <child> | ||
641 | <widget class="GtkImage" id="image6"> | ||
642 | <property name="visible">True</property> | ||
643 | <property name="stock">gtk-info</property> | ||
644 | <property name="icon_size">4</property> | ||
645 | <property name="xalign">0.5</property> | ||
646 | <property name="yalign">0.5</property> | ||
647 | <property name="xpad">0</property> | ||
648 | <property name="ypad">0</property> | ||
649 | </widget> | ||
650 | <packing> | ||
651 | <property name="padding">0</property> | ||
652 | <property name="expand">True</property> | ||
653 | <property name="fill">True</property> | ||
654 | </packing> | ||
655 | </child> | ||
656 | |||
657 | <child> | ||
658 | <widget class="GtkLabel" id="label6"> | ||
659 | <property name="visible">True</property> | ||
660 | <property name="label" translatable="yes">Protocol</property> | ||
661 | <property name="use_underline">False</property> | ||
662 | <property name="use_markup">False</property> | ||
663 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
664 | <property name="wrap">False</property> | ||
665 | <property name="selectable">False</property> | ||
666 | <property name="xalign">0.5</property> | ||
667 | <property name="yalign">0.5</property> | ||
668 | <property name="xpad">0</property> | ||
669 | <property name="ypad">0</property> | ||
670 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
671 | <property name="width_chars">-1</property> | ||
672 | <property name="single_line_mode">False</property> | ||
673 | <property name="angle">0</property> | ||
674 | </widget> | ||
675 | <packing> | ||
676 | <property name="padding">0</property> | ||
677 | <property name="expand">False</property> | ||
678 | <property name="fill">False</property> | ||
679 | </packing> | ||
680 | </child> | ||
681 | </widget> | ||
682 | <packing> | ||
683 | <property name="type">tab</property> | ||
684 | </packing> | ||
685 | </child> | ||
686 | </widget> | ||
687 | <packing> | ||
688 | <property name="padding">0</property> | ||
689 | <property name="expand">True</property> | ||
690 | <property name="fill">True</property> | ||
691 | </packing> | ||
692 | </child> | ||
693 | |||
694 | <child> | ||
695 | <widget class="GtkHButtonBox" id="hbuttonbox1"> | ||
696 | <property name="border_width">5</property> | ||
697 | <property name="visible">True</property> | ||
698 | <property name="layout_style">GTK_BUTTONBOX_END</property> | ||
699 | <property name="spacing">10</property> | ||
700 | |||
701 | <child> | ||
702 | <widget class="GtkButton" id="button1"> | ||
703 | <property name="visible">True</property> | ||
704 | <property name="can_default">True</property> | ||
705 | <property name="can_focus">True</property> | ||
706 | <property name="label">gtk-close</property> | ||
707 | <property name="use_stock">True</property> | ||
708 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
709 | <property name="focus_on_click">True</property> | ||
710 | <signal name="clicked" handler="gtk_widget_hide" object="properties_window" last_modification_time="Sun, 22 Jan 2006 14:00:42 GMT"/> | ||
711 | </widget> | ||
712 | </child> | ||
713 | </widget> | ||
714 | <packing> | ||
715 | <property name="padding">0</property> | ||
716 | <property name="expand">False</property> | ||
717 | <property name="fill">True</property> | ||
718 | </packing> | ||
719 | </child> | ||
720 | </widget> | ||
721 | </child> | ||
722 | </widget> | ||
723 | |||
724 | <widget class="GtkDialog" id="info_dialog"> | ||
725 | <property name="title" translatable="yes">About G3DViewer</property> | ||
726 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
727 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
728 | <property name="modal">False</property> | ||
729 | <property name="default_width">450</property> | ||
730 | <property name="default_height">250</property> | ||
731 | <property name="resizable">False</property> | ||
732 | <property name="destroy_with_parent">False</property> | ||
733 | <property name="decorated">True</property> | ||
734 | <property name="skip_taskbar_hint">False</property> | ||
735 | <property name="skip_pager_hint">False</property> | ||
736 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | ||
737 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
738 | <property name="focus_on_map">True</property> | ||
739 | <property name="urgency_hint">False</property> | ||
740 | <property name="has_separator">True</property> | ||
741 | <signal name="delete_event" handler="gtk_widget_hide" object="info_dialog" last_modification_time="Tue, 31 Jan 2006 13:37:39 GMT"/> | ||
742 | |||
743 | <child internal-child="vbox"> | ||
744 | <widget class="GtkVBox" id="dialog-vbox1"> | ||
745 | <property name="visible">True</property> | ||
746 | <property name="homogeneous">False</property> | ||
747 | <property name="spacing">0</property> | ||
748 | |||
749 | <child internal-child="action_area"> | ||
750 | <widget class="GtkHButtonBox" id="dialog-action_area1"> | ||
751 | <property name="visible">True</property> | ||
752 | <property name="layout_style">GTK_BUTTONBOX_END</property> | ||
753 | |||
754 | <child> | ||
755 | <widget class="GtkButton" id="closebutton1"> | ||
756 | <property name="visible">True</property> | ||
757 | <property name="can_default">True</property> | ||
758 | <property name="can_focus">True</property> | ||
759 | <property name="label">gtk-close</property> | ||
760 | <property name="use_stock">True</property> | ||
761 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
762 | <property name="focus_on_click">True</property> | ||
763 | <property name="response_id">-7</property> | ||
764 | <signal name="clicked" handler="gtk_widget_hide" object="info_dialog" last_modification_time="Tue, 31 Jan 2006 13:44:05 GMT"/> | ||
765 | </widget> | ||
766 | </child> | ||
767 | </widget> | ||
768 | <packing> | ||
769 | <property name="padding">0</property> | ||
770 | <property name="expand">False</property> | ||
771 | <property name="fill">True</property> | ||
772 | <property name="pack_type">GTK_PACK_END</property> | ||
773 | </packing> | ||
774 | </child> | ||
775 | |||
776 | <child> | ||
777 | <widget class="GtkLabel" id="label5"> | ||
778 | <property name="visible">True</property> | ||
779 | <property name="label" translatable="yes"><b>About G3DViewer</b></property> | ||
780 | <property name="use_underline">False</property> | ||
781 | <property name="use_markup">True</property> | ||
782 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
783 | <property name="wrap">False</property> | ||
784 | <property name="selectable">False</property> | ||
785 | <property name="xalign">0.5</property> | ||
786 | <property name="yalign">0.5</property> | ||
787 | <property name="xpad">0</property> | ||
788 | <property name="ypad">0</property> | ||
789 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
790 | <property name="width_chars">-1</property> | ||
791 | <property name="single_line_mode">False</property> | ||
792 | <property name="angle">0</property> | ||
793 | </widget> | ||
794 | <packing> | ||
795 | <property name="padding">5</property> | ||
796 | <property name="expand">False</property> | ||
797 | <property name="fill">False</property> | ||
798 | </packing> | ||
799 | </child> | ||
800 | |||
801 | <child> | ||
802 | <widget class="GtkImage" id="img_info_logo"> | ||
803 | <property name="visible">True</property> | ||
804 | <property name="pixbuf">g3d48.png</property> | ||
805 | <property name="xalign">0.5</property> | ||
806 | <property name="yalign">0.5</property> | ||
807 | <property name="xpad">0</property> | ||
808 | <property name="ypad">0</property> | ||
809 | </widget> | ||
810 | <packing> | ||
811 | <property name="padding">5</property> | ||
812 | <property name="expand">False</property> | ||
813 | <property name="fill">False</property> | ||
814 | </packing> | ||
815 | </child> | ||
816 | |||
817 | <child> | ||
818 | <widget class="GtkLabel" id="label4"> | ||
819 | <property name="visible">True</property> | ||
820 | <property name="can_focus">True</property> | ||
821 | <property name="label" translatable="yes"><span foreground="blue">http://automagically.de/?g3dviewer</span> | ||
822 | |||
823 | (C) 2005, 2006 Markus Dahms | ||
824 | &lt;mad@automagically.de&gt;</property> | ||
825 | <property name="use_underline">False</property> | ||
826 | <property name="use_markup">True</property> | ||
827 | <property name="justify">GTK_JUSTIFY_CENTER</property> | ||
828 | <property name="wrap">True</property> | ||
829 | <property name="selectable">True</property> | ||
830 | <property name="xalign">0.5</property> | ||
831 | <property name="yalign">0.5</property> | ||
832 | <property name="xpad">5</property> | ||
833 | <property name="ypad">5</property> | ||
834 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
835 | <property name="width_chars">-1</property> | ||
836 | <property name="single_line_mode">False</property> | ||
837 | <property name="angle">0</property> | ||
838 | </widget> | ||
839 | <packing> | ||
840 | <property name="padding">0</property> | ||
841 | <property name="expand">False</property> | ||
842 | <property name="fill">False</property> | ||
843 | </packing> | ||
844 | </child> | ||
845 | </widget> | ||
846 | </child> | ||
847 | </widget> | ||
848 | |||
849 | <widget class="GtkFileChooserDialog" id="open_dialog"> | ||
850 | <property name="action">GTK_FILE_CHOOSER_ACTION_OPEN</property> | ||
851 | <property name="local_only">True</property> | ||
852 | <property name="select_multiple">False</property> | ||
853 | <property name="show_hidden">False</property> | ||
854 | <property name="do_overwrite_confirmation">False</property> | ||
855 | <property name="title" translatable="yes">Open Model</property> | ||
856 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
857 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
858 | <property name="modal">False</property> | ||
859 | <property name="resizable">True</property> | ||
860 | <property name="destroy_with_parent">False</property> | ||
861 | <property name="decorated">True</property> | ||
862 | <property name="skip_taskbar_hint">False</property> | ||
863 | <property name="skip_pager_hint">False</property> | ||
864 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | ||
865 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
866 | <property name="focus_on_map">True</property> | ||
867 | <property name="urgency_hint">False</property> | ||
868 | |||
869 | <child internal-child="vbox"> | ||
870 | <widget class="GtkVBox" id="dialog-vbox2"> | ||
871 | <property name="visible">True</property> | ||
872 | <property name="homogeneous">False</property> | ||
873 | <property name="spacing">24</property> | ||
874 | |||
875 | <child internal-child="action_area"> | ||
876 | <widget class="GtkHButtonBox" id="dialog-action_area2"> | ||
877 | <property name="visible">True</property> | ||
878 | <property name="layout_style">GTK_BUTTONBOX_END</property> | ||
879 | |||
880 | <child> | ||
881 | <widget class="GtkButton" id="button2"> | ||
882 | <property name="visible">True</property> | ||
883 | <property name="can_default">True</property> | ||
884 | <property name="can_focus">True</property> | ||
885 | <property name="label">gtk-cancel</property> | ||
886 | <property name="use_stock">True</property> | ||
887 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
888 | <property name="focus_on_click">True</property> | ||
889 | <property name="response_id">-6</property> | ||
890 | </widget> | ||
891 | </child> | ||
892 | |||
893 | <child> | ||
894 | <widget class="GtkButton" id="button3"> | ||
895 | <property name="visible">True</property> | ||
896 | <property name="can_default">True</property> | ||
897 | <property name="has_default">True</property> | ||
898 | <property name="can_focus">True</property> | ||
899 | <property name="label">gtk-open</property> | ||
900 | <property name="use_stock">True</property> | ||
901 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
902 | <property name="focus_on_click">True</property> | ||
903 | <property name="response_id">-5</property> | ||
904 | </widget> | ||
905 | </child> | ||
906 | </widget> | ||
907 | <packing> | ||
908 | <property name="padding">0</property> | ||
909 | <property name="expand">False</property> | ||
910 | <property name="fill">True</property> | ||
911 | <property name="pack_type">GTK_PACK_END</property> | ||
912 | </packing> | ||
913 | </child> | ||
914 | </widget> | ||
915 | </child> | ||
916 | </widget> | ||
917 | |||
918 | <widget class="GtkColorSelectionDialog" id="color_dialog"> | ||
919 | <property name="title" translatable="yes">Select background color</property> | ||
920 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
921 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
922 | <property name="modal">False</property> | ||
923 | <property name="resizable">False</property> | ||
924 | <property name="destroy_with_parent">False</property> | ||
925 | <property name="decorated">True</property> | ||
926 | <property name="skip_taskbar_hint">False</property> | ||
927 | <property name="skip_pager_hint">False</property> | ||
928 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | ||
929 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
930 | <property name="focus_on_map">True</property> | ||
931 | <property name="urgency_hint">False</property> | ||
932 | |||
933 | <child internal-child="cancel_button"> | ||
934 | <widget class="GtkButton" id="cancel_button1"> | ||
935 | <property name="visible">True</property> | ||
936 | <property name="can_default">True</property> | ||
937 | <property name="can_focus">True</property> | ||
938 | <property name="label">gtk-cancel</property> | ||
939 | <property name="use_stock">True</property> | ||
940 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
941 | <property name="focus_on_click">True</property> | ||
942 | </widget> | ||
943 | </child> | ||
944 | |||
945 | <child internal-child="ok_button"> | ||
946 | <widget class="GtkButton" id="ok_button1"> | ||
947 | <property name="visible">True</property> | ||
948 | <property name="can_default">True</property> | ||
949 | <property name="can_focus">True</property> | ||
950 | <property name="label">gtk-ok</property> | ||
951 | <property name="use_stock">True</property> | ||
952 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
953 | <property name="focus_on_click">True</property> | ||
954 | </widget> | ||
955 | </child> | ||
956 | |||
957 | <child internal-child="help_button"> | ||
958 | <widget class="GtkButton" id="help_button1"> | ||
959 | <property name="visible">True</property> | ||
960 | <property name="can_default">True</property> | ||
961 | <property name="can_focus">True</property> | ||
962 | <property name="label">gtk-help</property> | ||
963 | <property name="use_stock">True</property> | ||
964 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
965 | <property name="focus_on_click">True</property> | ||
966 | </widget> | ||
967 | </child> | ||
968 | |||
969 | <child internal-child="color_selection"> | ||
970 | <widget class="GtkColorSelection" id="cs_background"> | ||
971 | <property name="visible">True</property> | ||
972 | <property name="has_opacity_control">False</property> | ||
973 | <property name="has_palette">False</property> | ||
974 | <signal name="color_changed" handler="gui_color_changed_cb" last_modification_time="Tue, 31 Jan 2006 18:39:59 GMT"/> | ||
975 | </widget> | ||
976 | </child> | ||
977 | </widget> | ||
978 | |||
979 | </glade-interface> | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/install-sh b/src/others/mimesh/g3dviewer-0.2.99.4/install-sh new file mode 100755 index 0000000..6ce63b9 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | |||
@@ -0,0 +1,294 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # install - install a program, script, or datafile | ||
4 | # | ||
5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was | ||
6 | # later released in X11R6 (xc/config/util/install.sh) with the | ||
7 | # following copyright and license. | ||
8 | # | ||
9 | # Copyright (C) 1994 X Consortium | ||
10 | # | ||
11 | # Permission is hereby granted, free of charge, to any person obtaining a copy | ||
12 | # of this software and associated documentation files (the "Software"), to | ||
13 | # deal in the Software without restriction, including without limitation the | ||
14 | # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
15 | # sell copies of the Software, and to permit persons to whom the Software is | ||
16 | # furnished to do so, subject to the following conditions: | ||
17 | # | ||
18 | # The above copyright notice and this permission notice shall be included in | ||
19 | # all copies or substantial portions of the Software. | ||
20 | # | ||
21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
23 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
24 | # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
25 | # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- | ||
26 | # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
27 | # | ||
28 | # Except as contained in this notice, the name of the X Consortium shall not | ||
29 | # be used in advertising or otherwise to promote the sale, use or other deal- | ||
30 | # ings in this Software without prior written authorization from the X Consor- | ||
31 | # tium. | ||
32 | # | ||
33 | # | ||
34 | # FSF changes to this file are in the public domain. | ||
35 | # | ||
36 | # Calling this script install-sh is preferred over install.sh, to prevent | ||
37 | # `make' implicit rules from creating a file called install from it | ||
38 | # when there is no Makefile. | ||
39 | # | ||
40 | # This script is compatible with the BSD install script, but was written | ||
41 | # from scratch. It can only install one file at a time, a restriction | ||
42 | # shared with many OS's install programs. | ||
43 | |||
44 | |||
45 | # set DOITPROG to echo to test this script | ||
46 | |||
47 | # Don't use :- since 4.3BSD and earlier shells don't like it. | ||
48 | doit="${DOITPROG-}" | ||
49 | |||
50 | |||
51 | # put in absolute paths if you don't have them in your path; or use env. vars. | ||
52 | |||
53 | mvprog="${MVPROG-mv}" | ||
54 | cpprog="${CPPROG-cp}" | ||
55 | chmodprog="${CHMODPROG-chmod}" | ||
56 | chownprog="${CHOWNPROG-chown}" | ||
57 | chgrpprog="${CHGRPPROG-chgrp}" | ||
58 | stripprog="${STRIPPROG-strip}" | ||
59 | rmprog="${RMPROG-rm}" | ||
60 | mkdirprog="${MKDIRPROG-mkdir}" | ||
61 | |||
62 | transformbasename="" | ||
63 | transform_arg="" | ||
64 | instcmd="$mvprog" | ||
65 | chmodcmd="$chmodprog 0755" | ||
66 | chowncmd="" | ||
67 | chgrpcmd="" | ||
68 | stripcmd="" | ||
69 | rmcmd="$rmprog -f" | ||
70 | mvcmd="$mvprog" | ||
71 | src="" | ||
72 | dst="" | ||
73 | dir_arg="" | ||
74 | |||
75 | while [ x"$1" != x ]; do | ||
76 | case $1 in | ||
77 | -c) instcmd=$cpprog | ||
78 | shift | ||
79 | continue;; | ||
80 | |||
81 | -d) dir_arg=true | ||
82 | shift | ||
83 | continue;; | ||
84 | |||
85 | -m) chmodcmd="$chmodprog $2" | ||
86 | shift | ||
87 | shift | ||
88 | continue;; | ||
89 | |||
90 | -o) chowncmd="$chownprog $2" | ||
91 | shift | ||
92 | shift | ||
93 | continue;; | ||
94 | |||
95 | -g) chgrpcmd="$chgrpprog $2" | ||
96 | shift | ||
97 | shift | ||
98 | continue;; | ||
99 | |||
100 | -s) stripcmd=$stripprog | ||
101 | shift | ||
102 | continue;; | ||
103 | |||
104 | -t=*) transformarg=`echo $1 | sed 's/-t=//'` | ||
105 | shift | ||
106 | continue;; | ||
107 | |||
108 | -b=*) transformbasename=`echo $1 | sed 's/-b=//'` | ||
109 | shift | ||
110 | continue;; | ||
111 | |||
112 | *) if [ x"$src" = x ] | ||
113 | then | ||
114 | src=$1 | ||
115 | else | ||
116 | # this colon is to work around a 386BSD /bin/sh bug | ||
117 | : | ||
118 | dst=$1 | ||
119 | fi | ||
120 | shift | ||
121 | continue;; | ||
122 | esac | ||
123 | done | ||
124 | |||
125 | if [ x"$src" = x ] | ||
126 | then | ||
127 | echo "$0: no input file specified" >&2 | ||
128 | exit 1 | ||
129 | else | ||
130 | : | ||
131 | fi | ||
132 | |||
133 | if [ x"$dir_arg" != x ]; then | ||
134 | dst=$src | ||
135 | src="" | ||
136 | |||
137 | if [ -d "$dst" ]; then | ||
138 | instcmd=: | ||
139 | chmodcmd="" | ||
140 | else | ||
141 | instcmd=$mkdirprog | ||
142 | fi | ||
143 | else | ||
144 | |||
145 | # Waiting for this to be detected by the "$instcmd $src $dsttmp" command | ||
146 | # might cause directories to be created, which would be especially bad | ||
147 | # if $src (and thus $dsttmp) contains '*'. | ||
148 | |||
149 | if [ -f "$src" ] || [ -d "$src" ] | ||
150 | then | ||
151 | : | ||
152 | else | ||
153 | echo "$0: $src does not exist" >&2 | ||
154 | exit 1 | ||
155 | fi | ||
156 | |||
157 | if [ x"$dst" = x ] | ||
158 | then | ||
159 | echo "$0: no destination specified" >&2 | ||
160 | exit 1 | ||
161 | else | ||
162 | : | ||
163 | fi | ||
164 | |||
165 | # If destination is a directory, append the input filename; if your system | ||
166 | # does not like double slashes in filenames, you may need to add some logic | ||
167 | |||
168 | if [ -d "$dst" ] | ||
169 | then | ||
170 | dst=$dst/`basename "$src"` | ||
171 | else | ||
172 | : | ||
173 | fi | ||
174 | fi | ||
175 | |||
176 | ## this sed command emulates the dirname command | ||
177 | dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` | ||
178 | |||
179 | # Make sure that the destination directory exists. | ||
180 | # this part is taken from Noah Friedman's mkinstalldirs script | ||
181 | |||
182 | # Skip lots of stat calls in the usual case. | ||
183 | if [ ! -d "$dstdir" ]; then | ||
184 | defaultIFS=' | ||
185 | ' | ||
186 | IFS="${IFS-$defaultIFS}" | ||
187 | |||
188 | oIFS=$IFS | ||
189 | # Some sh's can't handle IFS=/ for some reason. | ||
190 | IFS='%' | ||
191 | set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` | ||
192 | IFS=$oIFS | ||
193 | |||
194 | pathcomp='' | ||
195 | |||
196 | while [ $# -ne 0 ] ; do | ||
197 | pathcomp=$pathcomp$1 | ||
198 | shift | ||
199 | |||
200 | if [ ! -d "$pathcomp" ] ; | ||
201 | then | ||
202 | $mkdirprog "$pathcomp" | ||
203 | else | ||
204 | : | ||
205 | fi | ||
206 | |||
207 | pathcomp=$pathcomp/ | ||
208 | done | ||
209 | fi | ||
210 | |||
211 | if [ x"$dir_arg" != x ] | ||
212 | then | ||
213 | $doit $instcmd "$dst" && | ||
214 | |||
215 | if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && | ||
216 | if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && | ||
217 | if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && | ||
218 | if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi | ||
219 | else | ||
220 | |||
221 | # If we're going to rename the final executable, determine the name now. | ||
222 | |||
223 | if [ x"$transformarg" = x ] | ||
224 | then | ||
225 | dstfile=`basename "$dst"` | ||
226 | else | ||
227 | dstfile=`basename "$dst" $transformbasename | | ||
228 | sed $transformarg`$transformbasename | ||
229 | fi | ||
230 | |||
231 | # don't allow the sed command to completely eliminate the filename | ||
232 | |||
233 | if [ x"$dstfile" = x ] | ||
234 | then | ||
235 | dstfile=`basename "$dst"` | ||
236 | else | ||
237 | : | ||
238 | fi | ||
239 | |||
240 | # Make a couple of temp file names in the proper directory. | ||
241 | |||
242 | dsttmp=$dstdir/_inst.$$_ | ||
243 | rmtmp=$dstdir/_rm.$$_ | ||
244 | |||
245 | # Trap to clean up temp files at exit. | ||
246 | |||
247 | trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 | ||
248 | trap '(exit $?); exit' 1 2 13 15 | ||
249 | |||
250 | # Move or copy the file name to the temp name | ||
251 | |||
252 | $doit $instcmd "$src" "$dsttmp" && | ||
253 | |||
254 | # and set any options; do chmod last to preserve setuid bits | ||
255 | |||
256 | # If any of these fail, we abort the whole thing. If we want to | ||
257 | # ignore errors from any of these, just make sure not to ignore | ||
258 | # errors from the above "$doit $instcmd $src $dsttmp" command. | ||
259 | |||
260 | if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && | ||
261 | if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && | ||
262 | if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && | ||
263 | if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && | ||
264 | |||
265 | # Now remove or move aside any old file at destination location. We try this | ||
266 | # two ways since rm can't unlink itself on some systems and the destination | ||
267 | # file might be busy for other reasons. In this case, the final cleanup | ||
268 | # might fail but the new file should still install successfully. | ||
269 | |||
270 | { | ||
271 | if [ -f "$dstdir/$dstfile" ] | ||
272 | then | ||
273 | $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || | ||
274 | $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || | ||
275 | { | ||
276 | echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 | ||
277 | (exit 1); exit | ||
278 | } | ||
279 | else | ||
280 | : | ||
281 | fi | ||
282 | } && | ||
283 | |||
284 | # Now rename the file to the real destination. | ||
285 | |||
286 | $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" | ||
287 | |||
288 | fi && | ||
289 | |||
290 | # The final little trick to "correctly" pass the exit status to the exit trap. | ||
291 | |||
292 | { | ||
293 | (exit 0); exit | ||
294 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile new file mode 100644 index 0000000..3d18e74 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile | |||
@@ -0,0 +1,295 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # m4/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | EXTRA_DIST = \ | ||
152 | acinclude.m4 \ | ||
153 | glib-2.0.m4 \ | ||
154 | gtk-2.0.m4 \ | ||
155 | gtkglext.m4 | ||
156 | |||
157 | subdir = m4 | ||
158 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
159 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
160 | CONFIG_HEADER = $(top_builddir)/config.h | ||
161 | CONFIG_CLEAN_FILES = | ||
162 | DIST_SOURCES = | ||
163 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am acinclude.m4 | ||
164 | all: all-am | ||
165 | |||
166 | .SUFFIXES: | ||
167 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
168 | cd $(top_srcdir) && \ | ||
169 | $(AUTOMAKE) --gnu m4/Makefile | ||
170 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
171 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
172 | uninstall-info-am: | ||
173 | tags: TAGS | ||
174 | TAGS: | ||
175 | |||
176 | ctags: CTAGS | ||
177 | CTAGS: | ||
178 | |||
179 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
180 | |||
181 | top_distdir = .. | ||
182 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
183 | |||
184 | distdir: $(DISTFILES) | ||
185 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
186 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
187 | list='$(DISTFILES)'; for file in $$list; do \ | ||
188 | case $$file in \ | ||
189 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
190 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
191 | esac; \ | ||
192 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
193 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
194 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
195 | dir="/$$dir"; \ | ||
196 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
197 | else \ | ||
198 | dir=''; \ | ||
199 | fi; \ | ||
200 | if test -d $$d/$$file; then \ | ||
201 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
202 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
203 | fi; \ | ||
204 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
205 | else \ | ||
206 | test -f $(distdir)/$$file \ | ||
207 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
208 | || exit 1; \ | ||
209 | fi; \ | ||
210 | done | ||
211 | check-am: all-am | ||
212 | check: check-am | ||
213 | all-am: Makefile | ||
214 | |||
215 | installdirs: | ||
216 | install: install-am | ||
217 | install-exec: install-exec-am | ||
218 | install-data: install-data-am | ||
219 | uninstall: uninstall-am | ||
220 | |||
221 | install-am: all-am | ||
222 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
223 | |||
224 | installcheck: installcheck-am | ||
225 | install-strip: | ||
226 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
227 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
228 | `test -z '$(STRIP)' || \ | ||
229 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
230 | mostlyclean-generic: | ||
231 | |||
232 | clean-generic: | ||
233 | |||
234 | distclean-generic: | ||
235 | -rm -f $(CONFIG_CLEAN_FILES) | ||
236 | |||
237 | maintainer-clean-generic: | ||
238 | @echo "This command is intended for maintainers to use" | ||
239 | @echo "it deletes files that may require special tools to rebuild." | ||
240 | clean: clean-am | ||
241 | |||
242 | clean-am: clean-generic mostlyclean-am | ||
243 | |||
244 | distclean: distclean-am | ||
245 | -rm -f Makefile | ||
246 | distclean-am: clean-am distclean-generic | ||
247 | |||
248 | dvi: dvi-am | ||
249 | |||
250 | dvi-am: | ||
251 | |||
252 | info: info-am | ||
253 | |||
254 | info-am: | ||
255 | |||
256 | install-data-am: | ||
257 | |||
258 | install-exec-am: | ||
259 | |||
260 | install-info: install-info-am | ||
261 | |||
262 | install-man: | ||
263 | |||
264 | installcheck-am: | ||
265 | |||
266 | maintainer-clean: maintainer-clean-am | ||
267 | -rm -f Makefile | ||
268 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
269 | |||
270 | mostlyclean: mostlyclean-am | ||
271 | |||
272 | mostlyclean-am: mostlyclean-generic | ||
273 | |||
274 | pdf: pdf-am | ||
275 | |||
276 | pdf-am: | ||
277 | |||
278 | ps: ps-am | ||
279 | |||
280 | ps-am: | ||
281 | |||
282 | uninstall-am: uninstall-info-am | ||
283 | |||
284 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
285 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
286 | install-am install-data install-data-am install-exec \ | ||
287 | install-exec-am install-info install-info-am install-man \ | ||
288 | install-strip installcheck installcheck-am installdirs \ | ||
289 | maintainer-clean maintainer-clean-generic mostlyclean \ | ||
290 | mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ | ||
291 | uninstall-info-am | ||
292 | |||
293 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
294 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
295 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.am new file mode 100644 index 0000000..5f9e57d --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.am | |||
@@ -0,0 +1,5 @@ | |||
1 | EXTRA_DIST = \ | ||
2 | acinclude.m4 \ | ||
3 | glib-2.0.m4 \ | ||
4 | gtk-2.0.m4 \ | ||
5 | gtkglext.m4 | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.in new file mode 100644 index 0000000..1170638 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/Makefile.in | |||
@@ -0,0 +1,295 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | EXTRA_DIST = \ | ||
152 | acinclude.m4 \ | ||
153 | glib-2.0.m4 \ | ||
154 | gtk-2.0.m4 \ | ||
155 | gtkglext.m4 | ||
156 | |||
157 | subdir = m4 | ||
158 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
159 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
160 | CONFIG_HEADER = $(top_builddir)/config.h | ||
161 | CONFIG_CLEAN_FILES = | ||
162 | DIST_SOURCES = | ||
163 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am acinclude.m4 | ||
164 | all: all-am | ||
165 | |||
166 | .SUFFIXES: | ||
167 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
168 | cd $(top_srcdir) && \ | ||
169 | $(AUTOMAKE) --gnu m4/Makefile | ||
170 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
171 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
172 | uninstall-info-am: | ||
173 | tags: TAGS | ||
174 | TAGS: | ||
175 | |||
176 | ctags: CTAGS | ||
177 | CTAGS: | ||
178 | |||
179 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
180 | |||
181 | top_distdir = .. | ||
182 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
183 | |||
184 | distdir: $(DISTFILES) | ||
185 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
186 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
187 | list='$(DISTFILES)'; for file in $$list; do \ | ||
188 | case $$file in \ | ||
189 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
190 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
191 | esac; \ | ||
192 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
193 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
194 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
195 | dir="/$$dir"; \ | ||
196 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
197 | else \ | ||
198 | dir=''; \ | ||
199 | fi; \ | ||
200 | if test -d $$d/$$file; then \ | ||
201 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
202 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
203 | fi; \ | ||
204 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
205 | else \ | ||
206 | test -f $(distdir)/$$file \ | ||
207 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
208 | || exit 1; \ | ||
209 | fi; \ | ||
210 | done | ||
211 | check-am: all-am | ||
212 | check: check-am | ||
213 | all-am: Makefile | ||
214 | |||
215 | installdirs: | ||
216 | install: install-am | ||
217 | install-exec: install-exec-am | ||
218 | install-data: install-data-am | ||
219 | uninstall: uninstall-am | ||
220 | |||
221 | install-am: all-am | ||
222 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
223 | |||
224 | installcheck: installcheck-am | ||
225 | install-strip: | ||
226 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
227 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
228 | `test -z '$(STRIP)' || \ | ||
229 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
230 | mostlyclean-generic: | ||
231 | |||
232 | clean-generic: | ||
233 | |||
234 | distclean-generic: | ||
235 | -rm -f $(CONFIG_CLEAN_FILES) | ||
236 | |||
237 | maintainer-clean-generic: | ||
238 | @echo "This command is intended for maintainers to use" | ||
239 | @echo "it deletes files that may require special tools to rebuild." | ||
240 | clean: clean-am | ||
241 | |||
242 | clean-am: clean-generic mostlyclean-am | ||
243 | |||
244 | distclean: distclean-am | ||
245 | -rm -f Makefile | ||
246 | distclean-am: clean-am distclean-generic | ||
247 | |||
248 | dvi: dvi-am | ||
249 | |||
250 | dvi-am: | ||
251 | |||
252 | info: info-am | ||
253 | |||
254 | info-am: | ||
255 | |||
256 | install-data-am: | ||
257 | |||
258 | install-exec-am: | ||
259 | |||
260 | install-info: install-info-am | ||
261 | |||
262 | install-man: | ||
263 | |||
264 | installcheck-am: | ||
265 | |||
266 | maintainer-clean: maintainer-clean-am | ||
267 | -rm -f Makefile | ||
268 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
269 | |||
270 | mostlyclean: mostlyclean-am | ||
271 | |||
272 | mostlyclean-am: mostlyclean-generic | ||
273 | |||
274 | pdf: pdf-am | ||
275 | |||
276 | pdf-am: | ||
277 | |||
278 | ps: ps-am | ||
279 | |||
280 | ps-am: | ||
281 | |||
282 | uninstall-am: uninstall-info-am | ||
283 | |||
284 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
285 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
286 | install-am install-data install-data-am install-exec \ | ||
287 | install-exec-am install-info install-info-am install-man \ | ||
288 | install-strip installcheck installcheck-am installdirs \ | ||
289 | maintainer-clean maintainer-clean-generic mostlyclean \ | ||
290 | mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ | ||
291 | uninstall-info-am | ||
292 | |||
293 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
294 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
295 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/acinclude.m4 b/src/others/mimesh/g3dviewer-0.2.99.4/m4/acinclude.m4 new file mode 100644 index 0000000..f17febd --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/acinclude.m4 | |||
@@ -0,0 +1,27 @@ | |||
1 | dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) | ||
2 | dnl | ||
3 | dnl This macro _AC_DEFINEs VARNAME to the expansion of the DIR | ||
4 | dnl variable, taking care of fixing up ${prefix} and such. | ||
5 | dnl | ||
6 | dnl Note that the 3 argument form is only supported with autoconf 2.13 and | ||
7 | dnl later (i.e. only where _AC_DEFINE supports 3 arguments). | ||
8 | dnl | ||
9 | dnl Examples: | ||
10 | dnl | ||
11 | dnl AC_DEFINE_DIR(DATADIR, datadir) | ||
12 | dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries]) | ||
13 | dnl | ||
14 | dnl @version $Id: acinclude.m4 25 2006-04-22 17:24:27Z mmmaddd $ | ||
15 | dnl @author Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva | ||
16 | |||
17 | AC_DEFUN([AC_DEFINE_DIR], [ | ||
18 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
19 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
20 | ac_define_dir=`eval echo [$]$2` | ||
21 | ac_define_dir=`eval echo [$]ac_define_dir` | ||
22 | ifelse($3, , | ||
23 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir"), | ||
24 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3)) | ||
25 | ]) | ||
26 | |||
27 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/glib-2.0.m4 b/src/others/mimesh/g3dviewer-0.2.99.4/m4/glib-2.0.m4 new file mode 100644 index 0000000..d6413ff --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/glib-2.0.m4 | |||
@@ -0,0 +1,215 @@ | |||
1 | # Configure paths for GLIB | ||
2 | # Owen Taylor 1997-2001 | ||
3 | |||
4 | dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | ||
5 | dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or | ||
6 | dnl gthread is specified in MODULES, pass to pkg-config | ||
7 | dnl | ||
8 | AC_DEFUN([AM_PATH_GLIB_2_0], | ||
9 | [dnl | ||
10 | dnl Get the cflags and libraries from pkg-config | ||
11 | dnl | ||
12 | AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], | ||
13 | , enable_glibtest=yes) | ||
14 | |||
15 | pkg_config_args=glib-2.0 | ||
16 | for module in . $4 | ||
17 | do | ||
18 | case "$module" in | ||
19 | gmodule) | ||
20 | pkg_config_args="$pkg_config_args gmodule-2.0" | ||
21 | ;; | ||
22 | gmodule-no-export) | ||
23 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" | ||
24 | ;; | ||
25 | gobject) | ||
26 | pkg_config_args="$pkg_config_args gobject-2.0" | ||
27 | ;; | ||
28 | gthread) | ||
29 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
30 | ;; | ||
31 | esac | ||
32 | done | ||
33 | |||
34 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
35 | |||
36 | no_glib="" | ||
37 | |||
38 | if test x$PKG_CONFIG != xno ; then | ||
39 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | ||
40 | : | ||
41 | else | ||
42 | echo *** pkg-config too old; version 0.7 or better required. | ||
43 | no_glib=yes | ||
44 | PKG_CONFIG=no | ||
45 | fi | ||
46 | else | ||
47 | no_glib=yes | ||
48 | fi | ||
49 | |||
50 | min_glib_version=ifelse([$1], ,2.0.0,$1) | ||
51 | AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) | ||
52 | |||
53 | if test x$PKG_CONFIG != xno ; then | ||
54 | ## don't try to run the test against uninstalled libtool libs | ||
55 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
56 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" | ||
57 | enable_glibtest=no | ||
58 | fi | ||
59 | |||
60 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then | ||
61 | : | ||
62 | else | ||
63 | no_glib=yes | ||
64 | fi | ||
65 | fi | ||
66 | |||
67 | if test x"$no_glib" = x ; then | ||
68 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` | ||
69 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` | ||
70 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
71 | |||
72 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` | ||
73 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` | ||
74 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
75 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
76 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
77 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
78 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
79 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
80 | if test "x$enable_glibtest" = "xyes" ; then | ||
81 | ac_save_CFLAGS="$CFLAGS" | ||
82 | ac_save_LIBS="$LIBS" | ||
83 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
84 | LIBS="$GLIB_LIBS $LIBS" | ||
85 | dnl | ||
86 | dnl Now check if the installed GLIB is sufficiently new. (Also sanity | ||
87 | dnl checks the results of pkg-config to some extent) | ||
88 | dnl | ||
89 | rm -f conf.glibtest | ||
90 | AC_TRY_RUN([ | ||
91 | #include <glib.h> | ||
92 | #include <stdio.h> | ||
93 | #include <stdlib.h> | ||
94 | |||
95 | int | ||
96 | main () | ||
97 | { | ||
98 | int major, minor, micro; | ||
99 | char *tmp_version; | ||
100 | |||
101 | system ("touch conf.glibtest"); | ||
102 | |||
103 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
104 | tmp_version = g_strdup("$min_glib_version"); | ||
105 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
106 | printf("%s, bad version string\n", "$min_glib_version"); | ||
107 | exit(1); | ||
108 | } | ||
109 | |||
110 | if ((glib_major_version != $glib_config_major_version) || | ||
111 | (glib_minor_version != $glib_config_minor_version) || | ||
112 | (glib_micro_version != $glib_config_micro_version)) | ||
113 | { | ||
114 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
115 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
116 | glib_major_version, glib_minor_version, glib_micro_version); | ||
117 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
118 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); | ||
119 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
120 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
121 | printf("*** required on your system.\n"); | ||
122 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
123 | printf("*** to point to the correct configuration files\n"); | ||
124 | } | ||
125 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
126 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
127 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
128 | { | ||
129 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
130 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
131 | printf("*** library (version %d.%d.%d)\n", | ||
132 | glib_major_version, glib_minor_version, glib_micro_version); | ||
133 | } | ||
134 | else | ||
135 | { | ||
136 | if ((glib_major_version > major) || | ||
137 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
138 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
139 | { | ||
140 | return 0; | ||
141 | } | ||
142 | else | ||
143 | { | ||
144 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
145 | glib_major_version, glib_minor_version, glib_micro_version); | ||
146 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
147 | major, minor, micro); | ||
148 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
149 | printf("***\n"); | ||
150 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
151 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
152 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
153 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
154 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
155 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
156 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
157 | } | ||
158 | } | ||
159 | return 1; | ||
160 | } | ||
161 | ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
162 | CFLAGS="$ac_save_CFLAGS" | ||
163 | LIBS="$ac_save_LIBS" | ||
164 | fi | ||
165 | fi | ||
166 | if test "x$no_glib" = x ; then | ||
167 | AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) | ||
168 | ifelse([$2], , :, [$2]) | ||
169 | else | ||
170 | AC_MSG_RESULT(no) | ||
171 | if test "$PKG_CONFIG" = "no" ; then | ||
172 | echo "*** A new enough version of pkg-config was not found." | ||
173 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" | ||
174 | else | ||
175 | if test -f conf.glibtest ; then | ||
176 | : | ||
177 | else | ||
178 | echo "*** Could not run GLIB test program, checking why..." | ||
179 | ac_save_CFLAGS="$CFLAGS" | ||
180 | ac_save_LIBS="$LIBS" | ||
181 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
182 | LIBS="$LIBS $GLIB_LIBS" | ||
183 | AC_TRY_LINK([ | ||
184 | #include <glib.h> | ||
185 | #include <stdio.h> | ||
186 | ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], | ||
187 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
188 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
189 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
190 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
191 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
192 | echo "*** is required on your system" | ||
193 | echo "***" | ||
194 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
195 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
196 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
197 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) | ||
198 | CFLAGS="$ac_save_CFLAGS" | ||
199 | LIBS="$ac_save_LIBS" | ||
200 | fi | ||
201 | fi | ||
202 | GLIB_CFLAGS="" | ||
203 | GLIB_LIBS="" | ||
204 | GLIB_GENMARSHAL="" | ||
205 | GOBJECT_QUERY="" | ||
206 | GLIB_MKENUMS="" | ||
207 | ifelse([$3], , :, [$3]) | ||
208 | fi | ||
209 | AC_SUBST(GLIB_CFLAGS) | ||
210 | AC_SUBST(GLIB_LIBS) | ||
211 | AC_SUBST(GLIB_GENMARSHAL) | ||
212 | AC_SUBST(GOBJECT_QUERY) | ||
213 | AC_SUBST(GLIB_MKENUMS) | ||
214 | rm -f conf.glibtest | ||
215 | ]) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtk-2.0.m4 b/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtk-2.0.m4 new file mode 100644 index 0000000..3deba01 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtk-2.0.m4 | |||
@@ -0,0 +1,196 @@ | |||
1 | # Configure paths for GTK+ | ||
2 | # Owen Taylor 1997-2001 | ||
3 | |||
4 | dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | ||
5 | dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, | ||
6 | dnl pass to pkg-config | ||
7 | dnl | ||
8 | AC_DEFUN([AM_PATH_GTK_2_0], | ||
9 | [dnl | ||
10 | dnl Get the cflags and libraries from pkg-config | ||
11 | dnl | ||
12 | AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], | ||
13 | , enable_gtktest=yes) | ||
14 | |||
15 | pkg_config_args=gtk+-2.0 | ||
16 | for module in . $4 | ||
17 | do | ||
18 | case "$module" in | ||
19 | gthread) | ||
20 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
21 | ;; | ||
22 | esac | ||
23 | done | ||
24 | |||
25 | no_gtk="" | ||
26 | |||
27 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
28 | |||
29 | if test x$PKG_CONFIG != xno ; then | ||
30 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | ||
31 | : | ||
32 | else | ||
33 | echo "*** pkg-config too old; version 0.7 or better required." | ||
34 | no_gtk=yes | ||
35 | PKG_CONFIG=no | ||
36 | fi | ||
37 | else | ||
38 | no_gtk=yes | ||
39 | fi | ||
40 | |||
41 | min_gtk_version=ifelse([$1], ,2.0.0,$1) | ||
42 | AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) | ||
43 | |||
44 | if test x$PKG_CONFIG != xno ; then | ||
45 | ## don't try to run the test against uninstalled libtool libs | ||
46 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
47 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | ||
48 | enable_gtktest=no | ||
49 | fi | ||
50 | |||
51 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | ||
52 | : | ||
53 | else | ||
54 | no_gtk=yes | ||
55 | fi | ||
56 | fi | ||
57 | |||
58 | if test x"$no_gtk" = x ; then | ||
59 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | ||
60 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | ||
61 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
62 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
63 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
64 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
65 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
66 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
67 | if test "x$enable_gtktest" = "xyes" ; then | ||
68 | ac_save_CFLAGS="$CFLAGS" | ||
69 | ac_save_LIBS="$LIBS" | ||
70 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
71 | LIBS="$GTK_LIBS $LIBS" | ||
72 | dnl | ||
73 | dnl Now check if the installed GTK+ is sufficiently new. (Also sanity | ||
74 | dnl checks the results of pkg-config to some extent) | ||
75 | dnl | ||
76 | rm -f conf.gtktest | ||
77 | AC_TRY_RUN([ | ||
78 | #include <gtk/gtk.h> | ||
79 | #include <stdio.h> | ||
80 | #include <stdlib.h> | ||
81 | |||
82 | int | ||
83 | main () | ||
84 | { | ||
85 | int major, minor, micro; | ||
86 | char *tmp_version; | ||
87 | |||
88 | system ("touch conf.gtktest"); | ||
89 | |||
90 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
91 | tmp_version = g_strdup("$min_gtk_version"); | ||
92 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
93 | printf("%s, bad version string\n", "$min_gtk_version"); | ||
94 | exit(1); | ||
95 | } | ||
96 | |||
97 | if ((gtk_major_version != $gtk_config_major_version) || | ||
98 | (gtk_minor_version != $gtk_config_minor_version) || | ||
99 | (gtk_micro_version != $gtk_config_micro_version)) | ||
100 | { | ||
101 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | ||
102 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | ||
103 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
104 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
105 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | ||
106 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
107 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
108 | printf("*** required on your system.\n"); | ||
109 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
110 | printf("*** to point to the correct configuration files\n"); | ||
111 | } | ||
112 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | ||
113 | (gtk_minor_version != GTK_MINOR_VERSION) || | ||
114 | (gtk_micro_version != GTK_MICRO_VERSION)) | ||
115 | { | ||
116 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | ||
117 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | ||
118 | printf("*** library (version %d.%d.%d)\n", | ||
119 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
120 | } | ||
121 | else | ||
122 | { | ||
123 | if ((gtk_major_version > major) || | ||
124 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | ||
125 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | ||
126 | { | ||
127 | return 0; | ||
128 | } | ||
129 | else | ||
130 | { | ||
131 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | ||
132 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
133 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | ||
134 | major, minor, micro); | ||
135 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | ||
136 | printf("***\n"); | ||
137 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
138 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
139 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
140 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
141 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
142 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
143 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
144 | } | ||
145 | } | ||
146 | return 1; | ||
147 | } | ||
148 | ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
149 | CFLAGS="$ac_save_CFLAGS" | ||
150 | LIBS="$ac_save_LIBS" | ||
151 | fi | ||
152 | fi | ||
153 | if test "x$no_gtk" = x ; then | ||
154 | AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) | ||
155 | ifelse([$2], , :, [$2]) | ||
156 | else | ||
157 | AC_MSG_RESULT(no) | ||
158 | if test "$PKG_CONFIG" = "no" ; then | ||
159 | echo "*** A new enough version of pkg-config was not found." | ||
160 | echo "*** See http://pkgconfig.sourceforge.net" | ||
161 | else | ||
162 | if test -f conf.gtktest ; then | ||
163 | : | ||
164 | else | ||
165 | echo "*** Could not run GTK+ test program, checking why..." | ||
166 | ac_save_CFLAGS="$CFLAGS" | ||
167 | ac_save_LIBS="$LIBS" | ||
168 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
169 | LIBS="$LIBS $GTK_LIBS" | ||
170 | AC_TRY_LINK([ | ||
171 | #include <gtk/gtk.h> | ||
172 | #include <stdio.h> | ||
173 | ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], | ||
174 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
175 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | ||
176 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | ||
177 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
178 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
179 | echo "*** is required on your system" | ||
180 | echo "***" | ||
181 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
182 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
183 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
184 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) | ||
185 | CFLAGS="$ac_save_CFLAGS" | ||
186 | LIBS="$ac_save_LIBS" | ||
187 | fi | ||
188 | fi | ||
189 | GTK_CFLAGS="" | ||
190 | GTK_LIBS="" | ||
191 | ifelse([$3], , :, [$3]) | ||
192 | fi | ||
193 | AC_SUBST(GTK_CFLAGS) | ||
194 | AC_SUBST(GTK_LIBS) | ||
195 | rm -f conf.gtktest | ||
196 | ]) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtkglext.m4 b/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtkglext.m4 new file mode 100644 index 0000000..cfc49fd --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/m4/gtkglext.m4 | |||
@@ -0,0 +1,230 @@ | |||
1 | # Configure paths for GtkGLExt | ||
2 | # Naofumi Yasufuku | ||
3 | # | ||
4 | # Shamelessly stolen from gtk-2.0.m4 | ||
5 | # Configure paths for GTK+ | ||
6 | # Owen Taylor 1997-2001 | ||
7 | |||
8 | dnl AM_PATH_GTKGLEXT_1_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
9 | dnl Test for GtkGLExt, and define GTKGLEXT_CFLAGS and GTKGLEXT_LIBS. | ||
10 | dnl | ||
11 | AC_DEFUN([AM_PATH_GTKGLEXT_1_0], | ||
12 | [ no_gtkglext="" | ||
13 | GTKGLEXT_CFLAGS="" | ||
14 | GTKGLEXT_LIBS="" | ||
15 | |||
16 | # GtkGLExt pkg-config module | ||
17 | gtkglext_module=gtkglext-1.0 | ||
18 | |||
19 | # minimum GtkGLExt version | ||
20 | gtkglext_min_version=ifelse([$1], ,1.0.0,$1) | ||
21 | |||
22 | # minimum pkg-config version | ||
23 | pkgconfig_min_version=0.7 | ||
24 | |||
25 | AC_ARG_ENABLE(gtkglext-test, | ||
26 | [ --disable-gtkglext-test do not try to compile and run a test GtkGLExt program], | ||
27 | , enable_gtkglext_test=yes) | ||
28 | |||
29 | dnl | ||
30 | dnl Get the cflags and libraries from pkg-config | ||
31 | dnl | ||
32 | pkg_config_modules=$gtkglext_module | ||
33 | |||
34 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||
35 | |||
36 | if test x$PKG_CONFIG != xno ; then | ||
37 | if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then | ||
38 | : | ||
39 | else | ||
40 | echo "" | ||
41 | echo "*** pkg-config too old; version $pkgconfig_min_version or better required." | ||
42 | no_gtkglext=yes | ||
43 | PKG_CONFIG=no | ||
44 | fi | ||
45 | else | ||
46 | no_gtkglext=yes | ||
47 | fi | ||
48 | |||
49 | AC_MSG_CHECKING(for GtkGLExt - version >= $gtkglext_min_version) | ||
50 | |||
51 | if test x$PKG_CONFIG != xno ; then | ||
52 | ## don't try to run the test against uninstalled libtool libs | ||
53 | if $PKG_CONFIG --uninstalled $pkg_config_modules; then | ||
54 | echo "" | ||
55 | echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" | ||
56 | enable_gtkglext_test=no | ||
57 | fi | ||
58 | |||
59 | if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then | ||
60 | : | ||
61 | else | ||
62 | echo "" | ||
63 | echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" | ||
64 | echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" | ||
65 | echo "*** configuration files." | ||
66 | no_gtkglext=yes | ||
67 | enable_gtkglext_test=no | ||
68 | fi | ||
69 | fi | ||
70 | |||
71 | if test x"$no_gtkglext" = x ; then | ||
72 | GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` | ||
73 | GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` | ||
74 | gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
75 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
76 | gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
77 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
78 | gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
79 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
80 | if test "x$enable_gtkglext_test" = "xyes" ; then | ||
81 | ac_save_CFLAGS="$CFLAGS" | ||
82 | ac_save_LIBS="$LIBS" | ||
83 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
84 | LIBS="$GTKGLEXT_LIBS $LIBS" | ||
85 | dnl | ||
86 | dnl Now check if the installed GtkGLExt is sufficiently new. (Also sanity | ||
87 | dnl checks the results of pkg-config to some extent) | ||
88 | dnl | ||
89 | rm -f conf.gtkgltest | ||
90 | AC_TRY_RUN([ | ||
91 | #include <gtk/gtk.h> | ||
92 | #include <gtk/gtkgl.h> | ||
93 | #include <stdio.h> | ||
94 | #include <stdlib.h> | ||
95 | |||
96 | int | ||
97 | main () | ||
98 | { | ||
99 | int major, minor, micro; | ||
100 | char *tmp_version; | ||
101 | |||
102 | system ("touch conf.gtkgltest"); | ||
103 | |||
104 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
105 | tmp_version = g_strdup ("$gtkglext_min_version"); | ||
106 | if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) | ||
107 | { | ||
108 | printf ("%s, bad version string\n", "$gtkglext_min_version"); | ||
109 | exit (1); | ||
110 | } | ||
111 | |||
112 | if ((gtkglext_major_version != $gtkglext_config_major_version) || | ||
113 | (gtkglext_minor_version != $gtkglext_config_minor_version) || | ||
114 | (gtkglext_micro_version != $gtkglext_config_micro_version)) | ||
115 | { | ||
116 | printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", | ||
117 | $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); | ||
118 | printf ("*** library %d.%d.%d was found!\n", | ||
119 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
120 | printf ("***\n"); | ||
121 | printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); | ||
122 | printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); | ||
123 | printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); | ||
124 | printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); | ||
125 | printf ("***\n"); | ||
126 | printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
127 | printf ("*** to point to the correct configuration files.\n"); | ||
128 | } | ||
129 | else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || | ||
130 | (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || | ||
131 | (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) | ||
132 | { | ||
133 | printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", | ||
134 | GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, | ||
135 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
136 | } | ||
137 | else | ||
138 | { | ||
139 | if ((gtkglext_major_version > major) || | ||
140 | ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || | ||
141 | ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) | ||
142 | { | ||
143 | return 0; | ||
144 | } | ||
145 | else | ||
146 | { | ||
147 | printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", | ||
148 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
149 | printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", | ||
150 | major, minor, micro); | ||
151 | printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); | ||
152 | printf ("***\n"); | ||
153 | printf ("*** If you have already installed a sufficiently new version, this error\n"); | ||
154 | printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
155 | printf ("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
156 | printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); | ||
157 | printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); | ||
158 | printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
159 | printf ("*** so that the correct libraries are found at run-time)\n"); | ||
160 | } | ||
161 | } | ||
162 | return 1; | ||
163 | } | ||
164 | ],, no_gtkglext=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
165 | CFLAGS="$ac_save_CFLAGS" | ||
166 | LIBS="$ac_save_LIBS" | ||
167 | fi | ||
168 | fi | ||
169 | if test "x$no_gtkglext" = x ; then | ||
170 | AC_MSG_RESULT(yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)) | ||
171 | ifelse([$2], , :, [$2]) | ||
172 | else | ||
173 | AC_MSG_RESULT(no) | ||
174 | if test "$PKG_CONFIG" = "no" ; then | ||
175 | echo "*** A new enough version of pkg-config was not found." | ||
176 | echo "*** See http://www.freedesktop.org/software/pkgconfig/." | ||
177 | elif test "x$enable_gtkglext_test" = "xyes" ; then | ||
178 | if test -f conf.gtkgltest ; then | ||
179 | : | ||
180 | else | ||
181 | echo "*** Could not run GtkGLExt test program, checking why..." | ||
182 | ac_save_CFLAGS="$CFLAGS" | ||
183 | ac_save_LIBS="$LIBS" | ||
184 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
185 | LIBS="$LIBS $GTKGLEXT_LIBS" | ||
186 | AC_TRY_LINK([ | ||
187 | #include <gtk/gtk.h> | ||
188 | #include <gtk/gtkgl.h> | ||
189 | #include <stdio.h> | ||
190 | ], [ return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); ], | ||
191 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
192 | echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" | ||
193 | echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" | ||
194 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
195 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
196 | echo "*** is required on your system" | ||
197 | echo "***" | ||
198 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
199 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], | ||
200 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
201 | echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed."]) | ||
202 | CFLAGS="$ac_save_CFLAGS" | ||
203 | LIBS="$ac_save_LIBS" | ||
204 | fi | ||
205 | fi | ||
206 | GTKGLEXT_CFLAGS="" | ||
207 | GTKGLEXT_LIBS="" | ||
208 | ifelse([$3], , :, [$3]) | ||
209 | fi | ||
210 | AC_SUBST(GTKGLEXT_CFLAGS) | ||
211 | AC_SUBST(GTKGLEXT_LIBS) | ||
212 | rm -f conf.gtkgltest | ||
213 | ]) | ||
214 | |||
215 | dnl AC_GTKGLEXT_SUPPORTS_MULTIHEAD([ACTION-IF-SUPPORTED [, ACTION-IF-NOT-SUPPORTED]]) | ||
216 | dnl Checks whether GtkGLExt supports multihead. | ||
217 | dnl | ||
218 | AC_DEFUN([AC_GTKGLEXT_SUPPORTS_MULTIHEAD], | ||
219 | [ AC_CACHE_CHECK([whether GtkGLExt supports multihead], | ||
220 | [ac_cv_gtkglext_supports_multihead], | ||
221 | [AC_TRY_LINK([#include <gdk/gdkglquery.h>], | ||
222 | [gdk_gl_query_extension_for_display(gdk_display_get_default());], | ||
223 | [ac_cv_gtkglext_supports_multihead=yes], | ||
224 | [ac_cv_gtkglext_supports_multihead=no])]) | ||
225 | if test "x$ac_cv_gtkglext_supports_multihead" = "xyes" ; then | ||
226 | ifelse([$1], , :, [$1]) | ||
227 | else | ||
228 | ifelse([$2], , :, [$2]) | ||
229 | fi | ||
230 | ]) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile new file mode 100644 index 0000000..f28f0ce --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile | |||
@@ -0,0 +1,343 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # man/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | man1dir = ${prefix}/share/man/man1 | ||
152 | man1_MANS = g3dviewer.1 | ||
153 | EXTRA_DIST = $(man1_MANS) | ||
154 | subdir = man | ||
155 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
156 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
157 | CONFIG_HEADER = $(top_builddir)/config.h | ||
158 | CONFIG_CLEAN_FILES = | ||
159 | DIST_SOURCES = | ||
160 | |||
161 | NROFF = nroff | ||
162 | MANS = $(man1_MANS) | ||
163 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
164 | all: all-am | ||
165 | |||
166 | .SUFFIXES: | ||
167 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
168 | cd $(top_srcdir) && \ | ||
169 | $(AUTOMAKE) --gnu man/Makefile | ||
170 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
171 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
172 | uninstall-info-am: | ||
173 | install-man1: $(man1_MANS) $(man_MANS) | ||
174 | @$(NORMAL_INSTALL) | ||
175 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
176 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | ||
177 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | ||
178 | for i in $$l2; do \ | ||
179 | case "$$i" in \ | ||
180 | *.1*) list="$$list $$i" ;; \ | ||
181 | esac; \ | ||
182 | done; \ | ||
183 | for i in $$list; do \ | ||
184 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | ||
185 | else file=$$i; fi; \ | ||
186 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
187 | case "$$ext" in \ | ||
188 | 1*) ;; \ | ||
189 | *) ext='1' ;; \ | ||
190 | esac; \ | ||
191 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
192 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | ||
193 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
194 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ | ||
195 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ | ||
196 | done | ||
197 | uninstall-man1: | ||
198 | @$(NORMAL_UNINSTALL) | ||
199 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | ||
200 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | ||
201 | for i in $$l2; do \ | ||
202 | case "$$i" in \ | ||
203 | *.1*) list="$$list $$i" ;; \ | ||
204 | esac; \ | ||
205 | done; \ | ||
206 | for i in $$list; do \ | ||
207 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
208 | case "$$ext" in \ | ||
209 | 1*) ;; \ | ||
210 | *) ext='1' ;; \ | ||
211 | esac; \ | ||
212 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
213 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | ||
214 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
215 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ | ||
216 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ | ||
217 | done | ||
218 | tags: TAGS | ||
219 | TAGS: | ||
220 | |||
221 | ctags: CTAGS | ||
222 | CTAGS: | ||
223 | |||
224 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
225 | |||
226 | top_distdir = .. | ||
227 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
228 | |||
229 | distdir: $(DISTFILES) | ||
230 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
231 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
232 | list='$(DISTFILES)'; for file in $$list; do \ | ||
233 | case $$file in \ | ||
234 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
235 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
236 | esac; \ | ||
237 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
238 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
239 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
240 | dir="/$$dir"; \ | ||
241 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
242 | else \ | ||
243 | dir=''; \ | ||
244 | fi; \ | ||
245 | if test -d $$d/$$file; then \ | ||
246 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
247 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
248 | fi; \ | ||
249 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
250 | else \ | ||
251 | test -f $(distdir)/$$file \ | ||
252 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
253 | || exit 1; \ | ||
254 | fi; \ | ||
255 | done | ||
256 | check-am: all-am | ||
257 | check: check-am | ||
258 | all-am: Makefile $(MANS) | ||
259 | |||
260 | installdirs: | ||
261 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
262 | install: install-am | ||
263 | install-exec: install-exec-am | ||
264 | install-data: install-data-am | ||
265 | uninstall: uninstall-am | ||
266 | |||
267 | install-am: all-am | ||
268 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
269 | |||
270 | installcheck: installcheck-am | ||
271 | install-strip: | ||
272 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
273 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
274 | `test -z '$(STRIP)' || \ | ||
275 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
276 | mostlyclean-generic: | ||
277 | |||
278 | clean-generic: | ||
279 | |||
280 | distclean-generic: | ||
281 | -rm -f $(CONFIG_CLEAN_FILES) | ||
282 | |||
283 | maintainer-clean-generic: | ||
284 | @echo "This command is intended for maintainers to use" | ||
285 | @echo "it deletes files that may require special tools to rebuild." | ||
286 | clean: clean-am | ||
287 | |||
288 | clean-am: clean-generic mostlyclean-am | ||
289 | |||
290 | distclean: distclean-am | ||
291 | -rm -f Makefile | ||
292 | distclean-am: clean-am distclean-generic | ||
293 | |||
294 | dvi: dvi-am | ||
295 | |||
296 | dvi-am: | ||
297 | |||
298 | info: info-am | ||
299 | |||
300 | info-am: | ||
301 | |||
302 | install-data-am: install-man | ||
303 | |||
304 | install-exec-am: | ||
305 | |||
306 | install-info: install-info-am | ||
307 | |||
308 | install-man: install-man1 | ||
309 | |||
310 | installcheck-am: | ||
311 | |||
312 | maintainer-clean: maintainer-clean-am | ||
313 | -rm -f Makefile | ||
314 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
315 | |||
316 | mostlyclean: mostlyclean-am | ||
317 | |||
318 | mostlyclean-am: mostlyclean-generic | ||
319 | |||
320 | pdf: pdf-am | ||
321 | |||
322 | pdf-am: | ||
323 | |||
324 | ps: ps-am | ||
325 | |||
326 | ps-am: | ||
327 | |||
328 | uninstall-am: uninstall-info-am uninstall-man | ||
329 | |||
330 | uninstall-man: uninstall-man1 | ||
331 | |||
332 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
333 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
334 | install-am install-data install-data-am install-exec \ | ||
335 | install-exec-am install-info install-info-am install-man \ | ||
336 | install-man1 install-strip installcheck installcheck-am \ | ||
337 | installdirs maintainer-clean maintainer-clean-generic \ | ||
338 | mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ | ||
339 | uninstall-am uninstall-info-am uninstall-man uninstall-man1 | ||
340 | |||
341 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
342 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
343 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.am new file mode 100644 index 0000000..2e16a0e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.am | |||
@@ -0,0 +1,3 @@ | |||
1 | man1dir = ${prefix}/share/man/man1 | ||
2 | man1_MANS = g3dviewer.1 | ||
3 | EXTRA_DIST = $(man1_MANS) | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.in new file mode 100644 index 0000000..7c02c3d --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/man/Makefile.in | |||
@@ -0,0 +1,343 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | man1dir = ${prefix}/share/man/man1 | ||
152 | man1_MANS = g3dviewer.1 | ||
153 | EXTRA_DIST = $(man1_MANS) | ||
154 | subdir = man | ||
155 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
156 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
157 | CONFIG_HEADER = $(top_builddir)/config.h | ||
158 | CONFIG_CLEAN_FILES = | ||
159 | DIST_SOURCES = | ||
160 | |||
161 | NROFF = nroff | ||
162 | MANS = $(man1_MANS) | ||
163 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
164 | all: all-am | ||
165 | |||
166 | .SUFFIXES: | ||
167 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
168 | cd $(top_srcdir) && \ | ||
169 | $(AUTOMAKE) --gnu man/Makefile | ||
170 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
171 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
172 | uninstall-info-am: | ||
173 | install-man1: $(man1_MANS) $(man_MANS) | ||
174 | @$(NORMAL_INSTALL) | ||
175 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
176 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | ||
177 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | ||
178 | for i in $$l2; do \ | ||
179 | case "$$i" in \ | ||
180 | *.1*) list="$$list $$i" ;; \ | ||
181 | esac; \ | ||
182 | done; \ | ||
183 | for i in $$list; do \ | ||
184 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | ||
185 | else file=$$i; fi; \ | ||
186 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
187 | case "$$ext" in \ | ||
188 | 1*) ;; \ | ||
189 | *) ext='1' ;; \ | ||
190 | esac; \ | ||
191 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
192 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | ||
193 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
194 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ | ||
195 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ | ||
196 | done | ||
197 | uninstall-man1: | ||
198 | @$(NORMAL_UNINSTALL) | ||
199 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | ||
200 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | ||
201 | for i in $$l2; do \ | ||
202 | case "$$i" in \ | ||
203 | *.1*) list="$$list $$i" ;; \ | ||
204 | esac; \ | ||
205 | done; \ | ||
206 | for i in $$list; do \ | ||
207 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
208 | case "$$ext" in \ | ||
209 | 1*) ;; \ | ||
210 | *) ext='1' ;; \ | ||
211 | esac; \ | ||
212 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
213 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | ||
214 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
215 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ | ||
216 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ | ||
217 | done | ||
218 | tags: TAGS | ||
219 | TAGS: | ||
220 | |||
221 | ctags: CTAGS | ||
222 | CTAGS: | ||
223 | |||
224 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
225 | |||
226 | top_distdir = .. | ||
227 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
228 | |||
229 | distdir: $(DISTFILES) | ||
230 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
231 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
232 | list='$(DISTFILES)'; for file in $$list; do \ | ||
233 | case $$file in \ | ||
234 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
235 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
236 | esac; \ | ||
237 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
238 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
239 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
240 | dir="/$$dir"; \ | ||
241 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
242 | else \ | ||
243 | dir=''; \ | ||
244 | fi; \ | ||
245 | if test -d $$d/$$file; then \ | ||
246 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
247 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
248 | fi; \ | ||
249 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
250 | else \ | ||
251 | test -f $(distdir)/$$file \ | ||
252 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
253 | || exit 1; \ | ||
254 | fi; \ | ||
255 | done | ||
256 | check-am: all-am | ||
257 | check: check-am | ||
258 | all-am: Makefile $(MANS) | ||
259 | |||
260 | installdirs: | ||
261 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
262 | install: install-am | ||
263 | install-exec: install-exec-am | ||
264 | install-data: install-data-am | ||
265 | uninstall: uninstall-am | ||
266 | |||
267 | install-am: all-am | ||
268 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
269 | |||
270 | installcheck: installcheck-am | ||
271 | install-strip: | ||
272 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
273 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
274 | `test -z '$(STRIP)' || \ | ||
275 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
276 | mostlyclean-generic: | ||
277 | |||
278 | clean-generic: | ||
279 | |||
280 | distclean-generic: | ||
281 | -rm -f $(CONFIG_CLEAN_FILES) | ||
282 | |||
283 | maintainer-clean-generic: | ||
284 | @echo "This command is intended for maintainers to use" | ||
285 | @echo "it deletes files that may require special tools to rebuild." | ||
286 | clean: clean-am | ||
287 | |||
288 | clean-am: clean-generic mostlyclean-am | ||
289 | |||
290 | distclean: distclean-am | ||
291 | -rm -f Makefile | ||
292 | distclean-am: clean-am distclean-generic | ||
293 | |||
294 | dvi: dvi-am | ||
295 | |||
296 | dvi-am: | ||
297 | |||
298 | info: info-am | ||
299 | |||
300 | info-am: | ||
301 | |||
302 | install-data-am: install-man | ||
303 | |||
304 | install-exec-am: | ||
305 | |||
306 | install-info: install-info-am | ||
307 | |||
308 | install-man: install-man1 | ||
309 | |||
310 | installcheck-am: | ||
311 | |||
312 | maintainer-clean: maintainer-clean-am | ||
313 | -rm -f Makefile | ||
314 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
315 | |||
316 | mostlyclean: mostlyclean-am | ||
317 | |||
318 | mostlyclean-am: mostlyclean-generic | ||
319 | |||
320 | pdf: pdf-am | ||
321 | |||
322 | pdf-am: | ||
323 | |||
324 | ps: ps-am | ||
325 | |||
326 | ps-am: | ||
327 | |||
328 | uninstall-am: uninstall-info-am uninstall-man | ||
329 | |||
330 | uninstall-man: uninstall-man1 | ||
331 | |||
332 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
333 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
334 | install-am install-data install-data-am install-exec \ | ||
335 | install-exec-am install-info install-info-am install-man \ | ||
336 | install-man1 install-strip installcheck installcheck-am \ | ||
337 | installdirs maintainer-clean maintainer-clean-generic \ | ||
338 | mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ | ||
339 | uninstall-am uninstall-info-am uninstall-man uninstall-man1 | ||
340 | |||
341 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
342 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
343 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/man/g3dviewer.1 b/src/others/mimesh/g3dviewer-0.2.99.4/man/g3dviewer.1 new file mode 100644 index 0000000..dfc9488 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/man/g3dviewer.1 | |||
@@ -0,0 +1,68 @@ | |||
1 | .\" vim:set ft=nroff: | ||
2 | .TH G3DVIEWER 1 "july 22nd 2005" | ||
3 | .SH NAME | ||
4 | g3dviewer \- a program to display and inspect 3D models | ||
5 | .SH SYNOPIS | ||
6 | .B g3dviewer\fP\fI [options] [<filename>]\fP | ||
7 | .SH DESCRIPTION | ||
8 | After loading a valid model it should appear on the screen. | ||
9 | |||
10 | Use the \fBleft mouse button\fP to rotate the model. | ||
11 | |||
12 | To zoom the model use the \fBscroll wheel\fP or hold the | ||
13 | \fBmiddle mouse button\fP and move the mouse up or down. | ||
14 | |||
15 | The \fBright mouse button\fP opens a context menu where you can open the | ||
16 | model information dialog, set some options or change the background color. | ||
17 | .SH OPTIONS | ||
18 | .TP | ||
19 | .B \-\-help | ||
20 | Show summary of options | ||
21 | .SH """UNDOCUMENTED""" OPTIONS | ||
22 | There are also some options which are just for development. | ||
23 | .TP | ||
24 | .B \-\-parse\-only | ||
25 | Just parse the model and exit. | ||
26 | .SH SUPPORTED FILE TYPES | ||
27 | .TP | ||
28 | .B .3mf, 3dmf | ||
29 | 3D Metafiles. | ||
30 | .TP | ||
31 | .B .3ds, .prj | ||
32 | 3D Studio objects. | ||
33 | .TP | ||
34 | .B .b3d | ||
35 | unknown, but 3D Metafile format. | ||
36 | .TP | ||
37 | .B .cob | ||
38 | Caligary TrueSpace objects. | ||
39 | .TP | ||
40 | .B .dxf | ||
41 | AutoCAD models. | ||
42 | .TP | ||
43 | .B .iob | ||
44 | Impulse Turbo Silver / Imagine objects. | ||
45 | .TP | ||
46 | .B .lw, .lwo, .lwb | ||
47 | LightWave objects. | ||
48 | .TP | ||
49 | .B .md2 | ||
50 | Quake 2 models. | ||
51 | .TP | ||
52 | .B .nff | ||
53 | Neutral File Format objects. | ||
54 | .TP | ||
55 | .B .obj | ||
56 | Wavefront objects. | ||
57 | .TP | ||
58 | .B .q3o, .q3s | ||
59 | Quick3D objects and scenes. | ||
60 | .TP | ||
61 | .B .wrl | ||
62 | VRML worlds. | ||
63 | .SH BUGS | ||
64 | Most import plugins are incomplete. The goal is not to crash on broken | ||
65 | input but it is not always reached. | ||
66 | .SH AUTHOR | ||
67 | g3dviewer was written by Markus Dahms <mad@automagically.de> | ||
68 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/missing b/src/others/mimesh/g3dviewer-0.2.99.4/missing new file mode 100755 index 0000000..fc54c64 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/missing | |||
@@ -0,0 +1,336 @@ | |||
1 | #! /bin/sh | ||
2 | # Common stub for a few missing GNU programs while installing. | ||
3 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. | ||
4 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | ||
5 | |||
6 | # This program is free software; you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation; either version 2, or (at your option) | ||
9 | # any later version. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | |||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with this program; if not, write to the Free Software | ||
18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
19 | # 02111-1307, USA. | ||
20 | |||
21 | # As a special exception to the GNU General Public License, if you | ||
22 | # distribute this file as part of a program that contains a | ||
23 | # configuration script generated by Autoconf, you may include it under | ||
24 | # the same distribution terms that you use for the rest of that program. | ||
25 | |||
26 | if test $# -eq 0; then | ||
27 | echo 1>&2 "Try \`$0 --help' for more information" | ||
28 | exit 1 | ||
29 | fi | ||
30 | |||
31 | run=: | ||
32 | |||
33 | # In the cases where this matters, `missing' is being run in the | ||
34 | # srcdir already. | ||
35 | if test -f configure.ac; then | ||
36 | configure_ac=configure.ac | ||
37 | else | ||
38 | configure_ac=configure.in | ||
39 | fi | ||
40 | |||
41 | case "$1" in | ||
42 | --run) | ||
43 | # Try to run requested program, and just exit if it succeeds. | ||
44 | run= | ||
45 | shift | ||
46 | "$@" && exit 0 | ||
47 | ;; | ||
48 | esac | ||
49 | |||
50 | # If it does not exist, or fails to run (possibly an outdated version), | ||
51 | # try to emulate it. | ||
52 | case "$1" in | ||
53 | |||
54 | -h|--h|--he|--hel|--help) | ||
55 | echo "\ | ||
56 | $0 [OPTION]... PROGRAM [ARGUMENT]... | ||
57 | |||
58 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | ||
59 | error status if there is no known handling for PROGRAM. | ||
60 | |||
61 | Options: | ||
62 | -h, --help display this help and exit | ||
63 | -v, --version output version information and exit | ||
64 | --run try to run the given command, and emulate it if it fails | ||
65 | |||
66 | Supported PROGRAM values: | ||
67 | aclocal touch file \`aclocal.m4' | ||
68 | autoconf touch file \`configure' | ||
69 | autoheader touch file \`config.h.in' | ||
70 | automake touch all \`Makefile.in' files | ||
71 | bison create \`y.tab.[ch]', if possible, from existing .[ch] | ||
72 | flex create \`lex.yy.c', if possible, from existing .c | ||
73 | help2man touch the output file | ||
74 | lex create \`lex.yy.c', if possible, from existing .c | ||
75 | makeinfo touch the output file | ||
76 | tar try tar, gnutar, gtar, then tar without non-portable flags | ||
77 | yacc create \`y.tab.[ch]', if possible, from existing .[ch]" | ||
78 | ;; | ||
79 | |||
80 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | ||
81 | echo "missing 0.4 - GNU automake" | ||
82 | ;; | ||
83 | |||
84 | -*) | ||
85 | echo 1>&2 "$0: Unknown \`$1' option" | ||
86 | echo 1>&2 "Try \`$0 --help' for more information" | ||
87 | exit 1 | ||
88 | ;; | ||
89 | |||
90 | aclocal*) | ||
91 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
92 | # We have it, but it failed. | ||
93 | exit 1 | ||
94 | fi | ||
95 | |||
96 | echo 1>&2 "\ | ||
97 | WARNING: \`$1' is missing on your system. You should only need it if | ||
98 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want | ||
99 | to install the \`Automake' and \`Perl' packages. Grab them from | ||
100 | any GNU archive site." | ||
101 | touch aclocal.m4 | ||
102 | ;; | ||
103 | |||
104 | autoconf) | ||
105 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
106 | # We have it, but it failed. | ||
107 | exit 1 | ||
108 | fi | ||
109 | |||
110 | echo 1>&2 "\ | ||
111 | WARNING: \`$1' is missing on your system. You should only need it if | ||
112 | you modified \`${configure_ac}'. You might want to install the | ||
113 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | ||
114 | archive site." | ||
115 | touch configure | ||
116 | ;; | ||
117 | |||
118 | autoheader) | ||
119 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
120 | # We have it, but it failed. | ||
121 | exit 1 | ||
122 | fi | ||
123 | |||
124 | echo 1>&2 "\ | ||
125 | WARNING: \`$1' is missing on your system. You should only need it if | ||
126 | you modified \`acconfig.h' or \`${configure_ac}'. You might want | ||
127 | to install the \`Autoconf' and \`GNU m4' packages. Grab them | ||
128 | from any GNU archive site." | ||
129 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | ||
130 | test -z "$files" && files="config.h" | ||
131 | touch_files= | ||
132 | for f in $files; do | ||
133 | case "$f" in | ||
134 | *:*) touch_files="$touch_files "`echo "$f" | | ||
135 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | ||
136 | *) touch_files="$touch_files $f.in";; | ||
137 | esac | ||
138 | done | ||
139 | touch $touch_files | ||
140 | ;; | ||
141 | |||
142 | automake*) | ||
143 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
144 | # We have it, but it failed. | ||
145 | exit 1 | ||
146 | fi | ||
147 | |||
148 | echo 1>&2 "\ | ||
149 | WARNING: \`$1' is missing on your system. You should only need it if | ||
150 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | ||
151 | You might want to install the \`Automake' and \`Perl' packages. | ||
152 | Grab them from any GNU archive site." | ||
153 | find . -type f -name Makefile.am -print | | ||
154 | sed 's/\.am$/.in/' | | ||
155 | while read f; do touch "$f"; done | ||
156 | ;; | ||
157 | |||
158 | autom4te) | ||
159 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
160 | # We have it, but it failed. | ||
161 | exit 1 | ||
162 | fi | ||
163 | |||
164 | echo 1>&2 "\ | ||
165 | WARNING: \`$1' is needed, and you do not seem to have it handy on your | ||
166 | system. You might have modified some files without having the | ||
167 | proper tools for further handling them. | ||
168 | You can get \`$1' as part of \`Autoconf' from any GNU | ||
169 | archive site." | ||
170 | |||
171 | file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` | ||
172 | test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` | ||
173 | if test -f "$file"; then | ||
174 | touch $file | ||
175 | else | ||
176 | test -z "$file" || exec >$file | ||
177 | echo "#! /bin/sh" | ||
178 | echo "# Created by GNU Automake missing as a replacement of" | ||
179 | echo "# $ $@" | ||
180 | echo "exit 0" | ||
181 | chmod +x $file | ||
182 | exit 1 | ||
183 | fi | ||
184 | ;; | ||
185 | |||
186 | bison|yacc) | ||
187 | echo 1>&2 "\ | ||
188 | WARNING: \`$1' is missing on your system. You should only need it if | ||
189 | you modified a \`.y' file. You may need the \`Bison' package | ||
190 | in order for those modifications to take effect. You can get | ||
191 | \`Bison' from any GNU archive site." | ||
192 | rm -f y.tab.c y.tab.h | ||
193 | if [ $# -ne 1 ]; then | ||
194 | eval LASTARG="\${$#}" | ||
195 | case "$LASTARG" in | ||
196 | *.y) | ||
197 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | ||
198 | if [ -f "$SRCFILE" ]; then | ||
199 | cp "$SRCFILE" y.tab.c | ||
200 | fi | ||
201 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | ||
202 | if [ -f "$SRCFILE" ]; then | ||
203 | cp "$SRCFILE" y.tab.h | ||
204 | fi | ||
205 | ;; | ||
206 | esac | ||
207 | fi | ||
208 | if [ ! -f y.tab.h ]; then | ||
209 | echo >y.tab.h | ||
210 | fi | ||
211 | if [ ! -f y.tab.c ]; then | ||
212 | echo 'main() { return 0; }' >y.tab.c | ||
213 | fi | ||
214 | ;; | ||
215 | |||
216 | lex|flex) | ||
217 | echo 1>&2 "\ | ||
218 | WARNING: \`$1' is missing on your system. You should only need it if | ||
219 | you modified a \`.l' file. You may need the \`Flex' package | ||
220 | in order for those modifications to take effect. You can get | ||
221 | \`Flex' from any GNU archive site." | ||
222 | rm -f lex.yy.c | ||
223 | if [ $# -ne 1 ]; then | ||
224 | eval LASTARG="\${$#}" | ||
225 | case "$LASTARG" in | ||
226 | *.l) | ||
227 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | ||
228 | if [ -f "$SRCFILE" ]; then | ||
229 | cp "$SRCFILE" lex.yy.c | ||
230 | fi | ||
231 | ;; | ||
232 | esac | ||
233 | fi | ||
234 | if [ ! -f lex.yy.c ]; then | ||
235 | echo 'main() { return 0; }' >lex.yy.c | ||
236 | fi | ||
237 | ;; | ||
238 | |||
239 | help2man) | ||
240 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
241 | # We have it, but it failed. | ||
242 | exit 1 | ||
243 | fi | ||
244 | |||
245 | echo 1>&2 "\ | ||
246 | WARNING: \`$1' is missing on your system. You should only need it if | ||
247 | you modified a dependency of a manual page. You may need the | ||
248 | \`Help2man' package in order for those modifications to take | ||
249 | effect. You can get \`Help2man' from any GNU archive site." | ||
250 | |||
251 | file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` | ||
252 | if test -z "$file"; then | ||
253 | file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` | ||
254 | fi | ||
255 | if [ -f "$file" ]; then | ||
256 | touch $file | ||
257 | else | ||
258 | test -z "$file" || exec >$file | ||
259 | echo ".ab help2man is required to generate this page" | ||
260 | exit 1 | ||
261 | fi | ||
262 | ;; | ||
263 | |||
264 | makeinfo) | ||
265 | if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then | ||
266 | # We have makeinfo, but it failed. | ||
267 | exit 1 | ||
268 | fi | ||
269 | |||
270 | echo 1>&2 "\ | ||
271 | WARNING: \`$1' is missing on your system. You should only need it if | ||
272 | you modified a \`.texi' or \`.texinfo' file, or any other file | ||
273 | indirectly affecting the aspect of the manual. The spurious | ||
274 | call might also be the consequence of using a buggy \`make' (AIX, | ||
275 | DU, IRIX). You might want to install the \`Texinfo' package or | ||
276 | the \`GNU make' package. Grab either from any GNU archive site." | ||
277 | file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` | ||
278 | if test -z "$file"; then | ||
279 | file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | ||
280 | file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` | ||
281 | fi | ||
282 | touch $file | ||
283 | ;; | ||
284 | |||
285 | tar) | ||
286 | shift | ||
287 | if test -n "$run"; then | ||
288 | echo 1>&2 "ERROR: \`tar' requires --run" | ||
289 | exit 1 | ||
290 | fi | ||
291 | |||
292 | # We have already tried tar in the generic part. | ||
293 | # Look for gnutar/gtar before invocation to avoid ugly error | ||
294 | # messages. | ||
295 | if (gnutar --version > /dev/null 2>&1); then | ||
296 | gnutar "$@" && exit 0 | ||
297 | fi | ||
298 | if (gtar --version > /dev/null 2>&1); then | ||
299 | gtar "$@" && exit 0 | ||
300 | fi | ||
301 | firstarg="$1" | ||
302 | if shift; then | ||
303 | case "$firstarg" in | ||
304 | *o*) | ||
305 | firstarg=`echo "$firstarg" | sed s/o//` | ||
306 | tar "$firstarg" "$@" && exit 0 | ||
307 | ;; | ||
308 | esac | ||
309 | case "$firstarg" in | ||
310 | *h*) | ||
311 | firstarg=`echo "$firstarg" | sed s/h//` | ||
312 | tar "$firstarg" "$@" && exit 0 | ||
313 | ;; | ||
314 | esac | ||
315 | fi | ||
316 | |||
317 | echo 1>&2 "\ | ||
318 | WARNING: I can't seem to be able to run \`tar' with the given arguments. | ||
319 | You may want to install GNU tar or Free paxutils, or check the | ||
320 | command line arguments." | ||
321 | exit 1 | ||
322 | ;; | ||
323 | |||
324 | *) | ||
325 | echo 1>&2 "\ | ||
326 | WARNING: \`$1' is needed, and you do not seem to have it handy on your | ||
327 | system. You might have modified some files without having the | ||
328 | proper tools for further handling them. Check the \`README' file, | ||
329 | it often tells you about the needed prerequisites for installing | ||
330 | this package. You may also peek at any GNU archive site, in case | ||
331 | some other package would contain this missing \`$1' program." | ||
332 | exit 1 | ||
333 | ;; | ||
334 | esac | ||
335 | |||
336 | exit 0 | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/mkinstalldirs b/src/others/mimesh/g3dviewer-0.2.99.4/mkinstalldirs new file mode 100755 index 0000000..d2d5f21 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/mkinstalldirs | |||
@@ -0,0 +1,111 @@ | |||
1 | #! /bin/sh | ||
2 | # mkinstalldirs --- make directory hierarchy | ||
3 | # Author: Noah Friedman <friedman@prep.ai.mit.edu> | ||
4 | # Created: 1993-05-16 | ||
5 | # Public domain | ||
6 | |||
7 | errstatus=0 | ||
8 | dirmode="" | ||
9 | |||
10 | usage="\ | ||
11 | Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." | ||
12 | |||
13 | # process command line arguments | ||
14 | while test $# -gt 0 ; do | ||
15 | case $1 in | ||
16 | -h | --help | --h*) # -h for help | ||
17 | echo "$usage" 1>&2 | ||
18 | exit 0 | ||
19 | ;; | ||
20 | -m) # -m PERM arg | ||
21 | shift | ||
22 | test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } | ||
23 | dirmode=$1 | ||
24 | shift | ||
25 | ;; | ||
26 | --) # stop option processing | ||
27 | shift | ||
28 | break | ||
29 | ;; | ||
30 | -*) # unknown option | ||
31 | echo "$usage" 1>&2 | ||
32 | exit 1 | ||
33 | ;; | ||
34 | *) # first non-opt arg | ||
35 | break | ||
36 | ;; | ||
37 | esac | ||
38 | done | ||
39 | |||
40 | for file | ||
41 | do | ||
42 | if test -d "$file"; then | ||
43 | shift | ||
44 | else | ||
45 | break | ||
46 | fi | ||
47 | done | ||
48 | |||
49 | case $# in | ||
50 | 0) exit 0 ;; | ||
51 | esac | ||
52 | |||
53 | case $dirmode in | ||
54 | '') | ||
55 | if mkdir -p -- . 2>/dev/null; then | ||
56 | echo "mkdir -p -- $*" | ||
57 | exec mkdir -p -- "$@" | ||
58 | fi | ||
59 | ;; | ||
60 | *) | ||
61 | if mkdir -m "$dirmode" -p -- . 2>/dev/null; then | ||
62 | echo "mkdir -m $dirmode -p -- $*" | ||
63 | exec mkdir -m "$dirmode" -p -- "$@" | ||
64 | fi | ||
65 | ;; | ||
66 | esac | ||
67 | |||
68 | for file | ||
69 | do | ||
70 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` | ||
71 | shift | ||
72 | |||
73 | pathcomp= | ||
74 | for d | ||
75 | do | ||
76 | pathcomp="$pathcomp$d" | ||
77 | case $pathcomp in | ||
78 | -*) pathcomp=./$pathcomp ;; | ||
79 | esac | ||
80 | |||
81 | if test ! -d "$pathcomp"; then | ||
82 | echo "mkdir $pathcomp" | ||
83 | |||
84 | mkdir "$pathcomp" || lasterr=$? | ||
85 | |||
86 | if test ! -d "$pathcomp"; then | ||
87 | errstatus=$lasterr | ||
88 | else | ||
89 | if test ! -z "$dirmode"; then | ||
90 | echo "chmod $dirmode $pathcomp" | ||
91 | lasterr="" | ||
92 | chmod "$dirmode" "$pathcomp" || lasterr=$? | ||
93 | |||
94 | if test ! -z "$lasterr"; then | ||
95 | errstatus=$lasterr | ||
96 | fi | ||
97 | fi | ||
98 | fi | ||
99 | fi | ||
100 | |||
101 | pathcomp="$pathcomp/" | ||
102 | done | ||
103 | done | ||
104 | |||
105 | exit $errstatus | ||
106 | |||
107 | # Local Variables: | ||
108 | # mode: shell-script | ||
109 | # sh-indentation: 2 | ||
110 | # End: | ||
111 | # mkinstalldirs ends here | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile new file mode 100644 index 0000000..bd8b7e1 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile | |||
@@ -0,0 +1,348 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # pixmaps/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | PKGICONS = \ | ||
152 | icon16_plugins.xpm \ | ||
153 | icon16_model.xpm \ | ||
154 | icon16_material.xpm \ | ||
155 | icon16_texture.xpm \ | ||
156 | icon16_property.png \ | ||
157 | icon16_object.png | ||
158 | |||
159 | |||
160 | ICONS = | ||
161 | |||
162 | pkgpixmapdir = $(pkgdatadir)/pixmaps | ||
163 | pixmapdir = $(datadir)/pixmaps | ||
164 | |||
165 | pkgpixmap_DATA = ${PKGICONS} | ||
166 | pixmap_DATA = ${ICONS} | ||
167 | |||
168 | EXTRA_DIST = ${ICONS} ${PKGICONS} | ||
169 | subdir = pixmaps | ||
170 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
171 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
172 | CONFIG_HEADER = $(top_builddir)/config.h | ||
173 | CONFIG_CLEAN_FILES = | ||
174 | DIST_SOURCES = | ||
175 | DATA = $(pixmap_DATA) $(pkgpixmap_DATA) | ||
176 | |||
177 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
178 | all: all-am | ||
179 | |||
180 | .SUFFIXES: | ||
181 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
182 | cd $(top_srcdir) && \ | ||
183 | $(AUTOMAKE) --gnu pixmaps/Makefile | ||
184 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
185 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
186 | uninstall-info-am: | ||
187 | pixmapDATA_INSTALL = $(INSTALL_DATA) | ||
188 | install-pixmapDATA: $(pixmap_DATA) | ||
189 | @$(NORMAL_INSTALL) | ||
190 | $(mkinstalldirs) $(DESTDIR)$(pixmapdir) | ||
191 | @list='$(pixmap_DATA)'; for p in $$list; do \ | ||
192 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
193 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
194 | echo " $(pixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pixmapdir)/$$f"; \ | ||
195 | $(pixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pixmapdir)/$$f; \ | ||
196 | done | ||
197 | |||
198 | uninstall-pixmapDATA: | ||
199 | @$(NORMAL_UNINSTALL) | ||
200 | @list='$(pixmap_DATA)'; for p in $$list; do \ | ||
201 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
202 | echo " rm -f $(DESTDIR)$(pixmapdir)/$$f"; \ | ||
203 | rm -f $(DESTDIR)$(pixmapdir)/$$f; \ | ||
204 | done | ||
205 | pkgpixmapDATA_INSTALL = $(INSTALL_DATA) | ||
206 | install-pkgpixmapDATA: $(pkgpixmap_DATA) | ||
207 | @$(NORMAL_INSTALL) | ||
208 | $(mkinstalldirs) $(DESTDIR)$(pkgpixmapdir) | ||
209 | @list='$(pkgpixmap_DATA)'; for p in $$list; do \ | ||
210 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
211 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
212 | echo " $(pkgpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgpixmapdir)/$$f"; \ | ||
213 | $(pkgpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgpixmapdir)/$$f; \ | ||
214 | done | ||
215 | |||
216 | uninstall-pkgpixmapDATA: | ||
217 | @$(NORMAL_UNINSTALL) | ||
218 | @list='$(pkgpixmap_DATA)'; for p in $$list; do \ | ||
219 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
220 | echo " rm -f $(DESTDIR)$(pkgpixmapdir)/$$f"; \ | ||
221 | rm -f $(DESTDIR)$(pkgpixmapdir)/$$f; \ | ||
222 | done | ||
223 | tags: TAGS | ||
224 | TAGS: | ||
225 | |||
226 | ctags: CTAGS | ||
227 | CTAGS: | ||
228 | |||
229 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
230 | |||
231 | top_distdir = .. | ||
232 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
233 | |||
234 | distdir: $(DISTFILES) | ||
235 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
236 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
237 | list='$(DISTFILES)'; for file in $$list; do \ | ||
238 | case $$file in \ | ||
239 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
240 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
241 | esac; \ | ||
242 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
243 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
244 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
245 | dir="/$$dir"; \ | ||
246 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
247 | else \ | ||
248 | dir=''; \ | ||
249 | fi; \ | ||
250 | if test -d $$d/$$file; then \ | ||
251 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
252 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
253 | fi; \ | ||
254 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
255 | else \ | ||
256 | test -f $(distdir)/$$file \ | ||
257 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
258 | || exit 1; \ | ||
259 | fi; \ | ||
260 | done | ||
261 | check-am: all-am | ||
262 | check: check-am | ||
263 | all-am: Makefile $(DATA) | ||
264 | |||
265 | installdirs: | ||
266 | $(mkinstalldirs) $(DESTDIR)$(pixmapdir) $(DESTDIR)$(pkgpixmapdir) | ||
267 | install: install-am | ||
268 | install-exec: install-exec-am | ||
269 | install-data: install-data-am | ||
270 | uninstall: uninstall-am | ||
271 | |||
272 | install-am: all-am | ||
273 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
274 | |||
275 | installcheck: installcheck-am | ||
276 | install-strip: | ||
277 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
278 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
279 | `test -z '$(STRIP)' || \ | ||
280 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
281 | mostlyclean-generic: | ||
282 | |||
283 | clean-generic: | ||
284 | |||
285 | distclean-generic: | ||
286 | -rm -f $(CONFIG_CLEAN_FILES) | ||
287 | |||
288 | maintainer-clean-generic: | ||
289 | @echo "This command is intended for maintainers to use" | ||
290 | @echo "it deletes files that may require special tools to rebuild." | ||
291 | clean: clean-am | ||
292 | |||
293 | clean-am: clean-generic mostlyclean-am | ||
294 | |||
295 | distclean: distclean-am | ||
296 | -rm -f Makefile | ||
297 | distclean-am: clean-am distclean-generic | ||
298 | |||
299 | dvi: dvi-am | ||
300 | |||
301 | dvi-am: | ||
302 | |||
303 | info: info-am | ||
304 | |||
305 | info-am: | ||
306 | |||
307 | install-data-am: install-pixmapDATA install-pkgpixmapDATA | ||
308 | |||
309 | install-exec-am: | ||
310 | |||
311 | install-info: install-info-am | ||
312 | |||
313 | install-man: | ||
314 | |||
315 | installcheck-am: | ||
316 | |||
317 | maintainer-clean: maintainer-clean-am | ||
318 | -rm -f Makefile | ||
319 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
320 | |||
321 | mostlyclean: mostlyclean-am | ||
322 | |||
323 | mostlyclean-am: mostlyclean-generic | ||
324 | |||
325 | pdf: pdf-am | ||
326 | |||
327 | pdf-am: | ||
328 | |||
329 | ps: ps-am | ||
330 | |||
331 | ps-am: | ||
332 | |||
333 | uninstall-am: uninstall-info-am uninstall-pixmapDATA \ | ||
334 | uninstall-pkgpixmapDATA | ||
335 | |||
336 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
337 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
338 | install-am install-data install-data-am install-exec \ | ||
339 | install-exec-am install-info install-info-am install-man \ | ||
340 | install-pixmapDATA install-pkgpixmapDATA install-strip \ | ||
341 | installcheck installcheck-am installdirs maintainer-clean \ | ||
342 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | ||
343 | pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ | ||
344 | uninstall-pixmapDATA uninstall-pkgpixmapDATA | ||
345 | |||
346 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
347 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
348 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.am new file mode 100644 index 0000000..a9c9a1d --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.am | |||
@@ -0,0 +1,17 @@ | |||
1 | PKGICONS = \ | ||
2 | icon16_plugins.xpm \ | ||
3 | icon16_model.xpm \ | ||
4 | icon16_material.xpm \ | ||
5 | icon16_texture.xpm \ | ||
6 | icon16_property.png \ | ||
7 | icon16_object.png | ||
8 | |||
9 | ICONS = | ||
10 | |||
11 | pkgpixmapdir = $(pkgdatadir)/pixmaps | ||
12 | pixmapdir = $(datadir)/pixmaps | ||
13 | |||
14 | pkgpixmap_DATA = ${PKGICONS} | ||
15 | pixmap_DATA = ${ICONS} | ||
16 | |||
17 | EXTRA_DIST = ${ICONS} ${PKGICONS} | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.in new file mode 100644 index 0000000..aa17802 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/Makefile.in | |||
@@ -0,0 +1,348 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | PKGICONS = \ | ||
152 | icon16_plugins.xpm \ | ||
153 | icon16_model.xpm \ | ||
154 | icon16_material.xpm \ | ||
155 | icon16_texture.xpm \ | ||
156 | icon16_property.png \ | ||
157 | icon16_object.png | ||
158 | |||
159 | |||
160 | ICONS = | ||
161 | |||
162 | pkgpixmapdir = $(pkgdatadir)/pixmaps | ||
163 | pixmapdir = $(datadir)/pixmaps | ||
164 | |||
165 | pkgpixmap_DATA = ${PKGICONS} | ||
166 | pixmap_DATA = ${ICONS} | ||
167 | |||
168 | EXTRA_DIST = ${ICONS} ${PKGICONS} | ||
169 | subdir = pixmaps | ||
170 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
171 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
172 | CONFIG_HEADER = $(top_builddir)/config.h | ||
173 | CONFIG_CLEAN_FILES = | ||
174 | DIST_SOURCES = | ||
175 | DATA = $(pixmap_DATA) $(pkgpixmap_DATA) | ||
176 | |||
177 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
178 | all: all-am | ||
179 | |||
180 | .SUFFIXES: | ||
181 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
182 | cd $(top_srcdir) && \ | ||
183 | $(AUTOMAKE) --gnu pixmaps/Makefile | ||
184 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
185 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
186 | uninstall-info-am: | ||
187 | pixmapDATA_INSTALL = $(INSTALL_DATA) | ||
188 | install-pixmapDATA: $(pixmap_DATA) | ||
189 | @$(NORMAL_INSTALL) | ||
190 | $(mkinstalldirs) $(DESTDIR)$(pixmapdir) | ||
191 | @list='$(pixmap_DATA)'; for p in $$list; do \ | ||
192 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
193 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
194 | echo " $(pixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pixmapdir)/$$f"; \ | ||
195 | $(pixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pixmapdir)/$$f; \ | ||
196 | done | ||
197 | |||
198 | uninstall-pixmapDATA: | ||
199 | @$(NORMAL_UNINSTALL) | ||
200 | @list='$(pixmap_DATA)'; for p in $$list; do \ | ||
201 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
202 | echo " rm -f $(DESTDIR)$(pixmapdir)/$$f"; \ | ||
203 | rm -f $(DESTDIR)$(pixmapdir)/$$f; \ | ||
204 | done | ||
205 | pkgpixmapDATA_INSTALL = $(INSTALL_DATA) | ||
206 | install-pkgpixmapDATA: $(pkgpixmap_DATA) | ||
207 | @$(NORMAL_INSTALL) | ||
208 | $(mkinstalldirs) $(DESTDIR)$(pkgpixmapdir) | ||
209 | @list='$(pkgpixmap_DATA)'; for p in $$list; do \ | ||
210 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
211 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
212 | echo " $(pkgpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgpixmapdir)/$$f"; \ | ||
213 | $(pkgpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgpixmapdir)/$$f; \ | ||
214 | done | ||
215 | |||
216 | uninstall-pkgpixmapDATA: | ||
217 | @$(NORMAL_UNINSTALL) | ||
218 | @list='$(pkgpixmap_DATA)'; for p in $$list; do \ | ||
219 | f="`echo $$p | sed -e 's|^.*/||'`"; \ | ||
220 | echo " rm -f $(DESTDIR)$(pkgpixmapdir)/$$f"; \ | ||
221 | rm -f $(DESTDIR)$(pkgpixmapdir)/$$f; \ | ||
222 | done | ||
223 | tags: TAGS | ||
224 | TAGS: | ||
225 | |||
226 | ctags: CTAGS | ||
227 | CTAGS: | ||
228 | |||
229 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
230 | |||
231 | top_distdir = .. | ||
232 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
233 | |||
234 | distdir: $(DISTFILES) | ||
235 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
236 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
237 | list='$(DISTFILES)'; for file in $$list; do \ | ||
238 | case $$file in \ | ||
239 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
240 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
241 | esac; \ | ||
242 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
243 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
244 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
245 | dir="/$$dir"; \ | ||
246 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
247 | else \ | ||
248 | dir=''; \ | ||
249 | fi; \ | ||
250 | if test -d $$d/$$file; then \ | ||
251 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
252 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
253 | fi; \ | ||
254 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
255 | else \ | ||
256 | test -f $(distdir)/$$file \ | ||
257 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
258 | || exit 1; \ | ||
259 | fi; \ | ||
260 | done | ||
261 | check-am: all-am | ||
262 | check: check-am | ||
263 | all-am: Makefile $(DATA) | ||
264 | |||
265 | installdirs: | ||
266 | $(mkinstalldirs) $(DESTDIR)$(pixmapdir) $(DESTDIR)$(pkgpixmapdir) | ||
267 | install: install-am | ||
268 | install-exec: install-exec-am | ||
269 | install-data: install-data-am | ||
270 | uninstall: uninstall-am | ||
271 | |||
272 | install-am: all-am | ||
273 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
274 | |||
275 | installcheck: installcheck-am | ||
276 | install-strip: | ||
277 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
278 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
279 | `test -z '$(STRIP)' || \ | ||
280 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
281 | mostlyclean-generic: | ||
282 | |||
283 | clean-generic: | ||
284 | |||
285 | distclean-generic: | ||
286 | -rm -f $(CONFIG_CLEAN_FILES) | ||
287 | |||
288 | maintainer-clean-generic: | ||
289 | @echo "This command is intended for maintainers to use" | ||
290 | @echo "it deletes files that may require special tools to rebuild." | ||
291 | clean: clean-am | ||
292 | |||
293 | clean-am: clean-generic mostlyclean-am | ||
294 | |||
295 | distclean: distclean-am | ||
296 | -rm -f Makefile | ||
297 | distclean-am: clean-am distclean-generic | ||
298 | |||
299 | dvi: dvi-am | ||
300 | |||
301 | dvi-am: | ||
302 | |||
303 | info: info-am | ||
304 | |||
305 | info-am: | ||
306 | |||
307 | install-data-am: install-pixmapDATA install-pkgpixmapDATA | ||
308 | |||
309 | install-exec-am: | ||
310 | |||
311 | install-info: install-info-am | ||
312 | |||
313 | install-man: | ||
314 | |||
315 | installcheck-am: | ||
316 | |||
317 | maintainer-clean: maintainer-clean-am | ||
318 | -rm -f Makefile | ||
319 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
320 | |||
321 | mostlyclean: mostlyclean-am | ||
322 | |||
323 | mostlyclean-am: mostlyclean-generic | ||
324 | |||
325 | pdf: pdf-am | ||
326 | |||
327 | pdf-am: | ||
328 | |||
329 | ps: ps-am | ||
330 | |||
331 | ps-am: | ||
332 | |||
333 | uninstall-am: uninstall-info-am uninstall-pixmapDATA \ | ||
334 | uninstall-pkgpixmapDATA | ||
335 | |||
336 | .PHONY: all all-am check check-am clean clean-generic distclean \ | ||
337 | distclean-generic distdir dvi dvi-am info info-am install \ | ||
338 | install-am install-data install-data-am install-exec \ | ||
339 | install-exec-am install-info install-info-am install-man \ | ||
340 | install-pixmapDATA install-pkgpixmapDATA install-strip \ | ||
341 | installcheck installcheck-am installdirs maintainer-clean \ | ||
342 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | ||
343 | pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ | ||
344 | uninstall-pixmapDATA uninstall-pkgpixmapDATA | ||
345 | |||
346 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
347 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
348 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_material.xpm b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_material.xpm new file mode 100644 index 0000000..4904448 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_material.xpm | |||
@@ -0,0 +1,139 @@ | |||
1 | /* XPM */ | ||
2 | static char * icon16_material_xpm[] = { | ||
3 | "16 16 120 2", | ||
4 | " c None", | ||
5 | ". c #4A4A49", | ||
6 | "+ c #867F67", | ||
7 | "@ c #857D61", | ||
8 | "# c #847B5E", | ||
9 | "$ c #20201E", | ||
10 | "% c #61686E", | ||
11 | "& c #4F5962", | ||
12 | "* c #4D5760", | ||
13 | "= c #21262A", | ||
14 | "- c #6D5956", | ||
15 | "; c #804C40", | ||
16 | "> c #653930", | ||
17 | ", c #000000", | ||
18 | "' c #F0DC92", | ||
19 | ") c #EFD989", | ||
20 | "! c #E8D284", | ||
21 | "~ c #31322E", | ||
22 | "{ c #7C91A3", | ||
23 | "] c #526B81", | ||
24 | "^ c #546F85", | ||
25 | "/ c #25313B", | ||
26 | "( c #C17665", | ||
27 | "_ c #E14F2E", | ||
28 | ": c #B03D23", | ||
29 | "< c #EED680", | ||
30 | "[ c #E6CF7C", | ||
31 | "} c #2F302B", | ||
32 | "| c #667481", | ||
33 | "1 c #545556", | ||
34 | "2 c #293A48", | ||
35 | "3 c #1D2934", | ||
36 | "4 c #BF6C58", | ||
37 | "5 c #DF421E", | ||
38 | "6 c #AE3317", | ||
39 | "7 c #817A5E", | ||
40 | "8 c #E4CF83", | ||
41 | "9 c #E2CB79", | ||
42 | "0 c #D9C375", | ||
43 | "a c #2C2E2A", | ||
44 | "b c #616A73", | ||
45 | "c c #C6C3C2", | ||
46 | "d c #0F161B", | ||
47 | "e c #1A242D", | ||
48 | "f c #BA6451", | ||
49 | "g c #D53E1C", | ||
50 | "h c #D53F1C", | ||
51 | "i c #A52F12", | ||
52 | "j c #0E0D0A", | ||
53 | "k c #19160E", | ||
54 | "l c #18160D", | ||
55 | "m c #17150D", | ||
56 | "n c #050505", | ||
57 | "o c #232323", | ||
58 | "p c #C5BEB8", | ||
59 | "q c #0C0C0C", | ||
60 | "r c #020304", | ||
61 | "s c #110907", | ||
62 | "t c #160603", | ||
63 | "u c #170703", | ||
64 | "v c #120502", | ||
65 | "w c #292727", | ||
66 | "x c #C7BEB6", | ||
67 | "y c #65625F", | ||
68 | "z c #3B3B3B", | ||
69 | "A c #545353", | ||
70 | "B c #060505", | ||
71 | "C c #2A2A2A", | ||
72 | "D c #9C9A98", | ||
73 | "E c #D9D1C7", | ||
74 | "F c #B1A9A2", | ||
75 | "G c #A29E9C", | ||
76 | "H c #CCCAC8", | ||
77 | "I c #625D59", | ||
78 | "J c #303030", | ||
79 | "K c #2E2D2D", | ||
80 | "L c #C4C1BC", | ||
81 | "M c #DCD1C3", | ||
82 | "N c #AFA9A1", | ||
83 | "O c #C8C1B9", | ||
84 | "P c #D6D2CB", | ||
85 | "Q c #918E89", | ||
86 | "R c #363231", | ||
87 | "S c #2D2B2B", | ||
88 | "T c #D1CAC3", | ||
89 | "U c #DACBBC", | ||
90 | "V c #D5C8BA", | ||
91 | "W c #DCD0C2", | ||
92 | "X c #D5C9BD", | ||
93 | "Y c #BCB1A7", | ||
94 | "Z c #342E2B", | ||
95 | "` c #272524", | ||
96 | " . c #A5A09C", | ||
97 | ".. c #B4A99D", | ||
98 | "+. c #BFB3A5", | ||
99 | "@. c #BCAFA0", | ||
100 | "#. c #BAAD9F", | ||
101 | "$. c #827A71", | ||
102 | "%. c #23201D", | ||
103 | "&. c #2F2B29", | ||
104 | "*. c #5D5854", | ||
105 | "=. c #817970", | ||
106 | "-. c #82786F", | ||
107 | ";. c #7A726A", | ||
108 | ">. c #302C2A", | ||
109 | ",. c #010000", | ||
110 | "'. c #1A1615", | ||
111 | "). c #2B2321", | ||
112 | "!. c #2A2220", | ||
113 | "~. c #201D1C", | ||
114 | "{. c #1A1817", | ||
115 | "]. c #817B7A", | ||
116 | "^. c #A39C9B", | ||
117 | "/. c #A39D9B", | ||
118 | "(. c #ABA9A6", | ||
119 | "_. c #7A7977", | ||
120 | ":. c #080303", | ||
121 | "<. c #070403", | ||
122 | "[. c #090606", | ||
123 | "}. c #060504", | ||
124 | " ", | ||
125 | " . + @ # $ % & * = - ; ; > , ", | ||
126 | " + ' ) ! ~ { ] ^ / ( _ _ : , ", | ||
127 | " @ ) < [ } | 1 2 3 4 5 5 6 , ", | ||
128 | " 7 8 9 0 a b c d e f g h i , ", | ||
129 | " j k l m n o p q r s t u v ", | ||
130 | " w x y z A B ", | ||
131 | " C D E F G H I J ", | ||
132 | " K L M N O P Q R ", | ||
133 | " S T U V W X Y Z ", | ||
134 | " ` ...+.@.#.$.%. ", | ||
135 | " &.*.=.-.;.>.,. ", | ||
136 | " '.).!.~.{. ", | ||
137 | " ].^./.(._. ", | ||
138 | " :.<.[.}., ", | ||
139 | " "}; | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_model.xpm b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_model.xpm new file mode 100644 index 0000000..36038e2 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_model.xpm | |||
@@ -0,0 +1,162 @@ | |||
1 | /* XPM */ | ||
2 | static char * icon16_model_xpm[] = { | ||
3 | "16 16 143 2", | ||
4 | " c None", | ||
5 | ". c #71655F", | ||
6 | "+ c #A47967", | ||
7 | "@ c #A87D69", | ||
8 | "# c #826E64", | ||
9 | "$ c #5A5A5A", | ||
10 | "% c #363230", | ||
11 | "& c #A18071", | ||
12 | "* c #D69375", | ||
13 | "= c #F39871", | ||
14 | "- c #F49368", | ||
15 | "; c #E4865D", | ||
16 | "> c #B67355", | ||
17 | ", c #836254", | ||
18 | "' c #5D5D5D", | ||
19 | ") c #625048", | ||
20 | "! c #E09677", | ||
21 | "~ c #F4AE90", | ||
22 | "{ c #FAA27C", | ||
23 | "] c #FCA17A", | ||
24 | "^ c #F7976F", | ||
25 | "/ c #EEA186", | ||
26 | "( c #E05024", | ||
27 | "_ c #484848", | ||
28 | ": c #8D897D", | ||
29 | "< c #806B56", | ||
30 | "[ c #C86535", | ||
31 | "} c #D25B26", | ||
32 | "| c #E28159", | ||
33 | "1 c #F1B39C", | ||
34 | "2 c #CD522D", | ||
35 | "3 c #CE2F03", | ||
36 | "4 c #E93600", | ||
37 | "5 c #474747", | ||
38 | "6 c #464645", | ||
39 | "7 c #97948A", | ||
40 | "8 c #B7B19D", | ||
41 | "9 c #DED5B2", | ||
42 | "0 c #E3D3A7", | ||
43 | "a c #E2BA87", | ||
44 | "b c #CF8E5B", | ||
45 | "c c #D26937", | ||
46 | "d c #EA8764", | ||
47 | "e c #BD2E0B", | ||
48 | "f c #C65646", | ||
49 | "g c #CF6A62", | ||
50 | "h c #4D4B57", | ||
51 | "i c #555555", | ||
52 | "j c #5C5A50", | ||
53 | "k c #D1C8A6", | ||
54 | "l c #F4F1E5", | ||
55 | "m c #F7EECA", | ||
56 | "n c #F5E8B9", | ||
57 | "o c #F5E9BC", | ||
58 | "p c #F5E2C2", | ||
59 | "q c #E4B985", | ||
60 | "r c #D9765C", | ||
61 | "s c #B58699", | ||
62 | "t c #B09CC2", | ||
63 | "u c #AA9CCA", | ||
64 | "v c #908BB9", | ||
65 | "w c #817CA2", | ||
66 | "x c #69677B", | ||
67 | "y c #5D5D60", | ||
68 | "z c #676250", | ||
69 | "A c #EED67F", | ||
70 | "B c #EDD47D", | ||
71 | "C c #E7DBAE", | ||
72 | "D c #F8F4E7", | ||
73 | "E c #EED29E", | ||
74 | "F c #D29F33", | ||
75 | "G c #AC8628", | ||
76 | "H c #A088B7", | ||
77 | "I c #BAB2D7", | ||
78 | "J c #AEA6D2", | ||
79 | "K c #ACA5D2", | ||
80 | "L c #ACA7D4", | ||
81 | "M c #ADAACF", | ||
82 | "N c #7C7AB1", | ||
83 | "O c #494857", | ||
84 | "P c #666150", | ||
85 | "Q c #EBD177", | ||
86 | "R c #F1E0B1", | ||
87 | "S c #D7A32D", | ||
88 | "T c #C39423", | ||
89 | "U c #8B6F28", | ||
90 | "V c #8078C1", | ||
91 | "W c #7F76C0", | ||
92 | "X c #9080B9", | ||
93 | "Y c #B4ACCF", | ||
94 | "Z c #8C8AB9", | ||
95 | "` c #47458E", | ||
96 | " . c #4F4B9C", | ||
97 | ".. c #484758", | ||
98 | "+. c #F0DDA8", | ||
99 | "@. c #D49D1C", | ||
100 | "#. c #C59A30", | ||
101 | "$. c #7B652A", | ||
102 | "%. c #7A72BE", | ||
103 | "&. c #A19CD1", | ||
104 | "*. c #383689", | ||
105 | "=. c #474594", | ||
106 | "-. c #5651A6", | ||
107 | ";. c #49485A", | ||
108 | ">. c #ECD47D", | ||
109 | ",. c #F0DEAB", | ||
110 | "'. c #D8A52A", | ||
111 | "). c #C59E3C", | ||
112 | "!. c #816C34", | ||
113 | "~. c #7972BE", | ||
114 | "{. c #A39ED2", | ||
115 | "]. c #3F3C8D", | ||
116 | "^. c #4F4C9C", | ||
117 | "/. c #5E59AD", | ||
118 | "(. c #4B4A5B", | ||
119 | "_. c #757470", | ||
120 | ":. c #7E7557", | ||
121 | "<. c #BBAA6B", | ||
122 | "[. c #D6BF71", | ||
123 | "}. c #EDDCAD", | ||
124 | "|. c #CEA439", | ||
125 | "1. c #B49B55", | ||
126 | "2. c #554E3A", | ||
127 | "3. c #7871B0", | ||
128 | "4. c #7C74B9", | ||
129 | "5. c #494794", | ||
130 | "6. c #5752A5", | ||
131 | "7. c #645EA8", | ||
132 | "8. c #4E4D5D", | ||
133 | "9. c #827858", | ||
134 | "0. c #B4AB93", | ||
135 | "a. c #8D7B4D", | ||
136 | "b. c #8F8C83", | ||
137 | "c. c #7E7E7E", | ||
138 | "d. c #605D70", | ||
139 | "e. c #736F90", | ||
140 | "f. c #6B669C", | ||
141 | "g. c #9D98C6", | ||
142 | "h. c #4F4B91", | ||
143 | "i. c #636094", | ||
144 | "j. c #686682", | ||
145 | "k. c #848293", | ||
146 | "l. c #64627B", | ||
147 | " ", | ||
148 | " ", | ||
149 | " . + @ # $ ", | ||
150 | " % & * = - ; > , ' ", | ||
151 | " ) ! ~ { ] ^ / ( _ ", | ||
152 | " : < [ } | 1 2 3 4 5 ", | ||
153 | "6 7 8 9 0 a b c d e f g h i ", | ||
154 | "j k l m n o p q r s t u v w x y ", | ||
155 | "z A B C D E F G H I J K L M N O ", | ||
156 | "P A B Q R S T U V W X Y Z ` ...", | ||
157 | "P A B Q +.@.#.$.V W %.&.*.=.-.;.", | ||
158 | "z A >.Q ,.'.).!.V W ~.{.].^./.(.", | ||
159 | "_.:.<.[.}.|.1.2.3.4.~.{.5.6.7.8.", | ||
160 | " 9.0.a.b.c.d.e.f.g.h.i.j. ", | ||
161 | " k.l. ", | ||
162 | " "}; | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_object.png b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_object.png new file mode 100644 index 0000000..9a8bb86 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_object.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_plugins.xpm b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_plugins.xpm new file mode 100644 index 0000000..773ef8a --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_plugins.xpm | |||
@@ -0,0 +1,134 @@ | |||
1 | /* XPM */ | ||
2 | static char * icon16_plugins_xpm[] = { | ||
3 | "16 16 115 2", | ||
4 | " c None", | ||
5 | ". c #98AAB5", | ||
6 | "+ c #96AAB7", | ||
7 | "@ c #93AEC3", | ||
8 | "# c #7896B0", | ||
9 | "$ c #273440", | ||
10 | "% c #A2B0B8", | ||
11 | "& c #AAB9C2", | ||
12 | "* c #A7BECB", | ||
13 | "= c #6D8496", | ||
14 | "- c #849098", | ||
15 | "; c #8BAAC1", | ||
16 | "> c #779AB8", | ||
17 | ", c #7296B5", | ||
18 | "' c #688AAB", | ||
19 | ") c #283645", | ||
20 | "! c #A3BCCC", | ||
21 | "~ c #89ABC2", | ||
22 | "{ c #84A7BF", | ||
23 | "] c #4D6478", | ||
24 | "^ c #6F7578", | ||
25 | "/ c #84A4BB", | ||
26 | "( c #7397B5", | ||
27 | "_ c #7093B3", | ||
28 | ": c #6A8EAE", | ||
29 | "< c #2F4054", | ||
30 | "[ c #B2C4D0", | ||
31 | "} c #87A9C2", | ||
32 | "| c #83A6BF", | ||
33 | "1 c #799BB5", | ||
34 | "2 c #6D8BA3", | ||
35 | "3 c #87A4BA", | ||
36 | "4 c #7498B6", | ||
37 | "5 c #6E92B1", | ||
38 | "6 c #435C76", | ||
39 | "7 c #394D67", | ||
40 | "8 c #253242", | ||
41 | "9 c #B0BEC7", | ||
42 | "0 c #88AAC2", | ||
43 | "a c #7FA3BD", | ||
44 | "b c #7DA0BB", | ||
45 | "c c #7B9EBA", | ||
46 | "d c #7599B7", | ||
47 | "e c #7195B4", | ||
48 | "f c #6283A3", | ||
49 | "g c #121921", | ||
50 | "h c #B0BAC0", | ||
51 | "i c #9EB9CA", | ||
52 | "j c #97B5C8", | ||
53 | "k c #82A4BE", | ||
54 | "l c #7DA1BC", | ||
55 | "m c #7A9DB9", | ||
56 | "n c #769AB7", | ||
57 | "o c #6E92B2", | ||
58 | "p c #6487A7", | ||
59 | "q c #263241", | ||
60 | "r c #576777", | ||
61 | "s c #9FB2BD", | ||
62 | "t c #85A9C1", | ||
63 | "u c #81A4BF", | ||
64 | "v c #7EA2BC", | ||
65 | "w c #6F92B3", | ||
66 | "x c #6B90B0", | ||
67 | "y c #678BAD", | ||
68 | "z c #708FAE", | ||
69 | "A c #7B97B3", | ||
70 | "B c #567396", | ||
71 | "C c #222F3E", | ||
72 | "D c #6F7579", | ||
73 | "E c #7B95AA", | ||
74 | "F c #516677", | ||
75 | "G c #92B0C6", | ||
76 | "H c #789CB8", | ||
77 | "I c #7398B6", | ||
78 | "J c #6C90B1", | ||
79 | "K c #678CAD", | ||
80 | "L c #6588AB", | ||
81 | "M c #6083A8", | ||
82 | "N c #5D80A6", | ||
83 | "O c #527198", | ||
84 | "P c #253447", | ||
85 | "Q c #303335", | ||
86 | "R c #ACC0CF", | ||
87 | "S c #678AAA", | ||
88 | "T c #4B6582", | ||
89 | "U c #485F7A", | ||
90 | "V c #7695B2", | ||
91 | "W c #5A7CA2", | ||
92 | "X c #57789F", | ||
93 | "Y c #2D3F56", | ||
94 | "Z c #A0B3C0", | ||
95 | "` c #7295B5", | ||
96 | " . c #4F6B8A", | ||
97 | ".. c #06080A", | ||
98 | "+. c #161718", | ||
99 | "@. c #8397A7", | ||
100 | "#. c #5A7CA3", | ||
101 | "$. c #54749A", | ||
102 | "%. c #517196", | ||
103 | "&. c #334863", | ||
104 | "*. c #B4C0C7", | ||
105 | "=. c #6D91B1", | ||
106 | "-. c #688CAD", | ||
107 | ";. c #59799B", | ||
108 | ">. c #243141", | ||
109 | ",. c #708396", | ||
110 | "'. c #334761", | ||
111 | "). c #28384D", | ||
112 | "!. c #202C3C", | ||
113 | "~. c #0F151C", | ||
114 | "{. c #89949C", | ||
115 | "]. c #455D77", | ||
116 | "^. c #33465B", | ||
117 | "/. c #283646", | ||
118 | "(. c #0E1216", | ||
119 | " ", | ||
120 | " ", | ||
121 | " . + @ # $ ", | ||
122 | " % & * = - ; > , ' ) ", | ||
123 | " ! ~ { ] ^ / ( _ : < ", | ||
124 | " [ } | 1 2 3 4 5 6 7 8 ", | ||
125 | " 9 0 a b c d e f g ", | ||
126 | " h i j k l m n , o p q r ", | ||
127 | " s t u v m > , w x y z A B C ", | ||
128 | " D E F G H I _ J K L M N O P ", | ||
129 | " Q R 4 e S T U V N W X Y ", | ||
130 | " Z ` o ...+.@.#.$.%.&. ", | ||
131 | " *.=.-.;.>. ,.'.).!.~. ", | ||
132 | " {.].^./.(. ", | ||
133 | " ", | ||
134 | " "}; | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_property.png b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_property.png new file mode 100644 index 0000000..0c8221c --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_property.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_texture.xpm b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_texture.xpm new file mode 100644 index 0000000..a648306 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/pixmaps/icon16_texture.xpm | |||
@@ -0,0 +1,102 @@ | |||
1 | /* XPM */ | ||
2 | static char * icon16_texture_xpm[] = { | ||
3 | "16 16 83 1", | ||
4 | " c None", | ||
5 | ". c #000000", | ||
6 | "+ c #475E3A", | ||
7 | "@ c #2D5723", | ||
8 | "# c #276122", | ||
9 | "$ c #375427", | ||
10 | "% c #475D3B", | ||
11 | "& c #44672E", | ||
12 | "* c #395627", | ||
13 | "= c #2D5722", | ||
14 | "- c #286122", | ||
15 | "; c #385529", | ||
16 | "> c #485D3B", | ||
17 | ", c #5F8B35", | ||
18 | "' c #679B45", | ||
19 | ") c #517B37", | ||
20 | "! c #44662E", | ||
21 | "~ c #395527", | ||
22 | "{ c #2D5823", | ||
23 | "] c #276123", | ||
24 | "^ c #39562A", | ||
25 | "/ c #475F3C", | ||
26 | "( c #49661C", | ||
27 | "_ c #577C26", | ||
28 | ": c #5F8C35", | ||
29 | "< c #679C45", | ||
30 | "[ c #517937", | ||
31 | "} c #385526", | ||
32 | "| c #2C5822", | ||
33 | "1 c #3A572C", | ||
34 | "2 c #273522", | ||
35 | "3 c #1D2917", | ||
36 | "4 c #334719", | ||
37 | "5 c #5F8C36", | ||
38 | "6 c #689C45", | ||
39 | "7 c #507837", | ||
40 | "8 c #43652E", | ||
41 | "9 c #385527", | ||
42 | "0 c #423933", | ||
43 | "a c #3D3D30", | ||
44 | "b c #1E2A17", | ||
45 | "c c #334819", | ||
46 | "d c #49671C", | ||
47 | "e c #577D26", | ||
48 | "f c #608D36", | ||
49 | "g c #507836", | ||
50 | "h c #6DA553", | ||
51 | "i c #618549", | ||
52 | "j c #4D4F3A", | ||
53 | "k c #423932", | ||
54 | "l c #3C3D30", | ||
55 | "m c #263521", | ||
56 | "n c #1E2A16", | ||
57 | "o c #344919", | ||
58 | "p c #4A671D", | ||
59 | "q c #587D27", | ||
60 | "r c #56664E", | ||
61 | "s c #648156", | ||
62 | "t c #618449", | ||
63 | "u c #4D4D3A", | ||
64 | "v c #3D3E30", | ||
65 | "w c #253421", | ||
66 | "x c #1F2B17", | ||
67 | "y c #276222", | ||
68 | "z c #3C572D", | ||
69 | "A c #495F3E", | ||
70 | "B c #57674F", | ||
71 | "C c #638156", | ||
72 | "D c #6DA654", | ||
73 | "E c #608349", | ||
74 | "F c #4D4C39", | ||
75 | "G c #3C3E30", | ||
76 | "H c #2B5A23", | ||
77 | "I c #266322", | ||
78 | "J c #3C582E", | ||
79 | "K c #57664F", | ||
80 | "L c #648356", | ||
81 | "M c #5F8248", | ||
82 | "N c #4D4A39", | ||
83 | "O c #3D582F", | ||
84 | "P c #4A603F", | ||
85 | "Q c #2B5A22", | ||
86 | "R c #266323", | ||
87 | " .. ", | ||
88 | " .+.. ", | ||
89 | " .@#$%.. ", | ||
90 | " .&*=-;>.. ", | ||
91 | " .,')!~{]^/.. ", | ||
92 | " .(_:<[!}|#1. ", | ||
93 | " .234(_56789. ", | ||
94 | " .0a2bcdef'g. ", | ||
95 | " .hijklmnopq. ", | ||
96 | " .rshtukvwxo. ", | ||
97 | ".yzABCDEF0G. ", | ||
98 | "..HIJAKLDMN. ", | ||
99 | " ..HyOPBL. ", | ||
100 | " ..QROP. ", | ||
101 | " ..Q. ", | ||
102 | " .. "}; | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/ChangeLog b/src/others/mimesh/g3dviewer-0.2.99.4/po/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/ChangeLog | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile new file mode 100644 index 0000000..17acd31 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile | |||
@@ -0,0 +1,273 @@ | |||
1 | # Makefile for program source directory in GNU NLS utilities package. | ||
2 | # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file file be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU Public License | ||
6 | # but which still want to provide support for the GNU gettext functionality. | ||
7 | # Please note that the actual code is *not* freely available. | ||
8 | # | ||
9 | # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE | ||
10 | # instead of PACKAGE and to look for po2tbl in ./ not in intl/ | ||
11 | # | ||
12 | # - Modified by jacob berkman <jacob@ximian.com> to install | ||
13 | # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize | ||
14 | |||
15 | GETTEXT_PACKAGE = g3dviewer | ||
16 | PACKAGE = g3dviewer | ||
17 | VERSION = 0.2.99.4 | ||
18 | |||
19 | SHELL = /bin/sh | ||
20 | |||
21 | |||
22 | srcdir = . | ||
23 | top_srcdir = .. | ||
24 | |||
25 | |||
26 | prefix = /usr/local | ||
27 | exec_prefix = ${prefix} | ||
28 | datadir = ${prefix}/share | ||
29 | libdir = ${exec_prefix}/lib | ||
30 | localedir = $(libdir)/locale | ||
31 | gnulocaledir = $(datadir)/locale | ||
32 | gettextsrcdir = $(datadir)/glib-2.0/gettext/po | ||
33 | subdir = po | ||
34 | |||
35 | INSTALL = /usr/bin/install -c | ||
36 | INSTALL_DATA = ${INSTALL} -m 644 | ||
37 | MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs | ||
38 | |||
39 | CC = gcc | ||
40 | GENCAT = @GENCAT@ | ||
41 | GMSGFMT = /usr/bin/msgfmt | ||
42 | MSGFMT = /usr/bin/msgfmt | ||
43 | XGETTEXT = /usr/bin/xgettext | ||
44 | MSGMERGE = msgmerge | ||
45 | |||
46 | DEFS = -DHAVE_CONFIG_H | ||
47 | CFLAGS = -g -O2 | ||
48 | CPPFLAGS = | ||
49 | |||
50 | INCLUDES = -I.. -I$(top_srcdir)/intl | ||
51 | |||
52 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) | ||
53 | |||
54 | SOURCES = | ||
55 | POFILES = de.po | ||
56 | GMOFILES = de.gmo | ||
57 | DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ | ||
58 | $(POFILES) $(GMOFILES) $(SOURCES) | ||
59 | |||
60 | POTFILES = \ | ||
61 | ../src/gui_glade.c \ | ||
62 | ../src/gui_callbacks.c \ | ||
63 | ../src/gui_infowin.c \ | ||
64 | ../glade/g3dviewer.glade | ||
65 | |||
66 | CATALOGS = de.gmo | ||
67 | CATOBJEXT = .gmo | ||
68 | INSTOBJEXT = .mo | ||
69 | |||
70 | .SUFFIXES: | ||
71 | .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat | ||
72 | |||
73 | .c.o: | ||
74 | $(COMPILE) $< | ||
75 | |||
76 | .po.pox: | ||
77 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
78 | $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox | ||
79 | |||
80 | .po.mo: | ||
81 | $(MSGFMT) -o $@ $< | ||
82 | |||
83 | .po.gmo: | ||
84 | file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ | ||
85 | && rm -f $$file && $(GMSGFMT) -c -o $$file $< | ||
86 | |||
87 | .po.cat: | ||
88 | sed -f ../intl/po2msg.sed < $< > $*.msg \ | ||
89 | && rm -f $@ && $(GENCAT) $@ $*.msg | ||
90 | |||
91 | |||
92 | all: all-yes | ||
93 | |||
94 | all-yes: $(CATALOGS) | ||
95 | all-no: | ||
96 | |||
97 | $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) | ||
98 | $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ | ||
99 | --add-comments --keyword=_ --keyword=N_ \ | ||
100 | --flag=g_strdup_printf:1:c-format \ | ||
101 | --flag=g_string_printf:2:c-format \ | ||
102 | --flag=g_string_append_printf:2:c-format \ | ||
103 | --flag=g_error_new:3:c-format \ | ||
104 | --flag=g_set_error:4:c-format \ | ||
105 | --flag=g_markup_printf_escaped:1:c-format \ | ||
106 | --flag=g_log:3:c-format \ | ||
107 | --flag=g_print:1:c-format \ | ||
108 | --flag=g_printerr:1:c-format \ | ||
109 | --flag=g_printf:1:c-format \ | ||
110 | --flag=g_fprintf:2:c-format \ | ||
111 | --flag=g_sprintf:2:c-format \ | ||
112 | --flag=g_snprintf:3:c-format \ | ||
113 | --flag=g_scanner_error:2:c-format \ | ||
114 | --flag=g_scanner_warn:2:c-format \ | ||
115 | --files-from=$(srcdir)/POTFILES.in \ | ||
116 | && test ! -f $(GETTEXT_PACKAGE).po \ | ||
117 | || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ | ||
118 | && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) | ||
119 | |||
120 | install: install-exec install-data | ||
121 | install-exec: | ||
122 | install-data: install-data-yes | ||
123 | install-data-no: all | ||
124 | install-data-yes: all | ||
125 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
126 | $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ | ||
127 | else \ | ||
128 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ | ||
129 | fi | ||
130 | @catalogs='$(CATALOGS)'; \ | ||
131 | for cat in $$catalogs; do \ | ||
132 | cat=`basename $$cat`; \ | ||
133 | case "$$cat" in \ | ||
134 | *.gmo) destdir=$(gnulocaledir);; \ | ||
135 | *) destdir=$(localedir);; \ | ||
136 | esac; \ | ||
137 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
138 | dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ | ||
139 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
140 | $(MKINSTALLDIRS) $$dir; \ | ||
141 | else \ | ||
142 | $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ | ||
143 | fi; \ | ||
144 | if test -r $$cat; then \ | ||
145 | $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
146 | echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
147 | else \ | ||
148 | $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
149 | echo "installing $(srcdir)/$$cat as" \ | ||
150 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
151 | fi; \ | ||
152 | if test -r $$cat.m; then \ | ||
153 | $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
154 | echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
155 | else \ | ||
156 | if test -r $(srcdir)/$$cat.m ; then \ | ||
157 | $(INSTALL_DATA) $(srcdir)/$$cat.m \ | ||
158 | $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
159 | echo "installing $(srcdir)/$$cat as" \ | ||
160 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
161 | else \ | ||
162 | true; \ | ||
163 | fi; \ | ||
164 | fi; \ | ||
165 | done | ||
166 | if test "$(PACKAGE)" = "glib"; then \ | ||
167 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
168 | $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ | ||
169 | else \ | ||
170 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ | ||
171 | fi; \ | ||
172 | $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ | ||
173 | $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
174 | else \ | ||
175 | : ; \ | ||
176 | fi | ||
177 | |||
178 | # Define this as empty until I found a useful application. | ||
179 | installcheck: | ||
180 | |||
181 | uninstall: | ||
182 | catalogs='$(CATALOGS)'; \ | ||
183 | for cat in $$catalogs; do \ | ||
184 | cat=`basename $$cat`; \ | ||
185 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
186 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
187 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
188 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
189 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
190 | done | ||
191 | if test "$(PACKAGE)" = "glib"; then \ | ||
192 | rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
193 | fi | ||
194 | |||
195 | check: all | ||
196 | |||
197 | dvi info tags TAGS ID: | ||
198 | |||
199 | mostlyclean: | ||
200 | rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp | ||
201 | rm -fr *.o | ||
202 | |||
203 | clean: mostlyclean | ||
204 | |||
205 | distclean: clean | ||
206 | rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m | ||
207 | |||
208 | maintainer-clean: distclean | ||
209 | @echo "This command is intended for maintainers to use;" | ||
210 | @echo "it deletes files that may require special tools to rebuild." | ||
211 | rm -f $(GMOFILES) | ||
212 | |||
213 | distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) | ||
214 | dist distdir: update-po $(DISTFILES) | ||
215 | dists="$(DISTFILES)"; \ | ||
216 | for file in $$dists; do \ | ||
217 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \ | ||
218 | || cp -p $(srcdir)/$$file $(distdir); \ | ||
219 | done | ||
220 | |||
221 | update-po: Makefile | ||
222 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
223 | tmpdir=`pwd`; \ | ||
224 | cd $(srcdir); \ | ||
225 | catalogs='$(CATALOGS)'; \ | ||
226 | for cat in $$catalogs; do \ | ||
227 | cat=`basename $$cat`; \ | ||
228 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
229 | echo "$$lang:"; \ | ||
230 | if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ | ||
231 | if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | ||
232 | rm -f $$tmpdir/$$lang.new.po; \ | ||
233 | else \ | ||
234 | if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | ||
235 | :; \ | ||
236 | else \ | ||
237 | echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | ||
238 | rm -f $$tmpdir/$$lang.new.po; \ | ||
239 | exit 1; \ | ||
240 | fi; \ | ||
241 | fi; \ | ||
242 | else \ | ||
243 | echo "msgmerge for $$cat failed!"; \ | ||
244 | rm -f $$tmpdir/$$lang.new.po; \ | ||
245 | fi; \ | ||
246 | done | ||
247 | |||
248 | # POTFILES is created from POTFILES.in by stripping comments, empty lines | ||
249 | # and Intltool tags (enclosed in square brackets), and appending a full | ||
250 | # relative path to them | ||
251 | POTFILES: POTFILES.in | ||
252 | ( if test 'x$(srcdir)' != 'x.'; then \ | ||
253 | posrcprefix='$(top_srcdir)/'; \ | ||
254 | else \ | ||
255 | posrcprefix="../"; \ | ||
256 | fi; \ | ||
257 | rm -f $@-t $@ \ | ||
258 | && (sed -e '/^#/d' \ | ||
259 | -e "s/^\[.*\] +//" \ | ||
260 | -e '/^[ ]*$$/d' \ | ||
261 | -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | ||
262 | | sed -e '$$s/\\$$//') > $@-t \ | ||
263 | && chmod a-w $@-t \ | ||
264 | && mv $@-t $@ ) | ||
265 | |||
266 | Makefile: Makefile.in.in ../config.status POTFILES | ||
267 | cd .. \ | ||
268 | && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ | ||
269 | $(SHELL) ./config.status | ||
270 | |||
271 | # Tell versions [3.59,3.63) of GNU make not to export all variables. | ||
272 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
273 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in new file mode 100644 index 0000000..dff8371 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in | |||
@@ -0,0 +1,269 @@ | |||
1 | # Makefile for program source directory in GNU NLS utilities package. | ||
2 | # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file file be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU Public License | ||
6 | # but which still want to provide support for the GNU gettext functionality. | ||
7 | # Please note that the actual code is *not* freely available. | ||
8 | # | ||
9 | # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE | ||
10 | # instead of PACKAGE and to look for po2tbl in ./ not in intl/ | ||
11 | # | ||
12 | # - Modified by jacob berkman <jacob@ximian.com> to install | ||
13 | # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize | ||
14 | |||
15 | GETTEXT_PACKAGE = g3dviewer | ||
16 | PACKAGE = g3dviewer | ||
17 | VERSION = 0.2.99.4 | ||
18 | |||
19 | SHELL = /bin/sh | ||
20 | |||
21 | |||
22 | srcdir = . | ||
23 | top_srcdir = .. | ||
24 | |||
25 | |||
26 | prefix = /usr/local | ||
27 | exec_prefix = ${prefix} | ||
28 | datadir = ${prefix}/share | ||
29 | libdir = ${exec_prefix}/lib | ||
30 | localedir = $(libdir)/locale | ||
31 | gnulocaledir = $(datadir)/locale | ||
32 | gettextsrcdir = $(datadir)/glib-2.0/gettext/po | ||
33 | subdir = po | ||
34 | |||
35 | INSTALL = /usr/bin/install -c | ||
36 | INSTALL_DATA = ${INSTALL} -m 644 | ||
37 | MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs | ||
38 | |||
39 | CC = gcc | ||
40 | GENCAT = @GENCAT@ | ||
41 | GMSGFMT = /usr/bin/msgfmt | ||
42 | MSGFMT = /usr/bin/msgfmt | ||
43 | XGETTEXT = /usr/bin/xgettext | ||
44 | MSGMERGE = msgmerge | ||
45 | |||
46 | DEFS = -DHAVE_CONFIG_H | ||
47 | CFLAGS = -g -O2 | ||
48 | CPPFLAGS = | ||
49 | |||
50 | INCLUDES = -I.. -I$(top_srcdir)/intl | ||
51 | |||
52 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) | ||
53 | |||
54 | SOURCES = | ||
55 | POFILES = de.po | ||
56 | GMOFILES = de.gmo | ||
57 | DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ | ||
58 | $(POFILES) $(GMOFILES) $(SOURCES) | ||
59 | |||
60 | POTFILES = \ | ||
61 | |||
62 | CATALOGS = de.gmo | ||
63 | CATOBJEXT = .gmo | ||
64 | INSTOBJEXT = .mo | ||
65 | |||
66 | .SUFFIXES: | ||
67 | .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat | ||
68 | |||
69 | .c.o: | ||
70 | $(COMPILE) $< | ||
71 | |||
72 | .po.pox: | ||
73 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
74 | $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox | ||
75 | |||
76 | .po.mo: | ||
77 | $(MSGFMT) -o $@ $< | ||
78 | |||
79 | .po.gmo: | ||
80 | file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ | ||
81 | && rm -f $$file && $(GMSGFMT) -c -o $$file $< | ||
82 | |||
83 | .po.cat: | ||
84 | sed -f ../intl/po2msg.sed < $< > $*.msg \ | ||
85 | && rm -f $@ && $(GENCAT) $@ $*.msg | ||
86 | |||
87 | |||
88 | all: all-yes | ||
89 | |||
90 | all-yes: $(CATALOGS) | ||
91 | all-no: | ||
92 | |||
93 | $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) | ||
94 | $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ | ||
95 | --add-comments --keyword=_ --keyword=N_ \ | ||
96 | --flag=g_strdup_printf:1:c-format \ | ||
97 | --flag=g_string_printf:2:c-format \ | ||
98 | --flag=g_string_append_printf:2:c-format \ | ||
99 | --flag=g_error_new:3:c-format \ | ||
100 | --flag=g_set_error:4:c-format \ | ||
101 | --flag=g_markup_printf_escaped:1:c-format \ | ||
102 | --flag=g_log:3:c-format \ | ||
103 | --flag=g_print:1:c-format \ | ||
104 | --flag=g_printerr:1:c-format \ | ||
105 | --flag=g_printf:1:c-format \ | ||
106 | --flag=g_fprintf:2:c-format \ | ||
107 | --flag=g_sprintf:2:c-format \ | ||
108 | --flag=g_snprintf:3:c-format \ | ||
109 | --flag=g_scanner_error:2:c-format \ | ||
110 | --flag=g_scanner_warn:2:c-format \ | ||
111 | --files-from=$(srcdir)/POTFILES.in \ | ||
112 | && test ! -f $(GETTEXT_PACKAGE).po \ | ||
113 | || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ | ||
114 | && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) | ||
115 | |||
116 | install: install-exec install-data | ||
117 | install-exec: | ||
118 | install-data: install-data-yes | ||
119 | install-data-no: all | ||
120 | install-data-yes: all | ||
121 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
122 | $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ | ||
123 | else \ | ||
124 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ | ||
125 | fi | ||
126 | @catalogs='$(CATALOGS)'; \ | ||
127 | for cat in $$catalogs; do \ | ||
128 | cat=`basename $$cat`; \ | ||
129 | case "$$cat" in \ | ||
130 | *.gmo) destdir=$(gnulocaledir);; \ | ||
131 | *) destdir=$(localedir);; \ | ||
132 | esac; \ | ||
133 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
134 | dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ | ||
135 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
136 | $(MKINSTALLDIRS) $$dir; \ | ||
137 | else \ | ||
138 | $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ | ||
139 | fi; \ | ||
140 | if test -r $$cat; then \ | ||
141 | $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
142 | echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
143 | else \ | ||
144 | $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
145 | echo "installing $(srcdir)/$$cat as" \ | ||
146 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
147 | fi; \ | ||
148 | if test -r $$cat.m; then \ | ||
149 | $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
150 | echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
151 | else \ | ||
152 | if test -r $(srcdir)/$$cat.m ; then \ | ||
153 | $(INSTALL_DATA) $(srcdir)/$$cat.m \ | ||
154 | $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
155 | echo "installing $(srcdir)/$$cat as" \ | ||
156 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
157 | else \ | ||
158 | true; \ | ||
159 | fi; \ | ||
160 | fi; \ | ||
161 | done | ||
162 | if test "$(PACKAGE)" = "glib"; then \ | ||
163 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
164 | $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ | ||
165 | else \ | ||
166 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ | ||
167 | fi; \ | ||
168 | $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ | ||
169 | $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
170 | else \ | ||
171 | : ; \ | ||
172 | fi | ||
173 | |||
174 | # Define this as empty until I found a useful application. | ||
175 | installcheck: | ||
176 | |||
177 | uninstall: | ||
178 | catalogs='$(CATALOGS)'; \ | ||
179 | for cat in $$catalogs; do \ | ||
180 | cat=`basename $$cat`; \ | ||
181 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
182 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
183 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
184 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
185 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
186 | done | ||
187 | if test "$(PACKAGE)" = "glib"; then \ | ||
188 | rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
189 | fi | ||
190 | |||
191 | check: all | ||
192 | |||
193 | dvi info tags TAGS ID: | ||
194 | |||
195 | mostlyclean: | ||
196 | rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp | ||
197 | rm -fr *.o | ||
198 | |||
199 | clean: mostlyclean | ||
200 | |||
201 | distclean: clean | ||
202 | rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m | ||
203 | |||
204 | maintainer-clean: distclean | ||
205 | @echo "This command is intended for maintainers to use;" | ||
206 | @echo "it deletes files that may require special tools to rebuild." | ||
207 | rm -f $(GMOFILES) | ||
208 | |||
209 | distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) | ||
210 | dist distdir: update-po $(DISTFILES) | ||
211 | dists="$(DISTFILES)"; \ | ||
212 | for file in $$dists; do \ | ||
213 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \ | ||
214 | || cp -p $(srcdir)/$$file $(distdir); \ | ||
215 | done | ||
216 | |||
217 | update-po: Makefile | ||
218 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
219 | tmpdir=`pwd`; \ | ||
220 | cd $(srcdir); \ | ||
221 | catalogs='$(CATALOGS)'; \ | ||
222 | for cat in $$catalogs; do \ | ||
223 | cat=`basename $$cat`; \ | ||
224 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
225 | echo "$$lang:"; \ | ||
226 | if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ | ||
227 | if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | ||
228 | rm -f $$tmpdir/$$lang.new.po; \ | ||
229 | else \ | ||
230 | if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | ||
231 | :; \ | ||
232 | else \ | ||
233 | echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | ||
234 | rm -f $$tmpdir/$$lang.new.po; \ | ||
235 | exit 1; \ | ||
236 | fi; \ | ||
237 | fi; \ | ||
238 | else \ | ||
239 | echo "msgmerge for $$cat failed!"; \ | ||
240 | rm -f $$tmpdir/$$lang.new.po; \ | ||
241 | fi; \ | ||
242 | done | ||
243 | |||
244 | # POTFILES is created from POTFILES.in by stripping comments, empty lines | ||
245 | # and Intltool tags (enclosed in square brackets), and appending a full | ||
246 | # relative path to them | ||
247 | POTFILES: POTFILES.in | ||
248 | ( if test 'x$(srcdir)' != 'x.'; then \ | ||
249 | posrcprefix='$(top_srcdir)/'; \ | ||
250 | else \ | ||
251 | posrcprefix="../"; \ | ||
252 | fi; \ | ||
253 | rm -f $@-t $@ \ | ||
254 | && (sed -e '/^#/d' \ | ||
255 | -e "s/^\[.*\] +//" \ | ||
256 | -e '/^[ ]*$$/d' \ | ||
257 | -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | ||
258 | | sed -e '$$s/\\$$//') > $@-t \ | ||
259 | && chmod a-w $@-t \ | ||
260 | && mv $@-t $@ ) | ||
261 | |||
262 | Makefile: Makefile.in.in ../config.status POTFILES | ||
263 | cd .. \ | ||
264 | && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ | ||
265 | $(SHELL) ./config.status | ||
266 | |||
267 | # Tell versions [3.59,3.63) of GNU make not to export all variables. | ||
268 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
269 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in.in b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in.in new file mode 100644 index 0000000..699855c --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/Makefile.in.in | |||
@@ -0,0 +1,269 @@ | |||
1 | # Makefile for program source directory in GNU NLS utilities package. | ||
2 | # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file file be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU Public License | ||
6 | # but which still want to provide support for the GNU gettext functionality. | ||
7 | # Please note that the actual code is *not* freely available. | ||
8 | # | ||
9 | # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE | ||
10 | # instead of PACKAGE and to look for po2tbl in ./ not in intl/ | ||
11 | # | ||
12 | # - Modified by jacob berkman <jacob@ximian.com> to install | ||
13 | # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize | ||
14 | |||
15 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
16 | PACKAGE = @PACKAGE@ | ||
17 | VERSION = @VERSION@ | ||
18 | |||
19 | SHELL = /bin/sh | ||
20 | @SET_MAKE@ | ||
21 | |||
22 | srcdir = @srcdir@ | ||
23 | top_srcdir = @top_srcdir@ | ||
24 | VPATH = @srcdir@ | ||
25 | |||
26 | prefix = @prefix@ | ||
27 | exec_prefix = @exec_prefix@ | ||
28 | datadir = @datadir@ | ||
29 | libdir = @libdir@ | ||
30 | localedir = $(libdir)/locale | ||
31 | gnulocaledir = $(datadir)/locale | ||
32 | gettextsrcdir = $(datadir)/glib-2.0/gettext/po | ||
33 | subdir = po | ||
34 | |||
35 | INSTALL = @INSTALL@ | ||
36 | INSTALL_DATA = @INSTALL_DATA@ | ||
37 | MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ | ||
38 | |||
39 | CC = @CC@ | ||
40 | GENCAT = @GENCAT@ | ||
41 | GMSGFMT = @GMSGFMT@ | ||
42 | MSGFMT = @MSGFMT@ | ||
43 | XGETTEXT = @XGETTEXT@ | ||
44 | MSGMERGE = msgmerge | ||
45 | |||
46 | DEFS = @DEFS@ | ||
47 | CFLAGS = @CFLAGS@ | ||
48 | CPPFLAGS = @CPPFLAGS@ | ||
49 | |||
50 | INCLUDES = -I.. -I$(top_srcdir)/intl | ||
51 | |||
52 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) | ||
53 | |||
54 | SOURCES = | ||
55 | POFILES = @POFILES@ | ||
56 | GMOFILES = @GMOFILES@ | ||
57 | DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ | ||
58 | $(POFILES) $(GMOFILES) $(SOURCES) | ||
59 | |||
60 | POTFILES = \ | ||
61 | |||
62 | CATALOGS = @CATALOGS@ | ||
63 | CATOBJEXT = @CATOBJEXT@ | ||
64 | INSTOBJEXT = @INSTOBJEXT@ | ||
65 | |||
66 | .SUFFIXES: | ||
67 | .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat | ||
68 | |||
69 | .c.o: | ||
70 | $(COMPILE) $< | ||
71 | |||
72 | .po.pox: | ||
73 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
74 | $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox | ||
75 | |||
76 | .po.mo: | ||
77 | $(MSGFMT) -o $@ $< | ||
78 | |||
79 | .po.gmo: | ||
80 | file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ | ||
81 | && rm -f $$file && $(GMSGFMT) -c -o $$file $< | ||
82 | |||
83 | .po.cat: | ||
84 | sed -f ../intl/po2msg.sed < $< > $*.msg \ | ||
85 | && rm -f $@ && $(GENCAT) $@ $*.msg | ||
86 | |||
87 | |||
88 | all: all-@USE_NLS@ | ||
89 | |||
90 | all-yes: $(CATALOGS) | ||
91 | all-no: | ||
92 | |||
93 | $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) | ||
94 | $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ | ||
95 | --add-comments --keyword=_ --keyword=N_ \ | ||
96 | --flag=g_strdup_printf:1:c-format \ | ||
97 | --flag=g_string_printf:2:c-format \ | ||
98 | --flag=g_string_append_printf:2:c-format \ | ||
99 | --flag=g_error_new:3:c-format \ | ||
100 | --flag=g_set_error:4:c-format \ | ||
101 | --flag=g_markup_printf_escaped:1:c-format \ | ||
102 | --flag=g_log:3:c-format \ | ||
103 | --flag=g_print:1:c-format \ | ||
104 | --flag=g_printerr:1:c-format \ | ||
105 | --flag=g_printf:1:c-format \ | ||
106 | --flag=g_fprintf:2:c-format \ | ||
107 | --flag=g_sprintf:2:c-format \ | ||
108 | --flag=g_snprintf:3:c-format \ | ||
109 | --flag=g_scanner_error:2:c-format \ | ||
110 | --flag=g_scanner_warn:2:c-format \ | ||
111 | --files-from=$(srcdir)/POTFILES.in \ | ||
112 | && test ! -f $(GETTEXT_PACKAGE).po \ | ||
113 | || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ | ||
114 | && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) | ||
115 | |||
116 | install: install-exec install-data | ||
117 | install-exec: | ||
118 | install-data: install-data-@USE_NLS@ | ||
119 | install-data-no: all | ||
120 | install-data-yes: all | ||
121 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
122 | $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ | ||
123 | else \ | ||
124 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ | ||
125 | fi | ||
126 | @catalogs='$(CATALOGS)'; \ | ||
127 | for cat in $$catalogs; do \ | ||
128 | cat=`basename $$cat`; \ | ||
129 | case "$$cat" in \ | ||
130 | *.gmo) destdir=$(gnulocaledir);; \ | ||
131 | *) destdir=$(localedir);; \ | ||
132 | esac; \ | ||
133 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
134 | dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ | ||
135 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
136 | $(MKINSTALLDIRS) $$dir; \ | ||
137 | else \ | ||
138 | $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ | ||
139 | fi; \ | ||
140 | if test -r $$cat; then \ | ||
141 | $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
142 | echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
143 | else \ | ||
144 | $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
145 | echo "installing $(srcdir)/$$cat as" \ | ||
146 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ | ||
147 | fi; \ | ||
148 | if test -r $$cat.m; then \ | ||
149 | $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
150 | echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
151 | else \ | ||
152 | if test -r $(srcdir)/$$cat.m ; then \ | ||
153 | $(INSTALL_DATA) $(srcdir)/$$cat.m \ | ||
154 | $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
155 | echo "installing $(srcdir)/$$cat as" \ | ||
156 | "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ | ||
157 | else \ | ||
158 | true; \ | ||
159 | fi; \ | ||
160 | fi; \ | ||
161 | done | ||
162 | if test "$(PACKAGE)" = "glib"; then \ | ||
163 | if test -r "$(MKINSTALLDIRS)"; then \ | ||
164 | $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ | ||
165 | else \ | ||
166 | $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ | ||
167 | fi; \ | ||
168 | $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ | ||
169 | $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
170 | else \ | ||
171 | : ; \ | ||
172 | fi | ||
173 | |||
174 | # Define this as empty until I found a useful application. | ||
175 | installcheck: | ||
176 | |||
177 | uninstall: | ||
178 | catalogs='$(CATALOGS)'; \ | ||
179 | for cat in $$catalogs; do \ | ||
180 | cat=`basename $$cat`; \ | ||
181 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
182 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
183 | rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
184 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ | ||
185 | rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ | ||
186 | done | ||
187 | if test "$(PACKAGE)" = "glib"; then \ | ||
188 | rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ | ||
189 | fi | ||
190 | |||
191 | check: all | ||
192 | |||
193 | dvi info tags TAGS ID: | ||
194 | |||
195 | mostlyclean: | ||
196 | rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp | ||
197 | rm -fr *.o | ||
198 | |||
199 | clean: mostlyclean | ||
200 | |||
201 | distclean: clean | ||
202 | rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m | ||
203 | |||
204 | maintainer-clean: distclean | ||
205 | @echo "This command is intended for maintainers to use;" | ||
206 | @echo "it deletes files that may require special tools to rebuild." | ||
207 | rm -f $(GMOFILES) | ||
208 | |||
209 | distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) | ||
210 | dist distdir: update-po $(DISTFILES) | ||
211 | dists="$(DISTFILES)"; \ | ||
212 | for file in $$dists; do \ | ||
213 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \ | ||
214 | || cp -p $(srcdir)/$$file $(distdir); \ | ||
215 | done | ||
216 | |||
217 | update-po: Makefile | ||
218 | $(MAKE) $(GETTEXT_PACKAGE).pot | ||
219 | tmpdir=`pwd`; \ | ||
220 | cd $(srcdir); \ | ||
221 | catalogs='$(CATALOGS)'; \ | ||
222 | for cat in $$catalogs; do \ | ||
223 | cat=`basename $$cat`; \ | ||
224 | lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | ||
225 | echo "$$lang:"; \ | ||
226 | if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ | ||
227 | if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | ||
228 | rm -f $$tmpdir/$$lang.new.po; \ | ||
229 | else \ | ||
230 | if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | ||
231 | :; \ | ||
232 | else \ | ||
233 | echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | ||
234 | rm -f $$tmpdir/$$lang.new.po; \ | ||
235 | exit 1; \ | ||
236 | fi; \ | ||
237 | fi; \ | ||
238 | else \ | ||
239 | echo "msgmerge for $$cat failed!"; \ | ||
240 | rm -f $$tmpdir/$$lang.new.po; \ | ||
241 | fi; \ | ||
242 | done | ||
243 | |||
244 | # POTFILES is created from POTFILES.in by stripping comments, empty lines | ||
245 | # and Intltool tags (enclosed in square brackets), and appending a full | ||
246 | # relative path to them | ||
247 | POTFILES: POTFILES.in | ||
248 | ( if test 'x$(srcdir)' != 'x.'; then \ | ||
249 | posrcprefix='$(top_srcdir)/'; \ | ||
250 | else \ | ||
251 | posrcprefix="../"; \ | ||
252 | fi; \ | ||
253 | rm -f $@-t $@ \ | ||
254 | && (sed -e '/^#/d' \ | ||
255 | -e "s/^\[.*\] +//" \ | ||
256 | -e '/^[ ]*$$/d' \ | ||
257 | -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | ||
258 | | sed -e '$$s/\\$$//') > $@-t \ | ||
259 | && chmod a-w $@-t \ | ||
260 | && mv $@-t $@ ) | ||
261 | |||
262 | Makefile: Makefile.in.in ../config.status POTFILES | ||
263 | cd .. \ | ||
264 | && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ | ||
265 | $(SHELL) ./config.status | ||
266 | |||
267 | # Tell versions [3.59,3.63) of GNU make not to export all variables. | ||
268 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
269 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES b/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES new file mode 100644 index 0000000..eaf2b81 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES | |||
@@ -0,0 +1,4 @@ | |||
1 | ../src/gui_glade.c \ | ||
2 | ../src/gui_callbacks.c \ | ||
3 | ../src/gui_infowin.c \ | ||
4 | ../glade/g3dviewer.glade | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES.in b/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES.in new file mode 100644 index 0000000..9fc8071 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/POTFILES.in | |||
@@ -0,0 +1,4 @@ | |||
1 | src/gui_glade.c | ||
2 | src/gui_callbacks.c | ||
3 | src/gui_infowin.c | ||
4 | glade/g3dviewer.glade | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/de.gmo b/src/others/mimesh/g3dviewer-0.2.99.4/po/de.gmo new file mode 100644 index 0000000..eefced6 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/de.gmo | |||
Binary files differ | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/de.po b/src/others/mimesh/g3dviewer-0.2.99.4/po/de.po new file mode 100644 index 0000000..339b8db --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/de.po | |||
@@ -0,0 +1,149 @@ | |||
1 | # German translations for g3dviewer package. | ||
2 | # Copyright (C) 2006 THE g3dviewer'S COPYRIGHT HOLDER | ||
3 | # This file is distributed under the same license as the g3dviewer package. | ||
4 | # Markus Dahms <mad@automagically.de>, 2006. | ||
5 | # | ||
6 | msgid "" | ||
7 | msgstr "" | ||
8 | "Project-Id-Version: g3dviewer 0.2.99.2\n" | ||
9 | "Report-Msgid-Bugs-To: \n" | ||
10 | "POT-Creation-Date: 2006-11-15 10:56+0100\n" | ||
11 | "PO-Revision-Date: 2006-01-31 21:37+0100\n" | ||
12 | "Last-Translator: Markus Dahms <mad@automagically.de>\n" | ||
13 | "Language-Team: German <translation-team-de@lists.sourceforge.net>\n" | ||
14 | "MIME-Version: 1.0\n" | ||
15 | "Content-Type: text/plain; charset=UTF-8\n" | ||
16 | "Content-Transfer-Encoding: 8bit\n" | ||
17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
18 | |||
19 | #: src/gui_glade.c:67 | ||
20 | msgid "all files" | ||
21 | msgstr "Alle Dateien" | ||
22 | |||
23 | #: src/gui_infowin.c:310 | ||
24 | msgid "(unnamed material)" | ||
25 | msgstr "(unbenanntes Material)" | ||
26 | |||
27 | #: src/gui_infowin.c:331 | ||
28 | msgid "color" | ||
29 | msgstr "Farbe" | ||
30 | |||
31 | #: src/gui_infowin.c:379 | ||
32 | msgid "number of vertices" | ||
33 | msgstr "Anzahl der Punkte" | ||
34 | |||
35 | #: src/gui_infowin.c:391 | ||
36 | msgid "number of faces" | ||
37 | msgstr "Anzahl der Flächen" | ||
38 | |||
39 | #: src/gui_infowin.c:403 | ||
40 | msgid "number of materials" | ||
41 | msgstr "Anzahl der Materialien" | ||
42 | |||
43 | #: src/gui_infowin.c:430 | ||
44 | msgid "model" | ||
45 | msgstr "" | ||
46 | |||
47 | #: glade/g3dviewer.glade:8 | ||
48 | msgid "G3DViewer" | ||
49 | msgstr "G3DViewer" | ||
50 | |||
51 | #: glade/g3dviewer.glade:42 | ||
52 | msgid "_File" | ||
53 | msgstr "_Datei" | ||
54 | |||
55 | #: glade/g3dviewer.glade:75 | ||
56 | msgid "_Screenshot" | ||
57 | msgstr "" | ||
58 | |||
59 | #: glade/g3dviewer.glade:115 | ||
60 | msgid "_View" | ||
61 | msgstr "_Ansicht" | ||
62 | |||
63 | #: glade/g3dviewer.glade:124 | ||
64 | msgid "Show _menu bar" | ||
65 | msgstr "_Menüleiste zeigen" | ||
66 | |||
67 | #: glade/g3dviewer.glade:134 | ||
68 | msgid "Show t_ool bar" | ||
69 | msgstr "_Werkzeugleiste zeigen" | ||
70 | |||
71 | #: glade/g3dviewer.glade:144 | ||
72 | msgid "_Fullscreen" | ||
73 | msgstr "" | ||
74 | |||
75 | #: glade/g3dviewer.glade:176 | ||
76 | msgid "_Wireframe" | ||
77 | msgstr "_Drahtgitter" | ||
78 | |||
79 | #: glade/g3dviewer.glade:186 | ||
80 | msgid "_Specular lighting" | ||
81 | msgstr "_Spiegelndes Licht" | ||
82 | |||
83 | #: glade/g3dviewer.glade:196 | ||
84 | msgid "S_hininess" | ||
85 | msgstr "Glanz" | ||
86 | |||
87 | #: glade/g3dviewer.glade:206 | ||
88 | msgid "T_wo-sided faces" | ||
89 | msgstr "_Beidseitige Flächen" | ||
90 | |||
91 | #: glade/g3dviewer.glade:216 | ||
92 | msgid "_Textures" | ||
93 | msgstr "_Texturen" | ||
94 | |||
95 | #: glade/g3dviewer.glade:232 | ||
96 | msgid "_Background color" | ||
97 | msgstr "Hintergrund_farbe" | ||
98 | |||
99 | #: glade/g3dviewer.glade:257 | ||
100 | msgid "_Help" | ||
101 | msgstr "_Hilfe" | ||
102 | |||
103 | #: glade/g3dviewer.glade:266 | ||
104 | msgid "_Info" | ||
105 | msgstr "_Info" | ||
106 | |||
107 | #: glade/g3dviewer.glade:430 | ||
108 | msgid "Model Properties" | ||
109 | msgstr "Modelleigenschaften" | ||
110 | |||
111 | #: glade/g3dviewer.glade:521 | ||
112 | msgid "Parts" | ||
113 | msgstr "Teile" | ||
114 | |||
115 | #: glade/g3dviewer.glade:660 | ||
116 | msgid "Protocol" | ||
117 | msgstr "" | ||
118 | |||
119 | #: glade/g3dviewer.glade:725 | ||
120 | msgid "About G3DViewer" | ||
121 | msgstr "Ãœber G3DViewer" | ||
122 | |||
123 | #: glade/g3dviewer.glade:779 | ||
124 | #, fuzzy | ||
125 | msgid "<b>About G3DViewer</b>" | ||
126 | msgstr "Ãœber G3DViewer" | ||
127 | |||
128 | #: glade/g3dviewer.glade:821 | ||
129 | #, fuzzy | ||
130 | msgid "" | ||
131 | "<span foreground=\"blue\">http://automagically.de/?g3dviewer</span>\n" | ||
132 | "\n" | ||
133 | "(C) 2005, 2006 Markus Dahms\n" | ||
134 | "<mad@automagically.de>" | ||
135 | msgstr "" | ||
136 | "<b>Ãœber G3DViewer</b>\n" | ||
137 | "\n" | ||
138 | "<span foreground=\"blue\">http://automagically.de/?g3dviewer</span>\n" | ||
139 | "\n" | ||
140 | "(C) 2005, 2006 Markus Dahms\n" | ||
141 | "<mad@automagically.de>" | ||
142 | |||
143 | #: glade/g3dviewer.glade:855 | ||
144 | msgid "Open Model" | ||
145 | msgstr "Modell öffnen" | ||
146 | |||
147 | #: glade/g3dviewer.glade:919 | ||
148 | msgid "Select background color" | ||
149 | msgstr "Hintergrundfarbe wählen" | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/po/g3dviewer.pot b/src/others/mimesh/g3dviewer-0.2.99.4/po/g3dviewer.pot new file mode 100644 index 0000000..a545349 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/po/g3dviewer.pot | |||
@@ -0,0 +1,141 @@ | |||
1 | # SOME DESCRIPTIVE TITLE. | ||
2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
3 | # This file is distributed under the same license as the PACKAGE package. | ||
4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
5 | # | ||
6 | #, fuzzy | ||
7 | msgid "" | ||
8 | msgstr "" | ||
9 | "Project-Id-Version: PACKAGE VERSION\n" | ||
10 | "Report-Msgid-Bugs-To: \n" | ||
11 | "POT-Creation-Date: 2006-11-15 10:56+0100\n" | ||
12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
14 | "Language-Team: LANGUAGE <LL@li.org>\n" | ||
15 | "MIME-Version: 1.0\n" | ||
16 | "Content-Type: text/plain; charset=CHARSET\n" | ||
17 | "Content-Transfer-Encoding: 8bit\n" | ||
18 | |||
19 | #: src/gui_glade.c:67 | ||
20 | msgid "all files" | ||
21 | msgstr "" | ||
22 | |||
23 | #: src/gui_infowin.c:310 | ||
24 | msgid "(unnamed material)" | ||
25 | msgstr "" | ||
26 | |||
27 | #: src/gui_infowin.c:331 | ||
28 | msgid "color" | ||
29 | msgstr "" | ||
30 | |||
31 | #: src/gui_infowin.c:379 | ||
32 | msgid "number of vertices" | ||
33 | msgstr "" | ||
34 | |||
35 | #: src/gui_infowin.c:391 | ||
36 | msgid "number of faces" | ||
37 | msgstr "" | ||
38 | |||
39 | #: src/gui_infowin.c:403 | ||
40 | msgid "number of materials" | ||
41 | msgstr "" | ||
42 | |||
43 | #: src/gui_infowin.c:430 | ||
44 | msgid "model" | ||
45 | msgstr "" | ||
46 | |||
47 | #: glade/g3dviewer.glade:8 | ||
48 | msgid "G3DViewer" | ||
49 | msgstr "" | ||
50 | |||
51 | #: glade/g3dviewer.glade:42 | ||
52 | msgid "_File" | ||
53 | msgstr "" | ||
54 | |||
55 | #: glade/g3dviewer.glade:75 | ||
56 | msgid "_Screenshot" | ||
57 | msgstr "" | ||
58 | |||
59 | #: glade/g3dviewer.glade:115 | ||
60 | msgid "_View" | ||
61 | msgstr "" | ||
62 | |||
63 | #: glade/g3dviewer.glade:124 | ||
64 | msgid "Show _menu bar" | ||
65 | msgstr "" | ||
66 | |||
67 | #: glade/g3dviewer.glade:134 | ||
68 | msgid "Show t_ool bar" | ||
69 | msgstr "" | ||
70 | |||
71 | #: glade/g3dviewer.glade:144 | ||
72 | msgid "_Fullscreen" | ||
73 | msgstr "" | ||
74 | |||
75 | #: glade/g3dviewer.glade:176 | ||
76 | msgid "_Wireframe" | ||
77 | msgstr "" | ||
78 | |||
79 | #: glade/g3dviewer.glade:186 | ||
80 | msgid "_Specular lighting" | ||
81 | msgstr "" | ||
82 | |||
83 | #: glade/g3dviewer.glade:196 | ||
84 | msgid "S_hininess" | ||
85 | msgstr "" | ||
86 | |||
87 | #: glade/g3dviewer.glade:206 | ||
88 | msgid "T_wo-sided faces" | ||
89 | msgstr "" | ||
90 | |||
91 | #: glade/g3dviewer.glade:216 | ||
92 | msgid "_Textures" | ||
93 | msgstr "" | ||
94 | |||
95 | #: glade/g3dviewer.glade:232 | ||
96 | msgid "_Background color" | ||
97 | msgstr "" | ||
98 | |||
99 | #: glade/g3dviewer.glade:257 | ||
100 | msgid "_Help" | ||
101 | msgstr "" | ||
102 | |||
103 | #: glade/g3dviewer.glade:266 | ||
104 | msgid "_Info" | ||
105 | msgstr "" | ||
106 | |||
107 | #: glade/g3dviewer.glade:430 | ||
108 | msgid "Model Properties" | ||
109 | msgstr "" | ||
110 | |||
111 | #: glade/g3dviewer.glade:521 | ||
112 | msgid "Parts" | ||
113 | msgstr "" | ||
114 | |||
115 | #: glade/g3dviewer.glade:660 | ||
116 | msgid "Protocol" | ||
117 | msgstr "" | ||
118 | |||
119 | #: glade/g3dviewer.glade:725 | ||
120 | msgid "About G3DViewer" | ||
121 | msgstr "" | ||
122 | |||
123 | #: glade/g3dviewer.glade:779 | ||
124 | msgid "<b>About G3DViewer</b>" | ||
125 | msgstr "" | ||
126 | |||
127 | #: glade/g3dviewer.glade:821 | ||
128 | msgid "" | ||
129 | "<span foreground=\"blue\">http://automagically.de/?g3dviewer</span>\n" | ||
130 | "\n" | ||
131 | "(C) 2005, 2006 Markus Dahms\n" | ||
132 | "<mad@automagically.de>" | ||
133 | msgstr "" | ||
134 | |||
135 | #: glade/g3dviewer.glade:855 | ||
136 | msgid "Open Model" | ||
137 | msgstr "" | ||
138 | |||
139 | #: glade/g3dviewer.glade:919 | ||
140 | msgid "Select background color" | ||
141 | msgstr "" | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile new file mode 100644 index 0000000..b7650a7 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile | |||
@@ -0,0 +1,719 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # src/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | |||
128 | datadir = ${datarootdir} | ||
129 | datarootdir = ${prefix}/share | ||
130 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
131 | dvidir = ${docdir} | ||
132 | exec_prefix = ${prefix} | ||
133 | host_alias = | ||
134 | htmldir = ${docdir} | ||
135 | includedir = ${prefix}/include | ||
136 | infodir = ${datarootdir}/info | ||
137 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
138 | libdir = ${exec_prefix}/lib | ||
139 | libexecdir = ${exec_prefix}/libexec | ||
140 | localedir = $(datadir)/locale | ||
141 | localstatedir = ${prefix}/var | ||
142 | mandir = ${datarootdir}/man | ||
143 | oldincludedir = /usr/include | ||
144 | pdfdir = ${docdir} | ||
145 | prefix = /usr/local | ||
146 | program_transform_name = s,x,x, | ||
147 | psdir = ${docdir} | ||
148 | sbindir = ${exec_prefix}/sbin | ||
149 | sharedstatedir = ${prefix}/com | ||
150 | sysconfdir = ${prefix}/etc | ||
151 | target_alias = | ||
152 | bin_PROGRAMS = g3dviewer | ||
153 | |||
154 | g3dviewer_SOURCES = \ | ||
155 | main.c main.h \ | ||
156 | gl.c gl.h \ | ||
157 | glarea.h glarea.c \ | ||
158 | trackball.c trackball.h \ | ||
159 | gui_glade.c gui_glade.h \ | ||
160 | gui_infowin.c gui_infowin.h \ | ||
161 | gui_log.c gui_log.h \ | ||
162 | screenshot.c screenshot.h \ | ||
163 | gui_callbacks.c \ | ||
164 | texture.c texture.h \ | ||
165 | model.h model.c | ||
166 | |||
167 | |||
168 | g3dviewer_CFLAGS = \ | ||
169 | -I$(top_srcdir) -I$(top_builddir) \ | ||
170 | -Wall -ansi \ | ||
171 | -DLOCALEDIR=\"$(localedir)\" \ | ||
172 | -O2 \ | ||
173 | -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include \ | ||
174 | -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 \ | ||
175 | \ | ||
176 | -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include \ | ||
177 | -DDEBUG=0 | ||
178 | |||
179 | |||
180 | g3dviewer_LDFLAGS = \ | ||
181 | -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 \ | ||
182 | -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lg3d -lglib-2.0 | ||
183 | |||
184 | subdir = src | ||
185 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
186 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
187 | CONFIG_HEADER = $(top_builddir)/config.h | ||
188 | CONFIG_CLEAN_FILES = | ||
189 | bin_PROGRAMS = g3dviewer$(EXEEXT) | ||
190 | PROGRAMS = $(bin_PROGRAMS) | ||
191 | |||
192 | am_g3dviewer_OBJECTS = g3dviewer-main.$(OBJEXT) g3dviewer-gl.$(OBJEXT) \ | ||
193 | g3dviewer-glarea.$(OBJEXT) g3dviewer-trackball.$(OBJEXT) \ | ||
194 | g3dviewer-gui_glade.$(OBJEXT) g3dviewer-gui_infowin.$(OBJEXT) \ | ||
195 | g3dviewer-gui_log.$(OBJEXT) g3dviewer-screenshot.$(OBJEXT) \ | ||
196 | g3dviewer-gui_callbacks.$(OBJEXT) g3dviewer-texture.$(OBJEXT) \ | ||
197 | g3dviewer-model.$(OBJEXT) | ||
198 | g3dviewer_OBJECTS = $(am_g3dviewer_OBJECTS) | ||
199 | g3dviewer_LDADD = $(LDADD) | ||
200 | g3dviewer_DEPENDENCIES = | ||
201 | |||
202 | DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) | ||
203 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
204 | am__depfiles_maybe = depfiles | ||
205 | DEP_FILES = ./$(DEPDIR)/g3dviewer-gl.Po \ | ||
206 | ./$(DEPDIR)/g3dviewer-glarea.Po \ | ||
207 | ./$(DEPDIR)/g3dviewer-gui_callbacks.Po \ | ||
208 | ./$(DEPDIR)/g3dviewer-gui_glade.Po \ | ||
209 | ./$(DEPDIR)/g3dviewer-gui_infowin.Po \ | ||
210 | ./$(DEPDIR)/g3dviewer-gui_log.Po \ | ||
211 | ./$(DEPDIR)/g3dviewer-main.Po \ | ||
212 | ./$(DEPDIR)/g3dviewer-model.Po \ | ||
213 | ./$(DEPDIR)/g3dviewer-screenshot.Po \ | ||
214 | ./$(DEPDIR)/g3dviewer-texture.Po \ | ||
215 | ./$(DEPDIR)/g3dviewer-trackball.Po | ||
216 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
217 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
218 | CCLD = $(CC) | ||
219 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
220 | DIST_SOURCES = $(g3dviewer_SOURCES) | ||
221 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
222 | SOURCES = $(g3dviewer_SOURCES) | ||
223 | |||
224 | all: all-am | ||
225 | |||
226 | .SUFFIXES: | ||
227 | .SUFFIXES: .c .o .obj | ||
228 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
229 | cd $(top_srcdir) && \ | ||
230 | $(AUTOMAKE) --gnu src/Makefile | ||
231 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
232 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
233 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
234 | install-binPROGRAMS: $(bin_PROGRAMS) | ||
235 | @$(NORMAL_INSTALL) | ||
236 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
237 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
238 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
239 | if test -f $$p \ | ||
240 | ; then \ | ||
241 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
242 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ | ||
243 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ | ||
244 | else :; fi; \ | ||
245 | done | ||
246 | |||
247 | uninstall-binPROGRAMS: | ||
248 | @$(NORMAL_UNINSTALL) | ||
249 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
250 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
251 | echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ | ||
252 | rm -f $(DESTDIR)$(bindir)/$$f; \ | ||
253 | done | ||
254 | |||
255 | clean-binPROGRAMS: | ||
256 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | ||
257 | g3dviewer$(EXEEXT): $(g3dviewer_OBJECTS) $(g3dviewer_DEPENDENCIES) | ||
258 | @rm -f g3dviewer$(EXEEXT) | ||
259 | $(LINK) $(g3dviewer_LDFLAGS) $(g3dviewer_OBJECTS) $(g3dviewer_LDADD) $(LIBS) | ||
260 | |||
261 | mostlyclean-compile: | ||
262 | -rm -f *.$(OBJEXT) core *.core | ||
263 | |||
264 | distclean-compile: | ||
265 | -rm -f *.tab.c | ||
266 | |||
267 | include ./$(DEPDIR)/g3dviewer-gl.Po | ||
268 | include ./$(DEPDIR)/g3dviewer-glarea.Po | ||
269 | include ./$(DEPDIR)/g3dviewer-gui_callbacks.Po | ||
270 | include ./$(DEPDIR)/g3dviewer-gui_glade.Po | ||
271 | include ./$(DEPDIR)/g3dviewer-gui_infowin.Po | ||
272 | include ./$(DEPDIR)/g3dviewer-gui_log.Po | ||
273 | include ./$(DEPDIR)/g3dviewer-main.Po | ||
274 | include ./$(DEPDIR)/g3dviewer-model.Po | ||
275 | include ./$(DEPDIR)/g3dviewer-screenshot.Po | ||
276 | include ./$(DEPDIR)/g3dviewer-texture.Po | ||
277 | include ./$(DEPDIR)/g3dviewer-trackball.Po | ||
278 | |||
279 | .c.o: | ||
280 | if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
281 | -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ | ||
282 | then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
283 | else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
284 | fi | ||
285 | # source='$<' object='$@' libtool=no \ | ||
286 | # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ | ||
287 | # $(CCDEPMODE) $(depcomp) \ | ||
288 | # $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< | ||
289 | |||
290 | .c.obj: | ||
291 | if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
292 | -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ | ||
293 | then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
294 | else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
295 | fi | ||
296 | # source='$<' object='$@' libtool=no \ | ||
297 | # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ | ||
298 | # $(CCDEPMODE) $(depcomp) \ | ||
299 | # $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | ||
300 | |||
301 | g3dviewer-main.o: main.c | ||
302 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-main.o -MD -MP -MF "$(DEPDIR)/g3dviewer-main.Tpo" \ | ||
303 | -c -o g3dviewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \ | ||
304 | then mv -f "$(DEPDIR)/g3dviewer-main.Tpo" "$(DEPDIR)/g3dviewer-main.Po"; \ | ||
305 | else rm -f "$(DEPDIR)/g3dviewer-main.Tpo"; exit 1; \ | ||
306 | fi | ||
307 | # source='main.c' object='g3dviewer-main.o' libtool=no \ | ||
308 | # depfile='$(DEPDIR)/g3dviewer-main.Po' tmpdepfile='$(DEPDIR)/g3dviewer-main.TPo' \ | ||
309 | # $(CCDEPMODE) $(depcomp) \ | ||
310 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c | ||
311 | |||
312 | g3dviewer-main.obj: main.c | ||
313 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-main.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-main.Tpo" \ | ||
314 | -c -o g3dviewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \ | ||
315 | then mv -f "$(DEPDIR)/g3dviewer-main.Tpo" "$(DEPDIR)/g3dviewer-main.Po"; \ | ||
316 | else rm -f "$(DEPDIR)/g3dviewer-main.Tpo"; exit 1; \ | ||
317 | fi | ||
318 | # source='main.c' object='g3dviewer-main.obj' libtool=no \ | ||
319 | # depfile='$(DEPDIR)/g3dviewer-main.Po' tmpdepfile='$(DEPDIR)/g3dviewer-main.TPo' \ | ||
320 | # $(CCDEPMODE) $(depcomp) \ | ||
321 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` | ||
322 | |||
323 | g3dviewer-gl.o: gl.c | ||
324 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gl.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gl.Tpo" \ | ||
325 | -c -o g3dviewer-gl.o `test -f 'gl.c' || echo '$(srcdir)/'`gl.c; \ | ||
326 | then mv -f "$(DEPDIR)/g3dviewer-gl.Tpo" "$(DEPDIR)/g3dviewer-gl.Po"; \ | ||
327 | else rm -f "$(DEPDIR)/g3dviewer-gl.Tpo"; exit 1; \ | ||
328 | fi | ||
329 | # source='gl.c' object='g3dviewer-gl.o' libtool=no \ | ||
330 | # depfile='$(DEPDIR)/g3dviewer-gl.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gl.TPo' \ | ||
331 | # $(CCDEPMODE) $(depcomp) \ | ||
332 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gl.o `test -f 'gl.c' || echo '$(srcdir)/'`gl.c | ||
333 | |||
334 | g3dviewer-gl.obj: gl.c | ||
335 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gl.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gl.Tpo" \ | ||
336 | -c -o g3dviewer-gl.obj `if test -f 'gl.c'; then $(CYGPATH_W) 'gl.c'; else $(CYGPATH_W) '$(srcdir)/gl.c'; fi`; \ | ||
337 | then mv -f "$(DEPDIR)/g3dviewer-gl.Tpo" "$(DEPDIR)/g3dviewer-gl.Po"; \ | ||
338 | else rm -f "$(DEPDIR)/g3dviewer-gl.Tpo"; exit 1; \ | ||
339 | fi | ||
340 | # source='gl.c' object='g3dviewer-gl.obj' libtool=no \ | ||
341 | # depfile='$(DEPDIR)/g3dviewer-gl.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gl.TPo' \ | ||
342 | # $(CCDEPMODE) $(depcomp) \ | ||
343 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gl.obj `if test -f 'gl.c'; then $(CYGPATH_W) 'gl.c'; else $(CYGPATH_W) '$(srcdir)/gl.c'; fi` | ||
344 | |||
345 | g3dviewer-glarea.o: glarea.c | ||
346 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-glarea.o -MD -MP -MF "$(DEPDIR)/g3dviewer-glarea.Tpo" \ | ||
347 | -c -o g3dviewer-glarea.o `test -f 'glarea.c' || echo '$(srcdir)/'`glarea.c; \ | ||
348 | then mv -f "$(DEPDIR)/g3dviewer-glarea.Tpo" "$(DEPDIR)/g3dviewer-glarea.Po"; \ | ||
349 | else rm -f "$(DEPDIR)/g3dviewer-glarea.Tpo"; exit 1; \ | ||
350 | fi | ||
351 | # source='glarea.c' object='g3dviewer-glarea.o' libtool=no \ | ||
352 | # depfile='$(DEPDIR)/g3dviewer-glarea.Po' tmpdepfile='$(DEPDIR)/g3dviewer-glarea.TPo' \ | ||
353 | # $(CCDEPMODE) $(depcomp) \ | ||
354 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-glarea.o `test -f 'glarea.c' || echo '$(srcdir)/'`glarea.c | ||
355 | |||
356 | g3dviewer-glarea.obj: glarea.c | ||
357 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-glarea.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-glarea.Tpo" \ | ||
358 | -c -o g3dviewer-glarea.obj `if test -f 'glarea.c'; then $(CYGPATH_W) 'glarea.c'; else $(CYGPATH_W) '$(srcdir)/glarea.c'; fi`; \ | ||
359 | then mv -f "$(DEPDIR)/g3dviewer-glarea.Tpo" "$(DEPDIR)/g3dviewer-glarea.Po"; \ | ||
360 | else rm -f "$(DEPDIR)/g3dviewer-glarea.Tpo"; exit 1; \ | ||
361 | fi | ||
362 | # source='glarea.c' object='g3dviewer-glarea.obj' libtool=no \ | ||
363 | # depfile='$(DEPDIR)/g3dviewer-glarea.Po' tmpdepfile='$(DEPDIR)/g3dviewer-glarea.TPo' \ | ||
364 | # $(CCDEPMODE) $(depcomp) \ | ||
365 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-glarea.obj `if test -f 'glarea.c'; then $(CYGPATH_W) 'glarea.c'; else $(CYGPATH_W) '$(srcdir)/glarea.c'; fi` | ||
366 | |||
367 | g3dviewer-trackball.o: trackball.c | ||
368 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-trackball.o -MD -MP -MF "$(DEPDIR)/g3dviewer-trackball.Tpo" \ | ||
369 | -c -o g3dviewer-trackball.o `test -f 'trackball.c' || echo '$(srcdir)/'`trackball.c; \ | ||
370 | then mv -f "$(DEPDIR)/g3dviewer-trackball.Tpo" "$(DEPDIR)/g3dviewer-trackball.Po"; \ | ||
371 | else rm -f "$(DEPDIR)/g3dviewer-trackball.Tpo"; exit 1; \ | ||
372 | fi | ||
373 | # source='trackball.c' object='g3dviewer-trackball.o' libtool=no \ | ||
374 | # depfile='$(DEPDIR)/g3dviewer-trackball.Po' tmpdepfile='$(DEPDIR)/g3dviewer-trackball.TPo' \ | ||
375 | # $(CCDEPMODE) $(depcomp) \ | ||
376 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-trackball.o `test -f 'trackball.c' || echo '$(srcdir)/'`trackball.c | ||
377 | |||
378 | g3dviewer-trackball.obj: trackball.c | ||
379 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-trackball.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-trackball.Tpo" \ | ||
380 | -c -o g3dviewer-trackball.obj `if test -f 'trackball.c'; then $(CYGPATH_W) 'trackball.c'; else $(CYGPATH_W) '$(srcdir)/trackball.c'; fi`; \ | ||
381 | then mv -f "$(DEPDIR)/g3dviewer-trackball.Tpo" "$(DEPDIR)/g3dviewer-trackball.Po"; \ | ||
382 | else rm -f "$(DEPDIR)/g3dviewer-trackball.Tpo"; exit 1; \ | ||
383 | fi | ||
384 | # source='trackball.c' object='g3dviewer-trackball.obj' libtool=no \ | ||
385 | # depfile='$(DEPDIR)/g3dviewer-trackball.Po' tmpdepfile='$(DEPDIR)/g3dviewer-trackball.TPo' \ | ||
386 | # $(CCDEPMODE) $(depcomp) \ | ||
387 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-trackball.obj `if test -f 'trackball.c'; then $(CYGPATH_W) 'trackball.c'; else $(CYGPATH_W) '$(srcdir)/trackball.c'; fi` | ||
388 | |||
389 | g3dviewer-gui_glade.o: gui_glade.c | ||
390 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_glade.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_glade.Tpo" \ | ||
391 | -c -o g3dviewer-gui_glade.o `test -f 'gui_glade.c' || echo '$(srcdir)/'`gui_glade.c; \ | ||
392 | then mv -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo" "$(DEPDIR)/g3dviewer-gui_glade.Po"; \ | ||
393 | else rm -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo"; exit 1; \ | ||
394 | fi | ||
395 | # source='gui_glade.c' object='g3dviewer-gui_glade.o' libtool=no \ | ||
396 | # depfile='$(DEPDIR)/g3dviewer-gui_glade.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_glade.TPo' \ | ||
397 | # $(CCDEPMODE) $(depcomp) \ | ||
398 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_glade.o `test -f 'gui_glade.c' || echo '$(srcdir)/'`gui_glade.c | ||
399 | |||
400 | g3dviewer-gui_glade.obj: gui_glade.c | ||
401 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_glade.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_glade.Tpo" \ | ||
402 | -c -o g3dviewer-gui_glade.obj `if test -f 'gui_glade.c'; then $(CYGPATH_W) 'gui_glade.c'; else $(CYGPATH_W) '$(srcdir)/gui_glade.c'; fi`; \ | ||
403 | then mv -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo" "$(DEPDIR)/g3dviewer-gui_glade.Po"; \ | ||
404 | else rm -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo"; exit 1; \ | ||
405 | fi | ||
406 | # source='gui_glade.c' object='g3dviewer-gui_glade.obj' libtool=no \ | ||
407 | # depfile='$(DEPDIR)/g3dviewer-gui_glade.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_glade.TPo' \ | ||
408 | # $(CCDEPMODE) $(depcomp) \ | ||
409 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_glade.obj `if test -f 'gui_glade.c'; then $(CYGPATH_W) 'gui_glade.c'; else $(CYGPATH_W) '$(srcdir)/gui_glade.c'; fi` | ||
410 | |||
411 | g3dviewer-gui_infowin.o: gui_infowin.c | ||
412 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_infowin.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" \ | ||
413 | -c -o g3dviewer-gui_infowin.o `test -f 'gui_infowin.c' || echo '$(srcdir)/'`gui_infowin.c; \ | ||
414 | then mv -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" "$(DEPDIR)/g3dviewer-gui_infowin.Po"; \ | ||
415 | else rm -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo"; exit 1; \ | ||
416 | fi | ||
417 | # source='gui_infowin.c' object='g3dviewer-gui_infowin.o' libtool=no \ | ||
418 | # depfile='$(DEPDIR)/g3dviewer-gui_infowin.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_infowin.TPo' \ | ||
419 | # $(CCDEPMODE) $(depcomp) \ | ||
420 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_infowin.o `test -f 'gui_infowin.c' || echo '$(srcdir)/'`gui_infowin.c | ||
421 | |||
422 | g3dviewer-gui_infowin.obj: gui_infowin.c | ||
423 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_infowin.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" \ | ||
424 | -c -o g3dviewer-gui_infowin.obj `if test -f 'gui_infowin.c'; then $(CYGPATH_W) 'gui_infowin.c'; else $(CYGPATH_W) '$(srcdir)/gui_infowin.c'; fi`; \ | ||
425 | then mv -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" "$(DEPDIR)/g3dviewer-gui_infowin.Po"; \ | ||
426 | else rm -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo"; exit 1; \ | ||
427 | fi | ||
428 | # source='gui_infowin.c' object='g3dviewer-gui_infowin.obj' libtool=no \ | ||
429 | # depfile='$(DEPDIR)/g3dviewer-gui_infowin.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_infowin.TPo' \ | ||
430 | # $(CCDEPMODE) $(depcomp) \ | ||
431 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_infowin.obj `if test -f 'gui_infowin.c'; then $(CYGPATH_W) 'gui_infowin.c'; else $(CYGPATH_W) '$(srcdir)/gui_infowin.c'; fi` | ||
432 | |||
433 | g3dviewer-gui_log.o: gui_log.c | ||
434 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_log.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_log.Tpo" \ | ||
435 | -c -o g3dviewer-gui_log.o `test -f 'gui_log.c' || echo '$(srcdir)/'`gui_log.c; \ | ||
436 | then mv -f "$(DEPDIR)/g3dviewer-gui_log.Tpo" "$(DEPDIR)/g3dviewer-gui_log.Po"; \ | ||
437 | else rm -f "$(DEPDIR)/g3dviewer-gui_log.Tpo"; exit 1; \ | ||
438 | fi | ||
439 | # source='gui_log.c' object='g3dviewer-gui_log.o' libtool=no \ | ||
440 | # depfile='$(DEPDIR)/g3dviewer-gui_log.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_log.TPo' \ | ||
441 | # $(CCDEPMODE) $(depcomp) \ | ||
442 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_log.o `test -f 'gui_log.c' || echo '$(srcdir)/'`gui_log.c | ||
443 | |||
444 | g3dviewer-gui_log.obj: gui_log.c | ||
445 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_log.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_log.Tpo" \ | ||
446 | -c -o g3dviewer-gui_log.obj `if test -f 'gui_log.c'; then $(CYGPATH_W) 'gui_log.c'; else $(CYGPATH_W) '$(srcdir)/gui_log.c'; fi`; \ | ||
447 | then mv -f "$(DEPDIR)/g3dviewer-gui_log.Tpo" "$(DEPDIR)/g3dviewer-gui_log.Po"; \ | ||
448 | else rm -f "$(DEPDIR)/g3dviewer-gui_log.Tpo"; exit 1; \ | ||
449 | fi | ||
450 | # source='gui_log.c' object='g3dviewer-gui_log.obj' libtool=no \ | ||
451 | # depfile='$(DEPDIR)/g3dviewer-gui_log.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_log.TPo' \ | ||
452 | # $(CCDEPMODE) $(depcomp) \ | ||
453 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_log.obj `if test -f 'gui_log.c'; then $(CYGPATH_W) 'gui_log.c'; else $(CYGPATH_W) '$(srcdir)/gui_log.c'; fi` | ||
454 | |||
455 | g3dviewer-screenshot.o: screenshot.c | ||
456 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-screenshot.o -MD -MP -MF "$(DEPDIR)/g3dviewer-screenshot.Tpo" \ | ||
457 | -c -o g3dviewer-screenshot.o `test -f 'screenshot.c' || echo '$(srcdir)/'`screenshot.c; \ | ||
458 | then mv -f "$(DEPDIR)/g3dviewer-screenshot.Tpo" "$(DEPDIR)/g3dviewer-screenshot.Po"; \ | ||
459 | else rm -f "$(DEPDIR)/g3dviewer-screenshot.Tpo"; exit 1; \ | ||
460 | fi | ||
461 | # source='screenshot.c' object='g3dviewer-screenshot.o' libtool=no \ | ||
462 | # depfile='$(DEPDIR)/g3dviewer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3dviewer-screenshot.TPo' \ | ||
463 | # $(CCDEPMODE) $(depcomp) \ | ||
464 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-screenshot.o `test -f 'screenshot.c' || echo '$(srcdir)/'`screenshot.c | ||
465 | |||
466 | g3dviewer-screenshot.obj: screenshot.c | ||
467 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-screenshot.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-screenshot.Tpo" \ | ||
468 | -c -o g3dviewer-screenshot.obj `if test -f 'screenshot.c'; then $(CYGPATH_W) 'screenshot.c'; else $(CYGPATH_W) '$(srcdir)/screenshot.c'; fi`; \ | ||
469 | then mv -f "$(DEPDIR)/g3dviewer-screenshot.Tpo" "$(DEPDIR)/g3dviewer-screenshot.Po"; \ | ||
470 | else rm -f "$(DEPDIR)/g3dviewer-screenshot.Tpo"; exit 1; \ | ||
471 | fi | ||
472 | # source='screenshot.c' object='g3dviewer-screenshot.obj' libtool=no \ | ||
473 | # depfile='$(DEPDIR)/g3dviewer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3dviewer-screenshot.TPo' \ | ||
474 | # $(CCDEPMODE) $(depcomp) \ | ||
475 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-screenshot.obj `if test -f 'screenshot.c'; then $(CYGPATH_W) 'screenshot.c'; else $(CYGPATH_W) '$(srcdir)/screenshot.c'; fi` | ||
476 | |||
477 | g3dviewer-gui_callbacks.o: gui_callbacks.c | ||
478 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_callbacks.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" \ | ||
479 | -c -o g3dviewer-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c; \ | ||
480 | then mv -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" "$(DEPDIR)/g3dviewer-gui_callbacks.Po"; \ | ||
481 | else rm -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo"; exit 1; \ | ||
482 | fi | ||
483 | # source='gui_callbacks.c' object='g3dviewer-gui_callbacks.o' libtool=no \ | ||
484 | # depfile='$(DEPDIR)/g3dviewer-gui_callbacks.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_callbacks.TPo' \ | ||
485 | # $(CCDEPMODE) $(depcomp) \ | ||
486 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c | ||
487 | |||
488 | g3dviewer-gui_callbacks.obj: gui_callbacks.c | ||
489 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_callbacks.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" \ | ||
490 | -c -o g3dviewer-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi`; \ | ||
491 | then mv -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" "$(DEPDIR)/g3dviewer-gui_callbacks.Po"; \ | ||
492 | else rm -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo"; exit 1; \ | ||
493 | fi | ||
494 | # source='gui_callbacks.c' object='g3dviewer-gui_callbacks.obj' libtool=no \ | ||
495 | # depfile='$(DEPDIR)/g3dviewer-gui_callbacks.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_callbacks.TPo' \ | ||
496 | # $(CCDEPMODE) $(depcomp) \ | ||
497 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi` | ||
498 | |||
499 | g3dviewer-texture.o: texture.c | ||
500 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-texture.o -MD -MP -MF "$(DEPDIR)/g3dviewer-texture.Tpo" \ | ||
501 | -c -o g3dviewer-texture.o `test -f 'texture.c' || echo '$(srcdir)/'`texture.c; \ | ||
502 | then mv -f "$(DEPDIR)/g3dviewer-texture.Tpo" "$(DEPDIR)/g3dviewer-texture.Po"; \ | ||
503 | else rm -f "$(DEPDIR)/g3dviewer-texture.Tpo"; exit 1; \ | ||
504 | fi | ||
505 | # source='texture.c' object='g3dviewer-texture.o' libtool=no \ | ||
506 | # depfile='$(DEPDIR)/g3dviewer-texture.Po' tmpdepfile='$(DEPDIR)/g3dviewer-texture.TPo' \ | ||
507 | # $(CCDEPMODE) $(depcomp) \ | ||
508 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-texture.o `test -f 'texture.c' || echo '$(srcdir)/'`texture.c | ||
509 | |||
510 | g3dviewer-texture.obj: texture.c | ||
511 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-texture.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-texture.Tpo" \ | ||
512 | -c -o g3dviewer-texture.obj `if test -f 'texture.c'; then $(CYGPATH_W) 'texture.c'; else $(CYGPATH_W) '$(srcdir)/texture.c'; fi`; \ | ||
513 | then mv -f "$(DEPDIR)/g3dviewer-texture.Tpo" "$(DEPDIR)/g3dviewer-texture.Po"; \ | ||
514 | else rm -f "$(DEPDIR)/g3dviewer-texture.Tpo"; exit 1; \ | ||
515 | fi | ||
516 | # source='texture.c' object='g3dviewer-texture.obj' libtool=no \ | ||
517 | # depfile='$(DEPDIR)/g3dviewer-texture.Po' tmpdepfile='$(DEPDIR)/g3dviewer-texture.TPo' \ | ||
518 | # $(CCDEPMODE) $(depcomp) \ | ||
519 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-texture.obj `if test -f 'texture.c'; then $(CYGPATH_W) 'texture.c'; else $(CYGPATH_W) '$(srcdir)/texture.c'; fi` | ||
520 | |||
521 | g3dviewer-model.o: model.c | ||
522 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-model.o -MD -MP -MF "$(DEPDIR)/g3dviewer-model.Tpo" \ | ||
523 | -c -o g3dviewer-model.o `test -f 'model.c' || echo '$(srcdir)/'`model.c; \ | ||
524 | then mv -f "$(DEPDIR)/g3dviewer-model.Tpo" "$(DEPDIR)/g3dviewer-model.Po"; \ | ||
525 | else rm -f "$(DEPDIR)/g3dviewer-model.Tpo"; exit 1; \ | ||
526 | fi | ||
527 | # source='model.c' object='g3dviewer-model.o' libtool=no \ | ||
528 | # depfile='$(DEPDIR)/g3dviewer-model.Po' tmpdepfile='$(DEPDIR)/g3dviewer-model.TPo' \ | ||
529 | # $(CCDEPMODE) $(depcomp) \ | ||
530 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-model.o `test -f 'model.c' || echo '$(srcdir)/'`model.c | ||
531 | |||
532 | g3dviewer-model.obj: model.c | ||
533 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-model.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-model.Tpo" \ | ||
534 | -c -o g3dviewer-model.obj `if test -f 'model.c'; then $(CYGPATH_W) 'model.c'; else $(CYGPATH_W) '$(srcdir)/model.c'; fi`; \ | ||
535 | then mv -f "$(DEPDIR)/g3dviewer-model.Tpo" "$(DEPDIR)/g3dviewer-model.Po"; \ | ||
536 | else rm -f "$(DEPDIR)/g3dviewer-model.Tpo"; exit 1; \ | ||
537 | fi | ||
538 | # source='model.c' object='g3dviewer-model.obj' libtool=no \ | ||
539 | # depfile='$(DEPDIR)/g3dviewer-model.Po' tmpdepfile='$(DEPDIR)/g3dviewer-model.TPo' \ | ||
540 | # $(CCDEPMODE) $(depcomp) \ | ||
541 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-model.obj `if test -f 'model.c'; then $(CYGPATH_W) 'model.c'; else $(CYGPATH_W) '$(srcdir)/model.c'; fi` | ||
542 | uninstall-info-am: | ||
543 | |||
544 | ETAGS = etags | ||
545 | ETAGSFLAGS = | ||
546 | |||
547 | CTAGS = ctags | ||
548 | CTAGSFLAGS = | ||
549 | |||
550 | tags: TAGS | ||
551 | |||
552 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
553 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
554 | unique=`for i in $$list; do \ | ||
555 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
556 | done | \ | ||
557 | $(AWK) ' { files[$$0] = 1; } \ | ||
558 | END { for (i in files) print i; }'`; \ | ||
559 | mkid -fID $$unique | ||
560 | |||
561 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
562 | $(TAGS_FILES) $(LISP) | ||
563 | tags=; \ | ||
564 | here=`pwd`; \ | ||
565 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
566 | unique=`for i in $$list; do \ | ||
567 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
568 | done | \ | ||
569 | $(AWK) ' { files[$$0] = 1; } \ | ||
570 | END { for (i in files) print i; }'`; \ | ||
571 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
572 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
573 | $$tags $$unique | ||
574 | |||
575 | ctags: CTAGS | ||
576 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
577 | $(TAGS_FILES) $(LISP) | ||
578 | tags=; \ | ||
579 | here=`pwd`; \ | ||
580 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
581 | unique=`for i in $$list; do \ | ||
582 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
583 | done | \ | ||
584 | $(AWK) ' { files[$$0] = 1; } \ | ||
585 | END { for (i in files) print i; }'`; \ | ||
586 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
587 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
588 | $$tags $$unique | ||
589 | |||
590 | GTAGS: | ||
591 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
592 | && cd $(top_srcdir) \ | ||
593 | && gtags -i $(GTAGS_ARGS) $$here | ||
594 | |||
595 | distclean-tags: | ||
596 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
597 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
598 | |||
599 | top_distdir = .. | ||
600 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
601 | |||
602 | distdir: $(DISTFILES) | ||
603 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
604 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
605 | list='$(DISTFILES)'; for file in $$list; do \ | ||
606 | case $$file in \ | ||
607 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
608 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
609 | esac; \ | ||
610 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
611 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
612 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
613 | dir="/$$dir"; \ | ||
614 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
615 | else \ | ||
616 | dir=''; \ | ||
617 | fi; \ | ||
618 | if test -d $$d/$$file; then \ | ||
619 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
620 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
621 | fi; \ | ||
622 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
623 | else \ | ||
624 | test -f $(distdir)/$$file \ | ||
625 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
626 | || exit 1; \ | ||
627 | fi; \ | ||
628 | done | ||
629 | check-am: all-am | ||
630 | check: check-am | ||
631 | all-am: Makefile $(PROGRAMS) | ||
632 | |||
633 | installdirs: | ||
634 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
635 | install: install-am | ||
636 | install-exec: install-exec-am | ||
637 | install-data: install-data-am | ||
638 | uninstall: uninstall-am | ||
639 | |||
640 | install-am: all-am | ||
641 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
642 | |||
643 | installcheck: installcheck-am | ||
644 | install-strip: | ||
645 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
646 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
647 | `test -z '$(STRIP)' || \ | ||
648 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
649 | mostlyclean-generic: | ||
650 | |||
651 | clean-generic: | ||
652 | |||
653 | distclean-generic: | ||
654 | -rm -f $(CONFIG_CLEAN_FILES) | ||
655 | |||
656 | maintainer-clean-generic: | ||
657 | @echo "This command is intended for maintainers to use" | ||
658 | @echo "it deletes files that may require special tools to rebuild." | ||
659 | clean: clean-am | ||
660 | |||
661 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | ||
662 | |||
663 | distclean: distclean-am | ||
664 | -rm -rf ./$(DEPDIR) | ||
665 | -rm -f Makefile | ||
666 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
667 | distclean-tags | ||
668 | |||
669 | dvi: dvi-am | ||
670 | |||
671 | dvi-am: | ||
672 | |||
673 | info: info-am | ||
674 | |||
675 | info-am: | ||
676 | |||
677 | install-data-am: | ||
678 | |||
679 | install-exec-am: install-binPROGRAMS | ||
680 | |||
681 | install-info: install-info-am | ||
682 | |||
683 | install-man: | ||
684 | |||
685 | installcheck-am: | ||
686 | |||
687 | maintainer-clean: maintainer-clean-am | ||
688 | -rm -rf ./$(DEPDIR) | ||
689 | -rm -f Makefile | ||
690 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
691 | |||
692 | mostlyclean: mostlyclean-am | ||
693 | |||
694 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
695 | |||
696 | pdf: pdf-am | ||
697 | |||
698 | pdf-am: | ||
699 | |||
700 | ps: ps-am | ||
701 | |||
702 | ps-am: | ||
703 | |||
704 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am | ||
705 | |||
706 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||
707 | clean-generic ctags distclean distclean-compile \ | ||
708 | distclean-generic distclean-tags distdir dvi dvi-am info \ | ||
709 | info-am install install-am install-binPROGRAMS install-data \ | ||
710 | install-data-am install-exec install-exec-am install-info \ | ||
711 | install-info-am install-man install-strip installcheck \ | ||
712 | installcheck-am installdirs maintainer-clean \ | ||
713 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
714 | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||
715 | uninstall-am uninstall-binPROGRAMS uninstall-info-am | ||
716 | |||
717 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
718 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
719 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.am new file mode 100644 index 0000000..db6581f --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.am | |||
@@ -0,0 +1,33 @@ | |||
1 | bin_PROGRAMS = g3dviewer | ||
2 | |||
3 | datadir = @datadir@ | ||
4 | localedir = $(datadir)/locale | ||
5 | |||
6 | g3dviewer_SOURCES = \ | ||
7 | main.c main.h \ | ||
8 | gl.c gl.h \ | ||
9 | glarea.h glarea.c \ | ||
10 | trackball.c trackball.h \ | ||
11 | gui_glade.c gui_glade.h \ | ||
12 | gui_infowin.c gui_infowin.h \ | ||
13 | gui_log.c gui_log.h \ | ||
14 | screenshot.c screenshot.h \ | ||
15 | gui_callbacks.c \ | ||
16 | texture.c texture.h \ | ||
17 | model.h model.c | ||
18 | |||
19 | g3dviewer_CFLAGS = \ | ||
20 | -I$(top_srcdir) -I$(top_builddir) \ | ||
21 | -Wall -ansi \ | ||
22 | -DLOCALEDIR=\"$(localedir)\" \ | ||
23 | @DBG_CFLAGS@ \ | ||
24 | @GLIB_CFLAGS@ @GTK_CFLAGS@ @GTKGLEXT_CFLAGS@ \ | ||
25 | @LIBGLADE_CFLAGS@ \ | ||
26 | @X_CFLAGS@ \ | ||
27 | @LIBG3D_CFLAGS@ \ | ||
28 | -DDEBUG=@DEBUG@ | ||
29 | |||
30 | g3dviewer_LDFLAGS = \ | ||
31 | @GTK_LIBS@ @LIBGLADE_LIBS@ \ | ||
32 | @GTKGLEXT_LIBS@ @X_LIBS@ @GL_LIBS@ @LIBG3D_LIBS@ | ||
33 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.in new file mode 100644 index 0000000..b623046 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/Makefile.in | |||
@@ -0,0 +1,719 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | |||
128 | datadir = @datadir@ | ||
129 | datarootdir = @datarootdir@ | ||
130 | docdir = @docdir@ | ||
131 | dvidir = @dvidir@ | ||
132 | exec_prefix = @exec_prefix@ | ||
133 | host_alias = @host_alias@ | ||
134 | htmldir = @htmldir@ | ||
135 | includedir = @includedir@ | ||
136 | infodir = @infodir@ | ||
137 | install_sh = @install_sh@ | ||
138 | libdir = @libdir@ | ||
139 | libexecdir = @libexecdir@ | ||
140 | localedir = $(datadir)/locale | ||
141 | localstatedir = @localstatedir@ | ||
142 | mandir = @mandir@ | ||
143 | oldincludedir = @oldincludedir@ | ||
144 | pdfdir = @pdfdir@ | ||
145 | prefix = @prefix@ | ||
146 | program_transform_name = @program_transform_name@ | ||
147 | psdir = @psdir@ | ||
148 | sbindir = @sbindir@ | ||
149 | sharedstatedir = @sharedstatedir@ | ||
150 | sysconfdir = @sysconfdir@ | ||
151 | target_alias = @target_alias@ | ||
152 | bin_PROGRAMS = g3dviewer | ||
153 | |||
154 | g3dviewer_SOURCES = \ | ||
155 | main.c main.h \ | ||
156 | gl.c gl.h \ | ||
157 | glarea.h glarea.c \ | ||
158 | trackball.c trackball.h \ | ||
159 | gui_glade.c gui_glade.h \ | ||
160 | gui_infowin.c gui_infowin.h \ | ||
161 | gui_log.c gui_log.h \ | ||
162 | screenshot.c screenshot.h \ | ||
163 | gui_callbacks.c \ | ||
164 | texture.c texture.h \ | ||
165 | model.h model.c | ||
166 | |||
167 | |||
168 | g3dviewer_CFLAGS = \ | ||
169 | -I$(top_srcdir) -I$(top_builddir) \ | ||
170 | -Wall -ansi \ | ||
171 | -DLOCALEDIR=\"$(localedir)\" \ | ||
172 | @DBG_CFLAGS@ \ | ||
173 | @GLIB_CFLAGS@ @GTK_CFLAGS@ @GTKGLEXT_CFLAGS@ \ | ||
174 | @LIBGLADE_CFLAGS@ \ | ||
175 | @X_CFLAGS@ \ | ||
176 | @LIBG3D_CFLAGS@ \ | ||
177 | -DDEBUG=@DEBUG@ | ||
178 | |||
179 | |||
180 | g3dviewer_LDFLAGS = \ | ||
181 | @GTK_LIBS@ @LIBGLADE_LIBS@ \ | ||
182 | @GTKGLEXT_LIBS@ @X_LIBS@ @GL_LIBS@ @LIBG3D_LIBS@ | ||
183 | |||
184 | subdir = src | ||
185 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
186 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
187 | CONFIG_HEADER = $(top_builddir)/config.h | ||
188 | CONFIG_CLEAN_FILES = | ||
189 | bin_PROGRAMS = g3dviewer$(EXEEXT) | ||
190 | PROGRAMS = $(bin_PROGRAMS) | ||
191 | |||
192 | am_g3dviewer_OBJECTS = g3dviewer-main.$(OBJEXT) g3dviewer-gl.$(OBJEXT) \ | ||
193 | g3dviewer-glarea.$(OBJEXT) g3dviewer-trackball.$(OBJEXT) \ | ||
194 | g3dviewer-gui_glade.$(OBJEXT) g3dviewer-gui_infowin.$(OBJEXT) \ | ||
195 | g3dviewer-gui_log.$(OBJEXT) g3dviewer-screenshot.$(OBJEXT) \ | ||
196 | g3dviewer-gui_callbacks.$(OBJEXT) g3dviewer-texture.$(OBJEXT) \ | ||
197 | g3dviewer-model.$(OBJEXT) | ||
198 | g3dviewer_OBJECTS = $(am_g3dviewer_OBJECTS) | ||
199 | g3dviewer_LDADD = $(LDADD) | ||
200 | g3dviewer_DEPENDENCIES = | ||
201 | |||
202 | DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) | ||
203 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
204 | am__depfiles_maybe = depfiles | ||
205 | @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/g3dviewer-gl.Po \ | ||
206 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-glarea.Po \ | ||
207 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-gui_callbacks.Po \ | ||
208 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-gui_glade.Po \ | ||
209 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-gui_infowin.Po \ | ||
210 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-gui_log.Po \ | ||
211 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-main.Po \ | ||
212 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-model.Po \ | ||
213 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-screenshot.Po \ | ||
214 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-texture.Po \ | ||
215 | @AMDEP_TRUE@ ./$(DEPDIR)/g3dviewer-trackball.Po | ||
216 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
217 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
218 | CCLD = $(CC) | ||
219 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
220 | DIST_SOURCES = $(g3dviewer_SOURCES) | ||
221 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
222 | SOURCES = $(g3dviewer_SOURCES) | ||
223 | |||
224 | all: all-am | ||
225 | |||
226 | .SUFFIXES: | ||
227 | .SUFFIXES: .c .o .obj | ||
228 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
229 | cd $(top_srcdir) && \ | ||
230 | $(AUTOMAKE) --gnu src/Makefile | ||
231 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
232 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
233 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
234 | install-binPROGRAMS: $(bin_PROGRAMS) | ||
235 | @$(NORMAL_INSTALL) | ||
236 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
237 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
238 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
239 | if test -f $$p \ | ||
240 | ; then \ | ||
241 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
242 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ | ||
243 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ | ||
244 | else :; fi; \ | ||
245 | done | ||
246 | |||
247 | uninstall-binPROGRAMS: | ||
248 | @$(NORMAL_UNINSTALL) | ||
249 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
250 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
251 | echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ | ||
252 | rm -f $(DESTDIR)$(bindir)/$$f; \ | ||
253 | done | ||
254 | |||
255 | clean-binPROGRAMS: | ||
256 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | ||
257 | g3dviewer$(EXEEXT): $(g3dviewer_OBJECTS) $(g3dviewer_DEPENDENCIES) | ||
258 | @rm -f g3dviewer$(EXEEXT) | ||
259 | $(LINK) $(g3dviewer_LDFLAGS) $(g3dviewer_OBJECTS) $(g3dviewer_LDADD) $(LIBS) | ||
260 | |||
261 | mostlyclean-compile: | ||
262 | -rm -f *.$(OBJEXT) core *.core | ||
263 | |||
264 | distclean-compile: | ||
265 | -rm -f *.tab.c | ||
266 | |||
267 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-gl.Po@am__quote@ | ||
268 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-glarea.Po@am__quote@ | ||
269 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-gui_callbacks.Po@am__quote@ | ||
270 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-gui_glade.Po@am__quote@ | ||
271 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-gui_infowin.Po@am__quote@ | ||
272 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-gui_log.Po@am__quote@ | ||
273 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-main.Po@am__quote@ | ||
274 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-model.Po@am__quote@ | ||
275 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-screenshot.Po@am__quote@ | ||
276 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-texture.Po@am__quote@ | ||
277 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3dviewer-trackball.Po@am__quote@ | ||
278 | |||
279 | .c.o: | ||
280 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
281 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ | ||
282 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
283 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
284 | @am__fastdepCC_TRUE@ fi | ||
285 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
286 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | ||
287 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
288 | @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< | ||
289 | |||
290 | .c.obj: | ||
291 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
292 | @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ | ||
293 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
294 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
295 | @am__fastdepCC_TRUE@ fi | ||
296 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
297 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | ||
298 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
299 | @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | ||
300 | |||
301 | g3dviewer-main.o: main.c | ||
302 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-main.o -MD -MP -MF "$(DEPDIR)/g3dviewer-main.Tpo" \ | ||
303 | @am__fastdepCC_TRUE@ -c -o g3dviewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \ | ||
304 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-main.Tpo" "$(DEPDIR)/g3dviewer-main.Po"; \ | ||
305 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-main.Tpo"; exit 1; \ | ||
306 | @am__fastdepCC_TRUE@ fi | ||
307 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='g3dviewer-main.o' libtool=no @AMDEPBACKSLASH@ | ||
308 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-main.Po' tmpdepfile='$(DEPDIR)/g3dviewer-main.TPo' @AMDEPBACKSLASH@ | ||
309 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
310 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c | ||
311 | |||
312 | g3dviewer-main.obj: main.c | ||
313 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-main.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-main.Tpo" \ | ||
314 | @am__fastdepCC_TRUE@ -c -o g3dviewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \ | ||
315 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-main.Tpo" "$(DEPDIR)/g3dviewer-main.Po"; \ | ||
316 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-main.Tpo"; exit 1; \ | ||
317 | @am__fastdepCC_TRUE@ fi | ||
318 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='g3dviewer-main.obj' libtool=no @AMDEPBACKSLASH@ | ||
319 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-main.Po' tmpdepfile='$(DEPDIR)/g3dviewer-main.TPo' @AMDEPBACKSLASH@ | ||
320 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
321 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` | ||
322 | |||
323 | g3dviewer-gl.o: gl.c | ||
324 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gl.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gl.Tpo" \ | ||
325 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gl.o `test -f 'gl.c' || echo '$(srcdir)/'`gl.c; \ | ||
326 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gl.Tpo" "$(DEPDIR)/g3dviewer-gl.Po"; \ | ||
327 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gl.Tpo"; exit 1; \ | ||
328 | @am__fastdepCC_TRUE@ fi | ||
329 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gl.c' object='g3dviewer-gl.o' libtool=no @AMDEPBACKSLASH@ | ||
330 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gl.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gl.TPo' @AMDEPBACKSLASH@ | ||
331 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
332 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gl.o `test -f 'gl.c' || echo '$(srcdir)/'`gl.c | ||
333 | |||
334 | g3dviewer-gl.obj: gl.c | ||
335 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gl.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gl.Tpo" \ | ||
336 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gl.obj `if test -f 'gl.c'; then $(CYGPATH_W) 'gl.c'; else $(CYGPATH_W) '$(srcdir)/gl.c'; fi`; \ | ||
337 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gl.Tpo" "$(DEPDIR)/g3dviewer-gl.Po"; \ | ||
338 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gl.Tpo"; exit 1; \ | ||
339 | @am__fastdepCC_TRUE@ fi | ||
340 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gl.c' object='g3dviewer-gl.obj' libtool=no @AMDEPBACKSLASH@ | ||
341 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gl.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gl.TPo' @AMDEPBACKSLASH@ | ||
342 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
343 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gl.obj `if test -f 'gl.c'; then $(CYGPATH_W) 'gl.c'; else $(CYGPATH_W) '$(srcdir)/gl.c'; fi` | ||
344 | |||
345 | g3dviewer-glarea.o: glarea.c | ||
346 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-glarea.o -MD -MP -MF "$(DEPDIR)/g3dviewer-glarea.Tpo" \ | ||
347 | @am__fastdepCC_TRUE@ -c -o g3dviewer-glarea.o `test -f 'glarea.c' || echo '$(srcdir)/'`glarea.c; \ | ||
348 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-glarea.Tpo" "$(DEPDIR)/g3dviewer-glarea.Po"; \ | ||
349 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-glarea.Tpo"; exit 1; \ | ||
350 | @am__fastdepCC_TRUE@ fi | ||
351 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='glarea.c' object='g3dviewer-glarea.o' libtool=no @AMDEPBACKSLASH@ | ||
352 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-glarea.Po' tmpdepfile='$(DEPDIR)/g3dviewer-glarea.TPo' @AMDEPBACKSLASH@ | ||
353 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
354 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-glarea.o `test -f 'glarea.c' || echo '$(srcdir)/'`glarea.c | ||
355 | |||
356 | g3dviewer-glarea.obj: glarea.c | ||
357 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-glarea.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-glarea.Tpo" \ | ||
358 | @am__fastdepCC_TRUE@ -c -o g3dviewer-glarea.obj `if test -f 'glarea.c'; then $(CYGPATH_W) 'glarea.c'; else $(CYGPATH_W) '$(srcdir)/glarea.c'; fi`; \ | ||
359 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-glarea.Tpo" "$(DEPDIR)/g3dviewer-glarea.Po"; \ | ||
360 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-glarea.Tpo"; exit 1; \ | ||
361 | @am__fastdepCC_TRUE@ fi | ||
362 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='glarea.c' object='g3dviewer-glarea.obj' libtool=no @AMDEPBACKSLASH@ | ||
363 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-glarea.Po' tmpdepfile='$(DEPDIR)/g3dviewer-glarea.TPo' @AMDEPBACKSLASH@ | ||
364 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
365 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-glarea.obj `if test -f 'glarea.c'; then $(CYGPATH_W) 'glarea.c'; else $(CYGPATH_W) '$(srcdir)/glarea.c'; fi` | ||
366 | |||
367 | g3dviewer-trackball.o: trackball.c | ||
368 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-trackball.o -MD -MP -MF "$(DEPDIR)/g3dviewer-trackball.Tpo" \ | ||
369 | @am__fastdepCC_TRUE@ -c -o g3dviewer-trackball.o `test -f 'trackball.c' || echo '$(srcdir)/'`trackball.c; \ | ||
370 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-trackball.Tpo" "$(DEPDIR)/g3dviewer-trackball.Po"; \ | ||
371 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-trackball.Tpo"; exit 1; \ | ||
372 | @am__fastdepCC_TRUE@ fi | ||
373 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='trackball.c' object='g3dviewer-trackball.o' libtool=no @AMDEPBACKSLASH@ | ||
374 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-trackball.Po' tmpdepfile='$(DEPDIR)/g3dviewer-trackball.TPo' @AMDEPBACKSLASH@ | ||
375 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
376 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-trackball.o `test -f 'trackball.c' || echo '$(srcdir)/'`trackball.c | ||
377 | |||
378 | g3dviewer-trackball.obj: trackball.c | ||
379 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-trackball.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-trackball.Tpo" \ | ||
380 | @am__fastdepCC_TRUE@ -c -o g3dviewer-trackball.obj `if test -f 'trackball.c'; then $(CYGPATH_W) 'trackball.c'; else $(CYGPATH_W) '$(srcdir)/trackball.c'; fi`; \ | ||
381 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-trackball.Tpo" "$(DEPDIR)/g3dviewer-trackball.Po"; \ | ||
382 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-trackball.Tpo"; exit 1; \ | ||
383 | @am__fastdepCC_TRUE@ fi | ||
384 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='trackball.c' object='g3dviewer-trackball.obj' libtool=no @AMDEPBACKSLASH@ | ||
385 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-trackball.Po' tmpdepfile='$(DEPDIR)/g3dviewer-trackball.TPo' @AMDEPBACKSLASH@ | ||
386 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
387 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-trackball.obj `if test -f 'trackball.c'; then $(CYGPATH_W) 'trackball.c'; else $(CYGPATH_W) '$(srcdir)/trackball.c'; fi` | ||
388 | |||
389 | g3dviewer-gui_glade.o: gui_glade.c | ||
390 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_glade.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_glade.Tpo" \ | ||
391 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_glade.o `test -f 'gui_glade.c' || echo '$(srcdir)/'`gui_glade.c; \ | ||
392 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo" "$(DEPDIR)/g3dviewer-gui_glade.Po"; \ | ||
393 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo"; exit 1; \ | ||
394 | @am__fastdepCC_TRUE@ fi | ||
395 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_glade.c' object='g3dviewer-gui_glade.o' libtool=no @AMDEPBACKSLASH@ | ||
396 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_glade.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_glade.TPo' @AMDEPBACKSLASH@ | ||
397 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
398 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_glade.o `test -f 'gui_glade.c' || echo '$(srcdir)/'`gui_glade.c | ||
399 | |||
400 | g3dviewer-gui_glade.obj: gui_glade.c | ||
401 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_glade.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_glade.Tpo" \ | ||
402 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_glade.obj `if test -f 'gui_glade.c'; then $(CYGPATH_W) 'gui_glade.c'; else $(CYGPATH_W) '$(srcdir)/gui_glade.c'; fi`; \ | ||
403 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo" "$(DEPDIR)/g3dviewer-gui_glade.Po"; \ | ||
404 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_glade.Tpo"; exit 1; \ | ||
405 | @am__fastdepCC_TRUE@ fi | ||
406 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_glade.c' object='g3dviewer-gui_glade.obj' libtool=no @AMDEPBACKSLASH@ | ||
407 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_glade.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_glade.TPo' @AMDEPBACKSLASH@ | ||
408 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
409 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_glade.obj `if test -f 'gui_glade.c'; then $(CYGPATH_W) 'gui_glade.c'; else $(CYGPATH_W) '$(srcdir)/gui_glade.c'; fi` | ||
410 | |||
411 | g3dviewer-gui_infowin.o: gui_infowin.c | ||
412 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_infowin.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" \ | ||
413 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_infowin.o `test -f 'gui_infowin.c' || echo '$(srcdir)/'`gui_infowin.c; \ | ||
414 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" "$(DEPDIR)/g3dviewer-gui_infowin.Po"; \ | ||
415 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo"; exit 1; \ | ||
416 | @am__fastdepCC_TRUE@ fi | ||
417 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_infowin.c' object='g3dviewer-gui_infowin.o' libtool=no @AMDEPBACKSLASH@ | ||
418 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_infowin.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_infowin.TPo' @AMDEPBACKSLASH@ | ||
419 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
420 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_infowin.o `test -f 'gui_infowin.c' || echo '$(srcdir)/'`gui_infowin.c | ||
421 | |||
422 | g3dviewer-gui_infowin.obj: gui_infowin.c | ||
423 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_infowin.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" \ | ||
424 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_infowin.obj `if test -f 'gui_infowin.c'; then $(CYGPATH_W) 'gui_infowin.c'; else $(CYGPATH_W) '$(srcdir)/gui_infowin.c'; fi`; \ | ||
425 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo" "$(DEPDIR)/g3dviewer-gui_infowin.Po"; \ | ||
426 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_infowin.Tpo"; exit 1; \ | ||
427 | @am__fastdepCC_TRUE@ fi | ||
428 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_infowin.c' object='g3dviewer-gui_infowin.obj' libtool=no @AMDEPBACKSLASH@ | ||
429 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_infowin.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_infowin.TPo' @AMDEPBACKSLASH@ | ||
430 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
431 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_infowin.obj `if test -f 'gui_infowin.c'; then $(CYGPATH_W) 'gui_infowin.c'; else $(CYGPATH_W) '$(srcdir)/gui_infowin.c'; fi` | ||
432 | |||
433 | g3dviewer-gui_log.o: gui_log.c | ||
434 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_log.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_log.Tpo" \ | ||
435 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_log.o `test -f 'gui_log.c' || echo '$(srcdir)/'`gui_log.c; \ | ||
436 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_log.Tpo" "$(DEPDIR)/g3dviewer-gui_log.Po"; \ | ||
437 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_log.Tpo"; exit 1; \ | ||
438 | @am__fastdepCC_TRUE@ fi | ||
439 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_log.c' object='g3dviewer-gui_log.o' libtool=no @AMDEPBACKSLASH@ | ||
440 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_log.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_log.TPo' @AMDEPBACKSLASH@ | ||
441 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
442 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_log.o `test -f 'gui_log.c' || echo '$(srcdir)/'`gui_log.c | ||
443 | |||
444 | g3dviewer-gui_log.obj: gui_log.c | ||
445 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_log.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_log.Tpo" \ | ||
446 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_log.obj `if test -f 'gui_log.c'; then $(CYGPATH_W) 'gui_log.c'; else $(CYGPATH_W) '$(srcdir)/gui_log.c'; fi`; \ | ||
447 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_log.Tpo" "$(DEPDIR)/g3dviewer-gui_log.Po"; \ | ||
448 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_log.Tpo"; exit 1; \ | ||
449 | @am__fastdepCC_TRUE@ fi | ||
450 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_log.c' object='g3dviewer-gui_log.obj' libtool=no @AMDEPBACKSLASH@ | ||
451 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_log.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_log.TPo' @AMDEPBACKSLASH@ | ||
452 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
453 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_log.obj `if test -f 'gui_log.c'; then $(CYGPATH_W) 'gui_log.c'; else $(CYGPATH_W) '$(srcdir)/gui_log.c'; fi` | ||
454 | |||
455 | g3dviewer-screenshot.o: screenshot.c | ||
456 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-screenshot.o -MD -MP -MF "$(DEPDIR)/g3dviewer-screenshot.Tpo" \ | ||
457 | @am__fastdepCC_TRUE@ -c -o g3dviewer-screenshot.o `test -f 'screenshot.c' || echo '$(srcdir)/'`screenshot.c; \ | ||
458 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-screenshot.Tpo" "$(DEPDIR)/g3dviewer-screenshot.Po"; \ | ||
459 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-screenshot.Tpo"; exit 1; \ | ||
460 | @am__fastdepCC_TRUE@ fi | ||
461 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='screenshot.c' object='g3dviewer-screenshot.o' libtool=no @AMDEPBACKSLASH@ | ||
462 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3dviewer-screenshot.TPo' @AMDEPBACKSLASH@ | ||
463 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
464 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-screenshot.o `test -f 'screenshot.c' || echo '$(srcdir)/'`screenshot.c | ||
465 | |||
466 | g3dviewer-screenshot.obj: screenshot.c | ||
467 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-screenshot.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-screenshot.Tpo" \ | ||
468 | @am__fastdepCC_TRUE@ -c -o g3dviewer-screenshot.obj `if test -f 'screenshot.c'; then $(CYGPATH_W) 'screenshot.c'; else $(CYGPATH_W) '$(srcdir)/screenshot.c'; fi`; \ | ||
469 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-screenshot.Tpo" "$(DEPDIR)/g3dviewer-screenshot.Po"; \ | ||
470 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-screenshot.Tpo"; exit 1; \ | ||
471 | @am__fastdepCC_TRUE@ fi | ||
472 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='screenshot.c' object='g3dviewer-screenshot.obj' libtool=no @AMDEPBACKSLASH@ | ||
473 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3dviewer-screenshot.TPo' @AMDEPBACKSLASH@ | ||
474 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
475 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-screenshot.obj `if test -f 'screenshot.c'; then $(CYGPATH_W) 'screenshot.c'; else $(CYGPATH_W) '$(srcdir)/screenshot.c'; fi` | ||
476 | |||
477 | g3dviewer-gui_callbacks.o: gui_callbacks.c | ||
478 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_callbacks.o -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" \ | ||
479 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c; \ | ||
480 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" "$(DEPDIR)/g3dviewer-gui_callbacks.Po"; \ | ||
481 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo"; exit 1; \ | ||
482 | @am__fastdepCC_TRUE@ fi | ||
483 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_callbacks.c' object='g3dviewer-gui_callbacks.o' libtool=no @AMDEPBACKSLASH@ | ||
484 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_callbacks.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_callbacks.TPo' @AMDEPBACKSLASH@ | ||
485 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
486 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c | ||
487 | |||
488 | g3dviewer-gui_callbacks.obj: gui_callbacks.c | ||
489 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-gui_callbacks.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" \ | ||
490 | @am__fastdepCC_TRUE@ -c -o g3dviewer-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi`; \ | ||
491 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo" "$(DEPDIR)/g3dviewer-gui_callbacks.Po"; \ | ||
492 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-gui_callbacks.Tpo"; exit 1; \ | ||
493 | @am__fastdepCC_TRUE@ fi | ||
494 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_callbacks.c' object='g3dviewer-gui_callbacks.obj' libtool=no @AMDEPBACKSLASH@ | ||
495 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-gui_callbacks.Po' tmpdepfile='$(DEPDIR)/g3dviewer-gui_callbacks.TPo' @AMDEPBACKSLASH@ | ||
496 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
497 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi` | ||
498 | |||
499 | g3dviewer-texture.o: texture.c | ||
500 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-texture.o -MD -MP -MF "$(DEPDIR)/g3dviewer-texture.Tpo" \ | ||
501 | @am__fastdepCC_TRUE@ -c -o g3dviewer-texture.o `test -f 'texture.c' || echo '$(srcdir)/'`texture.c; \ | ||
502 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-texture.Tpo" "$(DEPDIR)/g3dviewer-texture.Po"; \ | ||
503 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-texture.Tpo"; exit 1; \ | ||
504 | @am__fastdepCC_TRUE@ fi | ||
505 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='texture.c' object='g3dviewer-texture.o' libtool=no @AMDEPBACKSLASH@ | ||
506 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-texture.Po' tmpdepfile='$(DEPDIR)/g3dviewer-texture.TPo' @AMDEPBACKSLASH@ | ||
507 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
508 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-texture.o `test -f 'texture.c' || echo '$(srcdir)/'`texture.c | ||
509 | |||
510 | g3dviewer-texture.obj: texture.c | ||
511 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-texture.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-texture.Tpo" \ | ||
512 | @am__fastdepCC_TRUE@ -c -o g3dviewer-texture.obj `if test -f 'texture.c'; then $(CYGPATH_W) 'texture.c'; else $(CYGPATH_W) '$(srcdir)/texture.c'; fi`; \ | ||
513 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-texture.Tpo" "$(DEPDIR)/g3dviewer-texture.Po"; \ | ||
514 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-texture.Tpo"; exit 1; \ | ||
515 | @am__fastdepCC_TRUE@ fi | ||
516 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='texture.c' object='g3dviewer-texture.obj' libtool=no @AMDEPBACKSLASH@ | ||
517 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-texture.Po' tmpdepfile='$(DEPDIR)/g3dviewer-texture.TPo' @AMDEPBACKSLASH@ | ||
518 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
519 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-texture.obj `if test -f 'texture.c'; then $(CYGPATH_W) 'texture.c'; else $(CYGPATH_W) '$(srcdir)/texture.c'; fi` | ||
520 | |||
521 | g3dviewer-model.o: model.c | ||
522 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-model.o -MD -MP -MF "$(DEPDIR)/g3dviewer-model.Tpo" \ | ||
523 | @am__fastdepCC_TRUE@ -c -o g3dviewer-model.o `test -f 'model.c' || echo '$(srcdir)/'`model.c; \ | ||
524 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-model.Tpo" "$(DEPDIR)/g3dviewer-model.Po"; \ | ||
525 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-model.Tpo"; exit 1; \ | ||
526 | @am__fastdepCC_TRUE@ fi | ||
527 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='model.c' object='g3dviewer-model.o' libtool=no @AMDEPBACKSLASH@ | ||
528 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-model.Po' tmpdepfile='$(DEPDIR)/g3dviewer-model.TPo' @AMDEPBACKSLASH@ | ||
529 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
530 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-model.o `test -f 'model.c' || echo '$(srcdir)/'`model.c | ||
531 | |||
532 | g3dviewer-model.obj: model.c | ||
533 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -MT g3dviewer-model.obj -MD -MP -MF "$(DEPDIR)/g3dviewer-model.Tpo" \ | ||
534 | @am__fastdepCC_TRUE@ -c -o g3dviewer-model.obj `if test -f 'model.c'; then $(CYGPATH_W) 'model.c'; else $(CYGPATH_W) '$(srcdir)/model.c'; fi`; \ | ||
535 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3dviewer-model.Tpo" "$(DEPDIR)/g3dviewer-model.Po"; \ | ||
536 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3dviewer-model.Tpo"; exit 1; \ | ||
537 | @am__fastdepCC_TRUE@ fi | ||
538 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='model.c' object='g3dviewer-model.obj' libtool=no @AMDEPBACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3dviewer-model.Po' tmpdepfile='$(DEPDIR)/g3dviewer-model.TPo' @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3dviewer_CFLAGS) $(CFLAGS) -c -o g3dviewer-model.obj `if test -f 'model.c'; then $(CYGPATH_W) 'model.c'; else $(CYGPATH_W) '$(srcdir)/model.c'; fi` | ||
542 | uninstall-info-am: | ||
543 | |||
544 | ETAGS = etags | ||
545 | ETAGSFLAGS = | ||
546 | |||
547 | CTAGS = ctags | ||
548 | CTAGSFLAGS = | ||
549 | |||
550 | tags: TAGS | ||
551 | |||
552 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
553 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
554 | unique=`for i in $$list; do \ | ||
555 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
556 | done | \ | ||
557 | $(AWK) ' { files[$$0] = 1; } \ | ||
558 | END { for (i in files) print i; }'`; \ | ||
559 | mkid -fID $$unique | ||
560 | |||
561 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
562 | $(TAGS_FILES) $(LISP) | ||
563 | tags=; \ | ||
564 | here=`pwd`; \ | ||
565 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
566 | unique=`for i in $$list; do \ | ||
567 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
568 | done | \ | ||
569 | $(AWK) ' { files[$$0] = 1; } \ | ||
570 | END { for (i in files) print i; }'`; \ | ||
571 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
572 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
573 | $$tags $$unique | ||
574 | |||
575 | ctags: CTAGS | ||
576 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
577 | $(TAGS_FILES) $(LISP) | ||
578 | tags=; \ | ||
579 | here=`pwd`; \ | ||
580 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
581 | unique=`for i in $$list; do \ | ||
582 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
583 | done | \ | ||
584 | $(AWK) ' { files[$$0] = 1; } \ | ||
585 | END { for (i in files) print i; }'`; \ | ||
586 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
587 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
588 | $$tags $$unique | ||
589 | |||
590 | GTAGS: | ||
591 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
592 | && cd $(top_srcdir) \ | ||
593 | && gtags -i $(GTAGS_ARGS) $$here | ||
594 | |||
595 | distclean-tags: | ||
596 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
597 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
598 | |||
599 | top_distdir = .. | ||
600 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
601 | |||
602 | distdir: $(DISTFILES) | ||
603 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
604 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
605 | list='$(DISTFILES)'; for file in $$list; do \ | ||
606 | case $$file in \ | ||
607 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
608 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
609 | esac; \ | ||
610 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
611 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
612 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
613 | dir="/$$dir"; \ | ||
614 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
615 | else \ | ||
616 | dir=''; \ | ||
617 | fi; \ | ||
618 | if test -d $$d/$$file; then \ | ||
619 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
620 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
621 | fi; \ | ||
622 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
623 | else \ | ||
624 | test -f $(distdir)/$$file \ | ||
625 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
626 | || exit 1; \ | ||
627 | fi; \ | ||
628 | done | ||
629 | check-am: all-am | ||
630 | check: check-am | ||
631 | all-am: Makefile $(PROGRAMS) | ||
632 | |||
633 | installdirs: | ||
634 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
635 | install: install-am | ||
636 | install-exec: install-exec-am | ||
637 | install-data: install-data-am | ||
638 | uninstall: uninstall-am | ||
639 | |||
640 | install-am: all-am | ||
641 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
642 | |||
643 | installcheck: installcheck-am | ||
644 | install-strip: | ||
645 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
646 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
647 | `test -z '$(STRIP)' || \ | ||
648 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
649 | mostlyclean-generic: | ||
650 | |||
651 | clean-generic: | ||
652 | |||
653 | distclean-generic: | ||
654 | -rm -f $(CONFIG_CLEAN_FILES) | ||
655 | |||
656 | maintainer-clean-generic: | ||
657 | @echo "This command is intended for maintainers to use" | ||
658 | @echo "it deletes files that may require special tools to rebuild." | ||
659 | clean: clean-am | ||
660 | |||
661 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | ||
662 | |||
663 | distclean: distclean-am | ||
664 | -rm -rf ./$(DEPDIR) | ||
665 | -rm -f Makefile | ||
666 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
667 | distclean-tags | ||
668 | |||
669 | dvi: dvi-am | ||
670 | |||
671 | dvi-am: | ||
672 | |||
673 | info: info-am | ||
674 | |||
675 | info-am: | ||
676 | |||
677 | install-data-am: | ||
678 | |||
679 | install-exec-am: install-binPROGRAMS | ||
680 | |||
681 | install-info: install-info-am | ||
682 | |||
683 | install-man: | ||
684 | |||
685 | installcheck-am: | ||
686 | |||
687 | maintainer-clean: maintainer-clean-am | ||
688 | -rm -rf ./$(DEPDIR) | ||
689 | -rm -f Makefile | ||
690 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
691 | |||
692 | mostlyclean: mostlyclean-am | ||
693 | |||
694 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
695 | |||
696 | pdf: pdf-am | ||
697 | |||
698 | pdf-am: | ||
699 | |||
700 | ps: ps-am | ||
701 | |||
702 | ps-am: | ||
703 | |||
704 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am | ||
705 | |||
706 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||
707 | clean-generic ctags distclean distclean-compile \ | ||
708 | distclean-generic distclean-tags distdir dvi dvi-am info \ | ||
709 | info-am install install-am install-binPROGRAMS install-data \ | ||
710 | install-data-am install-exec install-exec-am install-info \ | ||
711 | install-info-am install-man install-strip installcheck \ | ||
712 | installcheck-am installdirs maintainer-clean \ | ||
713 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
714 | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||
715 | uninstall-am uninstall-binPROGRAMS uninstall-info-am | ||
716 | |||
717 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
718 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
719 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.c new file mode 100644 index 0000000..9a8e004 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.c | |||
@@ -0,0 +1,471 @@ | |||
1 | /* $Id: gl.c 61 2006-11-09 15:31:12Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include <stdlib.h> | ||
24 | #include <string.h> | ||
25 | #include <math.h> | ||
26 | |||
27 | #include <glib.h> | ||
28 | |||
29 | #include <GL/gl.h> | ||
30 | #include <GL/glu.h> | ||
31 | |||
32 | #include <g3d/types.h> | ||
33 | |||
34 | #if 0 | ||
35 | #include "main.h" | ||
36 | #endif | ||
37 | #include "gl.h" | ||
38 | #include "trackball.h" | ||
39 | |||
40 | #if DEBUG > 1 | ||
41 | #define TIMING | ||
42 | #endif | ||
43 | |||
44 | static int _initialized = 0; | ||
45 | |||
46 | #ifdef TIMING | ||
47 | static GTimer *timer = NULL; | ||
48 | static gulong avg_msec = 0; | ||
49 | #endif | ||
50 | |||
51 | GLuint evil; | ||
52 | |||
53 | void gl_init(void) | ||
54 | { | ||
55 | #if DEBUG > 1 | ||
56 | g_printerr("init OpenGL\n"); | ||
57 | #endif | ||
58 | |||
59 | GLfloat light0_pos[4] = { -50.0, 50.0, 0.0, 0.0 }; | ||
60 | GLfloat light0_col[4] = { 0.6, 0.6, 0.6, 1.0 }; | ||
61 | GLfloat light1_pos[4] = { 50.0, 50.0, 0.0, 0.0 }; | ||
62 | GLfloat light1_col[4] = { 0.4, 0.4, 0.4, 1.0 }; | ||
63 | GLfloat ambient_lc[4] = { 0.35, 0.35, 0.35, 1.0 }; | ||
64 | |||
65 | #if 0 | ||
66 | glEnable(GL_CULL_FACE); | ||
67 | #endif | ||
68 | |||
69 | /* transparency and blending */ | ||
70 | #if 0 | ||
71 | glAlphaFunc(GL_GREATER, 0.1); | ||
72 | #endif | ||
73 | glEnable(GL_ALPHA_TEST); | ||
74 | |||
75 | glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | ||
76 | glEnable(GL_BLEND); | ||
77 | |||
78 | glDepthFunc(GL_LEQUAL); | ||
79 | glEnable(GL_DEPTH_TEST); | ||
80 | |||
81 | #if 0 | ||
82 | glEnable(GL_LINE_SMOOTH); | ||
83 | glEnable(GL_POLYGON_SMOOTH); | ||
84 | #endif | ||
85 | |||
86 | #if 0 | ||
87 | glDisable(GL_DITHER); | ||
88 | #endif | ||
89 | glShadeModel(GL_SMOOTH); | ||
90 | |||
91 | glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); | ||
92 | glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); | ||
93 | glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST); | ||
94 | |||
95 | glLightModelfv(GL_LIGHT_MODEL_AMBIENT, ambient_lc); | ||
96 | glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1); | ||
97 | glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR); | ||
98 | glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); | ||
99 | |||
100 | glLightfv(GL_LIGHT0, GL_POSITION, light0_pos); | ||
101 | glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_col); | ||
102 | glLightfv(GL_LIGHT1, GL_POSITION, light1_pos); | ||
103 | glLightfv(GL_LIGHT1, GL_DIFFUSE, light1_col); | ||
104 | glLightfv(GL_LIGHT1, GL_SPECULAR, light1_col); | ||
105 | glEnable(GL_LIGHT0); | ||
106 | glEnable(GL_LIGHT1); | ||
107 | glEnable(GL_LIGHTING); | ||
108 | |||
109 | /* colors and materials */ | ||
110 | glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); | ||
111 | glEnable(GL_COLOR_MATERIAL); | ||
112 | |||
113 | /* texture stuff */ | ||
114 | glEnable(GL_TEXTURE_2D); | ||
115 | |||
116 | #ifdef TIMING | ||
117 | timer = g_timer_new(); | ||
118 | #endif | ||
119 | } | ||
120 | |||
121 | void gl_set_twoside(gboolean twoside) | ||
122 | { | ||
123 | glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, twoside ? 1 : 0); | ||
124 | glColorMaterial( | ||
125 | twoside ? GL_FRONT_AND_BACK : GL_FRONT, | ||
126 | GL_AMBIENT_AND_DIFFUSE); | ||
127 | } | ||
128 | |||
129 | void gl_set_textures(gboolean textures) | ||
130 | { | ||
131 | if(textures) | ||
132 | glEnable(GL_TEXTURE_2D); | ||
133 | else | ||
134 | { | ||
135 | glBindTexture(GL_TEXTURE_2D, 0); | ||
136 | glDisable(GL_TEXTURE_2D); | ||
137 | } | ||
138 | } | ||
139 | |||
140 | /* GHFunc */ | ||
141 | void gl_load_texture(gpointer key, gpointer value, gpointer data) | ||
142 | { | ||
143 | G3DImage *image = (G3DImage *)value; | ||
144 | gint32 env; | ||
145 | |||
146 | #if 0 | ||
147 | /* predefined - update object->_tex_images else... */ | ||
148 | glGenTextures(1, &(image->gl_texid)); | ||
149 | #endif | ||
150 | |||
151 | #if DEBUG > 0 | ||
152 | g_print("gl: loading texture '%s' (%dx%dx%d) - id %d\n", | ||
153 | image->name ? image->name : "(null)", | ||
154 | image->width, image->height, image->depth, | ||
155 | image->tex_id); | ||
156 | #endif | ||
157 | |||
158 | glBindTexture(GL_TEXTURE_2D, image->tex_id); | ||
159 | glPixelStorei(GL_UNPACK_ALIGNMENT, 1); | ||
160 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); | ||
161 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); | ||
162 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | ||
163 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, | ||
164 | GL_LINEAR_MIPMAP_NEAREST); | ||
165 | |||
166 | switch(image->tex_env) | ||
167 | { | ||
168 | case G3D_TEXENV_BLEND: env = GL_BLEND; break; | ||
169 | case G3D_TEXENV_MODULATE: env = GL_MODULATE; break; | ||
170 | case G3D_TEXENV_DECAL: env = GL_DECAL; break; | ||
171 | case G3D_TEXENV_REPLACE: env = GL_REPLACE; break; | ||
172 | default: env = GL_BLEND; break; | ||
173 | } | ||
174 | glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, env); | ||
175 | |||
176 | glTexImage2D( | ||
177 | GL_TEXTURE_2D /* target */, | ||
178 | 0 /* level */, | ||
179 | GL_RGBA /* internalFormat */, | ||
180 | image->width /* width */, | ||
181 | image->height /* height */, | ||
182 | 0 /* border */, | ||
183 | GL_RGBA /* format */, | ||
184 | GL_UNSIGNED_BYTE /* type */, | ||
185 | image->pixeldata /* pixels */); | ||
186 | gluBuild2DMipmaps( | ||
187 | GL_TEXTURE_2D, | ||
188 | GL_RGBA, | ||
189 | image->width, | ||
190 | image->height, | ||
191 | GL_RGBA, | ||
192 | GL_UNSIGNED_BYTE, | ||
193 | image->pixeldata); | ||
194 | } | ||
195 | |||
196 | void gl_update_material(gint32 glflags, G3DMaterial *material) | ||
197 | { | ||
198 | GLenum facetype; | ||
199 | GLfloat normspec[4] = { 0.0, 0.0, 0.0, 1.0 }; | ||
200 | |||
201 | g_return_if_fail(material != NULL); | ||
202 | |||
203 | if(glflags & G3D_FLAG_GL_ALLTWOSIDE) | ||
204 | facetype = GL_FRONT_AND_BACK; | ||
205 | else | ||
206 | facetype = GL_FRONT; | ||
207 | |||
208 | glColor4f( | ||
209 | material->r, | ||
210 | material->g, | ||
211 | material->b, | ||
212 | material->a); | ||
213 | |||
214 | return; | ||
215 | |||
216 | if(glflags & G3D_FLAG_GL_SPECULAR) | ||
217 | glMaterialfv(facetype, GL_SPECULAR, material->specular); | ||
218 | else | ||
219 | glMaterialfv(facetype, GL_SPECULAR, normspec); | ||
220 | |||
221 | if(glflags & G3D_FLAG_GL_SHININESS) | ||
222 | glMaterialf(facetype, GL_SHININESS, material->shininess * 10); | ||
223 | else | ||
224 | glMaterialf(facetype, GL_SHININESS, 0.0); | ||
225 | } | ||
226 | |||
227 | static void gl_draw_face(gint32 glflags, G3DObject *object, gint32 i, | ||
228 | gfloat min_a, gfloat max_a, gboolean *dont_render, gboolean *init) | ||
229 | { | ||
230 | static G3DMaterial *prev_material = NULL; | ||
231 | static guint32 prev_texid = 0; | ||
232 | gint32 j; | ||
233 | |||
234 | if(*init) | ||
235 | { | ||
236 | prev_material = NULL; | ||
237 | prev_texid = 0; | ||
238 | *init = FALSE; | ||
239 | } | ||
240 | |||
241 | /* material check */ | ||
242 | if(prev_material != object->_materials[i]) | ||
243 | { | ||
244 | if((object->_materials[i]->a < min_a) || | ||
245 | (object->_materials[i]->a >= max_a)) | ||
246 | { | ||
247 | *dont_render = TRUE; | ||
248 | return; | ||
249 | } | ||
250 | |||
251 | *dont_render = FALSE; | ||
252 | |||
253 | glEnd(); | ||
254 | gl_update_material(glflags, object->_materials[i]); | ||
255 | glBegin(GL_TRIANGLES); | ||
256 | prev_material = object->_materials[i]; | ||
257 | |||
258 | prev_texid = 0; | ||
259 | } | ||
260 | |||
261 | if(*dont_render) return; | ||
262 | |||
263 | /* texture stuff */ | ||
264 | if((glflags & G3D_FLAG_GL_TEXTURES) && | ||
265 | (object->_flags[i] & G3D_FLAG_FAC_TEXMAP)) | ||
266 | { | ||
267 | /* if texture has changed update to new texture */ | ||
268 | if(object->_tex_images[i] != prev_texid) | ||
269 | { | ||
270 | prev_texid = object->_tex_images[i]; | ||
271 | glEnd(); | ||
272 | glBindTexture(GL_TEXTURE_2D, prev_texid); | ||
273 | glBegin(GL_TRIANGLES); | ||
274 | #if DEBUG > 5 | ||
275 | g_print("gl: binding to texture id %d\n", prev_texid); | ||
276 | #endif | ||
277 | } | ||
278 | } | ||
279 | |||
280 | |||
281 | /* draw triangles */ | ||
282 | for(j = 0; j < 3; j ++) | ||
283 | { | ||
284 | if((glflags & G3D_FLAG_GL_TEXTURES) && | ||
285 | (object->_flags[i] & G3D_FLAG_FAC_TEXMAP)) | ||
286 | { | ||
287 | glTexCoord2f( | ||
288 | object->_tex_coords[(i * 3 + j) * 2 + 0], | ||
289 | object->_tex_coords[(i * 3 + j) * 2 + 1]); | ||
290 | #if DEBUG > 5 | ||
291 | g_print("gl: setting texture coords: %f, %f\n", | ||
292 | object->_tex_coords[(i * 3 + j) * 2 + 0], | ||
293 | object->_tex_coords[(i * 3 + j) * 2 + 1]); | ||
294 | #endif | ||
295 | } | ||
296 | |||
297 | glNormal3f( | ||
298 | object->_normals[(i*3+j)*3+0], | ||
299 | object->_normals[(i*3+j)*3+1], | ||
300 | object->_normals[(i*3+j)*3+2]); | ||
301 | glVertex3f( | ||
302 | object->vertex_data[object->_indices[i*3+j]*3+0], | ||
303 | object->vertex_data[object->_indices[i*3+j]*3+1], | ||
304 | object->vertex_data[object->_indices[i*3+j]*3+2]); | ||
305 | |||
306 | } /* 1 .. 3 */ | ||
307 | } | ||
308 | |||
309 | static void gl_draw_objects(gint32 glflags, GSList *objects, | ||
310 | gfloat min_a, gfloat max_a) | ||
311 | { | ||
312 | GSList *olist; | ||
313 | int i; | ||
314 | G3DObject *object; | ||
315 | gboolean dont_render; | ||
316 | gboolean init = TRUE; | ||
317 | |||
318 | olist = objects; | ||
319 | while(olist != NULL) | ||
320 | { | ||
321 | object = (G3DObject *)olist->data; | ||
322 | olist = olist->next; | ||
323 | |||
324 | dont_render = FALSE; | ||
325 | |||
326 | /* don't render invisible objects */ | ||
327 | if(object->hide) continue; | ||
328 | |||
329 | g_return_if_fail(object != NULL); | ||
330 | #if DEBUG > 3 | ||
331 | g_printerr("name: %s {", object->name); | ||
332 | #endif | ||
333 | |||
334 | #if DEBUG > 2 | ||
335 | g_printerr("new object\n"); | ||
336 | #endif | ||
337 | |||
338 | glPushMatrix(); | ||
339 | |||
340 | if(object->transformation) | ||
341 | { | ||
342 | glMultMatrixf(object->transformation->matrix); | ||
343 | } | ||
344 | |||
345 | glBegin(GL_TRIANGLES); | ||
346 | |||
347 | for(i = 0; i < object->_num_faces; i ++) | ||
348 | { | ||
349 | gl_draw_face(glflags, object, i, min_a, max_a, | ||
350 | &dont_render, &init); | ||
351 | } /* all faces */ | ||
352 | |||
353 | glEnd(); | ||
354 | |||
355 | /* handle sub-objects */ | ||
356 | gl_draw_objects(glflags, object->objects, min_a, max_a); | ||
357 | |||
358 | glPopMatrix(); | ||
359 | |||
360 | } /* while olist != NULL */ | ||
361 | } | ||
362 | |||
363 | void gl_draw(gint32 glflags, gfloat zoom, gfloat aspect, gfloat *bgcolor, | ||
364 | gfloat *quat, G3DModel *model) | ||
365 | { | ||
366 | GLfloat m[4][4]; | ||
367 | static gchar *previous_name = NULL; | ||
368 | static gint32 previous_glflags = -1; | ||
369 | static gint32 dlist = -1; | ||
370 | GLenum error; | ||
371 | gfloat f; | ||
372 | |||
373 | if(! _initialized) | ||
374 | { | ||
375 | gl_init(); | ||
376 | _initialized = 1; | ||
377 | } | ||
378 | |||
379 | /* draw scene... */ | ||
380 | glMatrixMode(GL_PROJECTION); | ||
381 | glLoadIdentity(); | ||
382 | gluPerspective(zoom, aspect, 1, 100); | ||
383 | glMatrixMode(GL_MODELVIEW); | ||
384 | |||
385 | glClearColor( | ||
386 | bgcolor[0], | ||
387 | bgcolor[1], | ||
388 | bgcolor[2], | ||
389 | bgcolor[3]); | ||
390 | glClearDepth(1.0); | ||
391 | glClearIndex(0.3); | ||
392 | glClear( | ||
393 | GL_COLOR_BUFFER_BIT | | ||
394 | GL_DEPTH_BUFFER_BIT | | ||
395 | GL_ACCUM_BUFFER_BIT | | ||
396 | GL_STENCIL_BUFFER_BIT); | ||
397 | |||
398 | glLoadIdentity(); | ||
399 | glTranslatef(0, 0, -30); | ||
400 | build_rotmatrix(m, quat); | ||
401 | glMultMatrixf(&m[0][0]); | ||
402 | |||
403 | /* reset texture */ | ||
404 | glBindTexture (GL_TEXTURE_2D, 0); | ||
405 | |||
406 | if(model == NULL) | ||
407 | return; | ||
408 | |||
409 | #ifdef TIMING | ||
410 | g_timer_start(timer); | ||
411 | #endif | ||
412 | |||
413 | /* FIXME: better detection of new model */ | ||
414 | if((dlist < 0) || (glflags != previous_glflags) || | ||
415 | (previous_name == NULL) || strcmp(previous_name, model->filename)) | ||
416 | { | ||
417 | #if DEBUG > 0 | ||
418 | g_printerr("[gl] creating new display list\n"); | ||
419 | #endif | ||
420 | /* create and execute display list */ | ||
421 | if(dlist >= 0) | ||
422 | glDeleteLists(dlist, 1); | ||
423 | dlist = glGenLists(1); | ||
424 | |||
425 | glNewList(dlist, GL_COMPILE); | ||
426 | /* draw all objects */ | ||
427 | for(f = 1.0; f >= 0.0; f -= 0.2) | ||
428 | gl_draw_objects(glflags, model->objects, f, f + 0.2); | ||
429 | glEndList(); | ||
430 | |||
431 | if(previous_name) g_free(previous_name); | ||
432 | previous_name = g_strdup(model->filename); | ||
433 | previous_glflags = glflags; | ||
434 | } | ||
435 | |||
436 | /* execute display list */ | ||
437 | glCallList(dlist); | ||
438 | |||
439 | error = glGetError(); | ||
440 | if(error != GL_NO_ERROR) | ||
441 | g_printerr("[gl] E: %d\n", error); | ||
442 | |||
443 | #ifdef TIMING /* get time to draw one frame to compare algorithms */ | ||
444 | g_timer_stop(timer); | ||
445 | |||
446 | if(avg_msec == 0) | ||
447 | { | ||
448 | gulong msec; | ||
449 | gdouble sec; | ||
450 | |||
451 | sec = g_timer_elapsed(timer, &msec); | ||
452 | avg_msec = (gulong)sec * 1000000 + msec; | ||
453 | } | ||
454 | else | ||
455 | { | ||
456 | gulong msec, add; | ||
457 | gdouble sec; | ||
458 | |||
459 | sec = g_timer_elapsed(timer, &msec); | ||
460 | add = (gulong)sec * 1000000 + msec; | ||
461 | avg_msec = (avg_msec + add) / 2; | ||
462 | } | ||
463 | |||
464 | g_printerr("average time to render frame: %lu µs\n", avg_msec); | ||
465 | #endif | ||
466 | |||
467 | #if DEBUG > 3 | ||
468 | g_printerr("gl.c: drawn...\n"); | ||
469 | #endif | ||
470 | } | ||
471 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.h new file mode 100644 index 0000000..82d360d --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gl.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* $Id: gl.h 41 2006-05-22 12:23:29Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GL_H | ||
24 | #define _GL_H | ||
25 | |||
26 | #define G3D_FLAG_GL_SPECULAR (1L << 0) | ||
27 | #define G3D_FLAG_GL_SHININESS (1L << 1) | ||
28 | #define G3D_FLAG_GL_ALLTWOSIDE (1L << 2) | ||
29 | #define G3D_FLAG_GL_TEXTURES (1L << 3) | ||
30 | |||
31 | void gl_set_twoside(gboolean twoside); | ||
32 | void gl_set_textures(gboolean textures); | ||
33 | void gl_load_texture(gpointer key, gpointer value, gpointer data); | ||
34 | void gl_draw(gint32 glflags, gfloat zoom, gfloat aspect, gfloat *bgcolor, | ||
35 | gfloat *quat, G3DModel *model); | ||
36 | |||
37 | #endif | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.c new file mode 100644 index 0000000..dda4275 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.c | |||
@@ -0,0 +1,236 @@ | |||
1 | /* $Id: glarea.c 47 2006-05-22 17:53:38Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | |||
29 | #include <gtk/gtk.h> | ||
30 | #include <gtk/gtkgl.h> | ||
31 | #include <GL/gl.h> | ||
32 | |||
33 | #include "main.h" | ||
34 | #include "gl.h" | ||
35 | #include "glarea.h" | ||
36 | #include "gui_glade.h" | ||
37 | #include "trackball.h" | ||
38 | |||
39 | /* | ||
40 | * updates glarea widget (redraw) | ||
41 | */ | ||
42 | void glarea_update(GtkWidget *glarea) | ||
43 | { | ||
44 | gtk_widget_queue_draw_area(glarea, 0, 0, | ||
45 | glarea->allocation.width, glarea->allocation.height); | ||
46 | } | ||
47 | |||
48 | /* | ||
49 | * handler for "expose" event | ||
50 | */ | ||
51 | gint glarea_expose(GtkWidget *widget, GdkEventExpose *event) | ||
52 | { | ||
53 | GdkGLDrawable *gldrawable; | ||
54 | GdkGLContext *glcontext; | ||
55 | G3DViewer *viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), | ||
56 | "viewer"); | ||
57 | |||
58 | if(event->count > 0) return TRUE; | ||
59 | |||
60 | gldrawable = gtk_widget_get_gl_drawable(widget); | ||
61 | glcontext = gtk_widget_get_gl_context(widget); | ||
62 | |||
63 | if(!gdk_gl_drawable_gl_begin(gldrawable, glcontext)) return TRUE; | ||
64 | |||
65 | gl_draw(viewer->glflags, viewer->zoom, viewer->aspect, viewer->bgcolor, | ||
66 | viewer->quat, viewer->model); | ||
67 | |||
68 | gdk_gl_drawable_swap_buffers(gldrawable); | ||
69 | gdk_gl_drawable_gl_end(gldrawable); | ||
70 | |||
71 | return TRUE; | ||
72 | } | ||
73 | |||
74 | /* | ||
75 | * handler for "configure" event | ||
76 | */ | ||
77 | gint glarea_configure(GtkWidget *widget, GdkEventConfigure *event) | ||
78 | { | ||
79 | GdkGLDrawable *gldrawable; | ||
80 | GdkGLContext *glcontext; | ||
81 | G3DViewer *viewer; | ||
82 | |||
83 | gldrawable = gtk_widget_get_gl_drawable(widget); | ||
84 | glcontext = gtk_widget_get_gl_context(widget); | ||
85 | |||
86 | if(!gdk_gl_drawable_gl_begin(gldrawable, glcontext)) return TRUE; | ||
87 | |||
88 | viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
89 | glViewport(0,0, widget->allocation.width, widget->allocation.height); | ||
90 | viewer->aspect = (gfloat)widget->allocation.width / | ||
91 | (gfloat)widget->allocation.height; | ||
92 | #if DEBUG > 3 | ||
93 | g_printerr("DEBUG: glarea_configure (%f)\n", viewer->aspect); | ||
94 | #endif | ||
95 | |||
96 | gdk_gl_drawable_gl_end(gldrawable); | ||
97 | |||
98 | return TRUE; | ||
99 | } | ||
100 | |||
101 | /* | ||
102 | * handler for "destroy" event | ||
103 | */ | ||
104 | gint glarea_destroy(GtkWidget *widget) | ||
105 | { | ||
106 | G3DViewer *viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), | ||
107 | "viewer"); | ||
108 | if(viewer->interface.glarea) | ||
109 | { | ||
110 | /* FIXME: */ | ||
111 | } | ||
112 | |||
113 | return TRUE; | ||
114 | } | ||
115 | |||
116 | /* | ||
117 | * handler for "scroll" event (mouse wheel) | ||
118 | */ | ||
119 | gint glarea_scroll(GtkWidget *widget, GdkEventScroll *event) | ||
120 | { | ||
121 | GdkRectangle area; | ||
122 | G3DViewer *viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), | ||
123 | "viewer"); | ||
124 | |||
125 | #define ZOOM_BY 10 | ||
126 | if(event->direction == GDK_SCROLL_DOWN) viewer->zoom += ZOOM_BY; | ||
127 | else viewer->zoom -= ZOOM_BY; | ||
128 | #undef ZOOM_BY | ||
129 | |||
130 | area.x = 0; | ||
131 | area.y = 0; | ||
132 | area.width = widget->allocation.width; | ||
133 | area.height = widget->allocation.height; | ||
134 | |||
135 | if(viewer->zoom < 1) viewer->zoom = 1; | ||
136 | if(viewer->zoom > 120) viewer->zoom = 120; | ||
137 | |||
138 | glarea_update(widget); | ||
139 | |||
140 | return FALSE; | ||
141 | } | ||
142 | |||
143 | /* | ||
144 | * handler for "button pressed" event | ||
145 | */ | ||
146 | gint glarea_button_pressed(GtkWidget *widget, GdkEventButton *event) | ||
147 | { | ||
148 | G3DViewer *viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), | ||
149 | "viewer"); | ||
150 | |||
151 | /* left mouse buttom: rotate object */ | ||
152 | if(event->button == 1) | ||
153 | { | ||
154 | viewer->mouse.beginx = event->x; | ||
155 | viewer->mouse.beginy = event->y; | ||
156 | return TRUE; | ||
157 | } | ||
158 | /* right mouse button: pop-up menu */ | ||
159 | else if(event->button == 3) | ||
160 | { | ||
161 | if(event->type == GDK_BUTTON_PRESS) | ||
162 | { | ||
163 | GtkWidget *menu = | ||
164 | (GtkWidget*)g_object_get_data(G_OBJECT(widget), | ||
165 | "menu"); | ||
166 | gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, | ||
167 | event->button, event->time); | ||
168 | return TRUE; | ||
169 | } | ||
170 | } | ||
171 | |||
172 | return FALSE; | ||
173 | } | ||
174 | |||
175 | /* | ||
176 | * handler for "motion notify" event | ||
177 | */ | ||
178 | gint glarea_motion_notify(GtkWidget *widget, GdkEventMotion *event) | ||
179 | { | ||
180 | gint x, y; | ||
181 | gchar *text; | ||
182 | GdkRectangle area; | ||
183 | GdkModifierType state; | ||
184 | G3DViewer *viewer = (G3DViewer*)g_object_get_data(G_OBJECT(widget), | ||
185 | "viewer"); | ||
186 | |||
187 | if(event->is_hint) | ||
188 | gdk_window_get_pointer(event->window, &x, &y, &state); | ||
189 | else | ||
190 | { | ||
191 | x = event->x; | ||
192 | y = event->y; | ||
193 | state = event->state; | ||
194 | } | ||
195 | |||
196 | area.x = 0; | ||
197 | area.y = 0; | ||
198 | area.width = widget->allocation.width; | ||
199 | area.height = widget->allocation.height; | ||
200 | |||
201 | /* left button pressed */ | ||
202 | if(state & GDK_BUTTON1_MASK) | ||
203 | { | ||
204 | gfloat spin_quat[4]; | ||
205 | trackball(spin_quat, | ||
206 | (2.0*viewer->mouse.beginx - area.width) / area.width, | ||
207 | ( area.height - 2.0*viewer->mouse.beginy) / area.height, | ||
208 | ( 2.0*x - area.width) / area.width, | ||
209 | ( area.height - 2.0*y) / area.height); | ||
210 | add_quats(spin_quat, viewer->quat, viewer->quat); | ||
211 | |||
212 | text = g_strdup_printf("quat: %-.2f, %-.2f, %-.2f, %-.2f", | ||
213 | viewer->quat[0], viewer->quat[1], | ||
214 | viewer->quat[2], viewer->quat[3]); | ||
215 | gui_glade_status(viewer, text); | ||
216 | g_free(text); | ||
217 | |||
218 | glarea_update(widget); | ||
219 | } | ||
220 | |||
221 | /* middle mouse button */ | ||
222 | if(state & GDK_BUTTON2_MASK) | ||
223 | { | ||
224 | viewer->zoom += | ||
225 | ((y - viewer->mouse.beginy) / (gfloat)area.height) * 40; | ||
226 | if(viewer->zoom < 1) viewer->zoom = 1; | ||
227 | if(viewer->zoom > 120) viewer->zoom = 120; | ||
228 | |||
229 | glarea_update(widget); | ||
230 | } | ||
231 | viewer->mouse.beginx = x; | ||
232 | viewer->mouse.beginy = y; | ||
233 | |||
234 | return TRUE; | ||
235 | } | ||
236 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.h new file mode 100644 index 0000000..327abc7 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/glarea.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* $Id: glarea.h 25 2006-04-22 17:24:27Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GLAREA_H | ||
24 | #define _GLAREA_H | ||
25 | |||
26 | #include <gtk/gtk.h> | ||
27 | |||
28 | void glarea_update(GtkWidget *glarea); | ||
29 | |||
30 | gint glarea_expose(GtkWidget *widget, GdkEventExpose *event); | ||
31 | gint glarea_configure(GtkWidget *widget, GdkEventConfigure *event); | ||
32 | gint glarea_destroy(GtkWidget *widget); | ||
33 | gint glarea_scroll(GtkWidget *widget, GdkEventScroll *event); | ||
34 | gint glarea_button_pressed(GtkWidget *widget, GdkEventButton *event); | ||
35 | gint glarea_motion_notify(GtkWidget *widget, GdkEventMotion *event); | ||
36 | |||
37 | #endif | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_callbacks.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_callbacks.c new file mode 100644 index 0000000..dfff61f --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_callbacks.c | |||
@@ -0,0 +1,364 @@ | |||
1 | /* $Id: gui_callbacks.c 58 2006-11-05 19:21:04Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | #include <string.h> | ||
29 | |||
30 | #include <gtk/gtk.h> | ||
31 | |||
32 | #include "main.h" | ||
33 | #include "gl.h" | ||
34 | #include "glarea.h" | ||
35 | #include "gui_glade.h" | ||
36 | #include "trackball.h" | ||
37 | #include "screenshot.h" | ||
38 | |||
39 | /* | ||
40 | * File->Open | ||
41 | */ | ||
42 | |||
43 | void gui_on_open_cb(GtkWidget *widget, gpointer user_data) | ||
44 | { | ||
45 | G3DViewer *viewer; | ||
46 | |||
47 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
48 | |||
49 | gui_glade_open_dialog(viewer); | ||
50 | } | ||
51 | |||
52 | /* | ||
53 | * File->Properties | ||
54 | */ | ||
55 | |||
56 | void gui_on_properties_cb(GtkWidget *widget, gpointer user_data) | ||
57 | { | ||
58 | G3DViewer *viewer; | ||
59 | GtkWidget *propwin; | ||
60 | |||
61 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
62 | g_assert(viewer); | ||
63 | |||
64 | propwin = glade_xml_get_widget(viewer->interface.xml, "properties_window"); | ||
65 | |||
66 | gtk_widget_show_all(propwin); | ||
67 | } | ||
68 | |||
69 | /* | ||
70 | * View->Show Menubar | ||
71 | */ | ||
72 | |||
73 | void gui_on_show_menubar_cb(GtkWidget *widget, gpointer user_data) | ||
74 | { | ||
75 | G3DViewer *viewer; | ||
76 | GtkWidget *menubar; | ||
77 | |||
78 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
79 | g_assert(viewer); | ||
80 | |||
81 | menubar = glade_xml_get_widget(viewer->interface.xml, "menu_main"); | ||
82 | g_assert(menubar); | ||
83 | |||
84 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
85 | gtk_widget_show(menubar); | ||
86 | else | ||
87 | gtk_widget_hide(menubar); | ||
88 | } | ||
89 | |||
90 | /* | ||
91 | * View->Show Toolbar | ||
92 | */ | ||
93 | |||
94 | void gui_on_show_toolbar_cb(GtkWidget *widget, gpointer user_data) | ||
95 | { | ||
96 | G3DViewer *viewer; | ||
97 | GtkWidget *toolbar; | ||
98 | |||
99 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
100 | g_assert(viewer); | ||
101 | |||
102 | toolbar = glade_xml_get_widget(viewer->interface.xml, "toolbar_main"); | ||
103 | g_assert(toolbar); | ||
104 | |||
105 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
106 | gtk_widget_show(toolbar); | ||
107 | else | ||
108 | gtk_widget_hide(toolbar); | ||
109 | } | ||
110 | |||
111 | /* | ||
112 | * View->Fullscreen | ||
113 | */ | ||
114 | void gui_on_fullscreen_cb(GtkWidget *widget, gpointer user_data) | ||
115 | { | ||
116 | G3DViewer *viewer; | ||
117 | |||
118 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
119 | g_assert(viewer); | ||
120 | |||
121 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
122 | gtk_window_fullscreen(GTK_WINDOW(viewer->interface.window)); | ||
123 | else | ||
124 | gtk_window_unfullscreen(GTK_WINDOW(viewer->interface.window)); | ||
125 | } | ||
126 | |||
127 | /* | ||
128 | * Window state event | ||
129 | */ | ||
130 | void gui_on_window_state_event(GtkWidget *widget, GdkEventVisibility *event, | ||
131 | gpointer user_data) | ||
132 | { | ||
133 | G3DViewer *viewer; | ||
134 | |||
135 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
136 | g_assert(viewer); | ||
137 | } | ||
138 | |||
139 | /* | ||
140 | * View->ZoomFit | ||
141 | */ | ||
142 | void gui_on_zoomfit_cb(GtkWidget *widget, gpointer user_data) | ||
143 | { | ||
144 | G3DViewer *viewer; | ||
145 | |||
146 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
147 | g_assert(viewer); | ||
148 | |||
149 | /* zoom */ | ||
150 | viewer->zoom = 45; | ||
151 | |||
152 | /* reset trackball */ | ||
153 | #if 1 | ||
154 | trackball(viewer->quat, 0.0, 0.0, 0.0, 0.0); | ||
155 | #endif | ||
156 | |||
157 | glarea_update(viewer->interface.glarea); | ||
158 | } | ||
159 | |||
160 | /* | ||
161 | * View->Shininess | ||
162 | */ | ||
163 | |||
164 | void gui_on_shininess_cb(GtkWidget *widget, gpointer user_data) | ||
165 | { | ||
166 | G3DViewer *viewer; | ||
167 | |||
168 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
169 | g_assert(viewer); | ||
170 | |||
171 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
172 | viewer->glflags |= G3D_FLAG_GL_SHININESS; | ||
173 | else | ||
174 | viewer->glflags &= ~G3D_FLAG_GL_SHININESS; | ||
175 | } | ||
176 | |||
177 | /* | ||
178 | * View->Two-sided Faces | ||
179 | */ | ||
180 | |||
181 | void gui_on_twosided_cb(GtkWidget *widget, gpointer user_data) | ||
182 | { | ||
183 | G3DViewer *viewer; | ||
184 | |||
185 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
186 | g_assert(viewer); | ||
187 | |||
188 | gl_set_twoside( | ||
189 | gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))); | ||
190 | } | ||
191 | |||
192 | /* | ||
193 | * View->Textures | ||
194 | */ | ||
195 | |||
196 | void gui_on_textures_cb(GtkWidget *widget, gpointer user_data) | ||
197 | { | ||
198 | G3DViewer *viewer; | ||
199 | |||
200 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
201 | g_assert(viewer); | ||
202 | |||
203 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
204 | viewer->glflags |= G3D_FLAG_GL_TEXTURES; | ||
205 | else | ||
206 | viewer->glflags &= ~G3D_FLAG_GL_TEXTURES; | ||
207 | } | ||
208 | |||
209 | /* | ||
210 | * View->Specular Lighting | ||
211 | */ | ||
212 | |||
213 | void gui_on_specular_cb(GtkWidget *widget, gpointer user_data) | ||
214 | { | ||
215 | G3DViewer *viewer; | ||
216 | |||
217 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
218 | g_assert(viewer); | ||
219 | |||
220 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
221 | viewer->glflags |= G3D_FLAG_GL_SPECULAR; | ||
222 | else | ||
223 | viewer->glflags &= ~G3D_FLAG_GL_SPECULAR; | ||
224 | } | ||
225 | |||
226 | /* | ||
227 | * View->Wireframe | ||
228 | */ | ||
229 | |||
230 | void gui_on_wireframe_cb(GtkWidget *widget, gpointer user_data) | ||
231 | { | ||
232 | G3DViewer *viewer; | ||
233 | |||
234 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
235 | g_assert(viewer); | ||
236 | |||
237 | if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) | ||
238 | { | ||
239 | glPolygonMode(GL_FRONT, GL_LINE); | ||
240 | glPolygonMode(GL_BACK, GL_LINE); | ||
241 | } | ||
242 | else | ||
243 | { | ||
244 | glPolygonMode(GL_FRONT, GL_FILL); | ||
245 | glPolygonMode(GL_BACK, GL_FILL); | ||
246 | } | ||
247 | } | ||
248 | |||
249 | /* | ||
250 | * View->Background Color | ||
251 | */ | ||
252 | |||
253 | void gui_on_bgcolor_cb(GtkWidget *widget, gpointer user_data) | ||
254 | { | ||
255 | G3DViewer *viewer; | ||
256 | GtkWidget *colorsel, *colordialog; | ||
257 | GdkColor color; | ||
258 | gint retval; | ||
259 | |||
260 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
261 | g_assert(viewer != NULL); | ||
262 | |||
263 | colorsel = glade_xml_get_widget(viewer->interface.xml, "cs_background"); | ||
264 | colordialog = glade_xml_get_widget(viewer->interface.xml, "color_dialog"); | ||
265 | |||
266 | /* set active background color */ | ||
267 | color.red = viewer->bgcolor[0] * 0xFFFF; | ||
268 | color.green = viewer->bgcolor[1] * 0xFFFF; | ||
269 | color.blue = viewer->bgcolor[2] * 0xFFFF; | ||
270 | gtk_color_selection_set_previous_color(GTK_COLOR_SELECTION(colorsel), | ||
271 | &color); | ||
272 | gtk_color_selection_set_current_color(GTK_COLOR_SELECTION(colorsel), | ||
273 | &color); | ||
274 | |||
275 | retval = gtk_dialog_run(GTK_DIALOG(colordialog)); | ||
276 | gtk_widget_hide(colordialog); | ||
277 | if(retval == GTK_RESPONSE_CANCEL) | ||
278 | { | ||
279 | gtk_color_selection_get_previous_color(GTK_COLOR_SELECTION(colorsel), | ||
280 | &color); | ||
281 | viewer->bgcolor[0] = (gdouble)color.red / 65536.0; | ||
282 | viewer->bgcolor[1] = (gdouble)color.green / 65536.0; | ||
283 | viewer->bgcolor[2] = (gdouble)color.blue / 65536.0; | ||
284 | |||
285 | glarea_update(viewer->interface.glarea); | ||
286 | } | ||
287 | } | ||
288 | |||
289 | /* | ||
290 | * Help->Info | ||
291 | */ | ||
292 | |||
293 | void gui_on_help_info_cb(GtkWidget *widget, gpointer user_data) | ||
294 | { | ||
295 | G3DViewer *viewer; | ||
296 | GtkWidget *info_dialog; | ||
297 | |||
298 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
299 | g_assert(viewer != NULL); | ||
300 | |||
301 | info_dialog = glade_xml_get_widget(viewer->interface.xml, "info_dialog"); | ||
302 | |||
303 | gtk_widget_show_all(info_dialog); | ||
304 | } | ||
305 | |||
306 | /* | ||
307 | * ColorDialog: color changed | ||
308 | */ | ||
309 | void gui_color_changed_cb(GtkColorSelection *colorsel, | ||
310 | gpointer user_data) | ||
311 | { | ||
312 | G3DViewer *viewer; | ||
313 | GdkColor color; | ||
314 | |||
315 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(colorsel), "viewer"); | ||
316 | g_assert(viewer != NULL); | ||
317 | |||
318 | gtk_color_selection_get_current_color(colorsel, &color); | ||
319 | viewer->bgcolor[0] = (gdouble)color.red / 65536.0; | ||
320 | viewer->bgcolor[1] = (gdouble)color.green / 65536.0; | ||
321 | viewer->bgcolor[2] = (gdouble)color.blue / 65536.0; | ||
322 | |||
323 | #if DEBUG > 4 | ||
324 | g_printerr("D: gui_color_changed_cb: color %.2f, %.2f, %.2f\n", | ||
325 | viewer->bgcolor[0], | ||
326 | viewer->bgcolor[1], | ||
327 | viewer->bgcolor[2]); | ||
328 | #endif | ||
329 | |||
330 | glarea_update(viewer->interface.glarea); | ||
331 | } | ||
332 | |||
333 | /* | ||
334 | * Screenshot | ||
335 | */ | ||
336 | void gui_on_screenshot_cb(GtkWidget *widget, gpointer user_data) | ||
337 | { | ||
338 | G3DViewer *viewer; | ||
339 | gchar *filename, *basename; | ||
340 | guint32 width, height; | ||
341 | |||
342 | viewer = (G3DViewer *)g_object_get_data(G_OBJECT(widget), "viewer"); | ||
343 | g_assert(viewer); | ||
344 | |||
345 | /* don't screenshot empty window */ | ||
346 | if(viewer->filename == NULL) | ||
347 | return; | ||
348 | |||
349 | width = viewer->interface.glarea->allocation.width; | ||
350 | height = viewer->interface.glarea->allocation.height; | ||
351 | |||
352 | basename = g_path_get_basename(viewer->filename); | ||
353 | filename = g_strdup_printf("g3dviewer-screenshot-%s.png", basename); | ||
354 | g_free(basename); | ||
355 | |||
356 | |||
357 | |||
358 | if(screenshot_save(filename, width, height)) | ||
359 | g_print("screenshot \"%s\" saved.\n", filename); | ||
360 | else | ||
361 | g_printerr("failed saving screenshot \"%s\".\n", filename); | ||
362 | |||
363 | g_free(filename); | ||
364 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.c new file mode 100644 index 0000000..7f7fddd --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.c | |||
@@ -0,0 +1,404 @@ | |||
1 | /* $Id: gui_glade.c 58 2006-11-05 19:21:04Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | #include <string.h> | ||
29 | |||
30 | #include <gtk/gtk.h> | ||
31 | #include <gtk/gtkgl.h> | ||
32 | #include <glade/glade-xml.h> | ||
33 | |||
34 | #include <g3d/plugins.h> | ||
35 | |||
36 | #include "main.h" | ||
37 | #include "model.h" | ||
38 | #include "glarea.h" | ||
39 | |||
40 | #include "gui_glade.h" | ||
41 | #include "gui_infowin.h" | ||
42 | #include "gui_log.h" | ||
43 | |||
44 | static void gui_glade_clone_menuitem(GtkWidget *menuitem, gpointer user_data); | ||
45 | |||
46 | /* | ||
47 | * initializes libglade | ||
48 | */ | ||
49 | |||
50 | gboolean gui_glade_init(G3DViewer *viewer) | ||
51 | { | ||
52 | return TRUE; | ||
53 | } | ||
54 | |||
55 | static void gui_glade_add_open_filters(G3DViewer *viewer) | ||
56 | { | ||
57 | GtkWidget *opendialog; | ||
58 | GtkFileFilter *filter; | ||
59 | GSList *plugins; | ||
60 | G3DPlugin *plugin; | ||
61 | gchar *name, *exts, **ext, *glob, *tmp; | ||
62 | |||
63 | opendialog = glade_xml_get_widget(viewer->interface.xml, "open_dialog"); | ||
64 | |||
65 | /* "all files" filter */ | ||
66 | filter = gtk_file_filter_new(); | ||
67 | gtk_file_filter_set_name(filter, _("all files")); | ||
68 | gtk_file_filter_add_pattern(filter, "*"); | ||
69 | gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(opendialog), filter); | ||
70 | |||
71 | /* FIXME: evil hack? */ | ||
72 | plugins = viewer->g3dcontext->plugins; | ||
73 | while(plugins) | ||
74 | { | ||
75 | plugin = (G3DPlugin *)plugins->data; | ||
76 | plugins = plugins->next; | ||
77 | |||
78 | if(plugin->type != G3D_PLUGIN_IMPORT) continue; | ||
79 | |||
80 | filter = gtk_file_filter_new(); | ||
81 | exts = g_strjoinv(", ", plugin->extensions); | ||
82 | if(strlen(exts) > 30) | ||
83 | { | ||
84 | tmp = exts; | ||
85 | exts = g_strdup_printf("%.*s...", 30, tmp); | ||
86 | g_free(tmp); | ||
87 | } | ||
88 | name = g_strdup_printf("%s (%s)", plugin->name, exts); | ||
89 | gtk_file_filter_set_name(filter, name); | ||
90 | g_free(name); | ||
91 | g_free(exts); | ||
92 | |||
93 | ext = plugin->extensions; | ||
94 | while(ext && *ext) | ||
95 | { | ||
96 | glob = g_strdup_printf("*.%s", *ext); | ||
97 | gtk_file_filter_add_pattern(filter, glob); | ||
98 | g_free(glob); | ||
99 | |||
100 | ext ++; | ||
101 | } | ||
102 | |||
103 | gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(opendialog), filter); | ||
104 | } | ||
105 | } | ||
106 | |||
107 | /* | ||
108 | * loads interface from .glade file | ||
109 | */ | ||
110 | |||
111 | gboolean gui_glade_load(G3DViewer *viewer) | ||
112 | { | ||
113 | GladeXML *xml; | ||
114 | GtkWidget *window, *widget, *popupmenu, *glarea, *statusbar; | ||
115 | gint i; | ||
116 | static const gchar *viewer_widgets[] = { | ||
117 | "main_window", | ||
118 | "mi_file_open", | ||
119 | "mi_properties", | ||
120 | "mi_screenshot", | ||
121 | "mi_show_menubar", | ||
122 | "mi_show_toolbar", | ||
123 | "mi_fullscreen", | ||
124 | "mi_zoomfit", | ||
125 | "mi_wireframe", | ||
126 | "mi_specular", | ||
127 | "mi_shininess", | ||
128 | "mi_textures", | ||
129 | "mi_twosided", | ||
130 | "mi_bgcolor", | ||
131 | "mi_info", | ||
132 | "tb_file_open", | ||
133 | "tb_properties", | ||
134 | "tb_zoomfit", | ||
135 | "tb_screenshot", | ||
136 | "tb_log_clear", | ||
137 | "tb_log_save", | ||
138 | "cs_background", | ||
139 | "gtkglext1", | ||
140 | NULL }; | ||
141 | |||
142 | /* load main window from xml */ | ||
143 | xml = glade_xml_new(DATA_DIR "/glade/g3dviewer.glade", | ||
144 | NULL, NULL); | ||
145 | |||
146 | viewer->interface.xml = xml; | ||
147 | |||
148 | glade_xml_signal_autoconnect(xml); | ||
149 | window = glade_xml_get_widget(xml, "main_window"); | ||
150 | |||
151 | /* connect glarea (TODO: remove link) */ | ||
152 | glarea = glade_xml_get_widget(xml, "gtkglext1"); | ||
153 | viewer->interface.glarea = glarea; | ||
154 | |||
155 | /* connect viewer pointer to objects */ | ||
156 | i = 0; | ||
157 | while(viewer_widgets[i] != NULL) | ||
158 | { | ||
159 | widget = glade_xml_get_widget(xml, viewer_widgets[i]); | ||
160 | if(widget) | ||
161 | { | ||
162 | #if DEBUG > 1 | ||
163 | g_printerr("D: viewer_widgets[%d]: %s\n", i, viewer_widgets[i]); | ||
164 | #endif | ||
165 | g_object_set_data(G_OBJECT(widget), "viewer", viewer); | ||
166 | } | ||
167 | i ++; | ||
168 | } | ||
169 | |||
170 | /* initialize infowin */ | ||
171 | gui_infowin_initialize(viewer, glade_xml_get_widget(xml, "proptree")); | ||
172 | |||
173 | /* connect main menu to glarea */ | ||
174 | popupmenu = gtk_menu_new(); | ||
175 | gtk_container_foreach( | ||
176 | GTK_CONTAINER(glade_xml_get_widget(xml, "menu_main")), | ||
177 | gui_glade_clone_menuitem, | ||
178 | popupmenu); | ||
179 | g_object_set_data(G_OBJECT(viewer->interface.glarea), "menu", | ||
180 | popupmenu); | ||
181 | gtk_widget_show_all(popupmenu); | ||
182 | |||
183 | /* get statusbar context id */ | ||
184 | statusbar = glade_xml_get_widget(viewer->interface.xml, "statusbar"); | ||
185 | viewer->interface.status_context_id = gtk_statusbar_get_context_id( | ||
186 | GTK_STATUSBAR(statusbar), "default"); | ||
187 | |||
188 | /* update "open" dialog */ | ||
189 | gui_glade_add_open_filters(viewer); | ||
190 | |||
191 | /* initialize log */ | ||
192 | gui_log_initialize(viewer, glade_xml_get_widget(xml, "logtree")); | ||
193 | g_log_set_handler("LibG3D", G_LOG_LEVEL_MASK, gui_log_handler, viewer); | ||
194 | |||
195 | /* show main window */ | ||
196 | viewer->interface.window = window; | ||
197 | gtk_widget_show_all(window); | ||
198 | |||
199 | /* hide progress bar */ | ||
200 | gui_glade_update_progress_bar_cb(0.0, FALSE, viewer); | ||
201 | |||
202 | glarea_update(viewer->interface.glarea); | ||
203 | |||
204 | return TRUE; | ||
205 | } | ||
206 | |||
207 | /* | ||
208 | * custom log handler to suppress warning in gui_glade_clone_menuitem | ||
209 | */ | ||
210 | static void gui_glade_null_logger(const gchar *log_domain, | ||
211 | GLogLevelFlags log_level, | ||
212 | const gchar *message, gpointer unused_data) | ||
213 | { | ||
214 | ; /* do nothing */ | ||
215 | } | ||
216 | |||
217 | /* | ||
218 | * clones one main menu item and attaches it to a popup menu | ||
219 | */ | ||
220 | static void gui_glade_clone_menuitem(GtkWidget *menuitem, gpointer user_data) | ||
221 | { | ||
222 | GtkWidget *menu, *newmi; | ||
223 | GList *children; | ||
224 | const gchar *label; | ||
225 | |||
226 | menu = (GtkWidget *)user_data; | ||
227 | |||
228 | children = gtk_container_get_children(GTK_CONTAINER(menuitem)); | ||
229 | if(children) | ||
230 | { | ||
231 | label = gtk_label_get_text(GTK_LABEL(g_list_nth_data(children, 0))); | ||
232 | } | ||
233 | else return; | ||
234 | |||
235 | #if DEBUG > 1 | ||
236 | g_printerr("D: label: %s\n", label); | ||
237 | #endif | ||
238 | newmi = gtk_menu_item_new_with_label(label); | ||
239 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), newmi); | ||
240 | |||
241 | /* disable warning */ | ||
242 | g_log_set_default_handler(gui_glade_null_logger, NULL); | ||
243 | |||
244 | /* this normally generates a warning: | ||
245 | * gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem | ||
246 | */ | ||
247 | gtk_menu_item_set_submenu(GTK_MENU_ITEM(newmi), | ||
248 | gtk_menu_item_get_submenu(GTK_MENU_ITEM(menuitem))); | ||
249 | |||
250 | /* reenable logging */ | ||
251 | g_log_set_default_handler(g_log_default_handler, NULL); | ||
252 | } | ||
253 | |||
254 | /* | ||
255 | * show "open" dialog | ||
256 | */ | ||
257 | gboolean gui_glade_open_dialog(G3DViewer *viewer) | ||
258 | { | ||
259 | GtkWidget *opendialog; | ||
260 | gchar *filename; | ||
261 | gint retval; | ||
262 | |||
263 | opendialog = glade_xml_get_widget(viewer->interface.xml, "open_dialog"); | ||
264 | |||
265 | retval = gtk_dialog_run(GTK_DIALOG(opendialog)); | ||
266 | gtk_widget_hide(opendialog); | ||
267 | if(retval == GTK_RESPONSE_OK) | ||
268 | { | ||
269 | filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(opendialog)); | ||
270 | |||
271 | if(viewer->filename) | ||
272 | g_free(viewer->filename); | ||
273 | viewer->filename = filename; | ||
274 | |||
275 | retval = model_load(viewer); | ||
276 | |||
277 | glarea_update(viewer->interface.glarea); | ||
278 | |||
279 | return retval; | ||
280 | } | ||
281 | |||
282 | return FALSE; | ||
283 | } | ||
284 | |||
285 | /* | ||
286 | * show text in status bar | ||
287 | */ | ||
288 | |||
289 | gboolean gui_glade_status(G3DViewer *viewer, const gchar *text) | ||
290 | { | ||
291 | GtkWidget *statusbar; | ||
292 | |||
293 | statusbar = glade_xml_get_widget(viewer->interface.xml, "statusbar"); | ||
294 | gtk_statusbar_push(GTK_STATUSBAR(statusbar), | ||
295 | viewer->interface.status_context_id, text); | ||
296 | |||
297 | return TRUE; | ||
298 | } | ||
299 | |||
300 | /* | ||
301 | * create GL widget (called from libglade) | ||
302 | */ | ||
303 | GtkWidget *gui_glade_create_glwidget(void) | ||
304 | { | ||
305 | GtkWidget *glarea; | ||
306 | GdkGLConfig *glconfig; | ||
307 | |||
308 | glconfig = gdk_gl_config_new_by_mode( | ||
309 | GDK_GL_MODE_RGBA | GDK_GL_MODE_DEPTH | GDK_GL_MODE_DOUBLE); | ||
310 | |||
311 | if(glconfig == NULL) | ||
312 | { | ||
313 | glconfig = gdk_gl_config_new_by_mode( | ||
314 | GDK_GL_MODE_RGBA | GDK_GL_MODE_DEPTH | | ||
315 | GDK_GL_MODE_ALPHA | GDK_GL_MODE_DOUBLE); | ||
316 | } | ||
317 | |||
318 | if(glconfig == NULL) return NULL; | ||
319 | |||
320 | glarea = gtk_drawing_area_new(); | ||
321 | gtk_widget_set_gl_capability(glarea, glconfig, NULL, TRUE, | ||
322 | GDK_GL_RGBA_TYPE); | ||
323 | |||
324 | if(glarea == NULL) return NULL; | ||
325 | |||
326 | gtk_widget_set_events(glarea, | ||
327 | GDK_EXPOSURE_MASK | | ||
328 | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | | ||
329 | GDK_SCROLL_MASK | | ||
330 | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK); | ||
331 | |||
332 | g_signal_connect(G_OBJECT(glarea), "scroll_event", | ||
333 | GTK_SIGNAL_FUNC(glarea_scroll), NULL); | ||
334 | g_signal_connect(G_OBJECT(glarea), "expose_event", | ||
335 | GTK_SIGNAL_FUNC(glarea_expose), NULL); | ||
336 | g_signal_connect(G_OBJECT(glarea), "motion_notify_event", | ||
337 | GTK_SIGNAL_FUNC(glarea_motion_notify), NULL); | ||
338 | g_signal_connect(G_OBJECT(glarea), "button_press_event", | ||
339 | GTK_SIGNAL_FUNC(glarea_button_pressed), NULL); | ||
340 | g_signal_connect(G_OBJECT(glarea), "configure_event", | ||
341 | GTK_SIGNAL_FUNC(glarea_configure), NULL); | ||
342 | g_signal_connect(G_OBJECT(glarea), "destroy_event", | ||
343 | GTK_SIGNAL_FUNC(glarea_destroy), NULL); | ||
344 | |||
345 | return glarea; | ||
346 | } | ||
347 | |||
348 | /* | ||
349 | * set background color callback (G3DSetBgColorFunc) | ||
350 | */ | ||
351 | gboolean gui_glade_set_bgcolor_cb( | ||
352 | gfloat r, gfloat g, gfloat b, gfloat a, | ||
353 | gpointer user_data) | ||
354 | { | ||
355 | G3DViewer *viewer; | ||
356 | |||
357 | viewer = (G3DViewer *)user_data; | ||
358 | g_assert(viewer); | ||
359 | |||
360 | return TRUE; | ||
361 | } | ||
362 | |||
363 | /* | ||
364 | * update interface callback (G3DUpdateInterfaceFunc) | ||
365 | */ | ||
366 | gboolean gui_glade_update_interface_cb(gpointer user_data) | ||
367 | { | ||
368 | while(gtk_events_pending()) | ||
369 | gtk_main_iteration(); | ||
370 | |||
371 | return TRUE; | ||
372 | } | ||
373 | |||
374 | /* | ||
375 | * update progress bar callback (G3DUpdateProgressBarFunc) | ||
376 | */ | ||
377 | gboolean gui_glade_update_progress_bar_cb(gfloat percentage, | ||
378 | gboolean show, gpointer user_data) | ||
379 | { | ||
380 | G3DViewer *viewer; | ||
381 | GtkWidget *pbar; | ||
382 | gchar *text; | ||
383 | |||
384 | viewer = (G3DViewer *)user_data; | ||
385 | g_assert(viewer); | ||
386 | |||
387 | pbar = glade_xml_get_widget(viewer->interface.xml, "main_progressbar"); | ||
388 | g_assert(pbar); | ||
389 | |||
390 | gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pbar), percentage); | ||
391 | |||
392 | text = g_strdup_printf("%.1f%%", percentage * 100); | ||
393 | gtk_progress_bar_set_text(GTK_PROGRESS_BAR(pbar), text); | ||
394 | g_free(text); | ||
395 | |||
396 | if(show) | ||
397 | gtk_widget_show(pbar); | ||
398 | else | ||
399 | gtk_widget_hide(pbar); | ||
400 | |||
401 | gui_glade_update_interface_cb(user_data); | ||
402 | return TRUE; | ||
403 | } | ||
404 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.h new file mode 100644 index 0000000..6403c98 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_glade.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* $Id: gui_glade.h 47 2006-05-22 17:53:38Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GUI_GLADE_H | ||
24 | #define _GUI_GLADE_H | ||
25 | |||
26 | #include "main.h" | ||
27 | |||
28 | gboolean gui_glade_init(G3DViewer *viewer); | ||
29 | gboolean gui_glade_load(G3DViewer *viewer); | ||
30 | gboolean gui_glade_open_dialog(G3DViewer *viewer); | ||
31 | gboolean gui_glade_status(G3DViewer *viewer, const gchar *text); | ||
32 | |||
33 | /* callbacks */ | ||
34 | gboolean gui_glade_set_bgcolor_cb( | ||
35 | gfloat r, gfloat g, gfloat b, gfloat a, | ||
36 | gpointer user_data); | ||
37 | gboolean gui_glade_update_interface_cb(gpointer user_data); | ||
38 | gboolean gui_glade_update_progress_bar_cb(gfloat percentage, | ||
39 | gboolean show, gpointer user_data); | ||
40 | |||
41 | #endif /* _GUI_GLADE_H */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.c new file mode 100644 index 0000000..841e47c --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.c | |||
@@ -0,0 +1,451 @@ | |||
1 | /* $Id: gui_infowin.c 36 2006-05-08 20:10:44Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | #include <string.h> | ||
29 | |||
30 | #include <gtk/gtk.h> | ||
31 | |||
32 | #include "main.h" | ||
33 | #include "glarea.h" | ||
34 | |||
35 | enum _columns | ||
36 | { | ||
37 | COL_TYPE, | ||
38 | COL_TITLE, | ||
39 | COL_ICON, | ||
40 | COL_VALUE, | ||
41 | COL_CHECK, | ||
42 | COL_SHOWHIDE, | ||
43 | COL_POINTER, | ||
44 | N_COLUMNS | ||
45 | }; | ||
46 | |||
47 | enum _types | ||
48 | { | ||
49 | TYPE_OBJECT, | ||
50 | TYPE_MATERIAL, | ||
51 | TYPE_TEXTURE, | ||
52 | TYPE_PROPERTY, | ||
53 | TYPE_FOLDER, | ||
54 | N_TYPES | ||
55 | }; | ||
56 | |||
57 | enum _icons | ||
58 | { | ||
59 | ICON_MODEL, | ||
60 | ICON_OBJECT, | ||
61 | ICON_MATERIAL, | ||
62 | ICON_TEXTURE, | ||
63 | ICON_PROPERTY, | ||
64 | N_ICONS | ||
65 | }; | ||
66 | |||
67 | static GtkTreeStore *gui_infowin_create_model(void); | ||
68 | static gboolean gui_infowin_clean(G3DViewer *viewer); | ||
69 | static gboolean gui_infowin_create_columns(GtkWidget *treeview, | ||
70 | GtkTreeModel *model, G3DViewer *viewer); | ||
71 | |||
72 | gboolean gui_infowin_initialize(G3DViewer *viewer, GtkWidget *treeview) | ||
73 | { | ||
74 | GtkTreeStore *treestore; | ||
75 | GtkTreeSelection *select; | ||
76 | GtkTreeIter iter; | ||
77 | |||
78 | treestore = gui_infowin_create_model(); | ||
79 | gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), | ||
80 | GTK_TREE_MODEL(treestore)); | ||
81 | viewer->info.treestore = treestore; | ||
82 | |||
83 | if(gui_infowin_create_columns(treeview, GTK_TREE_MODEL(treestore), | ||
84 | viewer) == FALSE) | ||
85 | return FALSE; | ||
86 | |||
87 | /* selection */ | ||
88 | select = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | ||
89 | gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); | ||
90 | |||
91 | /* initial nodes */ | ||
92 | gtk_tree_store_append(treestore, &iter, NULL); | ||
93 | |||
94 | /* load icons */ | ||
95 | viewer->interface.icons = g_new0(GdkPixbuf *, N_ICONS); | ||
96 | viewer->interface.icons[ICON_MODEL] = | ||
97 | gdk_pixbuf_new_from_file( | ||
98 | DATA_DIR "/pixmaps/icon16_model.xpm", NULL); | ||
99 | viewer->interface.icons[ICON_OBJECT] = | ||
100 | gdk_pixbuf_new_from_file( | ||
101 | DATA_DIR "/pixmaps/icon16_object.png", NULL); | ||
102 | viewer->interface.icons[ICON_MATERIAL] = | ||
103 | gdk_pixbuf_new_from_file( | ||
104 | DATA_DIR "/pixmaps/icon16_material.xpm", NULL); | ||
105 | viewer->interface.icons[ICON_TEXTURE] = | ||
106 | gdk_pixbuf_new_from_file( | ||
107 | DATA_DIR "/pixmaps/icon16_texture.xpm", NULL); | ||
108 | viewer->interface.icons[ICON_PROPERTY] = | ||
109 | gdk_pixbuf_new_from_file( | ||
110 | DATA_DIR "/pixmaps/icon16_property.png", NULL); | ||
111 | |||
112 | return TRUE; | ||
113 | } | ||
114 | |||
115 | void gui_infowin_cleanup(G3DViewer *viewer) | ||
116 | { | ||
117 | gint32 i; | ||
118 | |||
119 | gui_infowin_clean(NULL); | ||
120 | |||
121 | /* cleanup icons */ | ||
122 | for(i = 0; i < N_ICONS; i ++) | ||
123 | gdk_pixbuf_unref(viewer->interface.icons[i]); | ||
124 | |||
125 | g_free(viewer->interface.icons); | ||
126 | } | ||
127 | |||
128 | /****************************************************************************/ | ||
129 | |||
130 | static GtkTreeStore *gui_infowin_create_model(void) | ||
131 | { | ||
132 | GtkTreeStore *treestore; | ||
133 | |||
134 | treestore = gtk_tree_store_new(N_COLUMNS, | ||
135 | G_TYPE_INT, /* type of node */ | ||
136 | G_TYPE_STRING, /* title */ | ||
137 | GDK_TYPE_PIXBUF, /* pixbuf pointer */ | ||
138 | G_TYPE_STRING, /* number */ | ||
139 | G_TYPE_BOOLEAN, /* show checkbox */ | ||
140 | G_TYPE_BOOLEAN, /* show/hide object */ | ||
141 | G_TYPE_POINTER /* custom pointer (object, etc.) */ | ||
142 | ); | ||
143 | |||
144 | return treestore; | ||
145 | } | ||
146 | |||
147 | static void gui_infowin_object_hide_cb(GtkCellRendererToggle *renderer, | ||
148 | gchar *pathstr, gpointer data) | ||
149 | { | ||
150 | GtkTreePath *path; | ||
151 | GtkTreeIter iter; | ||
152 | GtkTreeModel *model; | ||
153 | gboolean toggle_item; | ||
154 | G3DViewer *viewer; | ||
155 | G3DObject *object; | ||
156 | gpointer ptr; | ||
157 | |||
158 | model = g_object_get_data(G_OBJECT(renderer), "model"); | ||
159 | viewer = g_object_get_data(G_OBJECT(renderer), "viewer"); | ||
160 | |||
161 | g_assert(model); | ||
162 | g_assert(viewer); | ||
163 | |||
164 | path = gtk_tree_path_new_from_string(pathstr); | ||
165 | gtk_tree_model_get_iter(model, &iter, path); | ||
166 | |||
167 | gtk_tree_model_get(model, &iter, | ||
168 | COL_SHOWHIDE, &toggle_item, | ||
169 | COL_POINTER, &ptr, | ||
170 | -1); | ||
171 | object = (G3DObject *)ptr; | ||
172 | |||
173 | #if DEBUG > 3 | ||
174 | g_printerr("D: gui_infowin_object_hide_cb: object=0x%p (%i)\n", object, | ||
175 | toggle_item); | ||
176 | #endif | ||
177 | |||
178 | gtk_tree_path_free(path); | ||
179 | |||
180 | if(object == NULL) return; | ||
181 | |||
182 | toggle_item ^= 1; | ||
183 | object->hide = !toggle_item; | ||
184 | |||
185 | gtk_tree_store_set(GTK_TREE_STORE(model), &iter, COL_SHOWHIDE, | ||
186 | toggle_item, -1); | ||
187 | |||
188 | glarea_update(viewer->interface.glarea); | ||
189 | } | ||
190 | |||
191 | static gboolean gui_infowin_create_columns(GtkWidget *treeview, | ||
192 | GtkTreeModel *model, G3DViewer *viewer) | ||
193 | { | ||
194 | GtkCellRenderer *renderer; | ||
195 | GtkTreeViewColumn *column; | ||
196 | |||
197 | /* visibility column */ | ||
198 | renderer = gtk_cell_renderer_toggle_new(); | ||
199 | g_object_set_data(G_OBJECT(renderer), "model", model); | ||
200 | g_object_set_data(G_OBJECT(renderer), "viewer", viewer); | ||
201 | g_signal_connect(G_OBJECT(renderer), "toggled", | ||
202 | G_CALLBACK(gui_infowin_object_hide_cb), NULL); | ||
203 | column = gtk_tree_view_column_new_with_attributes("Show", | ||
204 | renderer, | ||
205 | "active", COL_SHOWHIDE, | ||
206 | "visible", COL_CHECK, | ||
207 | "activatable", COL_CHECK, | ||
208 | NULL); | ||
209 | gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | ||
210 | |||
211 | /* title column */ | ||
212 | column = gtk_tree_view_column_new(); | ||
213 | |||
214 | /* title column: icon */ | ||
215 | renderer = gtk_cell_renderer_pixbuf_new(); | ||
216 | gtk_tree_view_column_pack_start(column, renderer, FALSE); | ||
217 | gtk_tree_view_column_set_attributes(column, renderer, | ||
218 | "pixbuf", COL_ICON, | ||
219 | NULL); | ||
220 | |||
221 | /* title column: text */ | ||
222 | renderer = gtk_cell_renderer_text_new(); | ||
223 | gtk_tree_view_column_pack_start(column, renderer, TRUE); | ||
224 | gtk_tree_view_column_set_attributes(column, renderer, | ||
225 | "text", COL_TITLE, | ||
226 | NULL); | ||
227 | |||
228 | gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | ||
229 | gtk_tree_view_set_expander_column(GTK_TREE_VIEW(treeview), column); | ||
230 | |||
231 | /* value column */ | ||
232 | renderer = gtk_cell_renderer_text_new(); | ||
233 | column = gtk_tree_view_column_new_with_attributes("Value", | ||
234 | renderer, | ||
235 | "text", COL_VALUE, | ||
236 | NULL); | ||
237 | gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | ||
238 | |||
239 | gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | ||
240 | |||
241 | return TRUE; | ||
242 | } | ||
243 | |||
244 | |||
245 | static gboolean gui_infowin_remove_children(GtkTreeStore *treestore, | ||
246 | GtkTreeIter *iter_parent) | ||
247 | { | ||
248 | GtkTreeIter iter_child; | ||
249 | gint n, i; | ||
250 | |||
251 | n = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(treestore), | ||
252 | iter_parent); | ||
253 | gtk_tree_model_iter_children(GTK_TREE_MODEL(treestore), | ||
254 | &iter_child, iter_parent); | ||
255 | |||
256 | for(i = 0; i < n; i ++) | ||
257 | { | ||
258 | gui_infowin_remove_children(treestore, &iter_child); | ||
259 | gtk_tree_store_remove(treestore, &iter_child); | ||
260 | } | ||
261 | |||
262 | return TRUE; | ||
263 | } | ||
264 | |||
265 | static gboolean gui_infowin_clean(G3DViewer *viewer) | ||
266 | { | ||
267 | gui_infowin_remove_children(viewer->info.treestore, NULL); | ||
268 | |||
269 | return TRUE; | ||
270 | } | ||
271 | |||
272 | static gboolean add_texture(G3DViewer *viewer, GtkTreeIter *parentiter, | ||
273 | G3DImage *texture) | ||
274 | { | ||
275 | GtkTreeIter iter; | ||
276 | |||
277 | if(texture) | ||
278 | { | ||
279 | gtk_tree_store_append(viewer->info.treestore, &iter, parentiter); | ||
280 | gtk_tree_store_set(viewer->info.treestore, &iter, | ||
281 | COL_TYPE, TYPE_TEXTURE, | ||
282 | COL_TITLE, texture->name, | ||
283 | COL_VALUE, "", | ||
284 | COL_CHECK, FALSE, | ||
285 | COL_ICON, viewer->interface.icons[ICON_TEXTURE], | ||
286 | -1); | ||
287 | |||
288 | return TRUE; | ||
289 | } | ||
290 | |||
291 | return FALSE; | ||
292 | } | ||
293 | |||
294 | static gboolean add_materials(G3DViewer *viewer, GtkTreeIter *parentiter, | ||
295 | GSList *materials) | ||
296 | { | ||
297 | GSList *mlist; | ||
298 | GtkTreeIter iter1, iter2; | ||
299 | G3DMaterial *material; | ||
300 | gchar *matname, *stmp; | ||
301 | |||
302 | mlist = materials; | ||
303 | while(mlist != NULL) | ||
304 | { | ||
305 | material = (G3DMaterial *)mlist->data; | ||
306 | |||
307 | if(material->name && strlen(material->name)) | ||
308 | matname = material->name; | ||
309 | else | ||
310 | matname = _("(unnamed material)"); | ||
311 | |||
312 | gtk_tree_store_append(viewer->info.treestore, &iter1, parentiter); | ||
313 | gtk_tree_store_set(viewer->info.treestore, &iter1, | ||
314 | COL_TYPE, TYPE_MATERIAL, | ||
315 | COL_TITLE, matname, | ||
316 | COL_ICON, viewer->interface.icons[ICON_MATERIAL], | ||
317 | COL_VALUE, "", | ||
318 | COL_CHECK, FALSE, | ||
319 | -1); | ||
320 | |||
321 | add_texture(viewer, &iter1, material->tex_image); | ||
322 | |||
323 | /* material properties */ | ||
324 | stmp = g_strdup_printf("#%02X%02X%02X", | ||
325 | (gint)(material->r * 255), | ||
326 | (gint)(material->g * 255), | ||
327 | (gint)(material->b * 255)); | ||
328 | gtk_tree_store_append(viewer->info.treestore, &iter2, &iter1); | ||
329 | gtk_tree_store_set(viewer->info.treestore, &iter2, | ||
330 | COL_TYPE, TYPE_PROPERTY, | ||
331 | COL_TITLE, _("color"), | ||
332 | COL_VALUE, stmp, | ||
333 | COL_CHECK, FALSE, | ||
334 | COL_ICON, viewer->interface.icons[ICON_PROPERTY], | ||
335 | -1); | ||
336 | g_free(stmp); | ||
337 | |||
338 | /* next material */ | ||
339 | mlist = mlist->next; | ||
340 | } | ||
341 | |||
342 | return TRUE; | ||
343 | } | ||
344 | |||
345 | static gboolean add_objects(G3DViewer *viewer, GtkTreeIter *parentiter, | ||
346 | GSList *objects) | ||
347 | { | ||
348 | GtkTreeIter iter, iter2; | ||
349 | G3DObject *object; | ||
350 | gchar *stmp; | ||
351 | |||
352 | while(objects != NULL) | ||
353 | { | ||
354 | object = (G3DObject *)objects->data; | ||
355 | |||
356 | /* object node */ | ||
357 | gtk_tree_store_append(viewer->info.treestore, &iter, parentiter); | ||
358 | gtk_tree_store_set(viewer->info.treestore, &iter, | ||
359 | COL_TYPE, TYPE_OBJECT, | ||
360 | COL_TITLE, object->name, | ||
361 | COL_ICON, viewer->interface.icons[ICON_OBJECT], | ||
362 | COL_VALUE, "", | ||
363 | COL_CHECK, TRUE, | ||
364 | COL_SHOWHIDE, TRUE, | ||
365 | COL_POINTER, object, | ||
366 | -1); | ||
367 | |||
368 | /* sub-objects */ | ||
369 | add_objects(viewer, &iter, object->objects); | ||
370 | |||
371 | /* texture image */ | ||
372 | add_texture(viewer, &iter, object->tex_image); | ||
373 | |||
374 | /* vertices */ | ||
375 | stmp = g_strdup_printf("%d", object->vertex_count); | ||
376 | gtk_tree_store_append(viewer->info.treestore, &iter2, &iter); | ||
377 | gtk_tree_store_set(viewer->info.treestore, &iter2, | ||
378 | COL_TYPE, TYPE_PROPERTY, | ||
379 | COL_TITLE, _("number of vertices"), | ||
380 | COL_VALUE, stmp, | ||
381 | COL_CHECK, FALSE, | ||
382 | COL_ICON, viewer->interface.icons[ICON_PROPERTY], | ||
383 | -1); | ||
384 | g_free(stmp); | ||
385 | |||
386 | /* faces */ | ||
387 | stmp = g_strdup_printf("%d", g_slist_length(object->faces)); | ||
388 | gtk_tree_store_append(viewer->info.treestore, &iter2, &iter); | ||
389 | gtk_tree_store_set(viewer->info.treestore, &iter2, | ||
390 | COL_TYPE, TYPE_PROPERTY, | ||
391 | COL_TITLE, _("number of faces"), | ||
392 | COL_VALUE, stmp, | ||
393 | COL_CHECK, FALSE, | ||
394 | COL_ICON, viewer->interface.icons[ICON_PROPERTY], | ||
395 | -1); | ||
396 | g_free(stmp); | ||
397 | |||
398 | /* materials */ | ||
399 | stmp = g_strdup_printf("%d", g_slist_length(object->materials)); | ||
400 | gtk_tree_store_append(viewer->info.treestore, &iter2, &iter); | ||
401 | gtk_tree_store_set(viewer->info.treestore, &iter2, | ||
402 | COL_TYPE, TYPE_PROPERTY, | ||
403 | COL_TITLE, _("number of materials"), | ||
404 | COL_VALUE, stmp, | ||
405 | COL_CHECK, FALSE, | ||
406 | COL_ICON, viewer->interface.icons[ICON_PROPERTY], | ||
407 | -1); | ||
408 | g_free(stmp); | ||
409 | |||
410 | /* add object-specific materials */ | ||
411 | add_materials(viewer, &iter, object->materials); | ||
412 | |||
413 | objects = objects->next; | ||
414 | } | ||
415 | |||
416 | return TRUE; | ||
417 | } | ||
418 | |||
419 | gboolean gui_infowin_update(G3DViewer *viewer) | ||
420 | { | ||
421 | GtkTreeIter rootiter; | ||
422 | gchar *stmp, *basename; | ||
423 | |||
424 | /* clear tree */ | ||
425 | gui_infowin_clean(viewer); | ||
426 | |||
427 | if(viewer->model == NULL) return FALSE; | ||
428 | |||
429 | basename = g_path_get_basename(viewer->model->filename); | ||
430 | stmp = g_strdup_printf("%s: %s", _("model"), basename); | ||
431 | gtk_tree_store_append(viewer->info.treestore, &rootiter, NULL); | ||
432 | gtk_tree_store_set(viewer->info.treestore, &rootiter, | ||
433 | COL_TYPE, TYPE_FOLDER, | ||
434 | COL_TITLE, stmp, | ||
435 | COL_VALUE, "", | ||
436 | COL_CHECK, FALSE, | ||
437 | COL_ICON, viewer->interface.icons[ICON_MODEL], | ||
438 | -1); | ||
439 | g_free(basename); | ||
440 | g_free(stmp); | ||
441 | |||
442 | if(viewer->model == NULL) return FALSE; | ||
443 | |||
444 | /* append objects */ | ||
445 | add_objects(viewer, &rootiter, viewer->model->objects); | ||
446 | |||
447 | /* add global materials */ | ||
448 | add_materials(viewer, &rootiter, viewer->model->materials); | ||
449 | |||
450 | return TRUE; | ||
451 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.h new file mode 100644 index 0000000..9d32f01 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_infowin.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* $Id: gui_infowin.h 25 2006-04-22 17:24:27Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GUI_INFOWIN_H | ||
24 | #define _GUI_INFOWIN_H | ||
25 | |||
26 | #include <gtk/gtk.h> | ||
27 | #include <g3d/g3d.h> | ||
28 | |||
29 | gboolean gui_infowin_initialize(G3DViewer *viewer, GtkWidget *treeview); | ||
30 | gboolean gui_infowin_clean(G3DViewer *viewer); | ||
31 | gboolean gui_infowin_update(G3DViewer *viewer); | ||
32 | |||
33 | #endif /* _GUI_INFOWIN_H */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.c new file mode 100644 index 0000000..0914b30 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.c | |||
@@ -0,0 +1,248 @@ | |||
1 | /* $Id:$ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | #include <string.h> | ||
29 | |||
30 | #include <gtk/gtk.h> | ||
31 | |||
32 | #include "main.h" | ||
33 | |||
34 | enum _columns | ||
35 | { | ||
36 | COL_LOGLEVEL, | ||
37 | COL_ICON, | ||
38 | COL_MESSAGE, | ||
39 | COL_SET_BG, | ||
40 | COL_BGCOLOR, | ||
41 | COL_SET_FAMILY, | ||
42 | COL_FAMILY, | ||
43 | N_COLUMNS | ||
44 | }; | ||
45 | |||
46 | static GtkTreeStore *gui_log_create_model(void); | ||
47 | static gboolean gui_log_create_columns(GtkWidget *treeview, | ||
48 | GtkTreeModel *model, G3DViewer *viewer); | ||
49 | static GtkTreeIter *gui_log_parent_iter_for_level(GtkTreeModel *model, | ||
50 | gint32 level, GtkTreeIter *parentiter); | ||
51 | static gboolean gui_log_remove_children(GtkTreeStore *treestore, | ||
52 | GtkTreeIter *iter_parent); | ||
53 | |||
54 | gboolean gui_log_initialize(G3DViewer *viewer, GtkWidget *treeview) | ||
55 | { | ||
56 | GtkTreeStore *treestore; | ||
57 | GtkTreeSelection *select; | ||
58 | |||
59 | treestore = gui_log_create_model(); | ||
60 | gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), | ||
61 | GTK_TREE_MODEL(treestore)); | ||
62 | viewer->info.logtreestore = treestore; | ||
63 | |||
64 | if(gui_log_create_columns(treeview, GTK_TREE_MODEL(treestore), | ||
65 | viewer) == FALSE) | ||
66 | { | ||
67 | return FALSE; | ||
68 | } | ||
69 | |||
70 | select = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | ||
71 | gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); | ||
72 | |||
73 | return TRUE; | ||
74 | } | ||
75 | |||
76 | void gui_log_clean(G3DViewer *viewer) | ||
77 | { | ||
78 | gui_log_remove_children(viewer->info.logtreestore, NULL); | ||
79 | } | ||
80 | |||
81 | void gui_log_cleanup(G3DViewer *viewer) | ||
82 | { | ||
83 | gui_log_clean(viewer); | ||
84 | } | ||
85 | |||
86 | void gui_log_handler(const gchar *log_domain, GLogLevelFlags log_level, | ||
87 | const gchar *message, gpointer user_data) | ||
88 | { | ||
89 | G3DViewer *viewer; | ||
90 | GtkTreeIter iter, *parentiter; | ||
91 | gchar *stock_id, *stripped_msg; | ||
92 | gint32 level; | ||
93 | gchar *family = "Sans Serif"; | ||
94 | gchar *bgcolor = "#FFFFFF"; | ||
95 | |||
96 | viewer = (G3DViewer *)user_data; | ||
97 | |||
98 | switch(log_level) | ||
99 | { | ||
100 | case G_LOG_LEVEL_DEBUG: | ||
101 | stock_id = "gtk-dialog-question"; | ||
102 | family = "Monospace"; | ||
103 | break; | ||
104 | case G_LOG_LEVEL_INFO: | ||
105 | stock_id = "gtk-dialog-info"; | ||
106 | break; | ||
107 | case G_LOG_LEVEL_MESSAGE: | ||
108 | stock_id = "gtk-info"; | ||
109 | break; | ||
110 | case G_LOG_LEVEL_WARNING: | ||
111 | stock_id = "gtk-dialog-warning"; | ||
112 | bgcolor = "#FF8080"; | ||
113 | break; | ||
114 | default: | ||
115 | stock_id = "gtk-about"; | ||
116 | break; | ||
117 | } | ||
118 | |||
119 | stripped_msg = (gchar *)message; | ||
120 | while(*stripped_msg == ' ') stripped_msg ++; | ||
121 | |||
122 | level = stripped_msg - message; | ||
123 | parentiter = gui_log_parent_iter_for_level( | ||
124 | GTK_TREE_MODEL(viewer->info.logtreestore), level, NULL); | ||
125 | |||
126 | gtk_tree_store_append(viewer->info.logtreestore, &iter, parentiter); | ||
127 | gtk_tree_store_set(viewer->info.logtreestore, &iter, | ||
128 | COL_LOGLEVEL, log_level, | ||
129 | COL_ICON, stock_id, | ||
130 | COL_MESSAGE, g_strdup(stripped_msg), | ||
131 | COL_SET_FAMILY, TRUE, | ||
132 | COL_FAMILY, family, | ||
133 | COL_SET_BG, TRUE, | ||
134 | COL_BGCOLOR, bgcolor, | ||
135 | -1); | ||
136 | |||
137 | if(parentiter) g_free(parentiter); | ||
138 | |||
139 | #if 0 | ||
140 | g_print("[%s] %s\n", log_domain, message); | ||
141 | #endif | ||
142 | } | ||
143 | |||
144 | /* | ||
145 | * private stuff | ||
146 | */ | ||
147 | |||
148 | static GtkTreeStore *gui_log_create_model(void) | ||
149 | { | ||
150 | GtkTreeStore *treestore; | ||
151 | |||
152 | treestore = gtk_tree_store_new(N_COLUMNS, | ||
153 | G_TYPE_INT, /* LOGLEVEL */ | ||
154 | G_TYPE_STRING, /* ICON */ | ||
155 | G_TYPE_STRING, /* MESSAGE */ | ||
156 | G_TYPE_BOOLEAN, /* SET BACKGROUND */ | ||
157 | G_TYPE_STRING, /* BACKGROUND COLOR */ | ||
158 | G_TYPE_BOOLEAN, /* SET FAMILY */ | ||
159 | G_TYPE_STRING /* FAMILY */ | ||
160 | ); | ||
161 | |||
162 | return treestore; | ||
163 | } | ||
164 | |||
165 | static gboolean gui_log_create_columns(GtkWidget *treeview, | ||
166 | GtkTreeModel *model, G3DViewer *viewer) | ||
167 | { | ||
168 | GtkCellRenderer *renderer; | ||
169 | GtkTreeViewColumn *column; | ||
170 | |||
171 | column = gtk_tree_view_column_new(); | ||
172 | |||
173 | /* icon */ | ||
174 | renderer = gtk_cell_renderer_pixbuf_new(); | ||
175 | gtk_tree_view_column_pack_start(column, renderer, FALSE); | ||
176 | gtk_tree_view_column_set_attributes(column, renderer, | ||
177 | "stock-id", COL_ICON, | ||
178 | NULL); | ||
179 | |||
180 | /* message */ | ||
181 | renderer = gtk_cell_renderer_text_new(); | ||
182 | gtk_tree_view_column_pack_start(column, renderer, TRUE); | ||
183 | gtk_tree_view_column_set_attributes(column, renderer, | ||
184 | "text", COL_MESSAGE, | ||
185 | "background-set", COL_SET_BG, | ||
186 | "background", COL_BGCOLOR, | ||
187 | "family-set", COL_SET_FAMILY, | ||
188 | "family", COL_FAMILY, | ||
189 | NULL); | ||
190 | |||
191 | gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | ||
192 | gtk_tree_view_set_expander_column(GTK_TREE_VIEW(treeview), column); | ||
193 | |||
194 | gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | ||
195 | |||
196 | return TRUE; | ||
197 | } | ||
198 | |||
199 | static GtkTreeIter *gui_log_parent_iter_for_level(GtkTreeModel *model, | ||
200 | gint32 level, GtkTreeIter *parentiter) | ||
201 | { | ||
202 | GtkTreeIter *iter, *iter2; | ||
203 | |||
204 | if(level == 0) return NULL; | ||
205 | |||
206 | if(gtk_tree_model_iter_n_children(model, parentiter) == 0) | ||
207 | return NULL; | ||
208 | |||
209 | iter = g_new0(GtkTreeIter, 1); | ||
210 | |||
211 | if(gtk_tree_model_iter_nth_child(model, iter, parentiter, | ||
212 | gtk_tree_model_iter_n_children(model, parentiter) - 1) == FALSE) | ||
213 | { | ||
214 | g_free(iter); | ||
215 | return NULL; | ||
216 | } | ||
217 | |||
218 | if(level == 1) | ||
219 | { | ||
220 | return iter; | ||
221 | } | ||
222 | |||
223 | iter2 = gui_log_parent_iter_for_level(model, level - 1, iter); | ||
224 | g_free(iter); | ||
225 | |||
226 | return iter2; | ||
227 | } | ||
228 | |||
229 | static gboolean gui_log_remove_children(GtkTreeStore *treestore, | ||
230 | GtkTreeIter *iter_parent) | ||
231 | { | ||
232 | GtkTreeIter iter_child; | ||
233 | gint n, i; | ||
234 | |||
235 | n = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(treestore), | ||
236 | iter_parent); | ||
237 | gtk_tree_model_iter_children(GTK_TREE_MODEL(treestore), | ||
238 | &iter_child, iter_parent); | ||
239 | |||
240 | for(i = 0; i < n; i ++) | ||
241 | { | ||
242 | gui_log_remove_children(treestore, &iter_child); | ||
243 | gtk_tree_store_remove(treestore, &iter_child); | ||
244 | } | ||
245 | |||
246 | return TRUE; | ||
247 | } | ||
248 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.h new file mode 100644 index 0000000..bb0a355 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/gui_log.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* $Id:$ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GUI_LOG_H | ||
24 | #define _GUI_LOG_H | ||
25 | |||
26 | #include "main.h" | ||
27 | |||
28 | #include <gtk/gtk.h> | ||
29 | |||
30 | gboolean gui_log_initialize(G3DViewer *viewer, GtkWidget *treeview); | ||
31 | void gui_log_clean(G3DViewer *viewer); | ||
32 | void gui_log_cleanup(G3DViewer *viewer); | ||
33 | void gui_log_handler(const gchar *log_domain, GLogLevelFlags log_level, | ||
34 | const gchar *message, gpointer user_data); | ||
35 | |||
36 | #endif /* _GUI_LOG_H */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/main.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.c new file mode 100644 index 0000000..b5d7e0c --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.c | |||
@@ -0,0 +1,172 @@ | |||
1 | /* $Id: main.c 48 2006-05-25 16:30:38Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | #include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdio.h> | ||
28 | #include <stdlib.h> | ||
29 | #include <string.h> | ||
30 | |||
31 | #include <gtk/gtk.h> | ||
32 | #include <gtk/gtkgl.h> | ||
33 | |||
34 | #include <g3d/types.h> | ||
35 | |||
36 | #include "main.h" | ||
37 | #include "model.h" | ||
38 | #include "glarea.h" | ||
39 | #include "gui_glade.h" | ||
40 | #include "trackball.h" | ||
41 | #include "gl.h" | ||
42 | |||
43 | static gboolean parse_only = FALSE; | ||
44 | |||
45 | static int main_parseargs(int *argc, char ***argv, G3DViewer *viewer); | ||
46 | static void main_cleanup(G3DViewer *viewer); | ||
47 | |||
48 | int main(int argc, char **argv) | ||
49 | { | ||
50 | G3DViewer *viewer; | ||
51 | |||
52 | /* localization stuff */ | ||
53 | setlocale(LC_ALL, ""); | ||
54 | bindtextdomain("g3dviewer", LOCALEDIR); | ||
55 | textdomain("g3dviewer"); | ||
56 | |||
57 | #if DEBUG > 3 | ||
58 | /* memory debugging */ | ||
59 | atexit(g_mem_profile); | ||
60 | g_mem_set_vtable(glib_mem_profiler_table); | ||
61 | #endif | ||
62 | |||
63 | gtk_init(&argc, &argv); | ||
64 | |||
65 | #if DEBUG > 0 | ||
66 | /* gdb stack trace in case of error */ | ||
67 | g_on_error_stack_trace(NULL); | ||
68 | #endif | ||
69 | |||
70 | gtk_gl_init(&argc, &argv); | ||
71 | |||
72 | /* create viewer and fill with defaults | ||
73 | * TODO: move to separate function */ | ||
74 | viewer = g_new0(G3DViewer, 1); | ||
75 | viewer->zoom = 45; | ||
76 | viewer->mouse.beginx = 0; | ||
77 | viewer->mouse.beginy = 0; | ||
78 | viewer->filename = NULL; | ||
79 | viewer->bgcolor[0] = 0.9; | ||
80 | viewer->bgcolor[1] = 0.8; | ||
81 | viewer->bgcolor[2] = 0.6; | ||
82 | viewer->bgcolor[3] = 1.0; | ||
83 | viewer->glflags = | ||
84 | /* G3D_FLAG_GL_SPECULAR | */ | ||
85 | G3D_FLAG_GL_SHININESS | | ||
86 | G3D_FLAG_GL_ALLTWOSIDE | | ||
87 | G3D_FLAG_GL_TEXTURES; | ||
88 | |||
89 | viewer->g3dcontext = g3d_context_new(); | ||
90 | |||
91 | main_parseargs(&argc, &argv, viewer); | ||
92 | |||
93 | trackball(viewer->quat, 0.0, 0.0, 0.0, 0.0); | ||
94 | |||
95 | /* the gui related stuff */ | ||
96 | gui_glade_init(viewer); | ||
97 | gui_glade_load(viewer); | ||
98 | |||
99 | /* register gui callbacks */ | ||
100 | g3d_context_set_set_bgcolor_func(viewer->g3dcontext, | ||
101 | gui_glade_set_bgcolor_cb, viewer); | ||
102 | g3d_context_set_update_interface_func(viewer->g3dcontext, | ||
103 | gui_glade_update_interface_cb, viewer); | ||
104 | g3d_context_set_update_progress_bar_func(viewer->g3dcontext, | ||
105 | gui_glade_update_progress_bar_cb, viewer); | ||
106 | |||
107 | /* load model or show open dialog */ | ||
108 | if(viewer->filename != NULL) | ||
109 | { | ||
110 | model_load(viewer); | ||
111 | glarea_update(viewer->interface.glarea); | ||
112 | } | ||
113 | else | ||
114 | gui_glade_open_dialog(viewer); | ||
115 | |||
116 | /* for debugging reasons */ | ||
117 | if(parse_only) | ||
118 | return EXIT_SUCCESS; | ||
119 | |||
120 | /* ... aaaand go! */ | ||
121 | gtk_main(); | ||
122 | |||
123 | /* cleaning up :-/ */ | ||
124 | main_cleanup(viewer); | ||
125 | |||
126 | return EXIT_SUCCESS; | ||
127 | } | ||
128 | |||
129 | static void main_showhelp(void) | ||
130 | { | ||
131 | printf( | ||
132 | "g3dviewer - a 3D model viewer\n" | ||
133 | "\n" | ||
134 | "usage: g3dviewer [--option ...] [<filename>]\n" | ||
135 | "where option can be:\n" | ||
136 | " --help show this help screen\n" | ||
137 | ); | ||
138 | exit(1); | ||
139 | } | ||
140 | |||
141 | static int main_parseargs(int *argc, char ***argv, G3DViewer *viewer) | ||
142 | { | ||
143 | /* program name */ | ||
144 | (*argc)--; | ||
145 | (*argv)++; | ||
146 | while(*argc > 0) | ||
147 | { | ||
148 | #if DEBUG > 3 | ||
149 | g_printerr("arg: %s\n", **argv); | ||
150 | #endif | ||
151 | if(strcmp(**argv, "--help") == 0) main_showhelp(); | ||
152 | else if(strcmp(**argv, "--parse-only") == 0) | ||
153 | { | ||
154 | parse_only = TRUE; | ||
155 | } | ||
156 | else | ||
157 | { | ||
158 | viewer->filename = **argv; | ||
159 | } | ||
160 | (*argv)++; | ||
161 | (*argc)--; | ||
162 | } | ||
163 | |||
164 | return EXIT_SUCCESS; | ||
165 | } | ||
166 | |||
167 | static void main_cleanup(G3DViewer *viewer) | ||
168 | { | ||
169 | g3d_context_free(viewer->g3dcontext); | ||
170 | if(viewer->filename != NULL) g_free(viewer->filename); | ||
171 | g_free(viewer); | ||
172 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h new file mode 100644 index 0000000..40bc5a1 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* $Id: main.h 53 2006-06-04 14:49:01Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _MAIN_H | ||
24 | #define _MAIN_H | ||
25 | |||
26 | #include <GL/gl.h> | ||
27 | #include <glib/gi18n.h> | ||
28 | #include <gtk/gtk.h> | ||
29 | #include <glade/glade-xml.h> | ||
30 | #include <g3d/g3d.h> | ||
31 | |||
32 | typedef struct { | ||
33 | G3DContext *g3dcontext; | ||
34 | G3DModel *model; | ||
35 | gchar *filename; | ||
36 | |||
37 | /* GL stuff */ | ||
38 | GLfloat quat[4]; | ||
39 | GLfloat zoom; | ||
40 | GLfloat aspect; | ||
41 | GLfloat bgcolor[4]; | ||
42 | guint32 glflags; | ||
43 | |||
44 | /* mouse */ | ||
45 | struct { | ||
46 | gint32 beginx, beginy; | ||
47 | } mouse; | ||
48 | |||
49 | /* model information */ | ||
50 | struct { | ||
51 | GtkTreeStore *treestore; | ||
52 | GtkTreeStore *logtreestore; | ||
53 | } info; | ||
54 | |||
55 | /* interface */ | ||
56 | struct { | ||
57 | GladeXML *xml; | ||
58 | |||
59 | GtkWidget *window; | ||
60 | GtkWidget *infowin; | ||
61 | |||
62 | GtkWidget *glarea; | ||
63 | GdkPixbuf **icons; | ||
64 | |||
65 | guint status_context_id; | ||
66 | } interface; | ||
67 | |||
68 | } G3DViewer; | ||
69 | |||
70 | #endif /* _MAIN_H */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/model.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/model.c new file mode 100644 index 0000000..560affe --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/model.c | |||
@@ -0,0 +1,73 @@ | |||
1 | /* $Id: model.c 54 2006-06-05 11:33:11Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include <g3d/g3d.h> | ||
24 | |||
25 | #include "main.h" | ||
26 | #include "texture.h" | ||
27 | #include "gui_glade.h" | ||
28 | #include "gui_infowin.h" | ||
29 | #include "gui_log.h" | ||
30 | |||
31 | gboolean model_load(G3DViewer *viewer) | ||
32 | { | ||
33 | G3DModel *model; | ||
34 | gchar *title; | ||
35 | gboolean retval = FALSE; | ||
36 | |||
37 | /* free old model */ | ||
38 | model = viewer->model; | ||
39 | viewer->model = NULL; | ||
40 | if(model) | ||
41 | g3d_model_free(model); | ||
42 | |||
43 | /* clean log */ | ||
44 | gui_log_clean(viewer); | ||
45 | |||
46 | model = g3d_model_load(viewer->g3dcontext, viewer->filename); | ||
47 | if(model) | ||
48 | { | ||
49 | viewer->model = model; | ||
50 | texture_load_all_textures(viewer->model); | ||
51 | title = g_strdup_printf(_("%s successfully loaded."), | ||
52 | viewer->filename ? viewer->filename : _("unnamed model")); | ||
53 | gui_glade_status(viewer, title); | ||
54 | g_free(title); | ||
55 | retval = TRUE; | ||
56 | } | ||
57 | |||
58 | #if DEBUG > 3 | ||
59 | g_printerr("[model] model pointer: %p\n", model); | ||
60 | #endif | ||
61 | |||
62 | /* update model information */ | ||
63 | gui_infowin_update(viewer); | ||
64 | |||
65 | /* update window title */ | ||
66 | title = g_strdup_printf("g3dviewer%s%s", | ||
67 | viewer->model ? " - " : "", | ||
68 | viewer->filename ? viewer->filename : ""); | ||
69 | gtk_window_set_title(GTK_WINDOW(viewer->interface.window), title); | ||
70 | g_free(title); | ||
71 | |||
72 | return retval; | ||
73 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/model.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/model.h new file mode 100644 index 0000000..36d7a5e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/model.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* $Id: model.h 25 2006-04-22 17:24:27Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _MODEL_H | ||
24 | #define _MODEL_H | ||
25 | |||
26 | #include "main.h" | ||
27 | |||
28 | gboolean model_load(G3DViewer *viewer); | ||
29 | |||
30 | #endif | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.c new file mode 100644 index 0000000..f304666 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.c | |||
@@ -0,0 +1,73 @@ | |||
1 | /* $Id: screenshot.c 41 2006-05-22 12:23:29Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <gdk-pixbuf/gdk-pixbuf.h> | ||
28 | #include <GL/gl.h> | ||
29 | |||
30 | static guint8 *screenshot_get_pixels(guint32 width, guint32 height) | ||
31 | { | ||
32 | guint8 *pixels; | ||
33 | |||
34 | pixels = g_new(guint8, width * height * 4); | ||
35 | |||
36 | glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels); | ||
37 | |||
38 | return pixels; | ||
39 | } | ||
40 | |||
41 | gboolean screenshot_save(const gchar *filename, guint32 width, guint32 height) | ||
42 | { | ||
43 | guint8 *pixels; | ||
44 | GdkPixbuf *pixbuf, *flipped; | ||
45 | |||
46 | pixels = screenshot_get_pixels(width, height); | ||
47 | |||
48 | if(pixels == NULL) | ||
49 | return FALSE; | ||
50 | |||
51 | pixbuf = gdk_pixbuf_new_from_data(pixels, | ||
52 | GDK_COLORSPACE_RGB, TRUE, | ||
53 | 8, width, height, width * 4, | ||
54 | NULL, NULL); | ||
55 | |||
56 | if(pixbuf == NULL) | ||
57 | return FALSE; | ||
58 | |||
59 | /* GL returns pixels starting from lower left corner */ | ||
60 | flipped = gdk_pixbuf_flip(pixbuf, FALSE); | ||
61 | |||
62 | if(flipped == NULL) | ||
63 | return FALSE; | ||
64 | |||
65 | gdk_pixbuf_save(flipped, filename, "png", NULL, NULL); | ||
66 | |||
67 | g_free(pixels); | ||
68 | |||
69 | gdk_pixbuf_unref(pixbuf); | ||
70 | gdk_pixbuf_unref(flipped); | ||
71 | |||
72 | return TRUE; | ||
73 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.h new file mode 100644 index 0000000..c929a50 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/screenshot.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* $Id: screenshot.h 41 2006-05-22 12:23:29Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _SCREENSHOT_H | ||
24 | #define _SCREENSHOT_H | ||
25 | |||
26 | gboolean screenshot_save(const gchar *filename, guint32 width, guint32 height); | ||
27 | |||
28 | #endif /* _SCREENSHOT_H */ | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.c new file mode 100644 index 0000000..0b6dccf --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* $Id: texture.c 42 2006-05-22 13:31:45Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifdef HAVE_CONFIG_H | ||
24 | # include <config.h> | ||
25 | #endif | ||
26 | |||
27 | #include <stdlib.h> | ||
28 | |||
29 | #include <g3d/g3d.h> | ||
30 | |||
31 | #include "gl.h" | ||
32 | |||
33 | int texture_load_all_textures(G3DModel *model) | ||
34 | { | ||
35 | if(model == NULL) return EXIT_FAILURE; | ||
36 | |||
37 | if(model->tex_images != NULL) | ||
38 | g_hash_table_foreach(model->tex_images, | ||
39 | gl_load_texture, NULL); | ||
40 | |||
41 | return EXIT_SUCCESS; | ||
42 | } | ||
43 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.h new file mode 100644 index 0000000..f646bbb --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/texture.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* $Id: texture.h 25 2006-04-22 17:24:27Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _TEXTURE_H | ||
24 | #define _TEXTURE_H | ||
25 | |||
26 | #include <g3d/g3d.h> | ||
27 | |||
28 | int texture_load_all_textures(G3DModel *model); | ||
29 | |||
30 | #endif | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.c b/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.c new file mode 100644 index 0000000..f23d3db --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.c | |||
@@ -0,0 +1,324 @@ | |||
1 | /* | ||
2 | * (c) Copyright 1993, 1994, Silicon Graphics, Inc. | ||
3 | * ALL RIGHTS RESERVED | ||
4 | * Permission to use, copy, modify, and distribute this software for | ||
5 | * any purpose and without fee is hereby granted, provided that the above | ||
6 | * copyright notice appear in all copies and that both the copyright notice | ||
7 | * and this permission notice appear in supporting documentation, and that | ||
8 | * the name of Silicon Graphics, Inc. not be used in advertising | ||
9 | * or publicity pertaining to distribution of the software without specific, | ||
10 | * written prior permission. | ||
11 | * | ||
12 | * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" | ||
13 | * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, | ||
14 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR | ||
15 | * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON | ||
16 | * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, | ||
17 | * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY | ||
18 | * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, | ||
19 | * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF | ||
20 | * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN | ||
21 | * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON | ||
22 | * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE | ||
23 | * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. | ||
24 | * | ||
25 | * US Government Users Restricted Rights | ||
26 | * Use, duplication, or disclosure by the Government is subject to | ||
27 | * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph | ||
28 | * (c)(1)(ii) of the Rights in Technical Data and Computer Software | ||
29 | * clause at DFARS 252.227-7013 and/or in similar or successor | ||
30 | * clauses in the FAR or the DOD or NASA FAR Supplement. | ||
31 | * Unpublished-- rights reserved under the copyright laws of the | ||
32 | * United States. Contractor/manufacturer is Silicon Graphics, | ||
33 | * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. | ||
34 | * | ||
35 | * OpenGL(TM) is a trademark of Silicon Graphics, Inc. | ||
36 | */ | ||
37 | /* | ||
38 | * Trackball code: | ||
39 | * | ||
40 | * Implementation of a virtual trackball. | ||
41 | * Implemented by Gavin Bell, lots of ideas from Thant Tessman and | ||
42 | * the August '88 issue of Siggraph's "Computer Graphics," pp. 121-129. | ||
43 | * | ||
44 | * Vector manip code: | ||
45 | * | ||
46 | * Original code from: | ||
47 | * David M. Ciemiewicz, Mark Grossman, Henry Moreton, and Paul Haeberli | ||
48 | * | ||
49 | * Much mucking with by: | ||
50 | * Gavin Bell | ||
51 | */ | ||
52 | #include <math.h> | ||
53 | #include "trackball.h" | ||
54 | |||
55 | /* | ||
56 | * This size should really be based on the distance from the center of | ||
57 | * rotation to the point on the object underneath the mouse. That | ||
58 | * point would then track the mouse as closely as possible. This is a | ||
59 | * simple example, though, so that is left as an Exercise for the | ||
60 | * Programmer. | ||
61 | */ | ||
62 | #define TRACKBALLSIZE (0.8) | ||
63 | |||
64 | /* | ||
65 | * Local function prototypes (not defined in trackball.h) | ||
66 | */ | ||
67 | static float tb_project_to_sphere(float, float, float); | ||
68 | static void normalize_quat(float [4]); | ||
69 | |||
70 | void | ||
71 | vzero(float *v) | ||
72 | { | ||
73 | v[0] = 0.0; | ||
74 | v[1] = 0.0; | ||
75 | v[2] = 0.0; | ||
76 | } | ||
77 | |||
78 | void | ||
79 | vset(float *v, float x, float y, float z) | ||
80 | { | ||
81 | v[0] = x; | ||
82 | v[1] = y; | ||
83 | v[2] = z; | ||
84 | } | ||
85 | |||
86 | void | ||
87 | vsub(const float *src1, const float *src2, float *dst) | ||
88 | { | ||
89 | dst[0] = src1[0] - src2[0]; | ||
90 | dst[1] = src1[1] - src2[1]; | ||
91 | dst[2] = src1[2] - src2[2]; | ||
92 | } | ||
93 | |||
94 | void | ||
95 | vcopy(const float *v1, float *v2) | ||
96 | { | ||
97 | register int i; | ||
98 | for (i = 0 ; i < 3 ; i++) | ||
99 | v2[i] = v1[i]; | ||
100 | } | ||
101 | |||
102 | void | ||
103 | vcross(const float *v1, const float *v2, float *cross) | ||
104 | { | ||
105 | float temp[3]; | ||
106 | |||
107 | temp[0] = (v1[1] * v2[2]) - (v1[2] * v2[1]); | ||
108 | temp[1] = (v1[2] * v2[0]) - (v1[0] * v2[2]); | ||
109 | temp[2] = (v1[0] * v2[1]) - (v1[1] * v2[0]); | ||
110 | vcopy(temp, cross); | ||
111 | } | ||
112 | |||
113 | float | ||
114 | vlength(const float *v) | ||
115 | { | ||
116 | return sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]); | ||
117 | } | ||
118 | |||
119 | void | ||
120 | vscale(float *v, float div) | ||
121 | { | ||
122 | v[0] *= div; | ||
123 | v[1] *= div; | ||
124 | v[2] *= div; | ||
125 | } | ||
126 | |||
127 | void | ||
128 | vnormal(float *v) | ||
129 | { | ||
130 | vscale(v,1.0/vlength(v)); | ||
131 | } | ||
132 | |||
133 | float | ||
134 | vdot(const float *v1, const float *v2) | ||
135 | { | ||
136 | return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2]; | ||
137 | } | ||
138 | |||
139 | void | ||
140 | vadd(const float *src1, const float *src2, float *dst) | ||
141 | { | ||
142 | dst[0] = src1[0] + src2[0]; | ||
143 | dst[1] = src1[1] + src2[1]; | ||
144 | dst[2] = src1[2] + src2[2]; | ||
145 | } | ||
146 | |||
147 | /* | ||
148 | * Ok, simulate a track-ball. Project the points onto the virtual | ||
149 | * trackball, then figure out the axis of rotation, which is the cross | ||
150 | * product of P1 P2 and O P1 (O is the center of the ball, 0,0,0) | ||
151 | * Note: This is a deformed trackball-- is a trackball in the center, | ||
152 | * but is deformed into a hyperbolic sheet of rotation away from the | ||
153 | * center. This particular function was chosen after trying out | ||
154 | * several variations. | ||
155 | * | ||
156 | * It is assumed that the arguments to this routine are in the range | ||
157 | * (-1.0 ... 1.0) | ||
158 | */ | ||
159 | void | ||
160 | trackball(float q[4], float p1x, float p1y, float p2x, float p2y) | ||
161 | { | ||
162 | float a[3]; /* Axis of rotation */ | ||
163 | float phi; /* how much to rotate about axis */ | ||
164 | float p1[3], p2[3], d[3]; | ||
165 | float t; | ||
166 | |||
167 | if (p1x == p2x && p1y == p2y) { | ||
168 | /* Zero rotation */ | ||
169 | vzero(q); | ||
170 | q[3] = 1.0; | ||
171 | return; | ||
172 | } | ||
173 | |||
174 | /* | ||
175 | * First, figure out z-coordinates for projection of P1 and P2 to | ||
176 | * deformed sphere | ||
177 | */ | ||
178 | vset(p1,p1x,p1y,tb_project_to_sphere(TRACKBALLSIZE,p1x,p1y)); | ||
179 | vset(p2,p2x,p2y,tb_project_to_sphere(TRACKBALLSIZE,p2x,p2y)); | ||
180 | |||
181 | /* | ||
182 | * Now, we want the cross product of P1 and P2 | ||
183 | */ | ||
184 | vcross(p2,p1,a); | ||
185 | |||
186 | /* | ||
187 | * Figure out how much to rotate around that axis. | ||
188 | */ | ||
189 | vsub(p1,p2,d); | ||
190 | t = vlength(d) / (2.0*TRACKBALLSIZE); | ||
191 | |||
192 | /* | ||
193 | * Avoid problems with out-of-control values... | ||
194 | */ | ||
195 | if (t > 1.0) t = 1.0; | ||
196 | if (t < -1.0) t = -1.0; | ||
197 | phi = 2.0 * asin(t); | ||
198 | |||
199 | axis_to_quat(a,phi,q); | ||
200 | } | ||
201 | |||
202 | /* | ||
203 | * Given an axis and angle, compute quaternion. | ||
204 | */ | ||
205 | void | ||
206 | axis_to_quat(float a[3], float phi, float q[4]) | ||
207 | { | ||
208 | vnormal(a); | ||
209 | vcopy(a,q); | ||
210 | vscale(q,sin(phi/2.0)); | ||
211 | q[3] = cos(phi/2.0); | ||
212 | } | ||
213 | |||
214 | /* | ||
215 | * Project an x,y pair onto a sphere of radius r OR a hyperbolic sheet | ||
216 | * if we are away from the center of the sphere. | ||
217 | */ | ||
218 | static float | ||
219 | tb_project_to_sphere(float r, float x, float y) | ||
220 | { | ||
221 | float d, t, z; | ||
222 | |||
223 | d = sqrt(x*x + y*y); | ||
224 | if (d < r * 0.70710678118654752440) { /* Inside sphere */ | ||
225 | z = sqrt(r*r - d*d); | ||
226 | } else { /* On hyperbola */ | ||
227 | t = r / 1.41421356237309504880; | ||
228 | z = t*t / d; | ||
229 | } | ||
230 | return z; | ||
231 | } | ||
232 | |||
233 | /* | ||
234 | * Given two rotations, e1 and e2, expressed as quaternion rotations, | ||
235 | * figure out the equivalent single rotation and stuff it into dest. | ||
236 | * | ||
237 | * This routine also normalizes the result every RENORMCOUNT times it is | ||
238 | * called, to keep error from creeping in. | ||
239 | * | ||
240 | * NOTE: This routine is written so that q1 or q2 may be the same | ||
241 | * as dest (or each other). | ||
242 | */ | ||
243 | |||
244 | #define RENORMCOUNT 97 | ||
245 | |||
246 | void | ||
247 | add_quats(float q1[4], float q2[4], float dest[4]) | ||
248 | { | ||
249 | static int count=0; | ||
250 | float t1[4], t2[4], t3[4]; | ||
251 | float tf[4]; | ||
252 | |||
253 | vcopy(q1,t1); | ||
254 | vscale(t1,q2[3]); | ||
255 | |||
256 | vcopy(q2,t2); | ||
257 | vscale(t2,q1[3]); | ||
258 | |||
259 | vcross(q2,q1,t3); | ||
260 | vadd(t1,t2,tf); | ||
261 | vadd(t3,tf,tf); | ||
262 | tf[3] = q1[3] * q2[3] - vdot(q1,q2); | ||
263 | |||
264 | dest[0] = tf[0]; | ||
265 | dest[1] = tf[1]; | ||
266 | dest[2] = tf[2]; | ||
267 | dest[3] = tf[3]; | ||
268 | |||
269 | if (++count > RENORMCOUNT) { | ||
270 | count = 0; | ||
271 | normalize_quat(dest); | ||
272 | } | ||
273 | } | ||
274 | |||
275 | /* | ||
276 | * Quaternions always obey: a^2 + b^2 + c^2 + d^2 = 1.0 | ||
277 | * If they don't add up to 1.0, dividing by their magnitued will | ||
278 | * renormalize them. | ||
279 | * | ||
280 | * Note: See the following for more information on quaternions: | ||
281 | * | ||
282 | * - Shoemake, K., Animating rotation with quaternion curves, Computer | ||
283 | * Graphics 19, No 3 (Proc. SIGGRAPH'85), 245-254, 1985. | ||
284 | * - Pletinckx, D., Quaternion calculus as a basic tool in computer | ||
285 | * graphics, The Visual Computer 5, 2-13, 1989. | ||
286 | */ | ||
287 | static void | ||
288 | normalize_quat(float q[4]) | ||
289 | { | ||
290 | int i; | ||
291 | float mag; | ||
292 | |||
293 | mag = (q[0]*q[0] + q[1]*q[1] + q[2]*q[2] + q[3]*q[3]); | ||
294 | for (i = 0; i < 4; i++) q[i] /= mag; | ||
295 | } | ||
296 | |||
297 | /* | ||
298 | * Build a rotation matrix, given a quaternion rotation. | ||
299 | * | ||
300 | */ | ||
301 | void | ||
302 | build_rotmatrix(float m[4][4], float q[4]) | ||
303 | { | ||
304 | m[0][0] = 1.0 - 2.0 * (q[1] * q[1] + q[2] * q[2]); | ||
305 | m[0][1] = 2.0 * (q[0] * q[1] - q[2] * q[3]); | ||
306 | m[0][2] = 2.0 * (q[2] * q[0] + q[1] * q[3]); | ||
307 | m[0][3] = 0.0; | ||
308 | |||
309 | m[1][0] = 2.0 * (q[0] * q[1] + q[2] * q[3]); | ||
310 | m[1][1]= 1.0 - 2.0 * (q[2] * q[2] + q[0] * q[0]); | ||
311 | m[1][2] = 2.0 * (q[1] * q[2] - q[0] * q[3]); | ||
312 | m[1][3] = 0.0; | ||
313 | |||
314 | m[2][0] = 2.0 * (q[2] * q[0] - q[1] * q[3]); | ||
315 | m[2][1] = 2.0 * (q[1] * q[2] + q[0] * q[3]); | ||
316 | m[2][2] = 1.0 - 2.0 * (q[1] * q[1] + q[0] * q[0]); | ||
317 | m[2][3] = 0.0; | ||
318 | |||
319 | m[3][0] = 0.0; | ||
320 | m[3][1] = 0.0; | ||
321 | m[3][2] = 0.0; | ||
322 | m[3][3] = 1.0; | ||
323 | } | ||
324 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.h new file mode 100644 index 0000000..b676fb4 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/trackball.h | |||
@@ -0,0 +1,78 @@ | |||
1 | /* | ||
2 | * (c) Copyright 1993, 1994, Silicon Graphics, Inc. | ||
3 | * ALL RIGHTS RESERVED | ||
4 | * Permission to use, copy, modify, and distribute this software for | ||
5 | * any purpose and without fee is hereby granted, provided that the above | ||
6 | * copyright notice appear in all copies and that both the copyright notice | ||
7 | * and this permission notice appear in supporting documentation, and that | ||
8 | * the name of Silicon Graphics, Inc. not be used in advertising | ||
9 | * or publicity pertaining to distribution of the software without specific, | ||
10 | * written prior permission. | ||
11 | * | ||
12 | * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" | ||
13 | * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, | ||
14 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR | ||
15 | * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON | ||
16 | * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, | ||
17 | * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY | ||
18 | * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, | ||
19 | * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF | ||
20 | * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN | ||
21 | * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON | ||
22 | * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE | ||
23 | * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. | ||
24 | * | ||
25 | * US Government Users Restricted Rights | ||
26 | * Use, duplication, or disclosure by the Government is subject to | ||
27 | * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph | ||
28 | * (c)(1)(ii) of the Rights in Technical Data and Computer Software | ||
29 | * clause at DFARS 252.227-7013 and/or in similar or successor | ||
30 | * clauses in the FAR or the DOD or NASA FAR Supplement. | ||
31 | * Unpublished-- rights reserved under the copyright laws of the | ||
32 | * United States. Contractor/manufacturer is Silicon Graphics, | ||
33 | * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. | ||
34 | * | ||
35 | * OpenGL(TM) is a trademark of Silicon Graphics, Inc. | ||
36 | */ | ||
37 | /* | ||
38 | * trackball.h | ||
39 | * A virtual trackball implementation | ||
40 | * Written by Gavin Bell for Silicon Graphics, November 1988. | ||
41 | */ | ||
42 | |||
43 | /* | ||
44 | * Pass the x and y coordinates of the last and current positions of | ||
45 | * the mouse, scaled so they are from (-1.0 ... 1.0). | ||
46 | * | ||
47 | * The resulting rotation is returned as a quaternion rotation in the | ||
48 | * first paramater. | ||
49 | */ | ||
50 | void | ||
51 | trackball(float q[4], float p1x, float p1y, float p2x, float p2y); | ||
52 | |||
53 | /* | ||
54 | * Given two quaternions, add them together to get a third quaternion. | ||
55 | * Adding quaternions to get a compound rotation is analagous to adding | ||
56 | * translations to get a compound translation. When incrementally | ||
57 | * adding rotations, the first argument here should be the new | ||
58 | * rotation, the second and third the total rotation (which will be | ||
59 | * over-written with the resulting new total rotation). | ||
60 | */ | ||
61 | void | ||
62 | add_quats(float *q1, float *q2, float *dest); | ||
63 | |||
64 | /* | ||
65 | * A useful function, builds a rotation matrix in Matrix based on | ||
66 | * given quaternion. | ||
67 | */ | ||
68 | void | ||
69 | build_rotmatrix(float m[4][4], float q[4]); | ||
70 | |||
71 | /* | ||
72 | * This function computes a quaternion based on an axis (defined by | ||
73 | * the given vector) and an angle about which to rotate. The angle is | ||
74 | * expressed in radians. The result is put into the third argument. | ||
75 | */ | ||
76 | void | ||
77 | axis_to_quat(float a[3], float phi, float q[4]); | ||
78 | |||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile new file mode 100644 index 0000000..53f1e61 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile | |||
@@ -0,0 +1,581 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # thumbnailer/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | |||
20 | pkgdatadir = $(datadir)/g3dviewer | ||
21 | pkglibdir = $(libdir)/g3dviewer | ||
22 | pkgincludedir = $(includedir)/g3dviewer | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = /usr/bin/install -c | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run aclocal-1.7 | ||
39 | AMDEP_FALSE = # | ||
40 | AMDEP_TRUE = | ||
41 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run tar | ||
42 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoconf | ||
43 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run autoheader | ||
44 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run automake-1.7 | ||
45 | AWK = gawk | ||
46 | CATALOGS = de.gmo | ||
47 | CATOBJEXT = .gmo | ||
48 | CC = gcc | ||
49 | CCDEPMODE = depmode=gcc3 | ||
50 | CFLAGS = -g -O2 | ||
51 | CPP = gcc -E | ||
52 | CPPFLAGS = | ||
53 | CYGPATH_W = echo | ||
54 | DATADIRNAME = share | ||
55 | DBG_CFLAGS = -O2 | ||
56 | DEBUG = 0 | ||
57 | DEFS = -DHAVE_CONFIG_H | ||
58 | DEPDIR = .deps | ||
59 | ECHO_C = | ||
60 | ECHO_N = -n | ||
61 | ECHO_T = | ||
62 | EGREP = /bin/grep -E | ||
63 | EXEEXT = | ||
64 | GETTEXT_PACKAGE = g3dviewer | ||
65 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
66 | GLIB_GENMARSHAL = glib-genmarshal | ||
67 | GLIB_LIBS = -lglib-2.0 | ||
68 | GLIB_MKENUMS = glib-mkenums | ||
69 | GL_LIBS = -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
70 | GMOFILES = de.gmo | ||
71 | GMSGFMT = /usr/bin/msgfmt | ||
72 | GOBJECT_QUERY = gobject-query | ||
73 | GREP = /bin/grep | ||
74 | GTKGLEXT_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include | ||
75 | GTKGLEXT_LIBS = -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgmodule-2.0 -lrt -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
76 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
77 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
78 | INSTALL_DATA = ${INSTALL} -m 644 | ||
79 | INSTALL_PROGRAM = ${INSTALL} | ||
80 | INSTALL_SCRIPT = ${INSTALL} | ||
81 | INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s | ||
82 | INSTOBJEXT = .mo | ||
83 | INTLLIBS = | ||
84 | LDFLAGS = | ||
85 | LIBG3D_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include | ||
86 | LIBG3D_LIBS = -L/usr/local/lib -lg3d -lglib-2.0 | ||
87 | LIBGLADE_CFLAGS = -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
88 | LIBGLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
89 | LIBOBJS = | ||
90 | LIBS = | ||
91 | LTLIBOBJS = | ||
92 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/missing --run makeinfo | ||
93 | MKINSTALLDIRS = ./mkinstalldirs | ||
94 | MSGFMT = /usr/bin/msgfmt | ||
95 | OBJEXT = o | ||
96 | PACKAGE = g3dviewer | ||
97 | PACKAGE_BUGREPORT = | ||
98 | PACKAGE_NAME = | ||
99 | PACKAGE_STRING = | ||
100 | PACKAGE_TARNAME = | ||
101 | PACKAGE_VERSION = | ||
102 | PATH_SEPARATOR = : | ||
103 | PKG_CONFIG = /usr/bin/pkg-config | ||
104 | POFILES = de.po | ||
105 | POSUB = po | ||
106 | PO_IN_DATADIR_FALSE = | ||
107 | PO_IN_DATADIR_TRUE = | ||
108 | SET_MAKE = | ||
109 | SHELL = /bin/bash | ||
110 | STRIP = | ||
111 | USE_NLS = yes | ||
112 | VERSION = 0.2.99.4 | ||
113 | XGETTEXT = /usr/bin/xgettext | ||
114 | XMKMF = | ||
115 | X_CFLAGS = | ||
116 | X_EXTRA_LIBS = | ||
117 | X_LIBS = | ||
118 | X_PRE_LIBS = -lSM -lICE | ||
119 | ac_ct_CC = gcc | ||
120 | am__fastdepCC_FALSE = # | ||
121 | am__fastdepCC_TRUE = | ||
122 | am__include = include | ||
123 | am__leading_dot = . | ||
124 | am__quote = | ||
125 | bindir = ${exec_prefix}/bin | ||
126 | build_alias = | ||
127 | datadir = ${datarootdir} | ||
128 | datarootdir = ${prefix}/share | ||
129 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
130 | dvidir = ${docdir} | ||
131 | exec_prefix = ${prefix} | ||
132 | host_alias = | ||
133 | htmldir = ${docdir} | ||
134 | includedir = ${prefix}/include | ||
135 | infodir = ${datarootdir}/info | ||
136 | install_sh = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/g3dviewer-0.2.99.4/install-sh | ||
137 | libdir = ${exec_prefix}/lib | ||
138 | libexecdir = ${exec_prefix}/libexec | ||
139 | localedir = ${datarootdir}/locale | ||
140 | localstatedir = ${prefix}/var | ||
141 | mandir = ${datarootdir}/man | ||
142 | oldincludedir = /usr/include | ||
143 | pdfdir = ${docdir} | ||
144 | prefix = /usr/local | ||
145 | program_transform_name = s,x,x, | ||
146 | psdir = ${docdir} | ||
147 | sbindir = ${exec_prefix}/sbin | ||
148 | sharedstatedir = ${prefix}/com | ||
149 | sysconfdir = ${prefix}/etc | ||
150 | target_alias = | ||
151 | bin_PROGRAMS = g3d-thumbnailer | ||
152 | |||
153 | g3d_thumbnailer_SOURCES = \ | ||
154 | g3d-thumbnailer.c \ | ||
155 | ../src/trackball.c \ | ||
156 | ../src/gl.c \ | ||
157 | ../src/texture.c \ | ||
158 | ../src/screenshot.c | ||
159 | |||
160 | |||
161 | g3d_thumbnailer_CFLAGS = \ | ||
162 | -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/src \ | ||
163 | -Wall -ansi \ | ||
164 | -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include \ | ||
165 | -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 \ | ||
166 | -DDEBUG=0 | ||
167 | |||
168 | |||
169 | g3d_thumbnailer_LDFLAGS = \ | ||
170 | -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lg3d -lglib-2.0 | ||
171 | |||
172 | |||
173 | mimelocaldir = ${HOME}/.local/share/mime | ||
174 | mimefiles = g3dviewer.xml | ||
175 | |||
176 | EXTRA_DIST = \ | ||
177 | g3dviewer.xml \ | ||
178 | gen_schema.sh | ||
179 | |||
180 | subdir = thumbnailer | ||
181 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
182 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
183 | CONFIG_HEADER = $(top_builddir)/config.h | ||
184 | CONFIG_CLEAN_FILES = | ||
185 | bin_PROGRAMS = g3d-thumbnailer$(EXEEXT) | ||
186 | PROGRAMS = $(bin_PROGRAMS) | ||
187 | |||
188 | am_g3d_thumbnailer_OBJECTS = g3d_thumbnailer-g3d-thumbnailer.$(OBJEXT) \ | ||
189 | g3d_thumbnailer-trackball.$(OBJEXT) \ | ||
190 | g3d_thumbnailer-gl.$(OBJEXT) g3d_thumbnailer-texture.$(OBJEXT) \ | ||
191 | g3d_thumbnailer-screenshot.$(OBJEXT) | ||
192 | g3d_thumbnailer_OBJECTS = $(am_g3d_thumbnailer_OBJECTS) | ||
193 | g3d_thumbnailer_LDADD = $(LDADD) | ||
194 | g3d_thumbnailer_DEPENDENCIES = | ||
195 | |||
196 | DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) | ||
197 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
198 | am__depfiles_maybe = depfiles | ||
199 | DEP_FILES = ./$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po \ | ||
200 | ./$(DEPDIR)/g3d_thumbnailer-gl.Po \ | ||
201 | ./$(DEPDIR)/g3d_thumbnailer-screenshot.Po \ | ||
202 | ./$(DEPDIR)/g3d_thumbnailer-texture.Po \ | ||
203 | ./$(DEPDIR)/g3d_thumbnailer-trackball.Po | ||
204 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
205 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
206 | CCLD = $(CC) | ||
207 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
208 | DIST_SOURCES = $(g3d_thumbnailer_SOURCES) | ||
209 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
210 | SOURCES = $(g3d_thumbnailer_SOURCES) | ||
211 | |||
212 | all: all-am | ||
213 | |||
214 | .SUFFIXES: | ||
215 | .SUFFIXES: .c .o .obj | ||
216 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
217 | cd $(top_srcdir) && \ | ||
218 | $(AUTOMAKE) --gnu thumbnailer/Makefile | ||
219 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
220 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
221 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
222 | install-binPROGRAMS: $(bin_PROGRAMS) | ||
223 | @$(NORMAL_INSTALL) | ||
224 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
225 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
226 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
227 | if test -f $$p \ | ||
228 | ; then \ | ||
229 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
230 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ | ||
231 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ | ||
232 | else :; fi; \ | ||
233 | done | ||
234 | |||
235 | uninstall-binPROGRAMS: | ||
236 | @$(NORMAL_UNINSTALL) | ||
237 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
238 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
239 | echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ | ||
240 | rm -f $(DESTDIR)$(bindir)/$$f; \ | ||
241 | done | ||
242 | |||
243 | clean-binPROGRAMS: | ||
244 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | ||
245 | g3d-thumbnailer$(EXEEXT): $(g3d_thumbnailer_OBJECTS) $(g3d_thumbnailer_DEPENDENCIES) | ||
246 | @rm -f g3d-thumbnailer$(EXEEXT) | ||
247 | $(LINK) $(g3d_thumbnailer_LDFLAGS) $(g3d_thumbnailer_OBJECTS) $(g3d_thumbnailer_LDADD) $(LIBS) | ||
248 | |||
249 | mostlyclean-compile: | ||
250 | -rm -f *.$(OBJEXT) core *.core | ||
251 | |||
252 | distclean-compile: | ||
253 | -rm -f *.tab.c | ||
254 | |||
255 | include ./$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po | ||
256 | include ./$(DEPDIR)/g3d_thumbnailer-gl.Po | ||
257 | include ./$(DEPDIR)/g3d_thumbnailer-screenshot.Po | ||
258 | include ./$(DEPDIR)/g3d_thumbnailer-texture.Po | ||
259 | include ./$(DEPDIR)/g3d_thumbnailer-trackball.Po | ||
260 | |||
261 | .c.o: | ||
262 | if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
263 | -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ | ||
264 | then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
265 | else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
266 | fi | ||
267 | # source='$<' object='$@' libtool=no \ | ||
268 | # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ | ||
269 | # $(CCDEPMODE) $(depcomp) \ | ||
270 | # $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< | ||
271 | |||
272 | .c.obj: | ||
273 | if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
274 | -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ | ||
275 | then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
276 | else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
277 | fi | ||
278 | # source='$<' object='$@' libtool=no \ | ||
279 | # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ | ||
280 | # $(CCDEPMODE) $(depcomp) \ | ||
281 | # $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | ||
282 | |||
283 | g3d_thumbnailer-g3d-thumbnailer.o: g3d-thumbnailer.c | ||
284 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-g3d-thumbnailer.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" \ | ||
285 | -c -o g3d_thumbnailer-g3d-thumbnailer.o `test -f 'g3d-thumbnailer.c' || echo '$(srcdir)/'`g3d-thumbnailer.c; \ | ||
286 | then mv -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po"; \ | ||
287 | else rm -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo"; exit 1; \ | ||
288 | fi | ||
289 | # source='g3d-thumbnailer.c' object='g3d_thumbnailer-g3d-thumbnailer.o' libtool=no \ | ||
290 | # depfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.TPo' \ | ||
291 | # $(CCDEPMODE) $(depcomp) \ | ||
292 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-g3d-thumbnailer.o `test -f 'g3d-thumbnailer.c' || echo '$(srcdir)/'`g3d-thumbnailer.c | ||
293 | |||
294 | g3d_thumbnailer-g3d-thumbnailer.obj: g3d-thumbnailer.c | ||
295 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-g3d-thumbnailer.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" \ | ||
296 | -c -o g3d_thumbnailer-g3d-thumbnailer.obj `if test -f 'g3d-thumbnailer.c'; then $(CYGPATH_W) 'g3d-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/g3d-thumbnailer.c'; fi`; \ | ||
297 | then mv -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po"; \ | ||
298 | else rm -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo"; exit 1; \ | ||
299 | fi | ||
300 | # source='g3d-thumbnailer.c' object='g3d_thumbnailer-g3d-thumbnailer.obj' libtool=no \ | ||
301 | # depfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.TPo' \ | ||
302 | # $(CCDEPMODE) $(depcomp) \ | ||
303 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-g3d-thumbnailer.obj `if test -f 'g3d-thumbnailer.c'; then $(CYGPATH_W) 'g3d-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/g3d-thumbnailer.c'; fi` | ||
304 | |||
305 | g3d_thumbnailer-trackball.o: ../src/trackball.c | ||
306 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-trackball.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" \ | ||
307 | -c -o g3d_thumbnailer-trackball.o `test -f '../src/trackball.c' || echo '$(srcdir)/'`../src/trackball.c; \ | ||
308 | then mv -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" "$(DEPDIR)/g3d_thumbnailer-trackball.Po"; \ | ||
309 | else rm -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo"; exit 1; \ | ||
310 | fi | ||
311 | # source='../src/trackball.c' object='g3d_thumbnailer-trackball.o' libtool=no \ | ||
312 | # depfile='$(DEPDIR)/g3d_thumbnailer-trackball.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-trackball.TPo' \ | ||
313 | # $(CCDEPMODE) $(depcomp) \ | ||
314 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-trackball.o `test -f '../src/trackball.c' || echo '$(srcdir)/'`../src/trackball.c | ||
315 | |||
316 | g3d_thumbnailer-trackball.obj: ../src/trackball.c | ||
317 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-trackball.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" \ | ||
318 | -c -o g3d_thumbnailer-trackball.obj `if test -f '../src/trackball.c'; then $(CYGPATH_W) '../src/trackball.c'; else $(CYGPATH_W) '$(srcdir)/../src/trackball.c'; fi`; \ | ||
319 | then mv -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" "$(DEPDIR)/g3d_thumbnailer-trackball.Po"; \ | ||
320 | else rm -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo"; exit 1; \ | ||
321 | fi | ||
322 | # source='../src/trackball.c' object='g3d_thumbnailer-trackball.obj' libtool=no \ | ||
323 | # depfile='$(DEPDIR)/g3d_thumbnailer-trackball.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-trackball.TPo' \ | ||
324 | # $(CCDEPMODE) $(depcomp) \ | ||
325 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-trackball.obj `if test -f '../src/trackball.c'; then $(CYGPATH_W) '../src/trackball.c'; else $(CYGPATH_W) '$(srcdir)/../src/trackball.c'; fi` | ||
326 | |||
327 | g3d_thumbnailer-gl.o: ../src/gl.c | ||
328 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-gl.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" \ | ||
329 | -c -o g3d_thumbnailer-gl.o `test -f '../src/gl.c' || echo '$(srcdir)/'`../src/gl.c; \ | ||
330 | then mv -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" "$(DEPDIR)/g3d_thumbnailer-gl.Po"; \ | ||
331 | else rm -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo"; exit 1; \ | ||
332 | fi | ||
333 | # source='../src/gl.c' object='g3d_thumbnailer-gl.o' libtool=no \ | ||
334 | # depfile='$(DEPDIR)/g3d_thumbnailer-gl.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-gl.TPo' \ | ||
335 | # $(CCDEPMODE) $(depcomp) \ | ||
336 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-gl.o `test -f '../src/gl.c' || echo '$(srcdir)/'`../src/gl.c | ||
337 | |||
338 | g3d_thumbnailer-gl.obj: ../src/gl.c | ||
339 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-gl.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" \ | ||
340 | -c -o g3d_thumbnailer-gl.obj `if test -f '../src/gl.c'; then $(CYGPATH_W) '../src/gl.c'; else $(CYGPATH_W) '$(srcdir)/../src/gl.c'; fi`; \ | ||
341 | then mv -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" "$(DEPDIR)/g3d_thumbnailer-gl.Po"; \ | ||
342 | else rm -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo"; exit 1; \ | ||
343 | fi | ||
344 | # source='../src/gl.c' object='g3d_thumbnailer-gl.obj' libtool=no \ | ||
345 | # depfile='$(DEPDIR)/g3d_thumbnailer-gl.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-gl.TPo' \ | ||
346 | # $(CCDEPMODE) $(depcomp) \ | ||
347 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-gl.obj `if test -f '../src/gl.c'; then $(CYGPATH_W) '../src/gl.c'; else $(CYGPATH_W) '$(srcdir)/../src/gl.c'; fi` | ||
348 | |||
349 | g3d_thumbnailer-texture.o: ../src/texture.c | ||
350 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-texture.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" \ | ||
351 | -c -o g3d_thumbnailer-texture.o `test -f '../src/texture.c' || echo '$(srcdir)/'`../src/texture.c; \ | ||
352 | then mv -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" "$(DEPDIR)/g3d_thumbnailer-texture.Po"; \ | ||
353 | else rm -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo"; exit 1; \ | ||
354 | fi | ||
355 | # source='../src/texture.c' object='g3d_thumbnailer-texture.o' libtool=no \ | ||
356 | # depfile='$(DEPDIR)/g3d_thumbnailer-texture.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-texture.TPo' \ | ||
357 | # $(CCDEPMODE) $(depcomp) \ | ||
358 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-texture.o `test -f '../src/texture.c' || echo '$(srcdir)/'`../src/texture.c | ||
359 | |||
360 | g3d_thumbnailer-texture.obj: ../src/texture.c | ||
361 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-texture.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" \ | ||
362 | -c -o g3d_thumbnailer-texture.obj `if test -f '../src/texture.c'; then $(CYGPATH_W) '../src/texture.c'; else $(CYGPATH_W) '$(srcdir)/../src/texture.c'; fi`; \ | ||
363 | then mv -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" "$(DEPDIR)/g3d_thumbnailer-texture.Po"; \ | ||
364 | else rm -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo"; exit 1; \ | ||
365 | fi | ||
366 | # source='../src/texture.c' object='g3d_thumbnailer-texture.obj' libtool=no \ | ||
367 | # depfile='$(DEPDIR)/g3d_thumbnailer-texture.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-texture.TPo' \ | ||
368 | # $(CCDEPMODE) $(depcomp) \ | ||
369 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-texture.obj `if test -f '../src/texture.c'; then $(CYGPATH_W) '../src/texture.c'; else $(CYGPATH_W) '$(srcdir)/../src/texture.c'; fi` | ||
370 | |||
371 | g3d_thumbnailer-screenshot.o: ../src/screenshot.c | ||
372 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-screenshot.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" \ | ||
373 | -c -o g3d_thumbnailer-screenshot.o `test -f '../src/screenshot.c' || echo '$(srcdir)/'`../src/screenshot.c; \ | ||
374 | then mv -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" "$(DEPDIR)/g3d_thumbnailer-screenshot.Po"; \ | ||
375 | else rm -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo"; exit 1; \ | ||
376 | fi | ||
377 | # source='../src/screenshot.c' object='g3d_thumbnailer-screenshot.o' libtool=no \ | ||
378 | # depfile='$(DEPDIR)/g3d_thumbnailer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-screenshot.TPo' \ | ||
379 | # $(CCDEPMODE) $(depcomp) \ | ||
380 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-screenshot.o `test -f '../src/screenshot.c' || echo '$(srcdir)/'`../src/screenshot.c | ||
381 | |||
382 | g3d_thumbnailer-screenshot.obj: ../src/screenshot.c | ||
383 | if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-screenshot.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" \ | ||
384 | -c -o g3d_thumbnailer-screenshot.obj `if test -f '../src/screenshot.c'; then $(CYGPATH_W) '../src/screenshot.c'; else $(CYGPATH_W) '$(srcdir)/../src/screenshot.c'; fi`; \ | ||
385 | then mv -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" "$(DEPDIR)/g3d_thumbnailer-screenshot.Po"; \ | ||
386 | else rm -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo"; exit 1; \ | ||
387 | fi | ||
388 | # source='../src/screenshot.c' object='g3d_thumbnailer-screenshot.obj' libtool=no \ | ||
389 | # depfile='$(DEPDIR)/g3d_thumbnailer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-screenshot.TPo' \ | ||
390 | # $(CCDEPMODE) $(depcomp) \ | ||
391 | # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-screenshot.obj `if test -f '../src/screenshot.c'; then $(CYGPATH_W) '../src/screenshot.c'; else $(CYGPATH_W) '$(srcdir)/../src/screenshot.c'; fi` | ||
392 | uninstall-info-am: | ||
393 | |||
394 | ETAGS = etags | ||
395 | ETAGSFLAGS = | ||
396 | |||
397 | CTAGS = ctags | ||
398 | CTAGSFLAGS = | ||
399 | |||
400 | tags: TAGS | ||
401 | |||
402 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
403 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
404 | unique=`for i in $$list; do \ | ||
405 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
406 | done | \ | ||
407 | $(AWK) ' { files[$$0] = 1; } \ | ||
408 | END { for (i in files) print i; }'`; \ | ||
409 | mkid -fID $$unique | ||
410 | |||
411 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
412 | $(TAGS_FILES) $(LISP) | ||
413 | tags=; \ | ||
414 | here=`pwd`; \ | ||
415 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
416 | unique=`for i in $$list; do \ | ||
417 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
418 | done | \ | ||
419 | $(AWK) ' { files[$$0] = 1; } \ | ||
420 | END { for (i in files) print i; }'`; \ | ||
421 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
422 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
423 | $$tags $$unique | ||
424 | |||
425 | ctags: CTAGS | ||
426 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
427 | $(TAGS_FILES) $(LISP) | ||
428 | tags=; \ | ||
429 | here=`pwd`; \ | ||
430 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
431 | unique=`for i in $$list; do \ | ||
432 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
433 | done | \ | ||
434 | $(AWK) ' { files[$$0] = 1; } \ | ||
435 | END { for (i in files) print i; }'`; \ | ||
436 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
437 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
438 | $$tags $$unique | ||
439 | |||
440 | GTAGS: | ||
441 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
442 | && cd $(top_srcdir) \ | ||
443 | && gtags -i $(GTAGS_ARGS) $$here | ||
444 | |||
445 | distclean-tags: | ||
446 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
447 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
448 | |||
449 | top_distdir = .. | ||
450 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
451 | |||
452 | distdir: $(DISTFILES) | ||
453 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
454 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
455 | list='$(DISTFILES)'; for file in $$list; do \ | ||
456 | case $$file in \ | ||
457 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
458 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
459 | esac; \ | ||
460 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
461 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
462 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
463 | dir="/$$dir"; \ | ||
464 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
465 | else \ | ||
466 | dir=''; \ | ||
467 | fi; \ | ||
468 | if test -d $$d/$$file; then \ | ||
469 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
470 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
471 | fi; \ | ||
472 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
473 | else \ | ||
474 | test -f $(distdir)/$$file \ | ||
475 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
476 | || exit 1; \ | ||
477 | fi; \ | ||
478 | done | ||
479 | check-am: all-am | ||
480 | check: check-am | ||
481 | all-am: Makefile $(PROGRAMS) | ||
482 | |||
483 | installdirs: | ||
484 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
485 | install: install-am | ||
486 | install-exec: install-exec-am | ||
487 | install-data: install-data-am | ||
488 | uninstall: uninstall-am | ||
489 | |||
490 | install-am: all-am | ||
491 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
492 | |||
493 | installcheck: installcheck-am | ||
494 | install-strip: | ||
495 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
496 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
497 | `test -z '$(STRIP)' || \ | ||
498 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
499 | mostlyclean-generic: | ||
500 | |||
501 | clean-generic: | ||
502 | |||
503 | distclean-generic: | ||
504 | -rm -f $(CONFIG_CLEAN_FILES) | ||
505 | |||
506 | maintainer-clean-generic: | ||
507 | @echo "This command is intended for maintainers to use" | ||
508 | @echo "it deletes files that may require special tools to rebuild." | ||
509 | clean: clean-am | ||
510 | |||
511 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | ||
512 | |||
513 | distclean: distclean-am | ||
514 | -rm -rf ./$(DEPDIR) | ||
515 | -rm -f Makefile | ||
516 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
517 | distclean-tags | ||
518 | |||
519 | dvi: dvi-am | ||
520 | |||
521 | dvi-am: | ||
522 | |||
523 | info: info-am | ||
524 | |||
525 | info-am: | ||
526 | |||
527 | install-data-am: | ||
528 | |||
529 | install-exec-am: install-binPROGRAMS | ||
530 | |||
531 | install-info: install-info-am | ||
532 | |||
533 | install-man: | ||
534 | |||
535 | installcheck-am: | ||
536 | |||
537 | maintainer-clean: maintainer-clean-am | ||
538 | -rm -rf ./$(DEPDIR) | ||
539 | -rm -f Makefile | ||
540 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
541 | |||
542 | mostlyclean: mostlyclean-am | ||
543 | |||
544 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
545 | |||
546 | pdf: pdf-am | ||
547 | |||
548 | pdf-am: | ||
549 | |||
550 | ps: ps-am | ||
551 | |||
552 | ps-am: | ||
553 | |||
554 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am | ||
555 | |||
556 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||
557 | clean-generic ctags distclean distclean-compile \ | ||
558 | distclean-generic distclean-tags distdir dvi dvi-am info \ | ||
559 | info-am install install-am install-binPROGRAMS install-data \ | ||
560 | install-data-am install-exec install-exec-am install-info \ | ||
561 | install-info-am install-man install-strip installcheck \ | ||
562 | installcheck-am installdirs maintainer-clean \ | ||
563 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
564 | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||
565 | uninstall-am uninstall-binPROGRAMS uninstall-info-am | ||
566 | |||
567 | |||
568 | install-data-user: install-mime-user install-schema-user | ||
569 | |||
570 | install-mime-user: ${mimefiles} | ||
571 | mkdir -p ${mimelocaldir}/packages | ||
572 | mkdir -p ${mimelocaldir}/applications | ||
573 | cp ${mimefiles} ${mimelocaldir}/packages | ||
574 | update-mime-database ${mimelocaldir} | ||
575 | |||
576 | install-schema-user: | ||
577 | ./gen_schema.sh | ||
578 | gconftool-2 --install-schema-file=g3d-thumbnailer.schema | ||
579 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
580 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
581 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.am b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.am new file mode 100644 index 0000000..eb78666 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.am | |||
@@ -0,0 +1,37 @@ | |||
1 | bin_PROGRAMS = g3d-thumbnailer | ||
2 | |||
3 | g3d_thumbnailer_SOURCES = \ | ||
4 | g3d-thumbnailer.c \ | ||
5 | ../src/trackball.c \ | ||
6 | ../src/gl.c \ | ||
7 | ../src/texture.c \ | ||
8 | ../src/screenshot.c | ||
9 | |||
10 | g3d_thumbnailer_CFLAGS = \ | ||
11 | -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/src \ | ||
12 | -Wall -ansi \ | ||
13 | @X_CFLAGS@ @LIBG3D_CFLAGS@ \ | ||
14 | @GTK_CFLAGS@ \ | ||
15 | -DDEBUG=@DEBUG@ | ||
16 | |||
17 | g3d_thumbnailer_LDFLAGS = \ | ||
18 | @X_LIBS@ @GL_LIBS@ @GTK_LIBS@ @LIBG3D_LIBS@ | ||
19 | |||
20 | mimelocaldir = ${HOME}/.local/share/mime | ||
21 | mimefiles = g3dviewer.xml | ||
22 | |||
23 | install-data-user: install-mime-user install-schema-user | ||
24 | |||
25 | install-mime-user: ${mimefiles} | ||
26 | mkdir -p ${mimelocaldir}/packages | ||
27 | mkdir -p ${mimelocaldir}/applications | ||
28 | cp ${mimefiles} ${mimelocaldir}/packages | ||
29 | update-mime-database ${mimelocaldir} | ||
30 | |||
31 | install-schema-user: | ||
32 | ./gen_schema.sh | ||
33 | gconftool-2 --install-schema-file=g3d-thumbnailer.schema | ||
34 | |||
35 | EXTRA_DIST = \ | ||
36 | g3dviewer.xml \ | ||
37 | gen_schema.sh | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.in b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.in new file mode 100644 index 0000000..623d2cf --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/Makefile.in | |||
@@ -0,0 +1,581 @@ | |||
1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | ||
5 | # Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | srcdir = @srcdir@ | ||
18 | top_srcdir = @top_srcdir@ | ||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
23 | top_builddir = .. | ||
24 | |||
25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
26 | INSTALL = @INSTALL@ | ||
27 | install_sh_DATA = $(install_sh) -c -m 644 | ||
28 | install_sh_PROGRAM = $(install_sh) -c | ||
29 | install_sh_SCRIPT = $(install_sh) -c | ||
30 | INSTALL_HEADER = $(INSTALL_DATA) | ||
31 | transform = $(program_transform_name) | ||
32 | NORMAL_INSTALL = : | ||
33 | PRE_INSTALL = : | ||
34 | POST_INSTALL = : | ||
35 | NORMAL_UNINSTALL = : | ||
36 | PRE_UNINSTALL = : | ||
37 | POST_UNINSTALL = : | ||
38 | ACLOCAL = @ACLOCAL@ | ||
39 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
40 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
41 | AMTAR = @AMTAR@ | ||
42 | AUTOCONF = @AUTOCONF@ | ||
43 | AUTOHEADER = @AUTOHEADER@ | ||
44 | AUTOMAKE = @AUTOMAKE@ | ||
45 | AWK = @AWK@ | ||
46 | CATALOGS = @CATALOGS@ | ||
47 | CATOBJEXT = @CATOBJEXT@ | ||
48 | CC = @CC@ | ||
49 | CCDEPMODE = @CCDEPMODE@ | ||
50 | CFLAGS = @CFLAGS@ | ||
51 | CPP = @CPP@ | ||
52 | CPPFLAGS = @CPPFLAGS@ | ||
53 | CYGPATH_W = @CYGPATH_W@ | ||
54 | DATADIRNAME = @DATADIRNAME@ | ||
55 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
56 | DEBUG = @DEBUG@ | ||
57 | DEFS = @DEFS@ | ||
58 | DEPDIR = @DEPDIR@ | ||
59 | ECHO_C = @ECHO_C@ | ||
60 | ECHO_N = @ECHO_N@ | ||
61 | ECHO_T = @ECHO_T@ | ||
62 | EGREP = @EGREP@ | ||
63 | EXEEXT = @EXEEXT@ | ||
64 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
65 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
66 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
67 | GLIB_LIBS = @GLIB_LIBS@ | ||
68 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
69 | GL_LIBS = @GL_LIBS@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | GMSGFMT = @GMSGFMT@ | ||
72 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
73 | GREP = @GREP@ | ||
74 | GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ | ||
75 | GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ | ||
76 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
77 | GTK_LIBS = @GTK_LIBS@ | ||
78 | INSTALL_DATA = @INSTALL_DATA@ | ||
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
82 | INSTOBJEXT = @INSTOBJEXT@ | ||
83 | INTLLIBS = @INTLLIBS@ | ||
84 | LDFLAGS = @LDFLAGS@ | ||
85 | LIBG3D_CFLAGS = @LIBG3D_CFLAGS@ | ||
86 | LIBG3D_LIBS = @LIBG3D_LIBS@ | ||
87 | LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ | ||
88 | LIBGLADE_LIBS = @LIBGLADE_LIBS@ | ||
89 | LIBOBJS = @LIBOBJS@ | ||
90 | LIBS = @LIBS@ | ||
91 | LTLIBOBJS = @LTLIBOBJS@ | ||
92 | MAKEINFO = @MAKEINFO@ | ||
93 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
94 | MSGFMT = @MSGFMT@ | ||
95 | OBJEXT = @OBJEXT@ | ||
96 | PACKAGE = @PACKAGE@ | ||
97 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
98 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
99 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
100 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
101 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
102 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
103 | PKG_CONFIG = @PKG_CONFIG@ | ||
104 | POFILES = @POFILES@ | ||
105 | POSUB = @POSUB@ | ||
106 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
107 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
108 | SET_MAKE = @SET_MAKE@ | ||
109 | SHELL = @SHELL@ | ||
110 | STRIP = @STRIP@ | ||
111 | USE_NLS = @USE_NLS@ | ||
112 | VERSION = @VERSION@ | ||
113 | XGETTEXT = @XGETTEXT@ | ||
114 | XMKMF = @XMKMF@ | ||
115 | X_CFLAGS = @X_CFLAGS@ | ||
116 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
117 | X_LIBS = @X_LIBS@ | ||
118 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
119 | ac_ct_CC = @ac_ct_CC@ | ||
120 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
121 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
122 | am__include = @am__include@ | ||
123 | am__leading_dot = @am__leading_dot@ | ||
124 | am__quote = @am__quote@ | ||
125 | bindir = @bindir@ | ||
126 | build_alias = @build_alias@ | ||
127 | datadir = @datadir@ | ||
128 | datarootdir = @datarootdir@ | ||
129 | docdir = @docdir@ | ||
130 | dvidir = @dvidir@ | ||
131 | exec_prefix = @exec_prefix@ | ||
132 | host_alias = @host_alias@ | ||
133 | htmldir = @htmldir@ | ||
134 | includedir = @includedir@ | ||
135 | infodir = @infodir@ | ||
136 | install_sh = @install_sh@ | ||
137 | libdir = @libdir@ | ||
138 | libexecdir = @libexecdir@ | ||
139 | localedir = @localedir@ | ||
140 | localstatedir = @localstatedir@ | ||
141 | mandir = @mandir@ | ||
142 | oldincludedir = @oldincludedir@ | ||
143 | pdfdir = @pdfdir@ | ||
144 | prefix = @prefix@ | ||
145 | program_transform_name = @program_transform_name@ | ||
146 | psdir = @psdir@ | ||
147 | sbindir = @sbindir@ | ||
148 | sharedstatedir = @sharedstatedir@ | ||
149 | sysconfdir = @sysconfdir@ | ||
150 | target_alias = @target_alias@ | ||
151 | bin_PROGRAMS = g3d-thumbnailer | ||
152 | |||
153 | g3d_thumbnailer_SOURCES = \ | ||
154 | g3d-thumbnailer.c \ | ||
155 | ../src/trackball.c \ | ||
156 | ../src/gl.c \ | ||
157 | ../src/texture.c \ | ||
158 | ../src/screenshot.c | ||
159 | |||
160 | |||
161 | g3d_thumbnailer_CFLAGS = \ | ||
162 | -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/src \ | ||
163 | -Wall -ansi \ | ||
164 | @X_CFLAGS@ @LIBG3D_CFLAGS@ \ | ||
165 | @GTK_CFLAGS@ \ | ||
166 | -DDEBUG=@DEBUG@ | ||
167 | |||
168 | |||
169 | g3d_thumbnailer_LDFLAGS = \ | ||
170 | @X_LIBS@ @GL_LIBS@ @GTK_LIBS@ @LIBG3D_LIBS@ | ||
171 | |||
172 | |||
173 | mimelocaldir = ${HOME}/.local/share/mime | ||
174 | mimefiles = g3dviewer.xml | ||
175 | |||
176 | EXTRA_DIST = \ | ||
177 | g3dviewer.xml \ | ||
178 | gen_schema.sh | ||
179 | |||
180 | subdir = thumbnailer | ||
181 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
182 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
183 | CONFIG_HEADER = $(top_builddir)/config.h | ||
184 | CONFIG_CLEAN_FILES = | ||
185 | bin_PROGRAMS = g3d-thumbnailer$(EXEEXT) | ||
186 | PROGRAMS = $(bin_PROGRAMS) | ||
187 | |||
188 | am_g3d_thumbnailer_OBJECTS = g3d_thumbnailer-g3d-thumbnailer.$(OBJEXT) \ | ||
189 | g3d_thumbnailer-trackball.$(OBJEXT) \ | ||
190 | g3d_thumbnailer-gl.$(OBJEXT) g3d_thumbnailer-texture.$(OBJEXT) \ | ||
191 | g3d_thumbnailer-screenshot.$(OBJEXT) | ||
192 | g3d_thumbnailer_OBJECTS = $(am_g3d_thumbnailer_OBJECTS) | ||
193 | g3d_thumbnailer_LDADD = $(LDADD) | ||
194 | g3d_thumbnailer_DEPENDENCIES = | ||
195 | |||
196 | DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) | ||
197 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
198 | am__depfiles_maybe = depfiles | ||
199 | @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po \ | ||
200 | @AMDEP_TRUE@ ./$(DEPDIR)/g3d_thumbnailer-gl.Po \ | ||
201 | @AMDEP_TRUE@ ./$(DEPDIR)/g3d_thumbnailer-screenshot.Po \ | ||
202 | @AMDEP_TRUE@ ./$(DEPDIR)/g3d_thumbnailer-texture.Po \ | ||
203 | @AMDEP_TRUE@ ./$(DEPDIR)/g3d_thumbnailer-trackball.Po | ||
204 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
205 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
206 | CCLD = $(CC) | ||
207 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
208 | DIST_SOURCES = $(g3d_thumbnailer_SOURCES) | ||
209 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am | ||
210 | SOURCES = $(g3d_thumbnailer_SOURCES) | ||
211 | |||
212 | all: all-am | ||
213 | |||
214 | .SUFFIXES: | ||
215 | .SUFFIXES: .c .o .obj | ||
216 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
217 | cd $(top_srcdir) && \ | ||
218 | $(AUTOMAKE) --gnu thumbnailer/Makefile | ||
219 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
220 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) | ||
221 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | ||
222 | install-binPROGRAMS: $(bin_PROGRAMS) | ||
223 | @$(NORMAL_INSTALL) | ||
224 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
225 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
226 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | ||
227 | if test -f $$p \ | ||
228 | ; then \ | ||
229 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
230 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ | ||
231 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ | ||
232 | else :; fi; \ | ||
233 | done | ||
234 | |||
235 | uninstall-binPROGRAMS: | ||
236 | @$(NORMAL_UNINSTALL) | ||
237 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | ||
238 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | ||
239 | echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ | ||
240 | rm -f $(DESTDIR)$(bindir)/$$f; \ | ||
241 | done | ||
242 | |||
243 | clean-binPROGRAMS: | ||
244 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | ||
245 | g3d-thumbnailer$(EXEEXT): $(g3d_thumbnailer_OBJECTS) $(g3d_thumbnailer_DEPENDENCIES) | ||
246 | @rm -f g3d-thumbnailer$(EXEEXT) | ||
247 | $(LINK) $(g3d_thumbnailer_LDFLAGS) $(g3d_thumbnailer_OBJECTS) $(g3d_thumbnailer_LDADD) $(LIBS) | ||
248 | |||
249 | mostlyclean-compile: | ||
250 | -rm -f *.$(OBJEXT) core *.core | ||
251 | |||
252 | distclean-compile: | ||
253 | -rm -f *.tab.c | ||
254 | |||
255 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po@am__quote@ | ||
256 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d_thumbnailer-gl.Po@am__quote@ | ||
257 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d_thumbnailer-screenshot.Po@am__quote@ | ||
258 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d_thumbnailer-texture.Po@am__quote@ | ||
259 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d_thumbnailer-trackball.Po@am__quote@ | ||
260 | |||
261 | .c.o: | ||
262 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
263 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ | ||
264 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
265 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
266 | @am__fastdepCC_TRUE@ fi | ||
267 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
268 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | ||
269 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
270 | @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< | ||
271 | |||
272 | .c.obj: | ||
273 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ | ||
274 | @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ | ||
275 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ | ||
276 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ | ||
277 | @am__fastdepCC_TRUE@ fi | ||
278 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
279 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | ||
280 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
281 | @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | ||
282 | |||
283 | g3d_thumbnailer-g3d-thumbnailer.o: g3d-thumbnailer.c | ||
284 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-g3d-thumbnailer.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" \ | ||
285 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-g3d-thumbnailer.o `test -f 'g3d-thumbnailer.c' || echo '$(srcdir)/'`g3d-thumbnailer.c; \ | ||
286 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po"; \ | ||
287 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo"; exit 1; \ | ||
288 | @am__fastdepCC_TRUE@ fi | ||
289 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='g3d-thumbnailer.c' object='g3d_thumbnailer-g3d-thumbnailer.o' libtool=no @AMDEPBACKSLASH@ | ||
290 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.TPo' @AMDEPBACKSLASH@ | ||
291 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
292 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-g3d-thumbnailer.o `test -f 'g3d-thumbnailer.c' || echo '$(srcdir)/'`g3d-thumbnailer.c | ||
293 | |||
294 | g3d_thumbnailer-g3d-thumbnailer.obj: g3d-thumbnailer.c | ||
295 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-g3d-thumbnailer.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" \ | ||
296 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-g3d-thumbnailer.obj `if test -f 'g3d-thumbnailer.c'; then $(CYGPATH_W) 'g3d-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/g3d-thumbnailer.c'; fi`; \ | ||
297 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo" "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po"; \ | ||
298 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Tpo"; exit 1; \ | ||
299 | @am__fastdepCC_TRUE@ fi | ||
300 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='g3d-thumbnailer.c' object='g3d_thumbnailer-g3d-thumbnailer.obj' libtool=no @AMDEPBACKSLASH@ | ||
301 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-g3d-thumbnailer.TPo' @AMDEPBACKSLASH@ | ||
302 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
303 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-g3d-thumbnailer.obj `if test -f 'g3d-thumbnailer.c'; then $(CYGPATH_W) 'g3d-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/g3d-thumbnailer.c'; fi` | ||
304 | |||
305 | g3d_thumbnailer-trackball.o: ../src/trackball.c | ||
306 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-trackball.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" \ | ||
307 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-trackball.o `test -f '../src/trackball.c' || echo '$(srcdir)/'`../src/trackball.c; \ | ||
308 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" "$(DEPDIR)/g3d_thumbnailer-trackball.Po"; \ | ||
309 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo"; exit 1; \ | ||
310 | @am__fastdepCC_TRUE@ fi | ||
311 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/trackball.c' object='g3d_thumbnailer-trackball.o' libtool=no @AMDEPBACKSLASH@ | ||
312 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-trackball.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-trackball.TPo' @AMDEPBACKSLASH@ | ||
313 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
314 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-trackball.o `test -f '../src/trackball.c' || echo '$(srcdir)/'`../src/trackball.c | ||
315 | |||
316 | g3d_thumbnailer-trackball.obj: ../src/trackball.c | ||
317 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-trackball.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" \ | ||
318 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-trackball.obj `if test -f '../src/trackball.c'; then $(CYGPATH_W) '../src/trackball.c'; else $(CYGPATH_W) '$(srcdir)/../src/trackball.c'; fi`; \ | ||
319 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo" "$(DEPDIR)/g3d_thumbnailer-trackball.Po"; \ | ||
320 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-trackball.Tpo"; exit 1; \ | ||
321 | @am__fastdepCC_TRUE@ fi | ||
322 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/trackball.c' object='g3d_thumbnailer-trackball.obj' libtool=no @AMDEPBACKSLASH@ | ||
323 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-trackball.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-trackball.TPo' @AMDEPBACKSLASH@ | ||
324 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
325 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-trackball.obj `if test -f '../src/trackball.c'; then $(CYGPATH_W) '../src/trackball.c'; else $(CYGPATH_W) '$(srcdir)/../src/trackball.c'; fi` | ||
326 | |||
327 | g3d_thumbnailer-gl.o: ../src/gl.c | ||
328 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-gl.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" \ | ||
329 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-gl.o `test -f '../src/gl.c' || echo '$(srcdir)/'`../src/gl.c; \ | ||
330 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" "$(DEPDIR)/g3d_thumbnailer-gl.Po"; \ | ||
331 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo"; exit 1; \ | ||
332 | @am__fastdepCC_TRUE@ fi | ||
333 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gl.c' object='g3d_thumbnailer-gl.o' libtool=no @AMDEPBACKSLASH@ | ||
334 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-gl.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-gl.TPo' @AMDEPBACKSLASH@ | ||
335 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
336 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-gl.o `test -f '../src/gl.c' || echo '$(srcdir)/'`../src/gl.c | ||
337 | |||
338 | g3d_thumbnailer-gl.obj: ../src/gl.c | ||
339 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-gl.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" \ | ||
340 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-gl.obj `if test -f '../src/gl.c'; then $(CYGPATH_W) '../src/gl.c'; else $(CYGPATH_W) '$(srcdir)/../src/gl.c'; fi`; \ | ||
341 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo" "$(DEPDIR)/g3d_thumbnailer-gl.Po"; \ | ||
342 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-gl.Tpo"; exit 1; \ | ||
343 | @am__fastdepCC_TRUE@ fi | ||
344 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gl.c' object='g3d_thumbnailer-gl.obj' libtool=no @AMDEPBACKSLASH@ | ||
345 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-gl.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-gl.TPo' @AMDEPBACKSLASH@ | ||
346 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
347 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-gl.obj `if test -f '../src/gl.c'; then $(CYGPATH_W) '../src/gl.c'; else $(CYGPATH_W) '$(srcdir)/../src/gl.c'; fi` | ||
348 | |||
349 | g3d_thumbnailer-texture.o: ../src/texture.c | ||
350 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-texture.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" \ | ||
351 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-texture.o `test -f '../src/texture.c' || echo '$(srcdir)/'`../src/texture.c; \ | ||
352 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" "$(DEPDIR)/g3d_thumbnailer-texture.Po"; \ | ||
353 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo"; exit 1; \ | ||
354 | @am__fastdepCC_TRUE@ fi | ||
355 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/texture.c' object='g3d_thumbnailer-texture.o' libtool=no @AMDEPBACKSLASH@ | ||
356 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-texture.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-texture.TPo' @AMDEPBACKSLASH@ | ||
357 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
358 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-texture.o `test -f '../src/texture.c' || echo '$(srcdir)/'`../src/texture.c | ||
359 | |||
360 | g3d_thumbnailer-texture.obj: ../src/texture.c | ||
361 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-texture.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" \ | ||
362 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-texture.obj `if test -f '../src/texture.c'; then $(CYGPATH_W) '../src/texture.c'; else $(CYGPATH_W) '$(srcdir)/../src/texture.c'; fi`; \ | ||
363 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo" "$(DEPDIR)/g3d_thumbnailer-texture.Po"; \ | ||
364 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-texture.Tpo"; exit 1; \ | ||
365 | @am__fastdepCC_TRUE@ fi | ||
366 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/texture.c' object='g3d_thumbnailer-texture.obj' libtool=no @AMDEPBACKSLASH@ | ||
367 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-texture.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-texture.TPo' @AMDEPBACKSLASH@ | ||
368 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
369 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-texture.obj `if test -f '../src/texture.c'; then $(CYGPATH_W) '../src/texture.c'; else $(CYGPATH_W) '$(srcdir)/../src/texture.c'; fi` | ||
370 | |||
371 | g3d_thumbnailer-screenshot.o: ../src/screenshot.c | ||
372 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-screenshot.o -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" \ | ||
373 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-screenshot.o `test -f '../src/screenshot.c' || echo '$(srcdir)/'`../src/screenshot.c; \ | ||
374 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" "$(DEPDIR)/g3d_thumbnailer-screenshot.Po"; \ | ||
375 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo"; exit 1; \ | ||
376 | @am__fastdepCC_TRUE@ fi | ||
377 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/screenshot.c' object='g3d_thumbnailer-screenshot.o' libtool=no @AMDEPBACKSLASH@ | ||
378 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-screenshot.TPo' @AMDEPBACKSLASH@ | ||
379 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
380 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-screenshot.o `test -f '../src/screenshot.c' || echo '$(srcdir)/'`../src/screenshot.c | ||
381 | |||
382 | g3d_thumbnailer-screenshot.obj: ../src/screenshot.c | ||
383 | @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -MT g3d_thumbnailer-screenshot.obj -MD -MP -MF "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" \ | ||
384 | @am__fastdepCC_TRUE@ -c -o g3d_thumbnailer-screenshot.obj `if test -f '../src/screenshot.c'; then $(CYGPATH_W) '../src/screenshot.c'; else $(CYGPATH_W) '$(srcdir)/../src/screenshot.c'; fi`; \ | ||
385 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo" "$(DEPDIR)/g3d_thumbnailer-screenshot.Po"; \ | ||
386 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/g3d_thumbnailer-screenshot.Tpo"; exit 1; \ | ||
387 | @am__fastdepCC_TRUE@ fi | ||
388 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/screenshot.c' object='g3d_thumbnailer-screenshot.obj' libtool=no @AMDEPBACKSLASH@ | ||
389 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/g3d_thumbnailer-screenshot.Po' tmpdepfile='$(DEPDIR)/g3d_thumbnailer-screenshot.TPo' @AMDEPBACKSLASH@ | ||
390 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
391 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(g3d_thumbnailer_CFLAGS) $(CFLAGS) -c -o g3d_thumbnailer-screenshot.obj `if test -f '../src/screenshot.c'; then $(CYGPATH_W) '../src/screenshot.c'; else $(CYGPATH_W) '$(srcdir)/../src/screenshot.c'; fi` | ||
392 | uninstall-info-am: | ||
393 | |||
394 | ETAGS = etags | ||
395 | ETAGSFLAGS = | ||
396 | |||
397 | CTAGS = ctags | ||
398 | CTAGSFLAGS = | ||
399 | |||
400 | tags: TAGS | ||
401 | |||
402 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
403 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
404 | unique=`for i in $$list; do \ | ||
405 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
406 | done | \ | ||
407 | $(AWK) ' { files[$$0] = 1; } \ | ||
408 | END { for (i in files) print i; }'`; \ | ||
409 | mkid -fID $$unique | ||
410 | |||
411 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
412 | $(TAGS_FILES) $(LISP) | ||
413 | tags=; \ | ||
414 | here=`pwd`; \ | ||
415 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
416 | unique=`for i in $$list; do \ | ||
417 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
418 | done | \ | ||
419 | $(AWK) ' { files[$$0] = 1; } \ | ||
420 | END { for (i in files) print i; }'`; \ | ||
421 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ | ||
422 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
423 | $$tags $$unique | ||
424 | |||
425 | ctags: CTAGS | ||
426 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
427 | $(TAGS_FILES) $(LISP) | ||
428 | tags=; \ | ||
429 | here=`pwd`; \ | ||
430 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
431 | unique=`for i in $$list; do \ | ||
432 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
433 | done | \ | ||
434 | $(AWK) ' { files[$$0] = 1; } \ | ||
435 | END { for (i in files) print i; }'`; \ | ||
436 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
437 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
438 | $$tags $$unique | ||
439 | |||
440 | GTAGS: | ||
441 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
442 | && cd $(top_srcdir) \ | ||
443 | && gtags -i $(GTAGS_ARGS) $$here | ||
444 | |||
445 | distclean-tags: | ||
446 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
447 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
448 | |||
449 | top_distdir = .. | ||
450 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) | ||
451 | |||
452 | distdir: $(DISTFILES) | ||
453 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | ||
454 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | ||
455 | list='$(DISTFILES)'; for file in $$list; do \ | ||
456 | case $$file in \ | ||
457 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | ||
458 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | ||
459 | esac; \ | ||
460 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
461 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
462 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
463 | dir="/$$dir"; \ | ||
464 | $(mkinstalldirs) "$(distdir)$$dir"; \ | ||
465 | else \ | ||
466 | dir=''; \ | ||
467 | fi; \ | ||
468 | if test -d $$d/$$file; then \ | ||
469 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
470 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
471 | fi; \ | ||
472 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
473 | else \ | ||
474 | test -f $(distdir)/$$file \ | ||
475 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
476 | || exit 1; \ | ||
477 | fi; \ | ||
478 | done | ||
479 | check-am: all-am | ||
480 | check: check-am | ||
481 | all-am: Makefile $(PROGRAMS) | ||
482 | |||
483 | installdirs: | ||
484 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
485 | install: install-am | ||
486 | install-exec: install-exec-am | ||
487 | install-data: install-data-am | ||
488 | uninstall: uninstall-am | ||
489 | |||
490 | install-am: all-am | ||
491 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
492 | |||
493 | installcheck: installcheck-am | ||
494 | install-strip: | ||
495 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
496 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
497 | `test -z '$(STRIP)' || \ | ||
498 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
499 | mostlyclean-generic: | ||
500 | |||
501 | clean-generic: | ||
502 | |||
503 | distclean-generic: | ||
504 | -rm -f $(CONFIG_CLEAN_FILES) | ||
505 | |||
506 | maintainer-clean-generic: | ||
507 | @echo "This command is intended for maintainers to use" | ||
508 | @echo "it deletes files that may require special tools to rebuild." | ||
509 | clean: clean-am | ||
510 | |||
511 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | ||
512 | |||
513 | distclean: distclean-am | ||
514 | -rm -rf ./$(DEPDIR) | ||
515 | -rm -f Makefile | ||
516 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
517 | distclean-tags | ||
518 | |||
519 | dvi: dvi-am | ||
520 | |||
521 | dvi-am: | ||
522 | |||
523 | info: info-am | ||
524 | |||
525 | info-am: | ||
526 | |||
527 | install-data-am: | ||
528 | |||
529 | install-exec-am: install-binPROGRAMS | ||
530 | |||
531 | install-info: install-info-am | ||
532 | |||
533 | install-man: | ||
534 | |||
535 | installcheck-am: | ||
536 | |||
537 | maintainer-clean: maintainer-clean-am | ||
538 | -rm -rf ./$(DEPDIR) | ||
539 | -rm -f Makefile | ||
540 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
541 | |||
542 | mostlyclean: mostlyclean-am | ||
543 | |||
544 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
545 | |||
546 | pdf: pdf-am | ||
547 | |||
548 | pdf-am: | ||
549 | |||
550 | ps: ps-am | ||
551 | |||
552 | ps-am: | ||
553 | |||
554 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am | ||
555 | |||
556 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||
557 | clean-generic ctags distclean distclean-compile \ | ||
558 | distclean-generic distclean-tags distdir dvi dvi-am info \ | ||
559 | info-am install install-am install-binPROGRAMS install-data \ | ||
560 | install-data-am install-exec install-exec-am install-info \ | ||
561 | install-info-am install-man install-strip installcheck \ | ||
562 | installcheck-am installdirs maintainer-clean \ | ||
563 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
564 | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||
565 | uninstall-am uninstall-binPROGRAMS uninstall-info-am | ||
566 | |||
567 | |||
568 | install-data-user: install-mime-user install-schema-user | ||
569 | |||
570 | install-mime-user: ${mimefiles} | ||
571 | mkdir -p ${mimelocaldir}/packages | ||
572 | mkdir -p ${mimelocaldir}/applications | ||
573 | cp ${mimefiles} ${mimelocaldir}/packages | ||
574 | update-mime-database ${mimelocaldir} | ||
575 | |||
576 | install-schema-user: | ||
577 | ./gen_schema.sh | ||
578 | gconftool-2 --install-schema-file=g3d-thumbnailer.schema | ||
579 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
580 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
581 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3d-thumbnailer.c b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3d-thumbnailer.c new file mode 100644 index 0000000..92acd0b --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3d-thumbnailer.c | |||
@@ -0,0 +1,164 @@ | |||
1 | /* $Id: g3d-thumbnailer.c 61 2006-11-09 15:31:12Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include <stdio.h> | ||
24 | #include <stdlib.h> | ||
25 | |||
26 | #include <X11/Xlib.h> | ||
27 | #include <GL/glx.h> | ||
28 | |||
29 | #include <gtk/gtk.h> | ||
30 | #include <glib.h> | ||
31 | #include <g3d/g3d.h> | ||
32 | |||
33 | #include "gl.h" | ||
34 | #include "trackball.h" | ||
35 | #include "screenshot.h" | ||
36 | #include "texture.h" | ||
37 | |||
38 | static gboolean setup_gl(guint32 width, guint32 height) | ||
39 | { | ||
40 | Display *display; | ||
41 | XVisualInfo *visinfo; | ||
42 | Pixmap pixmap; | ||
43 | GLXPixmap glxpixmap; | ||
44 | GLXContext glxctx; | ||
45 | char *dpyname; | ||
46 | int attrlist_dbl[] = { | ||
47 | GLX_RGBA, | ||
48 | GLX_DOUBLEBUFFER, | ||
49 | GLX_RED_SIZE, 1, | ||
50 | GLX_GREEN_SIZE, 1, | ||
51 | GLX_BLUE_SIZE, 1, | ||
52 | None}; | ||
53 | int attrlist_sng[] = { | ||
54 | GLX_RGBA, | ||
55 | GLX_RED_SIZE, 1, | ||
56 | GLX_GREEN_SIZE, 1, | ||
57 | GLX_BLUE_SIZE, 1, | ||
58 | None}; | ||
59 | |||
60 | dpyname = getenv("DISPLAY"); | ||
61 | |||
62 | display = XOpenDisplay(dpyname); | ||
63 | if(display == NULL) | ||
64 | { | ||
65 | g_printerr("ERROR: could not open display '%s'\n", | ||
66 | dpyname ? dpyname : "(null)"); | ||
67 | return FALSE; | ||
68 | } | ||
69 | |||
70 | visinfo = glXChooseVisual(display, DefaultScreen(display), attrlist_sng); | ||
71 | if(visinfo == NULL) | ||
72 | { | ||
73 | /* try with double buffering */ | ||
74 | visinfo = glXChooseVisual(display, DefaultScreen(display), | ||
75 | attrlist_dbl); | ||
76 | if(visinfo == NULL) | ||
77 | { | ||
78 | g_printerr("ERROR: could not get a supported visual\n"); | ||
79 | return FALSE; | ||
80 | } | ||
81 | } | ||
82 | |||
83 | glxctx = glXCreateContext(display, visinfo, 0, GL_FALSE); | ||
84 | if(glxctx == NULL) | ||
85 | { | ||
86 | g_printerr("ERROR: could not create GLX context\n"); | ||
87 | return FALSE; | ||
88 | } | ||
89 | |||
90 | pixmap = XCreatePixmap(display, RootWindow(display, visinfo->screen), | ||
91 | width, height, visinfo->depth); | ||
92 | if(pixmap <= 0) | ||
93 | { | ||
94 | g_printerr("ERROR: could not create pixmap\n"); | ||
95 | return FALSE; | ||
96 | } | ||
97 | |||
98 | glxpixmap = glXCreateGLXPixmap(display, visinfo, pixmap); | ||
99 | if(glxpixmap <= 0) | ||
100 | { | ||
101 | g_printerr("ERROR: could not create GLX pixmap\n"); | ||
102 | return FALSE; | ||
103 | } | ||
104 | |||
105 | glXMakeCurrent(display, glxpixmap, glxctx); | ||
106 | |||
107 | return TRUE; | ||
108 | } | ||
109 | |||
110 | int main(int argc, char *argv[]) | ||
111 | { | ||
112 | G3DContext *context; | ||
113 | G3DModel *model; | ||
114 | gfloat bgcolor[4] = { 1.0, 1.0, 1.0, 0.0 }; | ||
115 | gfloat quat[4] = { 0.10, -0.31, -0.87, 0.38 }; | ||
116 | guint32 width = 128; | ||
117 | guint32 height = 128; | ||
118 | |||
119 | gtk_init(&argc, &argv); | ||
120 | |||
121 | setup_gl(width, height); | ||
122 | |||
123 | if(argc < 3) | ||
124 | { | ||
125 | g_print("usage: %s <input file: model> <output file: image> " | ||
126 | "[<width in px>]\n", | ||
127 | argv[0]); | ||
128 | return EXIT_FAILURE; | ||
129 | } | ||
130 | |||
131 | if(argc > 3) | ||
132 | { | ||
133 | /* size */ | ||
134 | width = atoi(argv[3]); | ||
135 | /* height = width / 4 * 3; */ | ||
136 | height = width; | ||
137 | } | ||
138 | |||
139 | context = g3d_context_new(); | ||
140 | model = g3d_model_load(context, argv[1]); | ||
141 | |||
142 | if(model) | ||
143 | { | ||
144 | texture_load_all_textures(model); | ||
145 | |||
146 | gl_draw( | ||
147 | G3D_FLAG_GL_SHININESS | G3D_FLAG_GL_ALLTWOSIDE | | ||
148 | G3D_FLAG_GL_TEXTURES, | ||
149 | 45 /* zoom */, | ||
150 | (gfloat)width / (gfloat)height, | ||
151 | bgcolor, | ||
152 | quat, | ||
153 | model); | ||
154 | |||
155 | glXWaitGL(); | ||
156 | |||
157 | if(screenshot_save(argv[2], width, height)) | ||
158 | { | ||
159 | return EXIT_SUCCESS; | ||
160 | } | ||
161 | } | ||
162 | |||
163 | return EXIT_FAILURE; | ||
164 | } | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3dviewer.xml b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3dviewer.xml new file mode 100644 index 0000000..7de902e --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/g3dviewer.xml | |||
@@ -0,0 +1,91 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | ||
3 | |||
4 | <mime-type type="image/x-3ds"> | ||
5 | <comment xml:lang="en">3D Studio model</comment> | ||
6 | <glob pattern="*.3ds" /> | ||
7 | <glob pattern="*.asc" /> | ||
8 | <glob pattern="*.prj" /> | ||
9 | </mime-type> | ||
10 | |||
11 | <mime-type type="image/x-3dmf"> | ||
12 | <comment xml:lang="en">3D Metafile</comment> | ||
13 | <glob pattern="*.3dmf" /> | ||
14 | <glob pattern="*.3mf" /> | ||
15 | <glob pattern="*.b3d" /> | ||
16 | </mime-type> | ||
17 | |||
18 | <mime-type type="image/x-ac3d"> | ||
19 | <comment xml:lang="en">AC3D model</comment> | ||
20 | <glob pattern="*.ac" /> | ||
21 | <glob pattern="*.acc" /> | ||
22 | </mime-type> | ||
23 | |||
24 | <mime-type type="image/x-cob"> | ||
25 | <comment xml:lang="en">TrueSpace model</comment> | ||
26 | <glob pattern="*.cob" /> | ||
27 | </mime-type> | ||
28 | |||
29 | <mime-type type="image/x-dxf"> | ||
30 | <comment xml:lang="en">DXF 3D model</comment> | ||
31 | <comment xml:lang="de">DXF-3D-Modell</comment> | ||
32 | <glob pattern="*.dxf" /> | ||
33 | </mime-type> | ||
34 | |||
35 | <mime-type type="image/x-iob"> | ||
36 | <comment xml:lang="en">IOB 3D model</comment> | ||
37 | <glob pattern="*.iob" /> | ||
38 | </mime-type> | ||
39 | |||
40 | <mime-type type="image/x-vdrift"> | ||
41 | <comment xml:lang="en">VDrift 3D model</comment> | ||
42 | <glob pattern="*.joe" /> | ||
43 | <glob pattern="*.car" /> | ||
44 | </mime-type> | ||
45 | |||
46 | <mime-type type="image/x-lcd"> | ||
47 | <comment xml:lang="en">LCD 3D model</comment> | ||
48 | <glob pattern="*.lcd" /> | ||
49 | </mime-type> | ||
50 | |||
51 | <mime-type type="image/x-lwo"> | ||
52 | <comment xml:lang="en">LWO 3D model</comment> | ||
53 | <glob pattern="*.lw" /> | ||
54 | <glob pattern="*.lwb" /> | ||
55 | <glob pattern="*.lwo" /> | ||
56 | </mime-type> | ||
57 | |||
58 | <mime-type type="image/x-md2"> | ||
59 | <comment xml:lang="en">Quake 2 model</comment> | ||
60 | <glob pattern="*.md2" /> | ||
61 | </mime-type> | ||
62 | |||
63 | <mime-type type="image/x-md3"> | ||
64 | <comment xml:lang="en">Quake 3 model</comment> | ||
65 | <glob pattern="*.md3" /> | ||
66 | <glob pattern="*.mdc" /> | ||
67 | </mime-type> | ||
68 | |||
69 | <mime-type type="image/x-nff"> | ||
70 | <comment xml:lang="en">Neutral File Format model</comment> | ||
71 | <glob pattern="*.nff" /> | ||
72 | </mime-type> | ||
73 | |||
74 | <mime-type type="image/x-obj"> | ||
75 | <comment xml:lang="en">OBJ 3D model</comment> | ||
76 | <glob pattern="*.obj" /> | ||
77 | </mime-type> | ||
78 | |||
79 | <mime-type type="image/x-q3d"> | ||
80 | <comment xml:lang="en">Quick3D model</comment> | ||
81 | <glob pattern="*.q3o" /> | ||
82 | <glob pattern="*.q3s" /> | ||
83 | </mime-type> | ||
84 | |||
85 | <mime-type type="image/x-vrml"> | ||
86 | <comment xml:lang="en">VRML scene</comment> | ||
87 | <glob pattern="*.vrml" /> | ||
88 | <glob pattern="*.wrl" /> | ||
89 | </mime-type> | ||
90 | |||
91 | </mime-info> | ||
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh new file mode 100755 index 0000000..9ef6c24 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh | |||
@@ -0,0 +1,81 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # $Id: gen_schema.sh 59 2006-11-06 09:49:56Z mmmaddd $ | ||
4 | |||
5 | # G3DViewer - 3D object viewer | ||
6 | # | ||
7 | # Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
8 | # | ||
9 | # This program is free software; you can redistribute it and/or modify | ||
10 | # it under the terms of the GNU General Public License as published by | ||
11 | # the Free Software Foundation; either version 2 of the License, or | ||
12 | # (at your option) any later version. | ||
13 | # | ||
14 | # This program is distributed in the hope that it will be useful, | ||
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | # GNU General Public License for more details. | ||
18 | # | ||
19 | # You should have received a copy of the GNU General Public License | ||
20 | # along with this program; if not, write to the Free Software | ||
21 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | |||
23 | schemafile=g3d-thumbnailer.schema | ||
24 | |||
25 | > $schemafile | ||
26 | |||
27 | add_schema () { | ||
28 | cat >> $schemafile <<EOD | ||
29 | <schema> | ||
30 | <key>/schemas/desktop/gnome/thumbnailers/$1/enable</key> | ||
31 | <applyto>/desktop/gnome/thumbnailers/$1/enable</applyto> | ||
32 | <owner>g3dviewer</owner> | ||
33 | <type>bool</type> | ||
34 | <default>true</default> | ||
35 | <locale name="C"> | ||
36 | <short>Enable thumbnailing of $2 models</short> | ||
37 | <long>Boolean options available, true enables thumbnailing and false disables the creation of new thumbnails</long> | ||
38 | </locale> | ||
39 | </schema> | ||
40 | |||
41 | <schema> | ||
42 | <key>/schemas/desktop/gnome/thumbnailers/$1/command</key> | ||
43 | <applyto>/desktop/gnome/thumbnailers/$1/command</applyto> | ||
44 | <owner>g3dviewer</owner> | ||
45 | <type>string</type> | ||
46 | <default>g3d-thumbnailer %i %o %s</default> | ||
47 | <locale name="C"> | ||
48 | <short>Thumbnail command for $2 models</short> | ||
49 | <long>Valid command plus arguments for the $2 document thumbnailer. See nautilus thumbnailer documentation for more information.</long> | ||
50 | </locale> | ||
51 | </schema> | ||
52 | |||
53 | EOD | ||
54 | } | ||
55 | |||
56 | cat >> $schemafile <<EOD | ||
57 | <gconfschemafile> | ||
58 | <schemalist> | ||
59 | EOD | ||
60 | |||
61 | add_schema "image@x-3dmf" "3DMF" | ||
62 | add_schema "image@x-3ds" "3DS" | ||
63 | add_schema "image@x-ac3d" "AC3D" | ||
64 | add_schema "image@x-cob" "COB" | ||
65 | add_schema "image@x-dxf" "DXF" | ||
66 | add_schema "image@x-iob" "IOB" | ||
67 | add_schema "image@x-vdrift" "VDrift" | ||
68 | add_schema "image@x-lcd" "LCD" | ||
69 | add_schema "image@x-lwo" "LWO" | ||
70 | #add_schema "image@x-lws" "LWS" | ||
71 | add_schema "image@x-md2" "MD2" | ||
72 | add_schema "image@x-md3" "MD3" | ||
73 | add_schema "image@x-nff" "NFF" | ||
74 | add_schema "image@x-obj" "OBJ" | ||
75 | add_schema "image@x-q3d" "Q3D" | ||
76 | add_schema "image@x-vrml" "VRML" | ||
77 | |||
78 | cat >> $schemafile <<EOD | ||
79 | </schemalist> | ||
80 | </gconfschemafile> | ||
81 | EOD | ||